21,9 → 21,9 |
*/ |
|
|
if (file_exists('./lib/config.inc.php')) { |
if (file_exists(dirname(__FILE__).'/lib/config.inc.php')) { |
|
require_once "lib/init.php"; |
require_once dirname(__FILE__)."/lib/init.php"; |
|
$req =& $db->query("SELECT * FROM settings WHERE opt LIKE 'interface'"); |
|
33,11 → 33,11 |
|
if ($req->numRows()>0) { |
$req->fetchInto($if, DB_FETCHMODE_ASSOC); |
$file = stripslashes($if["optvalue"]).".php"; |
$file = dirname(__FILE__)."/".stripslashes($if["optvalue"]).".php"; |
} |
|
} else { |
$file = "error.php"; |
$file = dirname(__FILE__)."/error.php"; |
} |
|
include($file); |