예제 #1
0
    exit;
}
if (isset($_GET["script"])) {
    main_switch_scripts();
    exit;
}
if (isset($_GET["save"])) {
    save();
    exit;
}
if (isset($_GET["status"])) {
    Status();
    exit;
}
if (isset($_GET["DelCompon"])) {
    DelCompon();
    exit;
}
if (isset($_POST["AddCompon"])) {
    AddCompon();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["UpdateRetransloatorNow"])) {
    update_now();
    exit;
}
js();
예제 #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.retranslator.inc');
	include_once('ressources/class.ini.inc');

	
	$user=new usersMenus();
	if($user->blkid_installed==false){header('location:users.index.php');exit();}
	if($user->AsSystemAdministrator==false){header('location:users.index.php');exit();}
	
	if(isset($_GET["main"])){main_switch();exit;}
	if(isset($_GET["script"])){main_switch_scripts();exit;}
	if(isset($_GET["save"])){save();exit;}
	if(isset($_GET["status"])){Status();exit;}
	if(isset($_GET["DelCompon"])){DelCompon();exit;}
	if(isset($_POST["AddCompon"])){AddCompon();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["UpdateRetransloatorNow"])){update_now();exit;}
	
	js();
	
	
	
function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{APP_KRETRANSLATOR}","artica.update.php");
	$prefix="retranslator";
	$html="
	var {$prefix}tant=0;