templates/de/emails/admin/admin_support-unconfirmed.tpl -text
templates/de/emails/admin/admin_surfbar_url_confirmed.tpl -text
templates/de/emails/admin/admin_surfbar_url_depleted.tpl -text
+templates/de/emails/admin/admin_surfbar_url_edited.tpl -text
templates/de/emails/admin/admin_surfbar_url_migrate.tpl -text
templates/de/emails/admin/admin_surfbar_url_pending.tpl -text
templates/de/emails/admin/admin_surfbar_url_reg.tpl -text
templates/de/emails/member/member_surfbar_low_points.tpl -text
templates/de/emails/member/member_surfbar_url_confirmed.tpl -text
templates/de/emails/member/member_surfbar_url_depleted.tpl -text
+templates/de/emails/member/member_surfbar_url_edited.tpl -text
templates/de/emails/member/member_surfbar_url_migrate.tpl -text
templates/de/emails/member/member_surfbar_url_pending.tpl -text
templates/de/emails/member/member_surfbar_url_reg.tpl -text
define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "565");
+define('CURR_SVN_REVISION', "566");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
$url2 = COMPILE_CODE($urlData['edit']['url']);
// Has the URL or limit changed?
- if (true) {
- //if (($urlData['views_allowed'] != $urlData['edit']['limit']) || ($url1 != $url2)) {
+ if (($urlData['views_allowed'] != $urlData['edit']['limit']) || ($url1 != $url2)) {
// Run the query
SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_surfbar_urls SET url='%s', views_allowed=%s, views_max=%s WHERE id=%s AND status='%s' LIMIT 1",
array($urlData['url'], $urlData['edit']['limit'], $urlData['edit']['limit'], $urlData['id'], $urlData['status']), __FILE__, __LINE__);
// Send user notification
SURFBAR_NOTIFY_USER("url_edited", $urlData);
- } // END - if
- // All fine!
- return true;
+ // All fine
+ return true;
+ }
+
+ // Not updated
+ return false;
}
//
// -----------------------------------------------------------------------------
function SURFBAR_CHANGE_STATUS ($urlId, $prevStatus, $newStatus, $data=array()) {
global $_CONFIG;
+ // Make new status always lower-case
+ $newStatus = strtolower($newStatus);
+
// Get URL data for status comparison if missing
if ((!is_array($data)) || (count($data) == 0)) {
// Fetch missing URL data
$data[$urlId]['reward'] = TRANSLATE_COMMA($_CONFIG['surfbar_static_reward']);
$data[$urlId]['costs'] = TRANSLATE_COMMA($_CONFIG['surfbar_static_costs']);
$data[$urlId]['status'] = SURFBAR_TRANSLATE_STATUS($newStatus);
- $data[$urlId]['registered'] = MAKE_DATETIME($data[$urlId]['registered'], "2");
- $newStatus = strtolower($newStatus);
// Send admin notification
SURFBAR_NOTIFY_ADMIN("url_{$newStatus}", $data[$urlId]);
--- /dev/null
+{--HELLO_ADMIN--},
+
+Ein Mitglied hat soeben seine URL geändert:
+
+Hier sind alle Daten dazu:
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Email: $content[email]
+------------------------------------------
+Name: $content[surname] $content[family]
+------------------------------------------
+Gebuchte URL: $content[url] (Neu: $content[new_url])
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+URL angemeldet: $content[registered]
+------------------------------------------
+Zuletzt gesperrt: $content[last_locked]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Gesamteinblendungen: $content[views_total]
+------------------------------------------
+Maximale Einblendungen: $content[views_allowed] (Neu: $content[new_limit])
+------------------------------------------
+Davon übrig: $content[views_max] (Neu: $content[new_limit])
+------------------------------------------
+
+{--ADMIN_THANX--}
+ {--YOUR--} {!MAIN_TITLE!} {--SCRIPT--}
+
+{!URL!}/admin.php
------------------------------------------
Datum der Buchung: $content[registered]
------------------------------------------
-Gesamteinblendungen: $content[views_total]
-------------------------------------------
-Maximale Einblendungen: $content[views_allowed]
-------------------------------------------
-Davon übrig: $content[views_max]
-------------------------------------------
+Gesamteinblendungen: $content[views_total]
+------------------------------------------
+Maximale Einblendungen: $content[views_allowed]
+------------------------------------------
+Davon übrig: $content[views_max]
+------------------------------------------
Kosten/Aufruf: $content[costs] {!POINTS!}
------------------------------------------
ID in der Surfbar: $content[id]
--- /dev/null
+Hallo $content[gender] $content[surname] $content[family],
+
+Sie hatten soeben Ihre gebuchte URL geändert. Dabei wurde sie eventuell auf "Wartend" gestellt.
+
+Hier sind alle Daten dazu:
+------------------------------------------
+User-ID: $content[userid]
+------------------------------------------
+Gebuchte URL: $content[url] (Neu: $content[new_url])
+------------------------------------------
+ID in der Surfbar: $content[id]
+------------------------------------------
+URL angemeldet: $content[registered]
+------------------------------------------
+Zuletzt gesperrt: $content[last_locked]
+------------------------------------------
+Sperrgrund: $content[lock_reason]
+------------------------------------------
+Neue maximale Einblendungen: $content[new_limit]
+------------------------------------------
+
+Mit freundlichem Gruss,
+ Ihr {!MAIN_TITLE!} Team
+
+{!URL!}/login.php ({!WEBMASTER!})