define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "512");
+define('CURR_SVN_REVISION', "513");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Member actions
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('PENDING','RETREAT','DELETED')";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('PENDING','FRAMETEST',NULL)";
+ $SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('PENDING','EDIT',NULL)";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('ACTIVE','EDIT','PENDING')";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('ACTIVE','DELETE','DELETED')";
$SQLs[] = "INSERT INTO `"._MYSQL_PREFIX."_surfbar_actions` (`status`,`action`,`new_status`) VALUES ('ACTIVE','PAUSE','STOPPED')";
define('ADMIN_SURFBAR_NEW_STATUS', "Neuer Status");
define('ADMIN_SURFBAR_EDIT_ACTIONS', "Mitgliedsaktionen editieren");
define('ADMIN_LIST_SURFBAR_ACTIONS_NOTE', "<strong>Hinweise:</strong> Sie sollten zur Sicherheit Ihres {!MT_WORD2!} den neuen Status nie auf <u>{--SURFBAR_URL_STATUS_ACTIVE--}</u> z.B. bei der Mitgliedaktion <u>{--MEMBER_SURFBAR_ACTION_UNPAUSE_SUBMIT--}</u> einstellen.");
+define('ADMIN_SURFBAR_URL', "Gebuchte URL");
// Admin titles
+define('ADMIN_UNLOCK_SURFBAR_URLS_TITLE', "Surfbar - URLs freihschalten/ablehnen");
define('ADMIN_SURFBAR_LIST_URLS_TITLE', "Surfbar - URLs aufisten");
define('ADMIN_SURFBAR_DELETE_URLS_TITLE', "Surfbar - URLs entfernen");
define('ADMIN_SURFBAR_EDIT_URLS_TITLE', "Surfbar - URLs editieren");
// Prepare array for loading template
$content = array(
'age' => $AGE,
- 'points' => $_CONFIG['birthday_points'],
+ 'points' => TRANSLATE_COMMA($_CONFIG['birthday_points']),
'check' => "",
);
ADD_DESCR("admin", __FILE__);
// Load all actions
-$result = SQL_QUERY("SELECT id, status, action, new_status FROM "._MYSQL_PREFIX."_surfbar_actions ORDER BY id ASC", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT `id`, `status`, `action`, `new_status`
+FROM `"._MYSQL_PREFIX."_surfbar_actions`
+ORDER BY `status` ASC, `action` ASC", __FILE__, __LINE__);
// Entries found?
if (SQL_NUMROWS($result) > 0) {
$OUT = ""; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// "Translate"/add content
- $content['sw'] = $SW;
- $content['userid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
- $content['url'] = FRAMETESTER($content['url']);
- $content['registered'] = MAKE_DATETIME($content['registered'], 2);
+ $content['sw'] = $SW;
+ $content['userid'] = ADMIN_USER_PROFILE_LINK($content['userid']);
+ $content['framekiller'] = FRAMETESTER($content['url']);
+ $content['registered'] = MAKE_DATETIME($content['registered'], 2);
// Load row template
$OUT .= LOAD_TEMPLATE("admin_unlock_surfbar_urls_row", true, $content);
Wir das Team von {!MAIN_TITLE!} wuenschen Ihnen alles Gute und Gesundheit zu Ihrem $content[age]. Geburtstag!
-Wenn Sie den folgenden Link anklicken, erhalten Sie $config[points] {!POINTS!} Ihrem Account sofort gutgeschrieben!
+Wenn Sie den folgenden Link anklicken, erhalten Sie $content[points] {!POINTS!} Ihrem Account sofort gutgeschrieben!
----------------------------------------------------------------------
{!URL!}/birthday_confirm.php?uid=$UID&check=$content[check]
<TD>
<SELECT name="warning_interval" class="admin_select" size="1">
<OPTION value="0">{--SELECT_NONE--}</OPTION>
- <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*1)--}">1 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*3)--}">3 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*56)--}">8 {--LIFE_WEEKS--}</OPTION>
</SELECT>
</TD>
<TD class="seperator" width="10"> </TD>
<strong>{--ID_SELECT--}</strong>
</td>
<td align="center" class="admin_header bottom2 right2 switch_sw$content[sw]">
- <strong>{--ADMIN_SURFBAR_MEMBER_ACTION--}</strong>
+ <strong>{--ADMIN_SURFBAR_CURRENT_STATUS--}</strong>
</td>
<td align="center" class="admin_header bottom2 right2 switch_sw$content[sw]">
- <strong>{--ADMIN_SURFBAR_CURRENT_STATUS--}</strong>
+ <strong>{--ADMIN_SURFBAR_MEMBER_ACTION--}</strong>
</td>
<td align="center" class="admin_header bottom2 switch_sw$content[sw]">
<strong>{--ADMIN_SURFBAR_NEW_STATUS--}</strong>
<input type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
</td>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[action]
+ $content[status]
</td>
<td align="center" class="bottom2 right2 switch_sw$content[sw]">
- $content[status]
+ $content[action]
</td>
<td align="center" class="bottom2 switch_sw$content[sw]">
$content[new_status]
<FORM action="{!URL!}/modules.php?module=admin&what=unlock_surfbar_urls" method="POST">
-<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed" width="600">
<TR>
- <TD align="center" colspan="4" class="admin_title" height="30">
- <STRONG>{--EDIT_DEL_REFDEPTH--}</STRONG>
+ <TD align="center" colspan="5" class="admin_title" height="30">
+ <STRONG>{--ADMIN_UNLOCK_SURFBAR_URLS_TITLE--}</STRONG>
</TD>
</TR>
<TR>
<TD class="admin_title bottom2 right2" align="center"><STRONG>{--ID_SELECT--}</STRONG></TD>
<TD class="admin_title bottom2 right2" align="center"><STRONG>{--_UID--}</STRONG></TD>
+ <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_URL--}</STRONG></TD>
<TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_TEST_URL--}</STRONG></TD>
<TD class="admin_title bottom2" align="center"><STRONG>{--ADMIN_SURFBAR_REGISTERED--}</STRONG></TD>
</TR>
$content
<TR>
- <TD class="admin_footer" colspan="4">
+ <TD class="admin_footer" colspan="5">
<INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" />
<INPUT type="submit" name="reject" class="admin_submit" value="{--ADMIN_SURFBAR_REJECT_URL--}" />
<INPUT type="submit" name="unlock" class="admin_submit" value="{--ADMIN_SURFBAR_CONFIRM_URL--}" />
$content[userid]
</TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- <a href="$content[url]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
+ $content[url]
+ </TD>
+ <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <a href="$content[framekiller]" target="_blank" title="{--ADMIN_TEST_URL--}">{--ADMIN_TEST_URL--}</a>
</TD>
<TD align="center" class="bottom2 switch_sw$content[sw]">
$content[registered]
<TD>
<SELECT name="warning_interval" class="guest_select" size="1">
<OPTION value="0">{--SELECT_NONE--}</OPTION>
- <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*1)--}">1 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*3)--}">3 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*7)--}" selected>1 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*56)--}">8 {--LIFE_WEEKS--}</OPTION>
</SELECT>
</TD>
<TD class="seperator" width="10"> </TD>
<TD class="bottom2" width="275" align="center">
<SELECT name="warning_interval" class="guest_select" size="1">
<OPTION value="$content[warning_interval]">{!__CURRENT!}</OPTION>
- <OPTION value="{--(ONE_DAY*1)--}">1 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*3)--}">3 {--DAYS--}</OPTION>
- <OPTION value="{--(ONE_DAY*7)--}">1 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*14)--}">2 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*28)--}">4 {--LIFE_WEEKS--}</OPTION>
- <OPTION value="{--(ONE_DAY*56)--}">8 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*1)--}">1 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*3)--}">3 {--DAYS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*7)--}">1 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*14)--}">2 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*28)--}">4 {--LIFE_WEEKS--}</OPTION>
+ <OPTION value="{--($_CONFIG[one_day]*56)--}">8 {--LIFE_WEEKS--}</OPTION>
</SELECT>
</TD>
</TR>