X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_surfbar_url.php;h=d60a9d8602b34ca6055788a7c0857be7f0d87cd2;hp=bfe1425c555c0d6f0691dbf051737f6994fb4714;hb=3daede4c904e23905c3e48dd6749019deca0a0e0;hpb=3df5cfd765d32de200a4db2a21a04cb2fde40b23 diff --git a/inc/modules/admin/what-add_surfbar_url.php b/inc/modules/admin/what-add_surfbar_url.php index bfe1425c55..d60a9d8602 100644 --- a/inc/modules/admin/what-add_surfbar_url.php +++ b/inc/modules/admin/what-add_surfbar_url.php @@ -41,7 +41,13 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { ADD_DESCR("admin", __FILE__); // Was an URL added? -if ((isset($_POST['add'])) && (!empty($_POST['url'])) && (!empty($_POST['limit']))) { +if ((isset($_POST['add'])) && (!empty($_POST['url']))) { + // Dummy variables + $DATA = array(); $id = "reload_ye"; $skip = false; + + // Convert the "reload selections" + CONVERT_SELECTIONS_TO_TIMESTAMP($_POST, $DATA, $id, $skip); + // Then add this URL if (SURFBAR_ADMIN_ADD_URL($_POST['url'], $_POST['limit'], $_POST['reload'])) { // URL was added @@ -52,8 +58,13 @@ if ((isset($_POST['add'])) && (!empty($_POST['url'])) && (!empty($_POST['limit'] } } // END - if +// Prepare content for template +$content = array( + 'reload' => CREATE_TIME_SELECTIONS(0, "reload", "WDhms") +); + // Load template -LOAD_TEMPLATE("admin_add_surfbar_url"); +LOAD_TEMPLATE("admin_add_surfbar_url", false, $content); // ?>