'B', 1 => 'kB', 2 => 'MB', 3 => 'GB'); $size = filesize($file); $pot = floor(log($size, 2) / 10); $unit = $units[$pot]; $amount = $size / pow(2, $pot * 10); $amount = number_format($amount, 1, ',', '.'); return $amount ." ". $unit; } function getExtension($file){ $pathinfoArray = pathinfo($file); $known_exts=array( 'pdf', 'doc', 'xls' ); if(!in_array($pathinfoArray['extension'],$known_exts)){ $ext='file'; }else{ $ext=$pathinfoArray['extension']; } return $ext; } function formatDate($date){ list($year,$month,$day)=explode('-',$date); return "$day.$month.$year."; } function unsetIfEmpty($rows, $fieldName){ $newRows = array(); if($rows) foreach($rows AS $ri=>$row){ if($row[$fieldName]) $newRows[] = $row; } return $newRows; } ?> model->getUrlRoot(); } } ?>
Fatal error: Class 'UrlRootModel' not found in /var/www/vhosts/krastrgovina.com/httpdocs/_classes/hr/dimedia/framework/Controller.class.php on line 25