зеркало из https://github.com/mozilla/gecko-dev.git
Move session headers into iolib headers. Fix some spacing, fix mod rewrite
This commit is contained in:
Родитель
9796d850cd
Коммит
caf6823928
|
@ -1,16 +1,16 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule ^app/query(/)?(.*)$ query.php$1 [QSA,L]
|
||||
RewriteRule ^app/report/screenshot(/)?(.*)$ screenshot.php$1 [QSA,L]
|
||||
RewriteRule ^app/report(/)?(.*)$ report.php$1 [QSA,L]
|
||||
RewriteRule ^app/stats(/)?(.*)$ stats.php$1 [QSA,L]
|
||||
RewriteRule ^app/login(/)?(.*)$ login.php$1 [QSA,L]
|
||||
RewriteRule ^app/logout(/)?(.*)$ logout.php$1 [QSA,L]
|
||||
RewriteRule ^privacy(/)? privacy.php$1 [QSA,L]
|
||||
RewriteRule ^service(/)? service.php$1 [QSA,L]
|
||||
RewriteRule ^app/query(/)?(.*)$ query.php$2 [QSA,L]
|
||||
RewriteRule ^app/report/screenshot(/)?(.*)$ screenshot.php$2 [QSA,L]
|
||||
RewriteRule ^app/report(/)?(.*)$ report.php$2 [QSA,L]
|
||||
RewriteRule ^app/stats(/)?(.*)$ stats.php$2 [QSA,L]
|
||||
RewriteRule ^app/login(/)?(.*)$ login.php$2 [QSA,L]
|
||||
RewriteRule ^app/logout(/)?(.*)$ logout.php$2 [QSA,L]
|
||||
RewriteRule ^privacy(/)? privacy.php$2 [QSA,L]
|
||||
RewriteRule ^service(/)? service.php$2 [QSA,L]
|
||||
RewriteRule ^app index.php [QSA,L]
|
||||
|
||||
#Static Content
|
||||
RewriteRule ^(scripts|styles)$/(.*)$ $1/$2 [QSA,L]
|
||||
#RewriteRule ^(scripts|styles)$/(.*)$ $1/$2 [QSA,L]
|
||||
</IfModule>
|
|
@ -42,10 +42,6 @@ require_once($config['base_path'].'/includes/iolib.inc.php');
|
|||
require_once($config['base_path'].'/includes/db.inc.php');
|
||||
require_once($config['base_path'].'/includes/contrib/smarty/libs/Smarty.class.php');
|
||||
|
||||
// Start Session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
$content = initializeTemplate();
|
||||
|
|
|
@ -42,10 +42,6 @@ require_once($config['base_path'].'/includes/db.inc.php');
|
|||
require_once($config['base_path'].'/includes/contrib/smarty/libs/Smarty.class.php');
|
||||
require_once($config['base_path'].'/includes/security.inc.php');
|
||||
|
||||
// start the session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
if (!isset($_SESSION['login']) || $_SESSION['login'] != true){
|
||||
|
|
|
@ -39,10 +39,6 @@
|
|||
require_once('../config.inc.php');
|
||||
require_once($config['base_path'].'/includes/iolib.inc.php');
|
||||
|
||||
// start the session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
$_SESSION = array();
|
||||
|
|
|
@ -43,10 +43,6 @@ require_once($config['base_path'].'/includes/contrib/smarty/libs/Smarty.class.ph
|
|||
require_once($config['base_path'].'/includes/security.inc.php');
|
||||
require_once($config['base_path'].'/includes/query.inc.php');
|
||||
|
||||
// start the session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
if(!isset($_GET['method'])){
|
||||
|
|
|
@ -43,11 +43,6 @@ require_once($config['base_path'].'/includes/contrib/smarty/libs/Smarty.class.ph
|
|||
require_once($config['base_path'].'/includes/security.inc.php');
|
||||
require_once($config['base_path'].'/includes/query.inc.php');
|
||||
|
||||
|
||||
// Start Session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
// Open DB
|
||||
|
|
|
@ -46,10 +46,6 @@ require_once($config['base_path'].'/includes/security.inc.php');
|
|||
error_reporting(0);
|
||||
|
||||
// Headers
|
||||
// Start Session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
printheaders();
|
||||
|
||||
if($securitylib->isLoggedIn() === true){
|
||||
|
|
|
@ -42,11 +42,7 @@ require_once($config['base_path'].'/includes/db.inc.php');
|
|||
require_once($config['base_path'].'/includes/contrib/smarty/libs/Smarty.class.php');
|
||||
require_once($config['base_path'].'/includes/security.inc.php');
|
||||
|
||||
// Start Session
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
|
||||
printheaders();
|
||||
|
||||
// Open DB
|
||||
$db = NewDBConnection($config['db_dsn']);
|
||||
|
|
|
@ -142,13 +142,15 @@ function resolveBehindLogin($q){
|
|||
}
|
||||
|
||||
function printheaders(){
|
||||
|
||||
$now = date("D M j G:i:s Y T");
|
||||
header('Expires: ' . $now);
|
||||
header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . ' GMT');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
header('X-Powered-By: A Barrel of Monkey\'s ');
|
||||
session_name('reportSessID');
|
||||
session_start();
|
||||
header("Cache-control: private"); //IE 6 Fix
|
||||
}
|
||||
|
||||
function strip_all_tags($input){
|
||||
|
@ -157,4 +159,5 @@ function strip_all_tags($input){
|
|||
}
|
||||
return $input;
|
||||
}
|
||||
|
||||
?>
|
Загрузка…
Ссылка в новой задаче