function delete()
 {
     $url = new PWEL_URL();
     $vars = $url->locateUrlVariables();
     $select = new Sql_Select(new PWEL_SQL());
     $select->from("rpgmarket_coins")->where(array("ID" => (int) $vars[2]))->query();
     $delete = new Sql_Delete($select);
     $delete->delete();
 }
 /**
  * Get all informations and save them in class
  */
 public function getinfo()
 {
     if (empty(self::$currentVariables)) {
         $url = new PWEL_URL();
         self::$currentVariables = $url->locateUrlVariables();
     }
     self::$currentController = PWEL_ROUTING::$ControllerInfo;
     self::$currentDisplayedFile = PWEL_CONTROLLER::$displayedFile;
     self::$currentComponents = PWEL_COMPONENTS::$components;
     self::$currentRegisteredObjects = PWEL::$registeredObjects;
     self::$currentConfig = PWEL::$config;
 }
 /**
  * Checks if the controllers are avaible else send to error controller
  * @return null
  */
 public function routeCurrentDir()
 {
     if (PWEL_ROUTING::$routed == true) {
         return true;
     }
     $url = new PWEL_URL();
     $this->url_variables = $url->locateUrlVariables();
     if (empty($this->url_variables)) {
         $check = $this->checkIncludeControllerClass(self::$start_controller);
         if ($check) {
         } else {
             $check = $this->checkIncludeControllerClass(self::$error_controller);
             if (!$check) {
                 return;
             }
         }
         $this->displayController(new $check(), "startController");
         self::$controllerNotFound = false;
     } else {
         self::$controllerNotFound = false;
         $check = $this->checkIncludeControllerClass($this->url_variables[0]);
         if ($check) {
         } else {
             $check = $this->checkIncludeControllerClass(self::$error_controller);
             self::$controllerNotFound = true;
             if (!$check) {
                 return;
             }
         }
         $this->displayController(new $check());
     }
     /**
      * Routing executed
      */
     PWEL_ROUTING::$routed = true;
 }
 /**
  * Prepare the variables for the final step
  */
 private function prepareVars()
 {
     $url = new PWEL_URL();
     $this->url_variables = $url->locateUrlVariables();
     $i = 0;
     foreach ($this->setRoutes as $key => $value) {
         if (empty($this->url_variables[$i])) {
             $this->url_variables[$key] = $value;
             unset($this->url_variables[$i]);
         } else {
             $this->url_variables[$key] = $this->url_variables[$i];
             unset($this->url_variables[$i]);
         }
         ++$i;
     }
     if (class_exists('PWEL_ANALYZER')) {
         PWEL_ANALYZER::$currentVariables = $this->url_variables;
     }
     return $this->url_variables;
 }