X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-surfbar_list.php;h=5f98267c729c19443ca58920fe587ad2c81f6f4b;hp=243d4800b5bfa1222a4e8f7557c7482887189d4d;hb=f3e4c2c048761589836fdbe6bd2e46599a1833a7;hpb=939bce138060b727dc96764df88fbb8e4e7049c7
diff --git a/inc/modules/member/what-surfbar_list.php b/inc/modules/member/what-surfbar_list.php
index 243d4800b5..5f98267c72 100644
--- a/inc/modules/member/what-surfbar_list.php
+++ b/inc/modules/member/what-surfbar_list.php
@@ -10,7 +10,12 @@
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Surfbar-Statistiken *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: 856 $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: stelzi $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
@@ -36,9 +41,9 @@ if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
} elseif (!IS_MEMBER()) {
- LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
- ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
+ LOAD_URL("modules.php?module=index");
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
+ addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "surfbar");
return;
}
@@ -49,17 +54,17 @@ ADD_DESCR("member", __FILE__);
$URLs = SURFBAR_GET_USER_URLS();
// Are there entries or form is submitted?
-if ((isset($_POST['ok'])) && (isset($_POST['action'])) && (isset($_POST['id']))) {
+if ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('action'))) && (REQUEST_ISSET_POST(('id')))) {
// Process the form
- if (SURFBAR_MEMBER_DO_FORM($_POST, $URLs)) {
+ if (SURFBAR_MEMBER_DO_FORM(REQUEST_POST_ARRAY(), $URLs)) {
// Action performed but shall we display it?
- if ((($_POST['action'] != "edit") && ($_POST['action'] != "delete")) || (isset($_POST['execute']))) {
+ if (((REQUEST_POST('action') != "edit") && (REQUEST_POST('action') != "delete")) || (REQUEST_ISSET_POST(('execute')))) {
// Display "action done" message if action is wether 'edit' nor 'delete' or has been executed
- LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_ACTION_DONE);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_SURFBAR_ACTION_DONE'));
} // END - if
} else {
// Something went wrong
- LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_ACTION_FAILED);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_SURFBAR_ACTION_FAILED'));
}
} elseif (count($URLs) > 0) {
// List all URLs
@@ -70,7 +75,7 @@ if ((isset($_POST['ok'])) && (isset($_POST['action'])) && (isset($_POST['id'])))
$content['url'] = DEREFERER($content['url']);
if ($content['views_total'] > 0) {
// Include link to stats
- $content['views_total'] = "[".TRANSLATE_COMMA($content['views_total'])."]";
+ $content['views_total'] = "[".TRANSLATE_COMMA($content['views_total'])."]";
} // END - if
$content['registered'] = MAKE_DATETIME($content['registered'], "2");
$content['last_locked'] = MAKE_DATETIME($content['last_locked'], "2");
@@ -92,7 +97,7 @@ if ((isset($_POST['ok'])) && (isset($_POST['action'])) && (isset($_POST['id'])))
LOAD_TEMPLATE("member_surfbar_list", false, $OUT);
} else {
// No URLs booked so far
- LOAD_TEMPLATE("admin_settings_saved", false, MEMBER_SURFBAR_NO_URLS_FOUND);
+ LOAD_TEMPLATE("admin_settings_saved", false, getMessage('MEMBER_SURFBAR_NO_URLS_FOUND'));
}
//