file = collect_content($GLOBALS["db"], $_GET["name"], $_GET["folder"]); } else { $this->file = $val; } } function NotFound(){ if($this->file == FILE_NOT_FOUND){ return true; } else { return false; } } function isEmpty(){ if($this->file == EMPTY_FOLDER){ return true; } else { return false; } } function isFile(){ if(check_if_file($GLOBALS["db"], $_GET["name"], $_GET["folder"])){ return true; } else { return false; } } function initFile($val){ if(!$val){ return false; } $this->file=$val; } function getDim(){ return count($this->file); } function getId($val = null){ $ar = $this->file; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][0]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][1]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][3]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][4]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][5]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][6]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][7]; } else { $res; for($i=0; $ifile; if($val != null){ if(!preg_match("/^[0-9]+$/", $val)){ return false; } return $ar[$val][8]; } else { $res; for($i=0; $ifile; } }