X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Fmodules%2Fadmin%2Fwhat-config_mediadata.php;h=d089f14849890d9c7fef81f00784538f74c06094;hp=5d68a1e076f561a838466f7ce0c8eece54eebb5c;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hpb=157ee010917df5ca07e6d31b42f67417b2516d74 diff --git a/0.2.1/inc/modules/admin/what-config_mediadata.php b/0.2.1/inc/modules/admin/what-config_mediadata.php index 5d68a1e076..d089f14849 100644 --- a/0.2.1/inc/modules/admin/what-config_mediadata.php +++ b/0.2.1/inc/modules/admin/what-config_mediadata.php @@ -1,103 +1,103 @@ - time()) - { - // Date is in the future! - unset($_POST['ok']); - } - else - { - // Remove entries - unset($_POST['day']); - unset($_POST['month']); - unset($_POST['year']); - - // Remember timestamp - $_POST['mt_start'] = $STAMP; - } - - // Convert some data - $_POST['mt_stage'] = bigintval($_POST['mt_stage']); - if ($_POST['mt_stage'] <= GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true)) - { - // Not enougth! - unset($_POST['ok']); - } -} - -if (isset($_POST['ok'])) -{ - // Save data - ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'"); -} - else -{ - // Start of this exchange - if ($CONFIG['mt_start'] > 0) - { - // Only show start - define('__MT_START', "".MAKE_DATETIME($CONFIG['mt_start'], "3").""); - } - else - { - // Make start editable - define('__MT_START', - ADD_SELECTION("day" , date("d", time())). - ADD_SELECTION("month", date("m", time())). - ADD_SELECTION("year", -1) - ); - } - - // Next stage of this MT - define('__MT_STAGE', $CONFIG['mt_stage']); - - // Load template - LOAD_TEMPLATE("admin_config_mediadata"); -} - -// -?> + time()) + { + // Date is in the future! + unset($_POST['ok']); + } + else + { + // Remove entries + unset($_POST['day']); + unset($_POST['month']); + unset($_POST['year']); + + // Remember timestamp + $_POST['mt_start'] = $STAMP; + } + + // Convert some data + $_POST['mt_stage'] = bigintval($_POST['mt_stage']); + if ($_POST['mt_stage'] <= GET_TOTAL_DATA("CONFIRMED", "user_data", "userid", "status", true)) + { + // Not enougth! + unset($_POST['ok']); + } +} + +if (isset($_POST['ok'])) +{ + // Save data + ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'"); +} + else +{ + // Start of this exchange + if ($CONFIG['mt_start'] > 0) + { + // Only show start + define('__MT_START', "".MAKE_DATETIME($CONFIG['mt_start'], "3").""); + } + else + { + // Make start editable + define('__MT_START', + ADD_SELECTION("day" , date("d", time())). + ADD_SELECTION("month", date("m", time())). + ADD_SELECTION("year", -1) + ); + } + + // Next stage of this MT + define('__MT_STAGE', $CONFIG['mt_stage']); + + // Load template + LOAD_TEMPLATE("admin_config_mediadata"); +} + +// +?>