<?php
/************************************************************************
- * MXChange v0.2.1 Start: 08/31/2008 *
- * =============== Last change: 08/31/2008 *
+ * Mailer v0.2.1-FINAL Start: 08/31/2008 *
+ * =================== Last change: 08/31/2008 *
* *
* -------------------------------------------------------------------- *
* File : surfbar_functions.php *
// Create constant name
$constantName = sprintf("SURFBAR_URL_STATUS_%s", strtoupper($status));
- // Set default translated status
- $statusTranslated = '!'.$constantName.'!';
-
- // Is the constant there?
- if (defined($constantName)) {
- // Then get it's value
- $statusTranslated = constant($constantName);
- } // END - if
+ // Get message
+ $statusTranslated = getMessage($constantName);
// Return result
return $statusTranslated;
// Check wether the user is allowed to book more URLs
function SURFBAR_IF_USER_BOOK_MORE_URLS ($userid = '0') {
// Is this admin and userid is zero or does the user has some URLs left to book?
- return ((($userid == '0') && (isAdmin())) || (SURFBAR_GET_TOTAL_USER_URLS($userid, '', array("REJECTED")) < getConfig('surfbar_max_order')));
+ return ((($userid == '0') && (isAdmin())) || (SURFBAR_GET_TOTAL_USER_URLS($userid, '', array('REJECTED')) < getConfig('surfbar_max_order')));
}
// Get total amount of URLs of given status for current user
}
// Reload to configured stop page
-function SURFBAR_RELOAD_TO_STOP_PAGE ($page="stop") {
+function SURFBAR_RELOAD_TO_STOP_PAGE ($page = 'stop') {
// Internal or external?
if ((getConfig('surfbar_pause_mode') == 'INTERNAL') || (getConfig('surfbar_pause_url') == '')) {
// Reload to internal page