33 lines
485 B
PHP
Executable File
33 lines
485 B
PHP
Executable File
<?php
|
|
|
|
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
if (!function_exists('formateDate')){
|
|
|
|
function formateDate($date){
|
|
$date=date_create($date);
|
|
return date_format($date,"m/d/Y");
|
|
}
|
|
|
|
function _na($data, $msg="N/A")
|
|
{
|
|
if ($data == '' || $data == NULL) {
|
|
return $msg;
|
|
}
|
|
else{
|
|
return $data;
|
|
}
|
|
}
|
|
|
|
function _die($data = 'test')
|
|
{
|
|
echo "<pre>";
|
|
print_r($data);
|
|
die();
|
|
}
|
|
function pre($data){
|
|
echo "<pre>";
|
|
print_r($data);
|
|
}
|
|
|
|
}
|
|
?>
|