コード例 #1
0
ファイル: storage.center.php プロジェクト: BillTheBest/1.6.x
    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 \n\t\tdescription='{$strDescription}', \n\t\tExecuteAfter='{$ExecuteAfter}',\n\t\tcommandline='{$commandline}',\n\t\tMinutesToWait='{$MinutesToWait}'\n\t\tWHERE id_files={$_GET["SavePackegInfos"]}";
    $q = new mysql();
コード例 #2
0
ファイル: storage.center.php プロジェクト: brucewu16899/1.6.x
	
	$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',
		commandline='$commandline',