}#end foreach # strip the last deliminator # add the newline $line .= "\n"; # we don't care if the file pointer is invalid, # let fputs take care of it return $line; }#end fputcsv() function fputcsv ($fp, $array, $deliminator=",") { }#end fputcsv()
}#end foreach # strip the last deliminator # add the newline $line .= "\n"; # we don't care if the file pointer is invalid, # let fputs take care of it return $line; }#end fputcsv() function fputcsv ($fp, $array, $deliminator=",") { }#end fputcsv()
function UploadFile($source, $destination , $name ="") { $name = FileExt($name); $name[2]= $name[0];
var $functions; function CSQLAdmin($section , $templates , $db , $tables , $extra = "") {
class CSQLAdmin extends CLibrary { /** * description * * @var type * * @access type */ var $form; /** * description * * @var type * * @access type */ var $functions; /** * description functions list which will be executed in variouse points of sqladmin * * @var type * * @access type */ var $functions; function CSQLAdmin($section , $templates , $db , $tables , $extra = "") { if (!$_GET["page"]) $_GET["page"] = 1; parent::CLibrary("SQLAdmin"); //checking if the templates are orblects or path to a template file //if path the load the tempmate form that file else $this->templates = $templates; $this->db = $db; $this->tables = $tables; //extra variables to be passed to cform $this->extra = $extra; //loading the forms , changed the varialbes locations, but still keeping the compatibility $path = ($_CONF["forms"]["adminpath"] ? $_CONF["forms"]["adminpath"] : $_CONF["formspath"] ); } //debuging part $conf = new CConfig( $path . $section . ".xml"); $this->forms = $conf->vars["form"];