Exemple #1
0
          case 'none':
            return showMe();
            break;
          case 'block':
            return hideMe();
            break;
          default:
            alert('display = ' + display);
        }
      }
//-->
    </script>
endScript;
$post_vars = filter_input_array(INPUT_POST);
if (isset($post_vars['action']) && $post_vars['action'] == "clear") {
    $content .= clearAIML();
} elseif (isset($post_vars['clearFile']) && $post_vars['clearFile'] != "null") {
    $content .= clearAIMLByFileName($post_vars['clearFile']);
} else {
}
$content .= buildMain();
$topNav = $template->getSection('TopNav');
$leftNav = $template->getSection('LeftNav');
$main = $template->getSection('Main');
$navHeader = $template->getSection('NavHeader');
$FooterInfo = getFooter();
$errMsgClass = !empty($msg) ? "ShowError" : "HideError";
$errMsgStyle = $template->getSection($errMsgClass);
$noLeftNav = '';
$noTopNav = '';
$noRightNav = $template->getSection('NoRightNav');
Exemple #2
0
<?php

/***************************************
 * http://www.program-o.com
 * PROGRAM O
 * Version: 2.5.4
 * FILE: clear.php
 * AUTHOR: Elizabeth Perreau and Dave Morton
 * DATE: 12-12-2014
 * DETAILS: Clears out AIML categories from the DB for the currently selected chatbot
 ***************************************/
$content = "";
$upperScripts = $template->getSection('UpperScripts');
$post_vars = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);
if (isset($post_vars['action']) && $post_vars['action'] == "clear") {
    $msg = clearAIML();
} elseif (isset($post_vars['clearFile']) && $post_vars['clearFile'] != "null") {
    $msg = clearAIMLByFileName($post_vars['clearFile']);
} else {
}
$content .= buildMain();
$topNav = $template->getSection('TopNav');
$leftNav = $template->getSection('LeftNav');
$main = $template->getSection('Main');
$navHeader = $template->getSection('NavHeader');
$FooterInfo = getFooter();
$errMsgClass = !empty($msg) ? "ShowError" : "HideError";
$errMsgStyle = $template->getSection($errMsgClass);
$noLeftNav = '';
$noTopNav = '';
$noRightNav = $template->getSection('NoRightNav');