inc/modules/admin/what-list_grade_data.php svneol=native#text/plain
inc/modules/admin/what-list_holiday.php svneol=native#text/plain
inc/modules/admin/what-list_links.php svneol=native#text/plain
+inc/modules/admin/what-list_mods.php svneol=native#text/plain
inc/modules/admin/what-list_network_array_translation.php svneol=native#text/plain
inc/modules/admin/what-list_network_data.php svneol=native#text/plain
inc/modules/admin/what-list_network_request_params.php svneol=native#text/plain
inc/modules/admin/what-list_notifications.php svneol=native#text/plain
inc/modules/admin/what-list_payouts.php svneol=native#text/plain
inc/modules/admin/what-list_point_accounts.php svneol=native#text/plain
+inc/modules/admin/what-list_rallye_prices.php svneol=native#text/plain
inc/modules/admin/what-list_rallyes.php svneol=native#text/plain
inc/modules/admin/what-list_referral_levels.php svneol=native#text/plain
inc/modules/admin/what-list_refs.php svneol=native#text/plain
inc/modules/admin/what-list_unconfirmed.php svneol=native#text/plain
inc/modules/admin/what-list_user.php svneol=native#text/plain
inc/modules/admin/what-list_user_amounts.php svneol=native#text/plain
+inc/modules/admin/what-list_user_cats.php svneol=native#text/plain
inc/modules/admin/what-list_user_subid.php svneol=native#text/plain
inc/modules/admin/what-list_wernis.php svneol=native#text/plain
inc/modules/admin/what-list_yoomedia_tm.php svneol=native#text/plain
./inc/extensions/ext-network.php:43: * @TODO Yoo!Media: What is LayerAd compared to Layer click? *
./inc/extensions/ext-newsletter.php:218: // @TODO Move these into configuration
./inc/extensions/ext-nickname.php:52: // @TODO NOT NULL DEFAULT '' is bad practice, use NULL
-./inc/extensions/ext-rallye.php:94: // @TODO Fix config_rallye_prices to list_rallye_prices
./inc/extensions/ext-yoomedia.php:121: // @TODO Can this be moved into a database table?
./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
./inc/extensions-functions.php:2172:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
./inc/modules/admin/what-adminedit.php:56: // @TODO Kill all constants in this file
./inc/modules/admin/what-admins_mails.php:58: // @TODO Can this be rewritten to an API function?
./inc/modules/admin/what-bonus.php:46:// @TODO Unused at the moment
-./inc/modules/admin/what-config_mods.php:55: // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
./inc/modules/admin/what-config_points.php:90: // @TODO Rewrite these two lines for new user_points columns (e.g. locked_order_points) with a filter
-./inc/modules/admin/what-config_rallye_prices.php:222: // @TODO Rewrite these two constants
./inc/modules/admin/what-config_register.php:75: // @TODO Move this HTML code into a template
./inc/modules/admin/what-del_email.php:61: // @TODO Unused: cat_id, payment_id
./inc/modules/admin/what-edit_user.php:18: * @TODO Add support for ext-country *
./inc/modules/admin/what-list_admins_acls.php:126: // @TODO Rewrite this to filter 'run_sqls'
./inc/modules/admin/what-list_autopurge.php:47:// @TODO Rewrite those lines to filter
./inc/modules/admin/what-list_bonus.php:137: // @TODO Can't this be moved into our expression language?
-./inc/modules/admin/what-list_cats.php:54: // @TODO No longer needed? define('__CATEGORIES_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
-./inc/modules/admin/what-list_cats.php:68: // @TODO Rewrite this to countSum.....() function
./inc/modules/admin/what-list_links.php:96: // @TODO Rewrite this to includes/filter
+./inc/modules/admin/what-list_mods.php:55: // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
+./inc/modules/admin/what-list_rallye_prices.php:222: // @TODO Rewrite these two constants
./inc/modules/admin/what-list_refs.php:101: // @TODO Try to rewrite some to EL
./inc/modules/admin/what-list_unconfirmed.php:114: // @TODO "Please do not call me directly." Should be rewritten to a nice selection depending on ext-bonus
./inc/modules/admin/what-list_unconfirmed.php:84: // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', '{--ADMIN_LIST_UNCONFIRMED_BONUS_LINKS--}');
./inc/modules/admin/what-list_unconfirmed.php:87: // @TODO `id` has been used two times???
+./inc/modules/admin/what-list_user_cats.php:54: // @TODO No longer needed? define('__CATEGORIES_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
+./inc/modules/admin/what-list_user_cats.php:68: // @TODO Rewrite this to countSum.....() function
./inc/modules/admin/what-list_user.php:104: // @TODO Refacture these old link generation to functions
./inc/modules/admin/what-list_user.php:121: // @TODO Refacture birth_foo to avoid uni* timetstamps as older members cannot be greeded correctly
./inc/modules/admin/what-list_user.php:291: // @TODO Rewrite this into a filter
./inc/modules/admin/what-admins_contact.php:2:// @DEPRECATED
./inc/modules/admin/what-autopurge.php:2:// @DEPRECATED
./inc/modules/admin/what-config_cache.php:2:// @DEPRECATED
+./inc/modules/admin/what-config_cats.php:2:// @DEPRECATED
+./inc/modules/admin/what-config_mods.php:2:// @DEPRECATED
+./inc/modules/admin/what-config_rallye_prices.php:2:// @DEPRECATED
./inc/modules/admin/what-config_reg.php:2:// @DEPRECATED
./inc/modules/admin/what-del_task.php:2:// @DEPRECATED
./inc/modules/admin/what-list_newsletter.php:2:// @DEPRECATED
} // END - if
// Version number
-setThisExtensionVersion('0.0.9');
+setThisExtensionVersion('0.1.0');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0'));
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running
// SQL commands to run
addAdminMenuSql('mods', NULL, 'Modul-Management','Verwalten Sie die Basis-Module index, login, admin usw.', 4);
- addAdminMenuSql('mods','config_mods','Module ändern','Ändern Sie hier die Zugtiffsrechte auf die Module. Was dennoch nicht geht: Mitglied- oder Gastzugriffsrtechte auf Admin-Module bzw. Gastzugriffsrechte auf Mitglieder-Module. Diese sind extra abgesichert.', 1);
+ addAdminMenuSql('mods','list_mods','Module ändern','Ändern Sie hier die Zugtiffsrechte auf die Module. Was dennoch nicht geht: Mitglied- oder Gastzugriffsrtechte auf Admin-Module bzw. Gastzugriffsrechte auf Mitglieder-Module. Diese sind extra abgesichert.', 1);
addAdminMenuSql('mods','stats_mods','Modul-Statistiken','Sehen Sie sich hier die Statistiken der Module und die damit verknüpften action- und what-Dateien an. Bei einigen Modulen gibt es allerdings keine verknüpften Dateien und somit keine Extra-Statistik.', 2);
break;
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Standardnamen gesetzt, diese überschreiben nicht Ihre bereits gespeicherten Modulnamen.");
break;
+
+ case '0.1.0': // SQL queries for v0.1.0
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `what`='list_mods' WHERE `action`='mods' AND `what`='config_mods' LIMIT 1");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Menü umbenannt, da "config" nur für die Konfigurationstabelle <strong>{?_MYSQL_PREFIX?}_config</strong> ist.");
+ break;
} // END - switch
break;
} // END - if
// Version number
-setThisExtensionVersion('0.3.7');
+setThisExtensionVersion('0.3.8');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8'));
switch (getExtensionMode()) {
case 'register': // Do stuff when installation is running
// Admin menu
addAdminMenuSql('rallye', NULL, 'Rallye-Management','Richten Sie neue Ref-Rallyes ein, die zeitgesteuert anfangen und aufhöhren. Dabei wird alles weitere automatisch geregelt.',9);
addAdminMenuSql('rallye','add_rallye','Neue Rallye hinzufügen','Neue Ref-Rallye hinzufügen.',1);
- // @TODO Fix config_rallye_prices to list_rallye_prices
- addAdminMenuSql('rallye','config_rallye_prices','Preise einrichten','Richten Sie Preise zu den Rallyes ein.',2);
+ addAdminMenuSql('rallye','list_rallye_prices','Preise einrichten','Richten Sie Preise zu den Rallyes ein.',2);
addAdminMenuSql('rallye','list_rallyes','Rallyes verwalten','Alle bestehenden Ref-Rallyes auflisten, bearbeiten, stoppen, löschen usw.',3);
// Guest menu
// Update notes
setExtensionUpdateNotes("Weitere Filter hinzugefügt.");
break;
+
+ case '0.3.8': // SQL queries for v0.3.8
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `what`='list_rallye_prices' WHERE `action`='rallye' AND `what`='config_rallye_prices' LIMIT 1");
+
+ // Update notes
+ setExtensionUpdateNotes("Menü umbenannt, da "config" nur für die Konfigurationstabelle <strong>{?_MYSQL_PREFIX?}_config</strong> ist.");
+ break;
} // END - switch
break;
} // END - if
// Version number
-setThisExtensionVersion('0.9.4');
+setThisExtensionVersion('0.9.5');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4'));
+setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0', '0.6.1', '0.6.2', '0.6.3', '0.6.4', '0.6.5', '0.6.6', '0.6.7', '0.6.8', '0.6.9', '0.7.0', '0.7.1', '0.7.2', '0.7.3', '0.7.4', '0.7.5', '0.7.6', '0.7.7', '0.7.8', '0.7.9', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.8.7', '0.8.8', '0.8.9', '0.9.0', '0.9.1', '0.9.2', '0.9.3', '0.9.4', '0.9.5'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Auflisten (usw.) von Referral-Ebenen ausgelagert in eigenen Menüpunkt. Referral-Prozente dürfen nun auch 5 Stellen hinter dem Komma haben.");
break;
+
+ case '0.9.5': // SQL queries for v0.9.5
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `what`='list_cats' WHERE `action`='setup' AND `what`='config_cats' LIMIT 1");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Menüpunkt umbenannt, da "config" nur für die Konfigurationstabelle <strong>{?_MYSQL_PREFIX?}_config</strong> ist.");
+ break;
} // END - switch
break;
} // END - if
// Version number
-setThisExtensionVersion('0.5.9');
+setThisExtensionVersion('0.6.0');
// Version history array (add more with , '0.0.1' and so on)
-setExtensionVersionHistory(array('0.0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9'));
+setExtensionVersionHistory(array('0.0.0', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3', '0.2.4', '0.2.5', '0.2.6', '0.2.7', '0.2.8', '0.2.9', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.3.4', '0.3.5', '0.3.6', '0.3.7', '0.3.8', '0.3.9', '0.4.0', '0.4.1', '0.4.2', '0.4.3', '0.4.4', '0.4.5', '0.4.6', '0.4.7', '0.4.8', '0.4.9', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.5.4', '0.5.5', '0.5.6', '0.5.7', '0.5.8', '0.5.9', '0.6.0'));
// Keep this extension always active!
setExtensionAlwaysActive('Y');
addAdminMenuSql('user', 'edit_user', 'Account editieren', 'Daten eines Mitglieder-Accountes ändern.', 6);
addAdminMenuSql('user', 'list_refs', 'Referrals anzeigen', 'Mit diesem Menüpunkt können Sie die generierten Referrals eines Mitgliedes auflisten.', 7);
addAdminMenuSql('user', 'list_links', 'Unbestätigte Mails', 'Mit diesem Menüpunkt können Sie die vom Mitglied nicht bestätigten Mails anzeigen.', 8);
- addAdminMenuSql('user', 'list_cats', 'Kategorien anzeigen', 'Listet die ausgewählten Kategorien eines Mitgliedes auf.', 9);
+ addAdminMenuSql('user', 'list_user_cats', 'Kategorien anzeigen', 'Listet die ausgewählten Kategorien eines Mitgliedes auf.', 9);
break;
case 'remove': // Do stuff when removing extension
// Update notes (these will be set as task text!)
setExtensionUpdateNotes("Besser NULL anstelle 0.");
break;
+
+ case '0.6.0': // SQL queries for v0.6.0
+ addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `what`='list_user_cats' WHERE `action`='user' AND `what`='list_cats' LIMIT 1");
+
+ // Update notes (these will be set as task text!)
+ setExtensionUpdateNotes("Menüpunkt umbenannt um Platz für Konflikt mit <strong>what-config_cats.php</strong> zu schaffen.");
+ break;
} // END - switch
break;
if (!empty($id)) {
// Reload to prices...
- redirectToUrl('modules.php?module=admin&what=config_rallye_prices&rallye_id=' . bigintval($id));
+ redirectToUrl('modules.php?module=admin&what=list_rallye_prices&rallye_id=' . bigintval($id));
} else {
// Problem detected...
displayMessage('{--ADMIN_RALLYE_PROBLEM_CREATE--}');
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save configuration
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Data was submitted so we store it
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace german decimal comma with computer decimal dot
convertCommaToDotInPostDataArray(array('beg_points', 'beg_points_max', 'beg_notify_bonus'));
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save configuration
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace german decimal comma with computer decimal dot
convertCommaToDotInPostDataArray(array('login_bonus', 'turbo_bonus', 'bonus_ref', 'bonus_order', 'bonus_notify_points'));
<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 10/10/2003 *
- * =================== Last change: 07/04/2004 *
- * *
- * -------------------------------------------------------------------- *
- * File : what-config_cats.php *
- * -------------------------------------------------------------------- *
- * Short description : Add new categories and edit / delete existing *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Neue Kategorien hinzufuegen und bestehende *
- * editieren / loeschen *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
- * For more information visit: http://mxchange.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
- * MA 02110-1301 USA *
- ************************************************************************/
-
-// Some security stuff...
-if ((!defined('__SECURITY')) || (!isAdmin())) {
- die();
-} // END - if
-
-// Add description as navigation point
-addYouAreHereLink('admin', __FILE__);
-
-// Init variable to avoid a notice
-$CATS = '';
-
-if (isFormSent('add')) {
- // Add a new category
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `cat`='%s' LIMIT 1",
- array(postRequestElement('catname')), __FILE__, __LINE__);
- if (SQL_HASZERONUMS($result)) {
- // Category does not exists, we simply add it...
- SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('%s','%s','%s')",
- array(
- postRequestElement('catname'),
- postRequestElement('visible'),
- bigintval(postRequestElement('parent') + 1)
- ), __FILE__, __LINE__);
- $content = '{--CATEGORY_ADDED--}';
- } else {
- // Category does already exists
- $content = '<span class="bad">{--CATEGORY_ALREADY_EXISTS--}</span>';
- }
-
- // Free memory
- SQL_FREERESULT($result);
-
- // Display message
- displayMessage($content);
-} elseif ((isFormSent()) && (ifPostContainsSelections('id'))) {
- // Change or delete categories...
- $TEXT = '';
- foreach (postRequestElement('id') as $id => $cat) {
- // Secure id
- $id = bigintval($id);
-
- // Is the entry set?
- if (!empty($cat)) {
- switch (getRequestElement('do')) {
- case 'edit': // Change categories
- SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_cats` SET `cat`='%s',`visible`='%s',`sort`=%s WHERE `id`=%s LIMIT 1",
- array(
- $cat,
- postRequestElement('visible', $id),
- postRequestElement('sort', $id),
- $id
- ), __FILE__, __LINE__);
- $TEXT = '{--ADMIN_CATEGORIES_SAVED--}';
- break;
-
- case 'delete': // Delete categories
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
- array($id), __FILE__, __LINE__);
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `cat_id`=%s",
- array($id), __FILE__, __LINE__);
- $TEXT = '{--ADMIN_CATEGORIES_DELETED--}';
- break;
- } // END - switch
- } else {
- // Entry not saved
- $TEXT .= '{%message,ADMIN_CATEGORY_NOT_SAVED=' . $id . '%}';
- }
- } // END - foreach
-
- if (isset($TEXT)) {
- // Display message
- displayMessage($TEXT);
- } // END - if
-} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
- // Delete categories
- $OUT = '';
- foreach (postRequestElement('sel') as $id => $value) {
- // Load row template and switch colors
- $OUT .= loadTemplate('admin_delete_cats_row', TRUE, $id);
- } // END - foreach
-
- // Load main template
- loadTemplate('admin_delete_cats', FALSE, $OUT);
-} elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
- // Edit categories
- $OUT = '';
- foreach (postRequestElement('sel') as $id => $value) {
- // Load data from the category
- $result = SQL_QUERY_ESC("SELECT `id`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Prepare data for the row template
- $content['visible_selection'] = addSelectionBox('yn', $content['visible'], 'visible', $content['id']);
-
- // Load row template and switch colors
- $OUT .= loadTemplate('admin_edit_cats_row', TRUE, $content);
- } // END - foreach
-
- // Load main template
- loadTemplate('admin_edit_cats', FALSE, $OUT);
-} else {
- // Init variable here
- $CATS = '';
-
- // Load all categories
- $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
- if (!SQL_HASZERONUMS($result)) {
- // Init variables
- $OUT = '';
-
- // List already existing categories for editing
- while ($content = SQL_FETCHARRAY($result)) {
- // Put cat descriptions into variable for the selection box
- $cat = $content['cat'];
- if (strlen($cat) > 40) $cat = substr($cat, 0, 37) . '...';
- $CATS .= '<option value="' . $content['sort'] . '">' . $cat . '</option>';
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_list_cats_row', TRUE, $content);
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result);
-
- // Load main template
- loadTemplate('admin_list_cats', FALSE, $OUT);
- } // END - if
-
- // Remember in array
- $content['cats'] = $CATS;
-
- // Form to add a new category
- loadTemplate('admin_add_cat', FALSE, $content);
-}
-
-// [EOF]
+// @DEPRECATED
?>
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace German comma with computer's version
convertCommaToDotInPostData('coupon_default_points');
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace german decimal comma with computer decimal dot
convertCommaToDotInPostDataArray(array('doubler_charge', 'doubler_ref', 'doubler_min', 'doubler_max', 'doubler_left'));
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save configuration
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
switch ($sub) {
case 'settings': // Settings related to the index page
- if (isFormSent()) {
+ if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
addYouAreHereLink('admin', __FILE__);
// Form sent?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Handle form ...
} else {
// Query for all imprint data rows
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test timestamp
$STAMP = mktime(0, 0, 0, bigintval(postRequestElement('month')), bigintval(postRequestElement('day')), bigintval(postRequestElement('year')));
if ($STAMP > time()) {
} // END - if
} // END - if
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 08/27/2004 *
- * =================== Last change: 08/27/2004 *
- * *
- * -------------------------------------------------------------------- *
- * File : what-config_mods.php *
- * -------------------------------------------------------------------- *
- * Short description : Module configuration *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Modul-Konfiguration *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
- * For more information visit: http://mxchange.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
- * MA 02110-1301 USA *
- ************************************************************************/
-
-// Some security stuff...
-if ((!defined('__SECURITY')) || (!isAdmin())) {
- die();
-} // END - if
-
-// Add description as navigation point
-addYouAreHereLink('admin', __FILE__);
-
-if (isFormSent('edit')) {
- // Check if at least one module is selected
- if (ifPostContainsSelections()) {
- // Output header
- $OUT = '';
-
- // Edit selected modules
- foreach (postRequestElement('sel') as $id => $sel) {
- // Load module data
- // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
- $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
-
- // Load data
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Prepare array for the template
- $content['locked'] = addSelectionBox('yn', $content['locked'] , 'locked', $id);
- $content['hidden'] = addSelectionBox('yn', $content['hidden'] , 'hidden', $id);
- $content['admin_only'] = addSelectionBox('yn', $content['admin_only'], 'admin' , $id);
- $content['mem_only'] = addSelectionBox('yn', $content['mem_only'] , 'member', $id);
-
- // Load row template
- $OUT .= loadTemplate('admin_edit_mods_row', TRUE, $content);
- } // END - foreach
-
- // Load main template
- loadTemplate('admin_edit_mods', FALSE, $OUT);
- } else {
- // Nothing selected
- displayMessage('{--ADMIN_MODS_NOTHING_SELECTED--}');
-
- // Remove maybe confusing data
- unsetPostRequestElement('edit');
- unsetPostRequestElement('do_edit');
- }
-} elseif (isFormSent('do_edit')) {
- // Init SQLs
- initSqls();
-
- // Change modules
- foreach (postRequestElement('sel') as $id => $sel) {
- // Secure id number
- $id = bigintval($id);
-
- // Update module
- addSql(SQL_QUERY_ESC("UPDATE
- `{?_MYSQL_PREFIX?}_mod_reg`
-SET
- `title`='%s',
- `locked`='%s',
- `hidden`='%s',
- `admin_only`='%s',
- `mem_only`='%s'
-WHERE
- `id`=%s
-LIMIT 1",
- array(
- postRequestElement('title', $id),
- postRequestElement('locked', $id),
- postRequestElement('hidden', $id),
- postRequestElement('admin', $id),
- postRequestElement('member', $id),
- $id
- ), __FILE__, __LINE__, FALSE));
- }
-
- // Run all sqls
- runFilterChain('run_sqls');
-
- // Remove cache file if version matches
- rebuildCache('modules', 'modules');
-
- // Entries updated
- displayMessage('{--ADMIN_MODS_CHANGED--}');
-}
-
-if (!ifPostContainsSelections()) {
- // Load module data (We do not need to check if there's at least one...)
- $result = SQL_QUERY('SELECT
- `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
-FROM
- `{?_MYSQL_PREFIX?}_mod_reg`
-ORDER BY
- `module` ASC', __FILE__, __LINE__);
-
- $OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
- // Reset title to --- if it is NULL
- if (($content['module'] == 'index') || ($content['module'] == 'login')) {
- // Add link to detail statistics
- $content['module'] = '<strong><a href="{%url=modules.php?module=admin&what=stats_mods&mod=' . $content['module'] . '%}">' . $content['module'] . '</a></strong>';
- } // END - if
-
- // Load row template
- $OUT .= loadTemplate('admin_list_mods_row', TRUE, $content);
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result);
-
- // Load main template
- loadTemplate('admin_list_mods', FALSE, $OUT);
-} // END - if
-
-// [EOF]
+// @DEPRECATED
?>
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
addYouAreHereLink('admin', __FILE__);
// Stop saving data if one input field is !isset
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Calculate stamps and set calculated stamps
setPostRequestElement('online_timeout' , createEpocheTimeFromSelections('online_timeout' , postRequestArray()));
setPostRequestElement('url_tlock' , createEpocheTimeFromSelections('url_tlock' , postRequestArray()));
}
// Is a form sent?
-if ((isFormSent('do_delete')) || (isFormSent('do_edit')) || (isFormSent('do_add'))) {
+if ((isFormSent('do_delete')) || (isFormSent('do_edit')) || (isFormSent('do_add')) || (isFormSent('save_config'))) {
// Init SQLs
initSqls();
switch (getRequestElement('sub')) {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test proxy settings
if (adminTestProxySettings(postRequestArray())) {
// Save configuration
<?php
-/************************************************************************
- * Mailer v0.2.1-FINAL Start: 07/03/2004 *
- * =================== Last change: 08/22/2004 *
- * *
- * -------------------------------------------------------------------- *
- * File : what-config_rallye_prices.php *
- * -------------------------------------------------------------------- *
- * Short description : Setup rallye prices *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung : Rallye-Preise einrichten *
- * -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
- * For more information visit: http://mxchange.org *
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
- * MA 02110-1301 USA *
- ************************************************************************/
-
-// Some security stuff...
-if ((!defined('__SECURITY')) || (!isAdmin())) {
- exit();
-} // END - if
-
-// Add description as navigation point
-addYouAreHereLink('admin', __FILE__);
-
-if (isGetRequestElementSet('rallye_id')) {
- // Price submitted?
- if (isFormSent('add')) {
- if ((isPostRequestElementSet('level')) && ((isPostRequestElementSet('points')) || (isPostRequestElementSet('info')))) {
- // Submitted data is valid, but maybe we already have this price level?
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s AND `price_level`='%s' LIMIT 1",
- array(bigintval(getRequestElement('rallye_id')), bigintval(postRequestElement('level'))), __FILE__, __LINE__);
-
- if (SQL_HASZERONUMS($result)) {
- // Ok, new price level entered!
- SQL_QUERY_ESC("INSERT INTO
- `{?_MYSQL_PREFIX?}_rallye_prices`
-(`rallye_id`, `price_level`, `points`, `info`)
- VALUES
-(%s, %s, '%s', '%s')",
- array(
- bigintval(getRequestElement('rallye_id')),
- bigintval(postRequestElement('level')),
- convertCommaToDot(postRequestElement('points')),
- postRequestElement('info')
- ), __FILE__, __LINE__);
- displayMessage('{--ADMIN_RALLYE_PRICE_LEVEL_SAVED--}');
- } else {
- // Free memory
- SQL_FREERESULT($result);
-
- // Price level found
- displayMessage('{--ADMIN_RALLYE_PRICE_ALREADY_FOUND--}');
- }
- }
- } elseif (isFormSent('do_delete')) {
- // Check if at last one line is selected
- if (ifPostContainsSelections()) {
- // Delete selected entries
- foreach (postRequestElement('sel') as $id => $sel) {
- SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
- } // END - foreach
-
- // Output message
- displayMessage('{--ADMIN_RALLYE_PRICES_DELETED--}');
- } else {
- displayMessage('{--ADMIN_RALLYE_PRICES_NOT_DELETED--}');
- }
- } elseif (isFormSent('do_edit')) {
- // Change entries
- foreach (postRequestElement('level') as $id => $level) {
- // Secure id
- $id = bigintval($id);
-
- // Update entry
- SQL_QUERY_ESC("UPDATE
- `{?_MYSQL_PREFIX?}_rallye_prices`
-SET
- `rallye_id`=%s,
- `price_level`=%d,
- `points`=%s,
- `info`='%s'
-WHERE
- `id`=%s
-LIMIT 1",
- array(
- postRequestElement('rallye_id', $id),
- bigintval($level),
- convertCommaToDot(postRequestElement('points', $id)),
- postRequestElement('info', $id),
- $id
- ), __FILE__, __LINE__);
- }
-
- // Output message
- displayMessage('{--ADMIN_RALLYE_PRICES_CHANGED--}');
- }
-
- if (isFormSent('edit')) {
- // Check if at last one line is selected
- if (ifPostContainsSelections()) {
- // Make selected editable
- $OUT = '';
- foreach (postRequestElement('sel') as $id => $sel) {
- // Load data to selected rallye
- $result = SQL_QUERY_ESC("SELECT
- `id`,
- `rallye_id`,
- `price_level`,
- `points`,
- `info`
-FROM
- `{?_MYSQL_PREFIX?}_rallye_prices`
-WHERE
- `id`=%s
-LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
-
- // Fetch data
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Add more content
- $content['rallye_content'] = generateOptions('rallye_data', 'id', 'title', $content['rallye_id']);
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_edit_rallye_prices_row', TRUE, $content);
- } // END - foreach
-
- // Remember row content
- $content['rows'] = $OUT;
-
- // Prepare data for the main template
- $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
-
- // Load main template
- loadTemplate('admin_edit_rallye_prices', FALSE, $content);
- } else {
- // Nothing selected
- displayMessage('{%message,ADMIN_RALLYE_NO_PRICES_SELECTED=' . getRequestElement('rallye_id') . '%}');
- }
- } elseif (isFormSent('delete')) {
- // Check if at last one line is selected
- if (ifPostContainsSelections()) {
- // List all prices
- $OUT = '';
- foreach (postRequestElement('sel') as $id => $sel) {
- // Load data to selected rallye
- $result = SQL_QUERY_ESC("SELECT
- `id`,
- `rallye_id`,
- `price_level`,
- `points`,
- `info`
-FROM
- `{?_MYSQL_PREFIX?}_rallye_prices`
-WHERE
- `id`=%s
-LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
-
- // Fetch data
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_delete_rallye_prices_row', TRUE, $content);
- } // END - foreach
- $content['rows'] = $OUT;
-
- // Prepare data for the main template
- $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
-
- // Load main template
- loadTemplate('admin_delete_rallye_prices', FALSE, $content);
- } else {
- // Nothing selected
- $content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&what=config_rallye_prices&rallye_id=' . getRequestElement('rallye_id') . '%}">{--RALLYE_NO_PRICES_SELECTED_2--}</a>{--RALLYE_NO_PRICES_SELECTED_3--}';
- displayMessage($content);
- }
- } else {
- // A rallye was selected, so check if there are already prices assigned...
- $result = SQL_QUERY_ESC("SELECT `id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC",
- array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__);
-
- if (!SQL_HASZERONUMS($result)) {
- // Load all prices for the selected rallye
- $OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
- // Load row template and switch color
- $OUT .= loadTemplate('admin_list_rallye_prices_simple_row', TRUE, $content);
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result);
-
- // @TODO Rewrite these two constants
- $content['rows'] = $OUT;
-
- // Prepare data for the main template
- $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
-
- // Load main template
- loadTemplate('admin_list_rallye_prices_simple', FALSE, $content);
- } // END - if
- }
-
- // Add form for adding new price level
- if ((!isFormSent('edit')) && (!isFormSent('delete'))) {
- loadTemplate('admin_add_rallye_prices', FALSE, getRequestElement('rallye_id'));
- } // END - if
-} else {
- // No rallye selected so display all available without prices
- $result = SQL_QUERY("SELECT
- d.id AS `rallye_id`,
- d.admin_id,
- d.start_time,
- d.end_time,
- d.title,
- a.login,
- d.is_active
-FROM
- `{?_MYSQL_PREFIX?}_rallye_data` AS d
-LEFT JOIN
- `{?_MYSQL_PREFIX?}_admins` AS a
-ON
- d.admin_id=a.id
-ORDER BY
- d.start_time DESC", __FILE__, __LINE__);
- if (!SQL_HASZERONUMS($result)) {
- // List found rallyes
- $OUT = '';
- while ($content = SQL_FETCHARRAY($result)) {
- // Prepare data for the row template
- $content['start_time'] = generateDateTime($content['start_time'], '3');
- $content['end_time'] = generateDateTime($content['end_time'] , '3');
-
- // Load row template and switch color
- $OUT .= loadTemplate('admin_list_rallye_prices_row', TRUE, $content);
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result);
-
- // Load main template
- loadTemplate('admin_list_rallye_prices', FALSE, $OUT);
- } else {
- // No rallyes setup so far
- displayMessage('{--ADMIN_RALLYE_NO_RALLYES_SETUP--}');
- }
-}
-
-// [EOF]
+// @DEPRECATED
?>
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace german decimal comma with computer decimal dot
convertCommaToDotInPostDataArray(array('refback_min_perc', 'refback_max_perc'));
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
addYouAreHereLink('admin', __FILE__);
// Do we want to save changes?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Begin counting
$count = 0;
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Calculate timestamp from selections...
setPostRequestElement('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
setPostRequestElement('least_cats', round(postRequestElement('least_cats')));
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save configuration
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Generate string
$MODs = array();
foreach (postRequestElement('mod') as $mod => $sel) {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// If salt length is empty or null then we shall generate new passwords
if (!isPostRequestElementSet('salt_length') || (postRequestElement('salt_length') == '0')) {
// Generate new passwords for all!
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test Path
if ((!isPostRequestElementSet('session_save_path')) || ((isDirectory(postRequestElement('session_save_path'))) && (is_writeable(postRequestElement('session_save_path'))))) {
// Save configuration
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
addYouAreHereLink('admin', __FILE__);
// Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
addYouAreHereLink('admin', __FILE__);
// Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Replace german decimal comma with computer decimal dot
convertCommaToDotInPostDataArray(array('surfbar_static_reward', 'surfbar_static_costs', 'surfbar_dynamic_percent'));
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')
+) {
// Save settings
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings...
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save settings
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Save data
adminSaveSettingsFromPostData();
} else {
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// First merge temporarily the new API data into the current config
mergeConfig(postRequestArray());
addYouAreHereLink('admin', __FILE__);
// Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test Yoo!Media config
if (YOOMEDIA_TEST_CONFIG(postRequestArray())) {
// Save settings
<?php
/************************************************************************
- * Mailer v0.2.1-FINAL Start: 01/27/2004 *
- * =================== Last change: 07/13/2004 *
+ * Mailer v0.2.1-FINAL Start: 10/10/2003 *
+ * =================== Last change: 07/04/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-list_cats.php *
* -------------------------------------------------------------------- *
- * Short description : List selected categories from users *
+ * Short description : Add new categories and edit / delete existing *
* -------------------------------------------------------------------- *
- * Kurzbeschreibung : Ausgewaehlte Kategorien eines Mitgliedes *
- * auflisten *
+ * Kurzbeschreibung : Neue Kategorien hinzufuegen und bestehende *
+ * editieren / loeschen *
* -------------------------------------------------------------------- *
* $Revision:: $ *
* $Date:: $ *
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (isGetRequestElementSet('userid')) {
- // Check if the user already exists
- if (fetchUserData(getRequestElement('userid'))) {
- // Loads surname, family's name and the email address
- $content = getUserDataArray();
-
- // Prepare constants
- // @TODO No longer needed? define('__CATEGORIES_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
- $content['email'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">{%pipe,translateGender=' . $content['gender'] . '%} ' . $content['surname'] . ' ' . $content['family'] . '</a>';
-
- // Ok, list categories of this user
- $result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
-
- if (!SQL_HASZERONUMS($result_cats)) {
- // List categories
- $count = 1; $OUT = '';
- while ($row = SQL_FETCHARRAY($result_cats)) {
- // Merge both arrays
- $content = merge_array($content, $row);
-
- // Check user's selection
- // @TODO Rewrite this to countSum.....() function
- $result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
- array(bigintval(getRequestElement('userid')), bigintval($content['id'])), __FILE__, __LINE__);
-
- // Set selection
- $selection = '<font color="#ee0000">{--NO--}</div>';
- if (SQL_NUMROWS($result_user) == 1) {
- $selection = '<font color="#00ee00">{--YES--}</div>';
- } // END - if
-
- // Add more elements
- $content['count'] = $count;
- $content['sel'] = $selection;
-
- // Load row template and count up
- $OUT .= loadTemplate('admin_list_user_cats_row', TRUE, $content);
- $count++;
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result_cats);
-
- // Remember all rows in the array
- $content['rows'] = $OUT;
-
- // Load main template
- loadTemplate('admin_list_user_cats', FALSE, $content);
- } else {
- // No categories selected! :-(
- loadTemplate('admin_list_user_cats_404', FALSE, $content);
- }
+// Init variable to avoid a notice
+$CATS = '';
+
+if (isFormSent('add')) {
+ // Add a new category
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `cat`='%s' LIMIT 1",
+ array(postRequestElement('catname')), __FILE__, __LINE__);
+ if (SQL_HASZERONUMS($result)) {
+ // Category does not exists, we simply add it...
+ SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_cats` (`cat`, `visible`, `sort`) VALUES ('%s','%s','%s')",
+ array(
+ postRequestElement('catname'),
+ postRequestElement('visible'),
+ bigintval(postRequestElement('parent') + 1)
+ ), __FILE__, __LINE__);
+ $content = '{--CATEGORY_ADDED--}';
} else {
- // User not found
- displayMessage('{%message,ADMIN_MEMBER_404=' . $content['userid'] . '%}');
+ // Category does already exists
+ $content = '<span class="bad">{--CATEGORY_ALREADY_EXISTS--}</span>';
}
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Display message
+ displayMessage($content);
+} elseif ((isFormSent()) && (ifPostContainsSelections('id'))) {
+ // Change or delete categories...
+ $TEXT = '';
+ foreach (postRequestElement('id') as $id => $cat) {
+ // Secure id
+ $id = bigintval($id);
+
+ // Is the entry set?
+ if (!empty($cat)) {
+ switch (getRequestElement('do')) {
+ case 'edit': // Change categories
+ SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_cats` SET `cat`='%s',`visible`='%s',`sort`=%s WHERE `id`=%s LIMIT 1",
+ array(
+ $cat,
+ postRequestElement('visible', $id),
+ postRequestElement('sort', $id),
+ $id
+ ), __FILE__, __LINE__);
+ $TEXT = '{--ADMIN_CATEGORIES_SAVED--}';
+ break;
+
+ case 'delete': // Delete categories
+ SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
+ array($id), __FILE__, __LINE__);
+ SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `cat_id`=%s",
+ array($id), __FILE__, __LINE__);
+ $TEXT = '{--ADMIN_CATEGORIES_DELETED--}';
+ break;
+ } // END - switch
+ } else {
+ // Entry not saved
+ $TEXT .= '{%message,ADMIN_CATEGORY_NOT_SAVED=' . $id . '%}';
+ }
+ } // END - foreach
+
+ if (isset($TEXT)) {
+ // Display message
+ displayMessage($TEXT);
+ } // END - if
+} elseif ((isFormSent('delete')) && (ifPostContainsSelections())) {
+ // Delete categories
+ $OUT = '';
+ foreach (postRequestElement('sel') as $id => $value) {
+ // Load row template and switch colors
+ $OUT .= loadTemplate('admin_delete_cats_row', TRUE, $id);
+ } // END - foreach
+
+ // Load main template
+ loadTemplate('admin_delete_cats', FALSE, $OUT);
+} elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
+ // Edit categories
+ $OUT = '';
+ foreach (postRequestElement('sel') as $id => $value) {
+ // Load data from the category
+ $result = SQL_QUERY_ESC("SELECT `id`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Prepare data for the row template
+ $content['visible_selection'] = addSelectionBox('yn', $content['visible'], 'visible', $content['id']);
+
+ // Load row template and switch colors
+ $OUT .= loadTemplate('admin_edit_cats_row', TRUE, $content);
+ } // END - foreach
+
+ // Load main template
+ loadTemplate('admin_edit_cats', FALSE, $OUT);
} else {
- // Output selection form with all confirmed user accounts listed
- addMemberSelectionBox();
+ // Init variable here
+ $CATS = '';
+
+ // Load all categories
+ $result = SQL_QUERY("SELECT `id`, `cat`, `visible`, `sort` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
+ if (!SQL_HASZERONUMS($result)) {
+ // Init variables
+ $OUT = '';
+
+ // List already existing categories for editing
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Put cat descriptions into variable for the selection box
+ $cat = $content['cat'];
+ if (strlen($cat) > 40) $cat = substr($cat, 0, 37) . '...';
+ $CATS .= '<option value="' . $content['sort'] . '">' . $cat . '</option>';
+
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_list_cats_row', TRUE, $content);
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Load main template
+ loadTemplate('admin_list_cats', FALSE, $OUT);
+ } // END - if
+
+ // Remember in array
+ $content['cats'] = $CATS;
+
+ // Form to add a new category
+ loadTemplate('admin_add_cat', FALSE, $content);
}
// [EOF]
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 11/24/2012 *
+ * =================== Last change: 11/24/2012 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-list_mods.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Module configuration *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Modul-Konfiguration *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+ die();
+} // END - if
+
+// Add description as navigation point
+addYouAreHereLink('admin', __FILE__);
+
+if (isFormSent('edit')) {
+ // Check if at least one module is selected
+ if (ifPostContainsSelections()) {
+ // Output header
+ $OUT = '';
+
+ // Edit selected modules
+ foreach (postRequestElement('sel') as $id => $sel) {
+ // Load module data
+ // @TODO This can be moved into mysql-function.php, see checkModulePermissions() function
+ $result = SQL_QUERY_ESC("SELECT `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `mem_only` FROM `{?_MYSQL_PREFIX?}_mod_reg` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+
+ // Load data
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Prepare array for the template
+ $content['locked'] = addSelectionBox('yn', $content['locked'] , 'locked', $id);
+ $content['hidden'] = addSelectionBox('yn', $content['hidden'] , 'hidden', $id);
+ $content['admin_only'] = addSelectionBox('yn', $content['admin_only'], 'admin' , $id);
+ $content['mem_only'] = addSelectionBox('yn', $content['mem_only'] , 'member', $id);
+
+ // Load row template
+ $OUT .= loadTemplate('admin_edit_mods_row', TRUE, $content);
+ } // END - foreach
+
+ // Load main template
+ loadTemplate('admin_edit_mods', FALSE, $OUT);
+ } else {
+ // Nothing selected
+ displayMessage('{--ADMIN_MODS_NOTHING_SELECTED--}');
+
+ // Remove maybe confusing data
+ unsetPostRequestElement('edit');
+ unsetPostRequestElement('do_edit');
+ }
+} elseif (isFormSent('do_edit')) {
+ // Init SQLs
+ initSqls();
+
+ // Change modules
+ foreach (postRequestElement('sel') as $id => $sel) {
+ // Secure id number
+ $id = bigintval($id);
+
+ // Update module
+ addSql(SQL_QUERY_ESC("UPDATE
+ `{?_MYSQL_PREFIX?}_mod_reg`
+SET
+ `title`='%s',
+ `locked`='%s',
+ `hidden`='%s',
+ `admin_only`='%s',
+ `mem_only`='%s'
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(
+ postRequestElement('title', $id),
+ postRequestElement('locked', $id),
+ postRequestElement('hidden', $id),
+ postRequestElement('admin', $id),
+ postRequestElement('member', $id),
+ $id
+ ), __FILE__, __LINE__, FALSE));
+ }
+
+ // Run all sqls
+ runFilterChain('run_sqls');
+
+ // Remove cache file if version matches
+ rebuildCache('modules', 'modules');
+
+ // Entries updated
+ displayMessage('{--ADMIN_MODS_CHANGED--}');
+}
+
+if (!ifPostContainsSelections()) {
+ // Load module data (We do not need to check if there's at least one...)
+ $result = SQL_QUERY('SELECT
+ `id`, `module`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`
+FROM
+ `{?_MYSQL_PREFIX?}_mod_reg`
+ORDER BY
+ `module` ASC', __FILE__, __LINE__);
+
+ $OUT = '';
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Reset title to --- if it is NULL
+ if (($content['module'] == 'index') || ($content['module'] == 'login')) {
+ // Add link to detail statistics
+ $content['module'] = '<strong><a href="{%url=modules.php?module=admin&what=stats_mods&mod=' . $content['module'] . '%}">' . $content['module'] . '</a></strong>';
+ } // END - if
+
+ // Load row template
+ $OUT .= loadTemplate('admin_list_mods_row', TRUE, $content);
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Load main template
+ loadTemplate('admin_list_mods', FALSE, $OUT);
+} // END - if
+
+// [EOF]
+?>
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 07/03/2004 *
+ * =================== Last change: 08/22/2004 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-list_rallye_prices.php *
+ * -------------------------------------------------------------------- *
+ * Short description : Setup rallye prices *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Rallye-Preise einrichten *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+ exit();
+} // END - if
+
+// Add description as navigation point
+addYouAreHereLink('admin', __FILE__);
+
+if (isGetRequestElementSet('rallye_id')) {
+ // Price submitted?
+ if (isFormSent('add')) {
+ if ((isPostRequestElementSet('level')) && ((isPostRequestElementSet('points')) || (isPostRequestElementSet('info')))) {
+ // Submitted data is valid, but maybe we already have this price level?
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s AND `price_level`='%s' LIMIT 1",
+ array(bigintval(getRequestElement('rallye_id')), bigintval(postRequestElement('level'))), __FILE__, __LINE__);
+
+ if (SQL_HASZERONUMS($result)) {
+ // Ok, new price level entered!
+ SQL_QUERY_ESC("INSERT INTO
+ `{?_MYSQL_PREFIX?}_rallye_prices`
+(`rallye_id`, `price_level`, `points`, `info`)
+ VALUES
+(%s, %s, '%s', '%s')",
+ array(
+ bigintval(getRequestElement('rallye_id')),
+ bigintval(postRequestElement('level')),
+ convertCommaToDot(postRequestElement('points')),
+ postRequestElement('info')
+ ), __FILE__, __LINE__);
+ displayMessage('{--ADMIN_RALLYE_PRICE_LEVEL_SAVED--}');
+ } else {
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Price level found
+ displayMessage('{--ADMIN_RALLYE_PRICE_ALREADY_FOUND--}');
+ }
+ }
+ } elseif (isFormSent('do_delete')) {
+ // Check if at last one line is selected
+ if (ifPostContainsSelections()) {
+ // Delete selected entries
+ foreach (postRequestElement('sel') as $id => $sel) {
+ SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `id`=%s LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+ } // END - foreach
+
+ // Output message
+ displayMessage('{--ADMIN_RALLYE_PRICES_DELETED--}');
+ } else {
+ displayMessage('{--ADMIN_RALLYE_PRICES_NOT_DELETED--}');
+ }
+ } elseif (isFormSent('do_edit')) {
+ // Change entries
+ foreach (postRequestElement('level') as $id => $level) {
+ // Secure id
+ $id = bigintval($id);
+
+ // Update entry
+ SQL_QUERY_ESC("UPDATE
+ `{?_MYSQL_PREFIX?}_rallye_prices`
+SET
+ `rallye_id`=%s,
+ `price_level`=%d,
+ `points`=%s,
+ `info`='%s'
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(
+ postRequestElement('rallye_id', $id),
+ bigintval($level),
+ convertCommaToDot(postRequestElement('points', $id)),
+ postRequestElement('info', $id),
+ $id
+ ), __FILE__, __LINE__);
+ }
+
+ // Output message
+ displayMessage('{--ADMIN_RALLYE_PRICES_CHANGED--}');
+ }
+
+ if (isFormSent('edit')) {
+ // Check if at last one line is selected
+ if (ifPostContainsSelections()) {
+ // Make selected editable
+ $OUT = '';
+ foreach (postRequestElement('sel') as $id => $sel) {
+ // Load data to selected rallye
+ $result = SQL_QUERY_ESC("SELECT
+ `id`,
+ `rallye_id`,
+ `price_level`,
+ `points`,
+ `info`
+FROM
+ `{?_MYSQL_PREFIX?}_rallye_prices`
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+
+ // Fetch data
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Add more content
+ $content['rallye_content'] = generateOptions('rallye_data', 'id', 'title', $content['rallye_id']);
+
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_edit_rallye_prices_row', TRUE, $content);
+ } // END - foreach
+
+ // Remember row content
+ $content['rows'] = $OUT;
+
+ // Prepare data for the main template
+ $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
+
+ // Load main template
+ loadTemplate('admin_edit_rallye_prices', FALSE, $content);
+ } else {
+ // Nothing selected
+ displayMessage('{%message,ADMIN_RALLYE_NO_PRICES_SELECTED=' . getRequestElement('rallye_id') . '%}');
+ }
+ } elseif (isFormSent('delete')) {
+ // Check if at last one line is selected
+ if (ifPostContainsSelections()) {
+ // List all prices
+ $OUT = '';
+ foreach (postRequestElement('sel') as $id => $sel) {
+ // Load data to selected rallye
+ $result = SQL_QUERY_ESC("SELECT
+ `id`,
+ `rallye_id`,
+ `price_level`,
+ `points`,
+ `info`
+FROM
+ `{?_MYSQL_PREFIX?}_rallye_prices`
+WHERE
+ `id`=%s
+LIMIT 1",
+ array(bigintval($id)), __FILE__, __LINE__);
+
+ // Fetch data
+ $content = SQL_FETCHARRAY($result);
+
+ // Free result
+ SQL_FREERESULT($result);
+
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_delete_rallye_prices_row', TRUE, $content);
+ } // END - foreach
+ $content['rows'] = $OUT;
+
+ // Prepare data for the main template
+ $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
+
+ // Load main template
+ loadTemplate('admin_delete_rallye_prices', FALSE, $content);
+ } else {
+ // Nothing selected
+ $content = '{--RALLYE_NO_PRICES_SELECTED_1--}<a href="{%url=modules.php?module=admin&what=list_rallye_prices&rallye_id=' . getRequestElement('rallye_id') . '%}">{--RALLYE_NO_PRICES_SELECTED_2--}</a>{--RALLYE_NO_PRICES_SELECTED_3--}';
+ displayMessage($content);
+ }
+ } else {
+ // A rallye was selected, so check if there are already prices assigned...
+ $result = SQL_QUERY_ESC("SELECT `id`, `price_level`, `points`, `info` FROM `{?_MYSQL_PREFIX?}_rallye_prices` WHERE `rallye_id`=%s ORDER BY `price_level` ASC",
+ array(bigintval(getRequestElement('rallye_id'))), __FILE__, __LINE__);
+
+ if (!SQL_HASZERONUMS($result)) {
+ // Load all prices for the selected rallye
+ $OUT = '';
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_list_rallye_prices_simple_row', TRUE, $content);
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // @TODO Rewrite these two constants
+ $content['rows'] = $OUT;
+
+ // Prepare data for the main template
+ $content['rallye_id'] = bigintval(getRequestElement('rallye_id'));
+
+ // Load main template
+ loadTemplate('admin_list_rallye_prices_simple', FALSE, $content);
+ } // END - if
+ }
+
+ // Add form for adding new price level
+ if ((!isFormSent('edit')) && (!isFormSent('delete'))) {
+ loadTemplate('admin_add_rallye_prices', FALSE, getRequestElement('rallye_id'));
+ } // END - if
+} else {
+ // No rallye selected so display all available without prices
+ $result = SQL_QUERY("SELECT
+ d.id AS `rallye_id`,
+ d.admin_id,
+ d.start_time,
+ d.end_time,
+ d.title,
+ a.login,
+ d.is_active
+FROM
+ `{?_MYSQL_PREFIX?}_rallye_data` AS d
+LEFT JOIN
+ `{?_MYSQL_PREFIX?}_admins` AS a
+ON
+ d.admin_id=a.id
+ORDER BY
+ d.start_time DESC", __FILE__, __LINE__);
+ if (!SQL_HASZERONUMS($result)) {
+ // List found rallyes
+ $OUT = '';
+ while ($content = SQL_FETCHARRAY($result)) {
+ // Prepare data for the row template
+ $content['start_time'] = generateDateTime($content['start_time'], '3');
+ $content['end_time'] = generateDateTime($content['end_time'] , '3');
+
+ // Load row template and switch color
+ $OUT .= loadTemplate('admin_list_rallye_prices_row', TRUE, $content);
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result);
+
+ // Load main template
+ loadTemplate('admin_list_rallye_prices', FALSE, $OUT);
+ } else {
+ // No rallyes setup so far
+ displayMessage('{--ADMIN_RALLYE_NO_RALLYES_SETUP--}');
+ }
+}
+
+// [EOF]
+?>
$content['refs'] = $base . '&what=list_refs&userid=' . $userid . '%}">{%pipe,translateComma=' . $content['refs'] . '%}</a>]';
} // END - if
if ($content['cats'] > 0) {
- $content['cats'] = $base . '&what=list_cats&userid=' . $userid . '%}">{%pipe,translateComma=' . $content['cats'] . '%}</a>]';
+ $content['cats'] = $base . '&what=list_user_cats&userid=' . $userid . '%}">{%pipe,translateComma=' . $content['cats'] . '%}</a>]';
} // END - if
// Calculate timestamp for birthday
--- /dev/null
+<?php
+/************************************************************************
+ * Mailer v0.2.1-FINAL Start: 01/27/2004 *
+ * =================== Last change: 07/13/2004 *
+ * *
+ * -------------------------------------------------------------------- *
+ * File : what-list_cats.php *
+ * -------------------------------------------------------------------- *
+ * Short description : List selected categories from users *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung : Ausgewaehlte Kategorien eines Mitgliedes *
+ * auflisten *
+ * -------------------------------------------------------------------- *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
+ * MA 02110-1301 USA *
+ ************************************************************************/
+
+// Some security stuff...
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+ die();
+} // END - if
+
+// Add description as navigation point
+addYouAreHereLink('admin', __FILE__);
+
+if (isGetRequestElementSet('userid')) {
+ // Check if the user already exists
+ if (fetchUserData(getRequestElement('userid'))) {
+ // Loads surname, family's name and the email address
+ $content = getUserDataArray();
+
+ // Prepare constants
+ // @TODO No longer needed? define('__CATEGORIES_BASE' , '<a href="{%url=modules.php?module=admin&userid=');
+ $content['email'] = '<a href="' . generateEmailLink($content['email'], 'user_data') . '">{%pipe,translateGender=' . $content['gender'] . '%} ' . $content['surname'] . ' ' . $content['family'] . '</a>';
+
+ // Ok, list categories of this user
+ $result_cats = SQL_QUERY("SELECT `id`, `cat` FROM `{?_MYSQL_PREFIX?}_cats` ORDER BY `sort` ASC", __FILE__, __LINE__);
+
+ if (!SQL_HASZERONUMS($result_cats)) {
+ // List categories
+ $count = 1; $OUT = '';
+ while ($row = SQL_FETCHARRAY($result_cats)) {
+ // Merge both arrays
+ $content = merge_array($content, $row);
+
+ // Check user's selection
+ // @TODO Rewrite this to countSum.....() function
+ $result_user = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_user_cats` WHERE `userid`=%s AND `cat_id`=%s LIMIT 1",
+ array(bigintval(getRequestElement('userid')), bigintval($content['id'])), __FILE__, __LINE__);
+
+ // Set selection
+ $selection = '<font color="#ee0000">{--NO--}</div>';
+ if (SQL_NUMROWS($result_user) == 1) {
+ $selection = '<font color="#00ee00">{--YES--}</div>';
+ } // END - if
+
+ // Add more elements
+ $content['count'] = $count;
+ $content['sel'] = $selection;
+
+ // Load row template and count up
+ $OUT .= loadTemplate('admin_list_user_cats_row', TRUE, $content);
+ $count++;
+ } // END - while
+
+ // Free memory
+ SQL_FREERESULT($result_cats);
+
+ // Remember all rows in the array
+ $content['rows'] = $OUT;
+
+ // Load main template
+ loadTemplate('admin_list_user_cats', FALSE, $content);
+ } else {
+ // No categories selected! :-(
+ loadTemplate('admin_list_user_cats_404', FALSE, $content);
+ }
+ } else {
+ // User not found
+ displayMessage('{%message,ADMIN_MEMBER_404=' . $content['userid'] . '%}');
+ }
+} else {
+ // Output selection form with all confirmed user accounts listed
+ addMemberSelectionBox();
+}
+
+// [EOF]
+?>
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup',NULL,'Einstellungen','Interessen ändern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_email','Versand, Empfang','Hier können Sie die maximal empfangbaren Mails usw. einstellen.',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_cats','Kategorien einrichten','Ändern oder löschen Sie bereits bestehende Kategorien oder fügen Sie weitere hinzu.',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','list_cats','Kategorien einrichten','Ändern oder löschen Sie bereits bestehende Kategorien oder fügen Sie weitere hinzu.',7);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','refbanner','Referral-Banner','Fügen Sie neue Banner hinzu, die dann die Mitglieder verlinken können, um neue Mitglieder zu werben. Oder editieren / löschen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Vergütungen','Fügen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Vergütungen hinzu oder ändern / löschen Sie bestende.',11);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('email','email_details','Email-Details ansehen','Sehen Sie sich jedes Details bereits gebuchter Mails an.',5);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup',NULL,'Einstellungen','Interessen ändern, News schreiben, allgmeine Einstellungen (Auto-Versand usw.). Auto-Lock Funktion einrichten, manueller Lock des Versandes einrichten, Teile der Homepage sperren (wegen Wartungsarbeiten)',5);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_email','Versand, Empfang','Hier können Sie die maximal empfangbaren Mails usw. einstellen.',8);
-INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','config_cats','Kategorien einrichten','Ändern oder löschen Sie bereits bestehende Kategorien oder fügen Sie weitere hinzu.',7);
+INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','list_cats','Kategorien einrichten','Ändern oder löschen Sie bereits bestehende Kategorien oder fügen Sie weitere hinzu.',7);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','refbanner','Referral-Banner','Fügen Sie neue Banner hinzu, die dann die Mitglieder verlinken können, um neue Mitglieder zu werben. Oder editieren / löschen Sie bestehende. Hier sehen Sie auch die Anzahl der Klicks auf den jeweiligen Banner!',12);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('setup','payments','{OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Vergütungen','Fügen Sie neue {OPEN_CONFIG}POINTS{CLOSE_CONFIG}-Vergütungen hinzu oder ändern / löschen Sie bestende.',11);
INSERT INTO `{?_MYSQL_PREFIX?}_admin_menu` (`action`, `what`, `title`, `descr`, `sort`) VALUES ('misc',NULL,'Verschiedenes','Verschiedene Einstellungen / Info-Seiten, die sonst nirgenswo reinpassten...',6);
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_cats%}
+{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td class="table_header bottom" align="center" colspan="2">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content%}
+{%form,formMethodPost=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td colspan="2" align="center" class="table_header bottom">
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--ADMIN_CONFIG_NETWORK_API_SAVE_BUTTON--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--ADMIN_CONFIG_NETWORK_API_SAVE_BUTTON--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="3" class="table_footer">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" name="ok" value="{--ADMIN_SAVE_REGISTER_MUST--}" />
+ <input type="submit" name="save_config" value="{--ADMIN_SAVE_REGISTER_MUST--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="3" class="table_footer">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="3" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" align="center" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td class="table_footer" colspan="2" align="center">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<div class="table_footer top">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</div>
</div>
{%form_close%}
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<tr>
<td colspan="2" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--SAVE_SETTINGS--}" />
+ <input type="submit" class="form_submit" name="save_config" value="{--SAVE_SETTINGS--}" />
</td>
</tr>
</table>
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_cats&do=del%}
+{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=del%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td align="center" class="table_header bottom">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}
+{%form,formMethodPost=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td colspan="4" align="center" class="table_header">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_cats&do=edit%}
+{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=edit%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td align="center" colspan="2" class="table_header bottom">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_mods%}
+{%form,formMethodPost=modules.php?module=admin&what=list_mods%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td align="center" colspan="6" class="table_header bottom" height="40">
<strong>{--ADMIN_MODS_EDIT_TITLE--}</strong>
</td>
</tr>
+
<tr>
<td align="center" class="header_column bottom right" height="25"><strong>{--ADMIN_MODS_NAME--}</strong></td>
<td align="center" class="header_column bottom right"><strong>{--ADMIN_MODS_TITLE--}</strong></td>
<td align="center" class="header_column bottom right"><strong>{--ADMIN_MODS_IS_ADMIN--}</strong></td>
<td align="center" class="header_column bottom right"><strong>{--ADMIN_MODS_IS_MEMBER--}</strong></td>
</tr>
+
$content
+
<tr>
<td colspan="6" class="table_footer">
<input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}
+{%form,formMethodPost=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td colspan="4" align="center" class="table_header">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_cats%}
+{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td align="center" colspan="4" class="table_header bottom">
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_mods%}
+{%form,formMethodPost=modules.php?module=admin&what=list_mods%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td colspan="7" class="table_header bottom" align="center">
<strong>{--ADMIN_LIST_MODS_TITLE--}</strong>
</td>
</tr>
+
<tr>
<td align="center" class="header_column bottom right" height="25" width="30"><strong>{--ID_SELECT--}</strong></td>
<td align="center" class="header_column bottom right"><strong>{--ADMIN_MODS_NAME--}</strong></td>
<td align="center" class="header_column bottom right"><strong>{--ADMIN_MODS_IS_ADMIN--}</strong></td>
<td align="center" class="header_column bottom"><strong>{--ADMIN_MODS_IS_MEMBER--}</strong></td>
</tr>
+
$content
+
<tr>
<td colspan="7" class="table_footer">
<input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
<tr>
- <td align="center" class="{%template,ColorSwitch%} bottom right"><a href="{%url=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}">$content[title]</a></td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right"><a href="{%url=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}">$content[title]</a></td>
<td align="center" class="{%template,ColorSwitch%} bottom right">{%pipe,generateAdminLink=$content[admin_id]%}</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">$content[start_time]</td>
<td align="center" class="{%template,ColorSwitch%} bottom">$content[end_time]</td>
<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}
+{%form,formMethodPost=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
<td colspan="4" align="center" class="table_header">
<td align="center" class="{%template,ColorSwitch%} bottom right" rowspan="5">$content[select]</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
<strong>{--ADMIN_RALLYE_TITLE--}:</strong><br />
- <a href="{%url=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}">$content[title]</a>
+ <a href="{%url=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}">$content[title]</a>
</td>
<td align="center" class="{%template,ColorSwitch%} bottom right">
<strong>{--ADMIN_RALLYE_DESCRIPTION--}:</strong><br />
<tr>
<td align="center" class="{%template,ColorSwitch%} bottom right" colspan="3">
<strong>{--RALLYE_ASSIGNED_PRICES--}:</strong><br />
- <a href="{%url=modules.php?module=admin&what=config_rallye_prices&rallye_id=$content[rallye_id]%}">{%pipe,translateComma=$content[prices_cnt]%}</a>
+ <a href="{%url=modules.php?module=admin&what=list_rallye_prices&rallye_id=$content[rallye_id]%}">{%pipe,translateComma=$content[prices_cnt]%}</a>
</td>
<td align="center" class="{%template,ColorSwitch%} bottom" colspan="2">
<strong>{--RALLYE_ASSIGNED_USERS--}:</strong><br />