diff --git a/.htaccess b/.htaccess index 0517bba..ad9f221 100644 --- a/.htaccess +++ b/.htaccess @@ -1,3 +1,3 @@ RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule ^(.*)$ index.php?query=$1 [L,QSA] \ No newline at end of file +RewriteRule ^(.*)$ index.php?URI=$1 [L,QSA] \ No newline at end of file diff --git a/index.php b/index.php index f60ec1e..36162ba 100644 --- a/index.php +++ b/index.php @@ -2,9 +2,9 @@ session_start ( ); require_once ( 'functions.php' ); $GLOBALS [ 'config' ] = load_config ( ); - $GLOBALS [ 'request_uri' ] = split_uri_array ( ); - if ( isset ( $request [ 0 ] ) && $request [ 0 ] != "" ) { - switch ( $request [ 0 ] ) { + $GLOBALS [ 'request_uri' ] = explode ( "/", $_GET [ 'URI' ] ); + if ( isset ( $GLOBALS [ 'request_uri' ] [ 0 ] ) && $GLOBALS [ 'request_uri' ] [ 0 ] != "" ) { + switch ( $GLOBALS [ 'request_uri' ] [ 0 ] ) { case "go": include ( 'lib/php/go.php' ); break; diff --git a/lib/php/login.php b/lib/php/login.php index f268560..15ad2ef 100644 --- a/lib/php/login.php +++ b/lib/php/login.php @@ -3,7 +3,7 @@ header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/insert" ); exit; } - if ( isset ( $request [ 1 ] ) && $request [ 1 ] == "forgot" ) { + if ( isset ( $GLOBALS [ 'request_uri' ] [ 1 ] ) && $GLOBALS [ 'request_uri' ] [ 1 ] == "forgot" ) { include ( $config [ 'installation_path' ] . '/lib/php/forgot.php' ); exit; }