Exemple #1
0
<?php

/**
*Main - P.W.S.M.
*Author Roman Shneer romanshneer@gmail.com
*1.02.2012
*changed 01.11.2015
*/
ini_set("display_errors", 1);
include_once "lib/start.inc.php";
include_once "lib/pss.inc.php";
#die("<hr>");
$start = new Start();
$start->chk_installation_login();
$pss = new PSS();
$contents[] = $start->letter_from_past();
#$headers['header']= $pss->draw_menu();
$headers['footer'] = '<author>Copiright 2012-' . date('Y') . ',PHP Web Security Monitor 2.0  <a href="mailto:romanshneer@gmail.com">Author</a>&nbsp;<a href="http://romanshneer.info/pwsm/contacts.php">Contact Us</a></author>';
if (!isset($_GET['q'])) {
    $_GET['q'] = null;
}
$data = array();
switch ($_GET['q']) {
    case 'new_agent':
        $template = 'new_agent';
        #$contents[]=$pss->wisard_new_agent();
        $headers['title'] = 'Patching new monitored object';
        break;
    case 'view_file':
        $template = 'view_file';
        $headers['title'] = 'View File Source';