* */ class extensions extends dbquery { /** * Redefinition of the extensions object constructor : configure the sql argument order by */ function __construct() { // configure the sql argument order by if(isset($_GET['start'])) { $this->the_start = strip_tags($_GET['start']); } else { $this->the_start = 0; } if(isset($_GET['order'])) { $this->orderby = strip_tags($_GET['order']); } else { $this->orderby = "nameasc"; } $this->sqlorderby = ""; if($this->orderby == "nameasc") { $this->sqlorderby = "order by NAME asc"; } if($this->orderby == "namedesc") { $this->sqlorderby = "order by NAME desc"; } if($this->orderby == "pathasc") { $this->sqlorderby = "order by PATH asc"; } if($this->orderby == "pathdesc") { $this->sqlorderby = "order by PATH desc"; } } /** * List all the alphabet letter to view the applications which are starting with the letter * * @param string $page "types" by default */ public function applistletters($page = "extension") { // List all the alphabet letter to view the applications who are starting with the letter if(isset($_GET['show'])) { if($_GET['show'] == "false") { $show = "&show=false"; } else { $show = ""; } } else { $show = ""; } ?>
connect(); $_SESSION['user']['extension']['NAME'] = $name; $_SESSION['user']['extension']['PATH'] = $path; if( $mode == "add") { if(empty($path) || empty($name)) { $_SESSION['error']=_EMPTY_FIELD; header("location: index.php?page=extensions_add"); exit; } else { $db->query("SELECT * FROM ".$_SESSION['tablename']['ext_applications']." WHERE USER_ID = '".$_SESSION['user']['UserId']."' AND NAME = '".$name."'"); if($db->nb_result() > 0) { $_SESSION['error'] = _APPS.' '.$name.' '._ALREADY_EXISTS; header("location: index.php?page=extensions_add"); exit; } else { require_once("class_history.php"); $ext_history = new history(); for ($i=0; $iNAME; ?> | show($line->PATH); ?> |