templates/de/emails/admin/admin_holiday_deactivated.tpl -text
templates/de/emails/admin/admin_holiday_request.tpl -text
templates/de/emails/admin/admin_holiday_unlock.tpl -text
+templates/de/emails/admin/admin_lock_confirmed_surfbar_urls.tpl -text
+templates/de/emails/admin/admin_lock_locked_surfbar_urls.tpl -text
templates/de/emails/admin/admin_mydata_notify.tpl -text
templates/de/emails/admin/admin_new_ext.tpl -text
templates/de/emails/admin/admin_newsletter_request.tpl -text
templates/de/emails/member/member_holiday_removed.tpl -text
templates/de/emails/member/member_holiday_request.tpl -text
templates/de/emails/member/member_holiday_unlock.tpl -text
+templates/de/emails/member/member_lock_confirmed_surfbar_urls.tpl -text
+templates/de/emails/member/member_lock_locked_surfbar_urls.tpl -text
templates/de/emails/member/member_mydata_notify.tpl -text
templates/de/emails/member/member_newsletter_done.tpl -text
templates/de/emails/member/member_newsletter_request.tpl -text
templates/de/html/admin/admin_list_wernis_main.tpl -text
templates/de/html/admin/admin_list_wernis_row.tpl -text
templates/de/html/admin/admin_lock_sponsor.tpl -text
+templates/de/html/admin/admin_lock_surfbar_urls.tpl -text
+templates/de/html/admin/admin_lock_surfbar_urls_row.tpl -text
templates/de/html/admin/admin_lock_user.tpl -text
templates/de/html/admin/admin_login_form.tpl -text
templates/de/html/admin/admin_login_msg.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "303");
+define('CURR_SVN_REVISION', "304");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
} // END - if
// Now does the final template exists?
+ $newContent = "";
if (FILE_READABLE($file)) {
// The local file does exists so we load it. :)
$tmpl_file = @implode("", @file($file));
$newContent = NO_TEMPLATE_SUPPLIED;
}
+ // Is there some content?
+ if (empty($newContent)) {
+ // Compiling failed
+ $newContent = "Compiler error for template {$template}!";
+ } // END - if
+
// Return compiled content
return COMPILE_CODE($newContent);
}
define('ADMIN_SURFBAR_DEL_URL', "URL löschen");
define('ADMIN_SURFBAR_DEL_URL_NOW', "URLs jetzt entfernen");
define('ADMIN_SURFBAR_UNLOCK_URL', "URL ent-/sperren");
+define('ADMIN_SURFBAR_LOCK_URL_NOW', "URL jetzt ent-/sperren");
define('ADMIN_SURFBAR_CONFIRM_URL', "URL(s) freigeben");
define('ADMIN_SURFBAR_UNLOCK_DONE', "Freischaltung ausgewählter URL(s) vollständig. :-)");
define('ADMIN_SURFBAR_UNLOCK_FAILED', "Freischaltung fehlgeschlagen. Bitte nachschauen, welche URLs nicht freigegeben wurden.");
define('ADMIN_SURFBAR_ADD_URL', "URL hinzufügen");
// Admin titles
-define('ADMIN_SURFBAR_LIST_URLS_TITLE', "URLs in Surfbar aufisten");
-define('ADMIN_SURFBAR_DELETE_URLS_TITLE', "URLs aus Surfbar entfernen");
-define('ADMIN_SURFBAR_EDIT_URLS_TITLE', "URLs editieren");
+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");
+define('ADMIN_SURFBAR_LOCK_URLS_TITLE', "Surfbar - URLs sperren/entsperren");
// General member text
define('MEMBER_SURFBAR_URL_ADDED', "URL hinzugefügt und wartet auf Freischaltung.");
define('ADMIN_SURFBAR_NOTIFY_URL_CONFIRMED_SUBJECT', "URL in Surfbar freigegeben");
// Auto-generated admin subject lines
-define('ADMIN_DEL_SURFBAR_URLS_SUBJECT', "URL aus Surfbar entfernt");
-define('ADMIN_EDIT_SURFBAR_URLS_SUBJECT', "URL in Surfbar geändert");
+define('ADMIN_DEL_SURFBAR_URLS_SUBJECT', "[Surfbar:] - URL entfernt");
+define('ADMIN_EDIT_SURFBAR_URLS_SUBJECT', "[Surfbar:] - URL geändert");
+define('ADMIN_CONFIRMED_SURFBAR_URLS_SUBJECT', "[Surfbar:] Freigabe einer URL");
+define('ADMIN_LOCKED_SURFBAR_URLS_SUBJECT', "[Surfbar:] Sperrung einer URL");
// Subject lines for members
define('MEMBER_SURFBAR_NOTIFY_URL_UNLOCK_SUBJECT', "Ihre URL wurde in die Surfbar aufgenommen");
// Auto-generated member subject lines
define('MEMBER_DEL_SURFBAR_URLS_SUBJECT', "Ihre URL wurde aus der Surfbar entfernt");
define('MEMBER_EDIT_SURFBAR_URLS_SUBJECT', "Änderung Ihrer URL in der Surfbar");
+define('MEMBER_LOCKED_SURFBAR_URLS_SUBJECT', "Sperrung Ihrer URL in Surfbar, bitte AGBs beachten!");
+define('MEMBER_CONFIRMED_SURFBAR_URLS_SUBJECT', "Freigabe Ihrer URL in Surfbar");
// URL status
define('SURFBAR_URL_STATUS_CONFIRMED', "Freigegeben");
elseif ($none) $OUT = " <OPTION value=\"0\">".SELECT_NONE."</OPTION>\n";
while (list($id, $sname, $fname) = SQL_FETCHROW($result))
{
- $OUT .= " <OPTION value=\"".$id."\"";
+ $OUT .= " <OPTION value=\"".bigintval($id)."\"";
if ($def == $id) $OUT .= " selected=\"selected\"";
- $OUT .= ">".$sname." ".$fname." (".$id.")</OPTION>\n";
+ $OUT .= ">".$sname." ".$fname." (".bigintval($id).")</OPTION>\n";
}
// Free memory
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NOTHING_SELECTED_CHANGE);
}
}
+// Send mails for del/edit/lock build modes
+function ADMIN_SEND_BUILD_MAILS ($mode, $table, $content, $id, $subjectPart="") {
+ // Default subject is the subject part
+ $subject = $subjectPart;
+
+ // Is the subject part not set?
+ if (empty($subjectPart)) {
+ // Then use it from the mode
+ $subject = strtoupper($mode);
+ } // END - if
+
+ // Is the raw userid set?
+ if ($_POST['uid_raw'][$id] > 0) {
+ // Generate subject
+ $eval = "\$subjectLine = MEMBER_".$subject."_".strtoupper($table)."_SUBJECT;";
+ eval($eval);
+
+ // Load email template
+ if (!empty($subjectPart)) {
+ $mail = LOAD_EMAIL_TEMPLATE("member_".$mode."_".strtolower($subjectPart)."_".$table, $content);
+ } else {
+ $mail = LOAD_EMAIL_TEMPLATE("member_".$mode."_".$table, $content);
+ }
+
+ // Send email out
+ SEND_EMAIL($_POST['uid_raw'][$id], $subjectLine, $mail);
+ } // END - if
+
+ // Generate subject
+ $eval = "\$subjectLine = ADMIN_".$subject."_".strtoupper($table)."_SUBJECT;";
+ eval($eval);
+
+ // Send admin notification out
+ if (!empty($subjectPart)) {
+ SEND_ADMIN_NOTIFICATION($subjectLine, "admin_".$mode."_".strtolower($subjectPart)."_".$table, $content, $_POST['uid_raw'][$id]);
+ } else {
+ SEND_ADMIN_NOTIFICATION($subjectLine, "admin_".$mode."_".$table, $content, $_POST['uid_raw'][$id]);
+ }
+}
// Build a special template list
function ADMIN_BUILD_LIST ($listType, $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn) {
global $_CONFIG;
// Secure ID number
$id = bigintval($id);
- // Will always be 1 ;-)
- if ($selected == 1) {
- // Get result from a given column array and table name
- $result = SQL_RESULT_FROM_ARRAY($table, $columns, $idColumn, $id);
-
- // Is there one entry?
- if (SQL_NUMROWS($result) == 1) {
- // Load all data
- $content = SQL_FETCHARRAY($result);
-
- // Filter all data
- foreach ($content as $key => $value) {
- // Search index
- $idx = array_search($key, $columns, true);
-
- // Do we have a userid?
- if ($key == "userid") {
- // Add it again as raw id
- $content['uid'] = bigintval($value);
- } // END - if
+ // Get result from a given column array and table name
+ $result = SQL_RESULT_FROM_ARRAY($table, $columns, $idColumn, $id);
- // Handle the call in external function
- $content[$key] = HANDLE_EXTRA_VALUES($filterFunctions[$idx], $value, $extraValues[$idx]);
- } // END - foreach
+ // Is there one entry?
+ if (SQL_NUMROWS($result) == 1) {
+ // Load all data
+ $content = SQL_FETCHARRAY($result);
+
+ // Filter all data
+ foreach ($content as $key => $value) {
+ // Search index
+ $idx = array_search($key, $columns, true);
+
+ // Do we have a userid?
+ if ($key == "userid") {
+ // Add it again as raw id
+ $content['uid'] = bigintval($value);
+ } // END - if
- // Add color switching
- $content['sw'] = $SW;
+ // Handle the call in external function
+ $content[$key] = HANDLE_EXTRA_VALUES($filterFunctions[$idx], $value, $extraValues[$idx]);
+ } // END - foreach
- // Then list it
- $OUT .= LOAD_TEMPLATE("admin_".$listType."_".$table."_row", true, $content);
+ // Add color switching
+ $content['sw'] = $SW;
- // Switch color
- $SW = 3 - $SW;
- } // END - if
+ // Then list it
+ $OUT .= LOAD_TEMPLATE("admin_".$listType."_".$table."_row", true, $content);
- // Free the result
- SQL_FREERESULT($result);
+ // Switch color
+ $SW = 3 - $SW;
} // END - if
+
+ // Free the result
+ SQL_FREERESULT($result);
} // END - foreach
// Load master template
$idList = "";
foreach ($IDs as $id => $sel) {
// Is there a userid?
- if (isset($_POST['uid'][$id])) {
+ if (isset($_POST['uid_raw'][$id])) {
// Load all data from that id
$result = SQL_QUERY_ESC("SELECT * FROM "._MYSQL_PREFIX."_%s WHERE %s=%s LIMIT 1",
array($table, $idColumn, $id), __FILE__, __LINE__);
// Free the result
SQL_FREERESULT($result);
- // Do we have a *real* userid?
- if ($_POST['uid'][$id] > 0) {
- // Generate subject
- $eval = "\$subject = MEMBER_DEL_".strtoupper($table)."_SUBJECT;";
- eval($eval);
-
- // Load email template
- $mail = LOAD_EMAIL_TEMPLATE("member_del_".$table, $content);
-
- // Send email out
- SEND_EMAIL($_POST['uid'][$id], $subject, $mail);
- } // END - if
-
- // Generate subject
- $eval = "\$subject = ADMIN_DEL_".strtoupper($table)."_SUBJECT;";
- eval($eval);
-
- // Send admin notification out
- SEND_ADMIN_NOTIFICATION($subject, "admin_del_".$table, $content, $_POST['uid'][$id]);
+ // Send "build mails" out
+ ADMIN_SEND_BUILD_MAILS("del", $table, $content, $id);
} // END - if
// Add id number
$content['frametester'] = FRAMETESTER($content[$key]);
} // END - if
}
- $SQL = substr($SQL, 0, -1) . " WHERE ".$idColumn."=".$id." LIMIT 1";
+ $SQL = substr($SQL, 0, -1) . " WHERE ".$idColumn."=".bigintval($id)." LIMIT 1";
// Run this query
SQL_QUERY($SQL, __FILE__, __LINE__);
// Free the result
SQL_FREERESULT($result);
- // Is a raw user id set?
- if ((isset($_POST['uid_raw'][$id])) && ($_POST['uid_raw'][$id] > 0)) {
- // Generate subject
- $eval = "\$subject = MEMBER_EDIT_".strtoupper($table)."_SUBJECT;";
- eval($eval);
-
- // Load email template
- $mail = LOAD_EMAIL_TEMPLATE("member_edit_".$table, $content);
-
- // Send email out
- SEND_EMAIL($_POST['uid_raw'][$id], $subject, $mail);
- } // END - if
-
- // Generate subject
- $eval = "\$subject = ADMIN_EDIT_".strtoupper($table)."_SUBJECT;";
- eval($eval);
-
- // Send admin notification out
- SEND_ADMIN_NOTIFICATION($subject, "admin_edit_".$table, $content, $_POST['uid_raw'][$id]);
+ // Send "build mails" out
+ ADMIN_SEND_BUILD_MAILS("edit", $table, $content, $id);
} // END - foreach
// Was this fine?
}
} // END - if
}
+// Un-/lock rows by given ID numbers
+function ADMIN_LOCK_ENTRIES_CONFIRM ($IDs, $table, $columns=array(), $filterFunctions=array(), $extraValues=array(), $statusArray=array(), $lockNow=false, $idColumn="id", $userIdColumn="userid") {
+ // All valid entries? (We hope so here!)
+ if ((is_array($IDs)) && (count($IDs) > 0) && (count($columns) == count($filterFunctions)) && (count($columns) == count($extraValues)) && ((!$lockNow) || (count($statusArray) == 1))) {
+ // Shall we un-/lock here or list for locking?
+ if ($lockNow) {
+ // Un-/lock entries
+ foreach ($IDs as $id => $sel) {
+ // Construct SQL query
+ $SQL = "UPDATE "._MYSQL_PREFIX."_".$table." SET";
+
+ // Load data of entry
+ $result = SQL_QUERY_ESC("SELECT * FROM "._MYSQL_PREFIX."_%s WHERE %s=%s LIMIT 1",
+ array($table, $idColumn, $id), __FILE__, __LINE__);
+
+ // Fetch the data
+ $content = SQL_FETCHARRAY($result);
+
+ // Free the result
+ SQL_FREERESULT($result);
+
+ // Add all status entries (e.g. status column last_updated or so)
+ $newStatus = "UNKNOWN";
+ $oldStatus = "UNKNOWN";
+ $statusColumn = "unknown";
+ foreach ($statusArray as $column => $statusInfo) {
+ // Does the entry exist?
+ if ((isset($content[$column])) && (isset($statusInfo[$content[$column]]))) {
+ // Add these entries for update
+ $SQL .= sprintf(" %s='%s',", SQL_ESCAPE($column), SQL_ESCAPE($statusInfo[$content[$column]]));
+
+ // Remember status
+ if ($statusColumn == "unknown") {
+ // Always (!!!) change status column first!
+ $oldStatus = $content[$column];
+ $newStatus = $statusInfo[$oldStatus];
+ $statusColumn = $column;
+ } // END - if
+ } elseif (isset($content[$column])) {
+ // Unfinished!
+ die("UNFINISHED: {$column}[".gettype($statusInfo)."] = {$content[$column]}");
+ }
+ } // END - foreach
+
+ // Add other columns as well
+ foreach ($_POST as $key => $entries) {
+ // Skip id, raw userid and 'do_lock'
+ if (!in_array($key, array($idColumn, 'uid_raw', 'do_lock'))) {
+ // Are there brackets () at the end?
+ if (substr($entries[$id], -2, 2) == "()") {
+ // Direct SQL command found
+ $SQL .= sprintf(" %s=%s,", SQL_ESCAPE($key), SQL_ESCAPE($entries[$id]));
+ } else {
+ // Add regular entry
+ $SQL .= sprintf(" %s='%s',", SQL_ESCAPE($key), SQL_ESCAPE($entries[$id]));
+ }
+ } // END - if
+ } // END - if
+
+ // Finish SQL statement
+ $SQL = substr($SQL, 0, -1) . " WHERE ".$idColumn."=".bigintval($id)." AND ".$statusColumn."='".$oldStatus."' LIMIT 1";
+
+ // Run the SQL
+ SQL_QUERY($SQL, __FILE__, __LINE__);
+
+ // Do we have an URL?
+ if (isset($content['url'])) {
+ // Then add a framekiller test as well
+ $content['frametester'] = FRAMETESTER($content['url']);
+ } // END - if
+
+ // Send "build mails" out
+ ADMIN_SEND_BUILD_MAILS("lock", $table, $content, $id, $statusInfo[$content[$column]]);
+ } // END - if
+ } else {
+ // List for editing
+ ADMIN_BUILD_LIST("lock", $IDs, $table, $columns, $filterFunctions, $extraValues, $idColumn, $userIdColumn);
+ }
+ } // END - if
+}
// Checks proxy settins by fetching check-updates3.php from www.mxchange.org
function ADMIN_TEST_PROXY_SETTINGS ($settingsArray) {
global $_CONFIG;
- // By default they are invalid
- $valid = false;
-
// Set temporary the new settings
$_CONFIG = array_merge($_CONFIG, $settingsArray);
// Edit or delete button hit?
if (isset($_POST['edit'])) {
- // Delete entries (with confirmation)
+ // Show entries for editing
ADMIN_EDIT_ENTRIES_CONFIRM(
$_POST['id'],
"surfbar_urls",
);
$show = false;
} elseif (isset($_POST['do_edit'])) {
- // Delete entries (with confirmation)
+ // Change data of entries
ADMIN_EDIT_ENTRIES_CONFIRM(
$_POST['id'],
"surfbar_urls",
true
);
} elseif (isset($_POST['delete'])) {
- // Delete entries (with confirmation)
- ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "FRAMETESTER", "MAKE_DATETIME"), array("", "", "", "2"));
+ // Show entries for deletion
+ ADMIN_DELETE_ENTRIES_CONFIRM(
+ $_POST['id'],
+ "surfbar_urls",
+ array("id", "userid", "url", "registered"),
+ array("bigintval", "ADMIN_USER_PROFILE_LINK", "FRAMETESTER", "MAKE_DATETIME"),
+ array("", "", "", "2")
+ );
$show = false;
-} elseif (isset($_POST['remove'])) {
- // Delete entries (with confirmation)
+} elseif (isset($_POST['do_delete'])) {
+ // Remove entries from database
ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array(), array(), array(), true);
+} elseif (isset($_POST['lock'])) {
+ // Un-/lock selected URLs. This does not work for pending URLs
+ ADMIN_LOCK_ENTRIES_CONFIRM(
+ $_POST['id'],
+ "surfbar_urls",
+ array("id", "userid", "url", "registered", "status"),
+ array("bigintval", "ADMIN_USER_PROFILE_LINK", "FRAMETESTER", "MAKE_DATETIME", "SURFBAR_TRANSLATE_STATUS"),
+ array("", "", "", "2", "")
+ );
+ $show = false;
+} elseif (isset($_POST['do_lock'])) {
+ // Un-/lock selected URLs. This does not work for pending URLs
+ ADMIN_LOCK_ENTRIES_CONFIRM(
+ $_POST['id'],
+ "surfbar_urls",
+ array(),
+ array(),
+ array(),
+ array("status" => array("CONFIRMED" => "LOCKED", "LOCKED" => "CONFIRMED")),
+ true
+ );
}
// Show entries?
--- /dev/null
+{--HELLO_ADMIN--},
+
+Es wurde eine URL in der Surfbar freigegeben.
+
+Hier sind alle dazu:
+------------------------------------------
+URL: $content[url]
+------------------------------------------
+Framekiller-Test:
+$content[frametester]
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Kosten/Aufruf: $content[costs] {!POINTS!}
+------------------------------------------
+Vergütung/Aufruf: $content[reward] {!POINTS!}
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Letzte Sperrung: $content[last_locked]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+{--ADMIN_THANX--}
+ {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
+
+{!URL!}/admin.php
--- /dev/null
+{--HELLO_ADMIN--},
+
+Es wurde eine URL in der Surfbar gesperrt.
+
+Hier sind alle dazu:
+------------------------------------------
+URL: $content[url]
+------------------------------------------
+Framekiller-Test:
+$content[frametester]
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Kosten/Aufruf: $content[costs] {!POINTS!}
+------------------------------------------
+Vergütung/Aufruf: $content[reward] {!POINTS!}
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Letzte Sperrung: $content[last_locked]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+{--ADMIN_THANX--}
+ {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
+
+{!URL!}/admin.php
--- /dev/null
+Hallo Mitglied,
+
+wir haben soeben Ihre URL in der Surfbar wieder freigegeben.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Gebuchte URL: $content[url]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+Ihre User-ID: $content[userid]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+Mit freundlichem Gruss,
+ Ihr {!MAIN_TITLE!} Team
+
+{!URL!} ({!WEBMASTER!})
--- /dev/null
+Hallo Mitglied,
+
+wir haben soeben Ihre URL in der Surfbar sperren müssen. Bitte halten Sie unsere AGBs ein!
+
+Hier sind alle Daten dazu:
+------------------------------------------
+Gebuchte URL: $content[url]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Angemeldet: $content[registered]
+------------------------------------------
+Ihre User-ID: $content[userid]
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+
+Mit freundlichem Gruss,
+ Ihr {!MAIN_TITLE!} Team
+
+{!URL!} ({!WEBMASTER!})
-<FORM action="{!URL!}/modules.php?module=admin&what=list_surfbar_urls" method="POST">
-<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
-<TR>
- <TD align="center" colspan="3" class="admin_title" height="30">
- <STRONG>{--ADMIN_SURFBAR_DELETE_URLS_TITLE--}</STRONG>
- </TD>
-</TR>
-<TR>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--_UID--}</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>
+<form action="{!URL!}/modules.php?module=admin&what=list_surfbar_urls" method="POST">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+<tr>
+ <td align="center" colspan="3" class="admin_title" height="30">
+ <strong>{--ADMIN_SURFBAR_DELETE_URLS_TITLE--}</strong>
+ </td>
+</tr>
+<tr>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--_UID--}</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="3">
- <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}"> *
- <INPUT type="submit" name="remove" class="admin_delete" value="{--ADMIN_SURFBAR_DEL_URL_NOW--}">
- </TD>
-</TR>
-</TABLE>
-</FORM>
+<tr>
+ <td class="admin_footer" colspan="3">
+ <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}"> *
+ <input type="submit" name="do_delete" class="admin_delete" value="{--ADMIN_SURFBAR_DEL_URL_NOW--}">
+ </td>
+</tr>
+</table>
+</form>
<TR>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
<INPUT type="hidden" name="id[$content[id]]" value="1" />
- <INPUT type="hidden" name="uid[$content[id]]" value="$content[uid]" />
+ <INPUT type="hidden" name="uid_raw[$content[id]]" value="$content[uid]" />
$content[userid]
</TD>
<TD align="center" class="bottom2 right2 switch_sw$content[sw]">
-<FORM action="{!URL!}/modules.php?module=admin&what=list_surfbar_urls" method="POST">
-<TABLE border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
-<TR>
- <TD align="center" colspan="10" class="admin_title" height="30">
- <STRONG>{--ADMIN_SURFBAR_LIST_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_TEST_URL--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_REWARD--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_COSTS--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_VIEWS_TOTAL--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_STATUS--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_REGISTERED--}</STRONG></TD>
- <TD class="admin_title bottom2 right2" align="center"><STRONG>{--ADMIN_SURFBAR_LAST_LOCKED--}</STRONG></TD>
- <TD class="admin_title bottom2" align="center"><STRONG>{--ADMIN_SURFBAR_LOCK_REASON--}</STRONG></TD>
-</TR>
+<form action="{!URL!}/modules.php?module=admin&what=list_surfbar_urls" method="POST">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+<tr>
+ <td align="center" colspan="10" class="admin_title" height="30">
+ <strong>{--ADMIN_SURFBAR_LIST_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_TEST_URL--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_REWARD--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_COSTS--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_VIEWS_TOTAL--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_STATUS--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_REGISTERED--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_LAST_LOCKED--}</strong></td>
+ <td class="admin_title bottom2" align="center"><strong>{--ADMIN_SURFBAR_LOCK_REASON--}</strong></td>
+</tr>
$content
-<TR>
- <TD class="admin_footer" colspan="10">
- <INPUT type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}"> *
- <INPUT type="submit" name="edit" class="admin_submit" value="{--ADMIN_SURFBAR_EDIT_URL--}"> *
- <INPUT type="submit" name="lock" class="admin_submit" value="{--ADMIN_SURFBAR_UNLOCK_URL--}"> *
- <INPUT type="submit" name="delete" class="admin_delete" value="{--ADMIN_SURFBAR_DEL_URL--}">
- </TD>
-</TR>
-</TABLE>
-</FORM>
+<tr>
+ <td class="admin_footer" colspan="10">
+ <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}"> *
+ <input type="submit" name="edit" class="admin_submit" value="{--ADMIN_SURFBAR_EDIT_URL--}"> *
+ <input type="submit" name="lock" class="admin_submit" value="{--ADMIN_SURFBAR_UNLOCK_URL--}"> *
+ <input type="submit" name="delete" class="admin_delete" value="{--ADMIN_SURFBAR_DEL_URL--}">
+ </td>
+</tr>
+</table>
+</form>
-<TR>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
- <INPUT type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+<tr>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <input type="checkbox" name="id[$content[id]]" value="1" class="admin_normal" />
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[userid]
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </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>
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[reward] {!POINTS!}
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[costs] {!POINTS!}
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
<a href="{!URL!}/modules.php?module=admin&what=surfbar_stats&url_id=$content[id]">$content[views_total]</a>
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[status]
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[registered]
- </TD>
- <TD align="center" class="bottom2 right2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
$content[last_locked]
- </TD>
- <TD align="center" class="bottom2 switch_sw$content[sw]">
+ </td>
+ <td align="center" class="bottom2 switch_sw$content[sw]">
$content[lock_reason]
- </TD>
-</TR>
+ </td>
+</tr>
--- /dev/null
+<form action="{!URL!}/modules.php?module=admin&what=list_surfbar_urls" method="POST">
+<table border="0" cellspacing="0" cellpadding="0" class="admin_table dashed">
+<tr>
+ <td align="center" colspan="5" class="admin_title" height="30">
+ <strong>{--ADMIN_SURFBAR_LOCK_URLS_TITLE--}</strong>
+ </td>
+</tr>
+<tr>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--_UID--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_TEST_URL--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_STATUS--}</strong></td>
+ <td class="admin_title bottom2 right2" align="center"><strong>{--ADMIN_SURFBAR_REGISTERED--}</strong></td>
+ <td class="admin_title bottom2" align="center"><strong>{--ADMIN_SURFBAR_LOCK_REASON--}</strong></td>
+</tr>
+$content
+<tr>
+ <td class="admin_footer" colspan="5">
+ <input type="reset" class="admin_reset" value="{--UNDO_SELECTIONS--}" /> *
+ <input type="submit" name="do_lock" class="admin_lock" value="{--ADMIN_SURFBAR_LOCK_URL_NOW--}" />
+ </td>
+</tr>
+</table>
+</form>
--- /dev/null
+<tr>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ <input type="hidden" name="id[$content[id]]" value="1" />
+ <input type="hidden" name="uid_raw[$content[id]]" value="$content[uid]" />
+ <input type="hidden" name="last_locked[$content[id]]" value="NOW()" />
+ $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>
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[status]
+ </td>
+ <td align="center" class="bottom2 right2 switch_sw$content[sw]">
+ $content[registered]
+ </td>
+ <td align="center" class="bottom2 switch_sw$content[sw]" style="padding:2px">
+ Bitte angeben:<br />
+ <textarea name="lock_reason[$content[id]]" rows="2" cols="15"></textarea>
+ </td>
+</tr>