You've already forked OpenShorte.old
Minor changes
Moved config into $GLOBALS Moved request_uri into $GLOBALS Modified all files accordingly Modified logout page for future improvements (not deleting the entire $_SESSION) Fixed LICENSEs, moved LICENSE for PHP files in /lib/php subfolder instead of /lib
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
session_start ( );
|
||||
require_once ( 'functions.php' );
|
||||
$config = load_config ( );
|
||||
$request = split_uri_array ( $_SERVER [ 'SCRIPT_NAME' ], $_SERVER [ 'REQUEST_URI' ] );
|
||||
$GLOBALS [ 'config' ] = load_config ( );
|
||||
$GLOBALS [ 'request_uri' ] = split_uri_array ( );
|
||||
if ( isset ( $request [ 0 ] ) && $request [ 0 ] != "" ) {
|
||||
switch ( $request [ 0 ] ) {
|
||||
case "go":
|
||||
@@ -26,4 +26,3 @@
|
||||
else {
|
||||
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/login" );
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user