exit;
}
if (isset($_GET["main"])) {
    switch_tabs();
    exit;
}
if (isset($_GET["SAVE_KAS"])) {
    SAVEPOST();
    exit;
}
if (isset($_GET["ajax"])) {
    kas_js();
    exit;
}
if (isset($_GET["ajax-pop"])) {
    kas_pop();
    exit;
}
INDEX_KAS();
function kas_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{APP_KAS3}');
    $datas = file_get_contents("js/kas.js");
    $html = "\n\t{$datas}\n\tYahooWin(500,'{$page}?ajax-pop=yes','{$title}');\n\t\n\t";
    echo $html;
}
function kas_pop_Selectedpage()
{
    include_once 'kas-tabs.php';
Beispiel #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.artica.inc');
	include_once('ressources/class.kas-filter.inc');
	
	
$usersmenus=new usersMenus();
$artica=new artica_general();
if($usersmenus->AllowChangeKas==false){die('No permissions');exit;}
if(isset($_GET["main"])){switch_tabs();exit;}
if(isset($_GET["SAVE_KAS"])){SAVEPOST();exit;}
if(isset($_GET["ajax"])){kas_js();exit;}
if(isset($_GET["ajax-pop"])){kas_pop();exit;}
if(isset($_POST["rebuildtables"])){kas_rebuild_tables();exit;}


INDEX_KAS();

function kas_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_KAS3}');
	$datas=file_get_contents("js/kas.js");
	$html="
	$datas
	YahooWin(500,'$page?ajax-pop=yes','$title');
	
	";