Fixes for sponsor admin area
authorRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:55:50 +0000 (21:55 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:55:50 +0000 (21:55 +0000)
inc/databases.php
inc/modules/admin/what-del_sponsor.php
inc/modules/admin/what-edit_sponsor.php

index d531efd569bbca478814ec000985bd049cb272de..77692d46f83607a2d4e547f10ecada70a6d3af50 100644 (file)
@@ -115,7 +115,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
-define('CURR_SVN_REVISION', "684");
+define('CURR_SVN_REVISION', "685");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 27bd98d9baa86301e29b569d347ab2d6cb4246fb..a3b732493644a5d66e83a56b71889f0d3ad5d0b4 100644 (file)
@@ -40,10 +40,10 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (!empty($_GET['id']))) {
+if (!empty($_GET['id'])) {
        // Check for selected sponsor
        $result = SQL_QUERY_ESC("SELECT email, gender, surname, family FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
        // Check for selected sponsor
        $result = SQL_QUERY_ESC("SELECT email, gender, surname, family FROM "._MYSQL_PREFIX."_sponsor_data WHERE id='%s' LIMIT 1",
-        array(bigintval($_GET['id'])), __FILE__, __LINE__);
+               array(bigintval($_GET['id'])), __FILE__, __LINE__);
        if (SQL_NUMROWS($result) == 1) {
                // Remove sponsor
                if (isset($_POST['ok'])) {
        if (SQL_NUMROWS($result) == 1) {
                // Remove sponsor
                if (isset($_POST['ok'])) {
index e24b65335fd9943abbaff3126e204469e054a824..6b3dedbdbed280a457ad0b534d87faa0b51b09ea 100644 (file)
@@ -157,6 +157,12 @@ if ((!empty($_GET['id'])) && (!empty($_GET['mode']))) {
                                        unset($_POST['pass2']);
                                        $PASS = false;
                                }
                                        unset($_POST['pass2']);
                                        $PASS = false;
                                }
+
+                               // Convert time selection
+                               $DATA = array(); $id = "warning_interval_ye"; $skip = false;
+                               CONVERT_SELECTIONS_TO_TIMESTAMP($_POST, $DATA, $id, $skip);
+
+                               // Save the sponsor
                                SPONSOR_HANDLE_SPONSOR($_POST);
 
                                // Convert some data for the email template
                                SPONSOR_HANDLE_SPONSOR($_POST);
 
                                // Convert some data for the email template