Skip to content

Instantly share code, notes, and snippets.

@rickdog
Created July 22, 2013 22:58
Show Gist options
  • Save rickdog/6058458 to your computer and use it in GitHub Desktop.
Save rickdog/6058458 to your computer and use it in GitHub Desktop.
<?php
if ($_SERVER["REQUEST_URI"]) {
if (is_array($tmp = explode("?" , $_SERVER["REQUEST_URI"]))) {
$tmp = explode("&" , $tmp["1"]);
foreach ($tmp as $key => $val) {
$_tmp = explode("=" , $val);
if ($_tmp[0]) {
$_GET[$_tmp[0]] = urldecode($_tmp[1]);
}
}
}
}
$_PAGE = $_GET["_PAGE"];
$_ADMIN = false;
require "admin/config.php";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment