Example #1
0
    exit;
}
if (isset($_GET["build-smooth-tenir"])) {
    build_smooth_tenir();
    exit;
}
if (isset($_GET["build-smooth"])) {
    build_smooth();
    exit;
}
if (isset($_GET["rethumbnail"])) {
    rethumbnail();
    exit;
}
if (isset($_GET["access-logs"])) {
    access_logs();
    exit;
}
if (isset($_GET["accesslogs"])) {
    accesslogs();
    exit;
}
if (isset($_GET["ufdbguard-logs"])) {
    ufdbguard_logs();
    exit;
}
if (isset($_GET["reprocess-database"])) {
    community_reprocess_category();
    exit;
}
if (isset($_GET["kav4proxy-update-now"])) {
Example #2
0
<?php

include_once(dirname(__FILE__)."/frame.class.inc");
include_once(dirname(__FILE__)."/class.unix.inc");


if(isset($_GET["access-logs"])){access_logs();exit;}






while (list ($num, $line) = each ($_GET)){$f[]="$num=$line";}

writelogs_framework("unable to understand query !!!!!!!!!!!..." .@implode(",",$f),"main()",__FILE__,__LINE__);
die();


function access_logs(){
	$unix=new unix();
	$tail=$unix->find_program("tail");
	$grep=$unix->find_program("grep");
	$search=$_GET["search"];
	if(strlen($search)>1){
		$search=str_replace("*", ".*", $search);
		$cmd="$tail -n 1000 /var/log/squid/access.log|$grep -E \"$search\" 2>&1";
	}else{
		$cmd="$tail -n 500 /var/log/squid/access.log 2>&1";
	}