Advertisement
Guest User

lel

a guest
Oct 31st, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2. //PISST EUCH IHR DRECKS PASTEBIN LEUDE UND KLAUT NICHT MEINE CODES
  3. namespace Daily\System;
  4. class Routing {
  5.   public function __construct() {
  6.     self::process();
  7.  
  8.     if(isset($this->get[1])) {
  9.       echo "test";
  10.     }
  11.   }
  12.  
  13.   private static function process() {
  14.     if(isset($_GET['site'])) { $this->get = $_GET['site']; $this->get = trim($this->get, '/'); $this->get = explode('/', $this->get);}
  15.     if(empty($_GET['site'])) { if(file_exists($path = 'application/controllers/IndexController.php')) { $index = new \Daily\Controllers\IndexController; $index->Main(); return FALSE;}}
  16.   }
  17.  
  18.   private $get array;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement