// List only rankings when script is installed
if (isBooleanConstantAndTrue('mxchange_installed')) {
// Include header
- include(PATH."inc/header.php");
+ require(PATH."inc/header.php");
if (($_GET['uid'] > 0) && ($_GET['d'] > 0) && (!empty($_GET['t']))) {
// Set row name
define('__BONUS_FOOTER', LOAD_TEMPLATE("show_bonus_footer", true));
// Total ranks who can win
- define('__BONUS_TOTAL_RANKS', $_CONFIG['bonus_ranks']);
+ define('__BONUS_TOTAL_RANKS', getConfig('bonus_ranks'));
// Load final template
LOAD_TEMPLATE("show_bonus");
// Include footer
- include(PATH."inc/footer.php");
+ require(PATH."inc/footer.php");
} else {
- // You have to configure first!
+ // You have to install first!
LOAD_URL("install.php");
}