/** * Constructor * * gets proper linkage to URI items for 1.6.x * * @access public */ function MY_URI() { parent::CI_URI(); log_message('debug', "URI Class Initialized"); //query_string isn't in CI_URI if (isset($GLOBALS['IN'])) { $this->query_string =& $GLOBALS['IN']->QSTR; $this->page_query_string =& $GLOBALS['IN']->PAGE_QSTR; } }
/** * Constructor * * Rebuild the $_GET array. * */ function MY_URI() { // Call the parent constructor parent::CI_URI(); // On some server setups (including fosspass.org's own lighttpd 1.4 + // FastCGI), $_GET variables are a pain to get at. If $_GET isn't set, // try to rebuild it. This seems to happen especially when using // REQUEST_URI for URL routing if (!$_GET) { if (isset($_SERVER['QUERY_STRING']) and $_SERVER['QUERY_STRING'] != '') { // Get the query string from the $_SERVER array; simple enough $query_string = $_SERVER['QUERY_STRING']; } elseif (strpos($_SERVER['REQUEST_URI'], '?') !== false) { // Filter out what should be the query string from the full REQUEST_URI $query_string = substr(strstr($_SERVER['REQUEST_URI'], '?'), 1); } else { $query_string = null; } // There's probably no GET data to begin with... // Rebuild the $_GET array parse_str($query_string, $_GET); } }
function MY_URI() { parent::CI_URI(); }
/** * Stores $_GET variables as $params, then wipes $_GET variables and calls parent constructor */ public function __construct() { $this->params = $_GET; $_GET = null; parent::CI_URI(); }