$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) {
- addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye");
+ addFatalMessage(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "rallye");
return;
}
if (IS_ADMIN()) $ADMIN = "";
$result = SQL_QUERY("SELECT DISTINCT d.id, d.admin_id, a.login, d.title, d.descr, d.template, d.start_time, d.end_time, d.min_users, d.min_prices
-FROM "._MYSQL_PREFIX."_rallye_data AS d, "._MYSQL_PREFIX."_admins AS a
+FROM `{!_MYSQL_PREFIX!}_rallye_data` AS d, `{!_MYSQL_PREFIX!}_admins` AS a
WHERE d.admin_id=a.id".$ADMIN." AND d.notified='Y'
ORDER BY d.end_time LIMIT 1", __FILE__, __LINE__);
}
else
{
- define('__RALLYE_EXTRAS', "<a href=\"".URL."/modules.php?module=index&what=register\">".RALLYE_REGISTER_NOW."</a>");
+ define('__RALLYE_EXTRAS', "<a href=\"{!URL!}/modules.php?module=index&what=register\">".RALLYE_REGISTER_NOW."</a>");
}
// Set admin line (currently set to impressum, later to contact form)
- define('__RALLYE_ADMIN', "<a href=\"".URL."/modules.php?module=index&what=impressum&admin=".$aid."\">".$login."</a>");
+ define('__RALLYE_ADMIN', "<a href=\"{!URL!}/modules.php?module=index&what=impressum&admin=".$aid."\">".$login."</a>");
// Set title
define('__RALLYE_TITLE', COMPILE_CODE($title));