This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MY_Form_validation extends CI_Form_validation{ | |
public $ci; | |
public function __construct($config = array()){ | |
parent::__construct($config); | |
$this->ci =& get_instance(); | |
} | |
function edit_unique($value, $params) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MY_Form_validation extends CI_Form_validation { | |
public function __construct() { | |
parent::__construct(); | |
} | |
public function file_check($str){ | |
$CI = $get_instance(); | |
$allowed_mime_type_arr = array('application/pdf','image/gif','image/jpeg','image/pjpeg','image/png','image/x-png'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filters; | |
use CodeIgniter\HTTP\RequestInterface; | |
use CodeIgniter\HTTP\ResponseInterface; | |
use CodeIgniter\Filters\FilterInterface; | |
class Auth implements FilterInterface{ | |
OlderNewer