]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_forced_ads.php
The usual changes: forms fixed
[mailer.git] / inc / modules / admin / what-list_forced_ads.php
index b728277d3ded9b81e92583d71e28026e34dbfeaa..498e3d44fef304c694ef4e74e4b37d64fcdc08fa 100644 (file)
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // By default show the list...
-$show = true;
+$show = TRUE;
 
 // Check for 'url_id' element
 if ((!isFormSent('add')) && (countRequestPost() > 0) && (!ifPostContainsSelections('forced_ads_id'))) {
@@ -58,35 +58,35 @@ if ((!isFormSent('add')) && (countRequestPost() > 0) && (!ifPostContainsSelectio
 // Edit or delete button hit?
 if (isFormSent('add')) {
        // Add new forced ad
-       showEntriesByXmlCallback('admin_add_do_forced_ads');
+       doGenericXmlTemplateCallback('admin_add_do_forced_ads');
 } elseif (isFormSent('edit')) {
        // Show entries for editing
-       showEntriesByXmlCallback('admin_edit_show_forced_ads');
+       doGenericXmlTemplateCallback('admin_edit_show_forced_ads');
 
        // Do not show the list of URLs after this template
-       $show = false;
+       $show = FALSE;
 } elseif (isFormSent('do_edit')) {
        // Change data of entries
-       showEntriesByXmlCallback('admin_edit_do_forced_ads');
+       doGenericXmlTemplateCallback('admin_edit_do_forced_ads');
 } elseif (isFormSent('delete')) {
        // Show entries for deletion
-       showEntriesByXmlCallback('admin_delete_show_forced_ads');
+       doGenericXmlTemplateCallback('admin_delete_show_forced_ads');
 
        // Do not show the list of URLs after this template
-       $show = false;
+       $show = FALSE;
 } elseif (isFormSent('do_delete')) {
        // Remove entries from database
-       showEntriesByXmlCallback('admin_delete_do_forced_ads');
+       doGenericXmlTemplateCallback('admin_delete_do_forced_ads');
 }
 
 // Show entries?
-if ($show === false) {
+if ($show === FALSE) {
        // No, a form has already been show
-       return false;
+       return FALSE;
 } // END - if
 
 // List all URLs
-showEntriesByXmlCallback('admin_list_forced_ads');
+doGenericXmlTemplateCallback('admin_list_forced_ads');
 
 // Display form for adding a forced-ad
 loadTemplate('admin_add_forced_ad');