Exemplo n.º 1
0
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["search"])) {
    search();
    exit;
}
if (isset($_GET["select-tasks"])) {
    select_tasks();
    exit;
}
if (isset($_GET["select-script"])) {
    select_script();
    exit;
}
if (isset($_GET["select-function"])) {
    select_function();
    exit;
}
table();
function table()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $purge_catagories_database_explain = $tpl->javascript_parse_text("{purge_catagories_database_explain}");
    $purge_catagories_table_explain = $tpl->javascript_parse_text("{purge_catagories_table_explain}");
    $items = $tpl->_ENGINE_parse_body("{items}");
Exemplo n.º 2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.mysql.squid.builder.php');
	$user=new usersMenus();
	if(!$user->AsSquidAdministrator){$tpl=new templates();echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";exit;}
	
	if(isset($_GET["search"])){search();exit;}
	if(isset($_GET["select-tasks"])){select_tasks();exit;}
	if(isset($_GET["select-script"])){select_script();exit;}
	if(isset($_GET["select-function"])){select_function();exit;}
	
	
table();

	

function table(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$sock=new sockets();
	$purge_catagories_database_explain=$tpl->javascript_parse_text("{purge_catagories_database_explain}");
	$purge_catagories_table_explain=$tpl->javascript_parse_text("{purge_catagories_table_explain}");
	$items=$tpl->_ENGINE_parse_body("{items}");
	$size=$tpl->_ENGINE_parse_body("{size}");
	$SaveToDisk=$tpl->_ENGINE_parse_body("{SaveToDisk}");
	$addCat=$tpl->_ENGINE_parse_body("{add} {category}");
	$description=$tpl->_ENGINE_parse_body("{description}");
	$task=$tpl->_ENGINE_parse_body("{task}");