2010-01-08, 03:28:01
(This post was last modified: 2010-01-08, 06:34:43 by martynas.barzda.)
Fix: Instead of basename();
warning all files except ajax php files
Files admin/inc/basic.php, admin/inc/login_functions.php, admin/inc/template_functions.php
Lines: usually 10 - 12
Search to find it
Replace:
With:
Insert Into admin/*.php except in cron.php do not replace place after, index.php, admin/inc/changedata.php
BEFORE inclusions, require_onces, after base comment code block [top of the file after comment block]
warning all files except ajax php files
Files admin/inc/basic.php, admin/inc/login_functions.php, admin/inc/template_functions.php
Lines: usually 10 - 12
Search to find it
Code:
if (basename($_SERVER['PHP_SELF'])
Replace:
Code:
if (basename($_SERVER['PHP_SELF']) == 'filename was here') {
die('You cannot load this page directly.');
}
With:
Code:
if (!defined('IN_GS')) {
die('You cannot load this page directly.');
}
Insert Into admin/*.php except in cron.php do not replace place after, index.php, admin/inc/changedata.php
BEFORE inclusions, require_onces, after base comment code block [top of the file after comment block]
Code:
// Telling the site we can include.
define('IN_GS', true);
http://nijikokun.com
random stuff. idk.
random stuff. idk.