Example #1
0
if (@$_REQUEST['isMakeHtml'] == '1' || @$_REQUEST['isMakeHtml'] == 'true') {
    $isMakeHtml = true;
}
$templateName = @$_REQUEST['templateName'];
//模板名称
//保存数据处理页
switch (@$_REQUEST['act']) {
    case 'savedata':
        saveData(@$_REQUEST['stype']);
        die;
        //保存数据
        break;
        //'站长统计 | 今日IP[653] | 今日PV[9865] | 当前在线[65]')
    //'站长统计 | 今日IP[653] | 今日PV[9865] | 当前在线[65]')
    case 'webstat':
        webStat($adminDir . '/Data/Stat/');
        die;
        //网站统计
        break;
    case 'saveSiteMap':
        $isMakeHtml = true;
        saveSiteMap();
        die;
        //保存sitemap.xml
        break;
    case 'handleAction':
        if (@$_REQUEST['ishtml'] == '1') {
            $isMakeHtml = true;
        }
        rwEnd(handleAction(@$_REQUEST['content']));
        //处理动作
Example #2
0
            foreach ($val as $dateKey => $dateVal) {
                echo '<b>Date: </b>';
                echo $dateVal[0];
                echo '<br/>';
            }
        }
        if ($key == 'spoof') {
            echo '<span class="notice"><b>NOTICE: Email Possiblly Spoofed!</b></span><br/>';
        }
        if ($key == 'missing') {
            echo '<span class="notice"><b>NOTICE: Bytes Missing from Capture File!</b></span><br/>';
        }
    }
}
if ($type == 'web') {
    $matches = webStat($text);
    #echo'<pre>';
    #var_dump($matches);
    #echo '</pre>';
    foreach ($matches as $key => $val) {
        if ($key == 'get') {
            foreach ($val as $getKey => $getVal) {
                echo '<b>GET Request: </b>';
                echo $getVal[0];
                echo '<br/>';
                /*
                if(isset($matches['ok']))	#If an OK response is found
                {
                	if(isset($matches['ok'][$getKey][$getKey]))	#If an OK response matches the GET request
                	#NOTE: Go back and make sure an empty array is added to POST results if GET found
                	#		And vice-versa.