<?php defined('BASEPATH') or exit('No direct script access allowed');

function coi_special_approval_upload_path($id)
{
  return FCPATH.'uploads/coi_special_approval/'.(int)$id.'/';
}

function coi_special_approval_ensure_dir($path)
{
  if (!is_dir($path)) {
    @mkdir($path, 0755, true);
    @file_put_contents($path.'index.html', '');
  }
}

function coi_special_approval_allowed_types()
{
  // adjust as needed
  return 'pdf|doc|docx|xls|xlsx|png|jpg|jpeg';
}
