Exemple #1
0
 /**
  * function send
  * initialize the class and send the request
  * @return bool
  */
 function send()
 {
     if ($this->path != '') {
         $response = new $this->path($this->data);
         return $response->show($this->data);
     }
     Framework::ux_die("[application] exception: controller doesn't Exists.");
     return false;
 }
Exemple #2
0
 /**
  * function row_count
  * count number of fields
  * @param null $query
  * @return int
  */
 static function row_count($query = null)
 {
     try {
         return $query != null && self::$connection_instance != null ? $query->rowCount() : 0;
     } catch (PDOException $exception) {
         trigger_error("PDO Error in Query: {$query} AND Exception: {$exception}", E_WARNING);
         Framework::ux_die("[database] exception: {$exception}");
     }
 }
Exemple #3
0
 /**
  * function check_installation
  * check the existence of installed azureweb
  */
 function check_installation()
 {
     if (!INSTALLED && !in_array($_SERVER['REMOTE_ADDR'], $this->white_list)) {
         Framework::ux_die("[installer] only owner can access when install is activated.");
     }
 }