* -------------------------------------------------------------------- *
* Kurzbeschreibung : Mit uns Punkte erbetteln! *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
+ * $Revision:: $ *
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
// Some security stuff...
if (!defined('__SECURITY')) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
require($INC);
-} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
- addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "beg");
+} elseif ((!EXT_IS_ACTIVE('beg')) && (!IS_ADMIN())) {
+ addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('beg'));
return;
}
// Add description as navigation point
-ADD_DESCR("guest", __FILE__);
+ADD_DESCR('guest', __FILE__);
// Prepare constants
-define('__BEG_POINTS' , TRANSLATE_COMMA(getConfig('beg_points')));
-define('__BEG_POINTS_MAX', TRANSLATE_COMMA(getConfig('beg_points_max')));
+define('__BEG_POINTS' , translateComma(getConfig('beg_points')));
+define('__BEG_POINTS_MAX', translateComma(getConfig('beg_points_max')));
if ($GLOBALS['refid'] > 0) {
// Take referal ID from URL/Cookie
define('__BEG_UID' , $GLOBALS['refid']);
}
// Selection boxes are now the default
-define('__BEG_TIMEOUT' , CREATE_FANCY_TIME(getConfig('beg_timeout')));
-define('__BEG_UID_TIMEOUT', CREATE_FANCY_TIME(getConfig('beg_uid_timeout')));
+define('__BEG_TIMEOUT' , createFancyTime(getConfig('beg_timeout')));
+define('__BEG_UID_TIMEOUT', createFancyTime(getConfig('beg_uid_timeout')));
// Load final template
LOAD_TEMPLATE("guest_".substr(basename(__FILE__), 5, -4));