Exemplo n.º 1
0
    exit;
}
if (isset($_GET["status"])) {
    enable_form();
    exit;
}
if (isset($_GET["EnableEmergingThreats"])) {
    save();
    exit;
}
if (isset($_GET["list"])) {
    list_threats();
    exit;
}
if (isset($_GET["list_threats"])) {
    list_threads_perform();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body("YahooWin3('400','{$page}?popup=yes','{EmergingThreats}');");
}
function list_threads_perform()
{
    $se = $_GET["se"];
    $se = str_replace("*", ".+", $se);
    $se = str_replace(".", "\\.", $se);
    $tpl = new templates();
Exemplo n.º 2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	
	$usersmenus=new usersMenus();
	if(!$usersmenus->AsArticaAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		exit;
	}	

	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){enable_form();exit;}
	if(isset($_GET["EnableEmergingThreats"])){save();exit;}
	if(isset($_GET["list"])){list_threats();exit;}
	if(isset($_GET["list_threats"])){list_threads_perform();exit;}
	
js();



function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body("YahooWin3('400','$page?popup=yes','{EmergingThreats}');");
	
	
}

function list_threads_perform(){
	$se=$_GET["se"];