Notice: Undefined offset: 2 in /home2/icentarb/public_html/icentar/classes/class.permissions.php on line 735
function safe_file ($str, $ext) { //ako ima znakova ‘\’, ‘/’ vrati 0 for ($i = 0; $i < strlen($str); $i++) { switch ($str[$i]) { case ‘\\’: case ‘\/’: return 0; } } //extenzija iz string-a $temp = split (‘\.’, $str); $EXT = $temp[count($temp)-1]; $b = false; //dali extenzija iz stringa postoji u nizu dopuštenih for ($i = 0; $i < count($ext); $i++) { if (strtolo