Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixes by NY
#2
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
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.
Reply


Messages In This Thread
Fixes by NY - by Nijikokun - 2010-01-08, 03:13:48
Fixes by NY - by Nijikokun - 2010-01-08, 03:28:01
Fixes by NY - by Nijikokun - 2010-01-08, 03:35:04
Fixes by NY - by Nijikokun - 2010-01-08, 04:10:01
Fixes by NY - by Zegnåt - 2010-01-08, 05:29:27
Fixes by NY - by Nijikokun - 2010-01-08, 06:00:08
Fixes by NY - by Nijikokun - 2010-01-08, 06:32:37
Fixes by NY - by ccagle8 - 2010-01-08, 11:41:47
Fixes by NY - by ccagle8 - 2010-01-08, 11:44:19
Fixes by NY - by Nijikokun - 2010-01-08, 12:59:43
Fixes by NY - by Zegnåt - 2010-01-08, 19:48:27
Fixes by NY - by Nijikokun - 2010-01-09, 02:53:56



Users browsing this thread: 1 Guest(s)