예제 #1
0
    exit;
}
if (isset($_GET["popup-add-software"])) {
    popup_add_software();
    exit;
}
if (isset($_GET["upload-iframe"])) {
    upload_iframe();
    exit;
}
if (isset($_GET["sflist"])) {
    echo software_list();
    exit;
}
if (isset($_GET["DelRemoteSoftware"])) {
    echo software_delete();
    exit;
}
if (isset($_GET["SavePackegInfos"])) {
    echo software_edit();
    exit;
}
if (isset($_GET["popup-edit-software"])) {
    echo popup_edit_software();
    exit;
}
js();
function software_edit()
{
    $strDescription = addslashes(nl2br($_GET["description"]));
    $commandline = addslashes($_GET["commandline"]);
예제 #2
0
	
	$user=new usersMenus();
	if(($user->AsSystemAdministrator==false) OR ($user->AsSambaAdministrator==false)) {
		$tpl=new templates();
		$text=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
		$text=replace_accents(html_entity_decode($text));
		echo "alert('$text');";
		exit;
	}
	if($_POST["action"]=="upload"){upload_file();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["popup-add-software"])){popup_add_software();exit;}
	if(isset($_GET["upload-iframe"])){upload_iframe();exit;}
	if(isset($_GET["sflist"])){echo software_list();exit;}
	if(isset($_GET["DelRemoteSoftware"])){echo software_delete();exit;}
	if(isset($_GET["SavePackegInfos"])){echo software_edit();exit;}
	if(isset($_GET["popup-edit-software"])){echo popup_edit_software();exit;}
	

js();	

function software_edit(){
	$strDescription = addslashes(nl2br($_GET["description"]));
	$commandline = addslashes($_GET["commandline"]);
	$ExecuteAfter =  addslashes($_GET["ExecuteAfter"]);
	$MinutesToWait=$_GET["MinutesToWait"];
	
	$sql="UPDATE files_storage SET 
		description='$strDescription', 
		ExecuteAfter='$ExecuteAfter',