Ejemplo n.º 1
0
	function __construct($system_folder){
		parent::__construct($system_folder);
	//	die(self::$data_types['time'][1]);
		$this->types = array();
		foreach(self::$data_types as $process)
				if(is_array($process[0]))$this->types = array_merge($this->types, $process[0]);
				
		foreach($this->types as $t)
			$temp .= self::make_option($t);
			
		$this->types = $temp;
		// turn types into HTML option code	
		// probably better to not make this in construct	
		$this->html= self::build_form();

	}
Ejemplo n.º 2
0
	function __construct($system_folder){
		parent::__construct($system_folder);
		if($_POST['restart'] || $_POST['delete'] == 'Cancel') die(parent::reload_form());		
		$class = get_class($this);
		$class_conf_path = $system_folder.'/system/conf/'. $class . '_conf';
	
		if(!class_exists($class) && file_exists($class_conf_path))require($class_conf_path);
		
		if($_FILES){
			foreach($_FILES as $field_name=>$file){		
			// look for a file field
			$path = $system_folder . sqlee_conf::$_['upload_path'] (sqlee_conf::$_['upload_timestamp'] == true?(date('B') + 0).'_':'') . $file['name'];
			// do validations and checks ..
			// next add a post variable for the post handler to store if it doesnt exist try to create it
				if(is_uploaded_file($file['tmp_name'])&& !copy($file['tmp_name'],$path))
					echo '\n<div class="status"> error while copying the uploaded file</div>';
				else  
					$_POST[$field_name] = (date('B') + date('s')).'_' .$file['name'];
			}
		}
		if($_POST) $_POST = self::postHandler();
	}
Ejemplo n.º 3
0
	function __construct($system_folder){
		parent::__construct($system_folder);
		$this->html = self::form_wizard();
	}