Exemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$Instance == NULL) {
         $class = __CLASS__;
         self::$Instance = new $class();
     }
     return self::$Instance;
 }
Exemplo n.º 2
0
 public function errorNotFound()
 {
     if (isset($this->request->get['route']) and $this->request->get['route'] == 'error/not_found') {
         require_once DIR_CONFIG . 'ssb_library/ssb_custom_404.php';
         $this->ssb_custom_404 = ssb_custom_404::getInstance();
         $url_404 = $this->ssb_custom_404->getUrl404(array('url_404' => $this->curPageURL));
         if ($url_404) {
             $this->ssb_custom_404->addHit($url_404['custom_url_404_id']);
             if ($url_404['url_redirect']) {
                 $this->ssb_helper->redirect($url_404['url_redirect'], 301);
             }
         } else {
             $this->ssb_custom_404->insertUrl(array('url_404' => $this->curPageURL));
         }
     }
 }
Exemplo n.º 3
0
 private function deleteAllUrl404($data = array())
 {
     require_once DIR_CONFIG . 'ssb_library/ssb_custom_404.php';
     $this->ssb_custom_404 = ssb_custom_404::getInstance();
     $this->ssb_custom_404->deleteAll();
     $this->respondAnswer('', "Deleting done!", $data);
 }