Esempio n. 1
0
/***************************************
 * 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');
$headerTitle = 'Actions:';
$pageTitle = "My-Program O - Clear AIML Categories";
Esempio n. 2
0
            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');
$headerTitle = 'Actions:';
$pageTitle = "My-Program O - Clear AIML Categories";
Esempio n. 3
0
            return showMe();
            break;
          case 'block':
            return hideMe();
            break;
          default:
            alert('display = ' + display);
        }
      }
//-->
    </script>
endScript;
if (isset($_POST['action']) && $_POST['action'] == "clear") {
    $content .= clearAIML();
} elseif (isset($_POST['clearFile']) && $_POST['clearFile'] != "null") {
    $content .= clearAIMLByFileName($_POST['clearFile']);
} else {
}
$content .= renderMain();
$topNav = $template->getSection('TopNav');
$leftNav = $template->getSection('LeftNav');
$main = $template->getSection('Main');
$topNavLinks = makeLinks('top', $topLinks, 12);
$navHeader = $template->getSection('NavHeader');
$leftNavLinks = makeLinks('left', $leftLinks, 12);
$FooterInfo = getFooter();
$errMsgClass = !empty($msg) ? "ShowError" : "HideError";
$errMsgStyle = $template->getSection($errMsgClass);
$noLeftNav = '';
$noTopNav = '';
$noRightNav = $template->getSection('NoRightNav');