!c99Shell v. 1.0 pre-release build #16!

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
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/reportEregis111/   drwxr-xr-x
Free 52.63 GB of 127.8 GB (41.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     editMem.php (13.88 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="x-windows-874">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Tangerine">

<link type="text/css" href="css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="js/jquery-ui-1.8.10.offset.datepicker.min.js"></script>
		<script type="text/javascript">
		  $(function () {
		    var d = new Date();
		    var toDay = d.getDate() + '/' + (d.getMonth() + 1) + '/' + (d.getFullYear() + 543);


		    // กรณีต้องการใส่ปฏิทินลงไปมากกว่า 1 อันต่อหน้า ก็ให้มาเพิ่ม Code ที่บรรทัดด้านล่างด้วยครับ (1 ชุด = 1 ปฏิทิน)

		    $("#datepicker-th").datepicker({ dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay, dayNames: ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์'],
              dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
              monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
              monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.','ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.']});

		    $("#datepicker-th-2").datepicker({ changeMonth: true, changeYear: true,dateFormat: 'dd/mm/yy', isBuddhist: true, defaultDate: toDay,dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'],
              dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'],
              monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน','กรกฎาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'],
              monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.','ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.']});

     		    $("#datepicker-en").datepicker({ dateFormat: 'dd/mm/yy'});

		    $("#inline").datepicker({ dateFormat: 'yy/mm/dd', inline: true });


			});
		</script>
		<style type="text/css">

			.demoHeaders { margin-top: 2em; }
			#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
			#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
			ul#icons {margin: 0; padding: 0;}
			ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left;  list-style: none;}
			ul#icons span.ui-icon {float: left; margin: 0 4px;}
			ul.test {list-style:none; line-height:30px;}
		</style>
    <style>
      body {
        font-family: 'Prompt', sans-serif;
        font-size: 16px;
      }
	</style>
	</head>
<nav class="navbar navbar-light bg-primary">
  <a class="navbar-brand" href="#">
    <img src="./img/logo.png" width="40" height="40" alt="">  <font color="#FFFFFF"><b>Consulting system</b></font> 
  </a>
</nav>
<ul class="breadcrumb">
<img src="https://img.icons8.com/flat_round/64/000000/home.png" width="32" height="32"> &nbsp;&nbsp;<b>ชื่อผู้ใช้งาน ::</b>&nbsp;&nbsp;<b>ID:</b>&nbsp;<font color="blue"><?=$_GET['User'] ?></font>&nbsp;&nbsp;<b>ชื่อ-นามสกุล</b>&nbsp;&nbsp;<span class="label label-info"><font color="blue"><?=$_GET['name']?></font></span>
	&nbsp;&nbsp;&nbsp;&nbsp;<b>แก้ไขผลการให้คำปรึกษาสำหรับนักศึกษาพยาบาลศาสตรบัณฑิต</b>
</ul>
<script>
	function goBack() {
		window.history.back();
	}
</script>
<?php
$curDate=date("Y-m-d H:i:s");
include_once("classes/Crud.php");
$crud = new Crud();
$id = $crud->escape_string($_GET['id']);
$result = $crud->getData("SELECT * FROM consulting WHERE id=$id");
foreach ($result as $resf) {
?>
<form name="memmo" id="memmo" action="addDataUp.php" method="post">
<table class="table">
	<tbody>
	<tr>
		<td align="left">
		<div class="form-group">
    	<label for="round"><b>รอบการให้คำปรึกษา/ครั้งที่</b></label>
    	<input type="number" class="form-control" id="round"  placeholder="รอบที่" name="round" value="<?= $resf['round'] ?>" >
		  </div>
		</td>
	</tr>
	<tr>
		<td align="left">
		<div class="form-group">
		<label for="proDate"><b>กรอกวันที่ คลิ๊กเพื่อเลือกจากปฏิทินด้านล่าง</b>(วันที่บันทึก/อัพเดทข้อมูล)</label>
    	<input type="text" class="form-control"  name="proDate"  id="datepicker-th" required>
		  </div>
		  </td>
	</tr>
	<?php
		$termConfig = "SELECT * FROM TermConfig WHERE CURDATE() BETWEEN  tmcFrDate AND tmcToDate  ";
		$result = $crud->getData($termConfig);
		foreach ($result as $key => $res) {$academicYear=$res['tmcAcY'];$term=$res['tmcTmId'];}
	?>
	<tr>	
		<td align="left">
		<div class="form-group">
    	<label for="round"><b>ภาคการศึกษาที่</b> (ภาคการศึกษาที่ 3 หมายถึง ภาคการศึกษาฤดูร้อน)</label> 
		<select class="custom-select" id="term"   name="term">
  			<option value="<?=$term?>" selected><?=$term?></option>
  			<option value="1">1</option>
  			<option value="2">2</option>
			<option value="3">3</option>
  			
		  </select>
		  </div>
		  </td>
	</tr>
	<tr>
	<td align="left">
		<div class="form-group">
    	<label for="round"><b>ปีการศึกษา</b></label>
		<select class="custom-select" id="academic_year"   name="academic_year">
  			<option value="<?=$academicYear?>" selected><?=$academicYear?></option>
  			<option value="<?=$$academicYear-1?>"><?=$academicYear-1?></option>
  			
		  </select>
		  </div>
		  </td>
	</tr>
	<td align="left">
		<div class="form-group">
    	<label for="amountj"><b>จำนวนนักศึกษาที่เข้าร่วมกิจกรรม/คน</b></label>
    	<input type="number" class="form-control" id="amountj"   name="amountj"  value="<?=$resf['amountj']?>" required>
		  </div>
		  </td>
	</tr>
	<td align="left">
		<div class="form-group">
    	<label for="amountnj"><b>จำนวนนักศึกษาที่ไม่เข้าร่วมกิจกรรม/คน</b></label>
    	<input type="number" class="form-control" id="amountnj"   name="amountnj" value="<?=$resf['amountnj']?>" required>
		  </div>
		  </td>
	</tr>
	<td align="left">
		<div class="form-group">
    	<label for="reason"><b>สาเหตุที่ไม่เข้าเนื่องจาก</b></label>
    	<input type="text" class="form-control" id="reason"   name="reason" value="<?=$resf['reason']?>" required>
		  </div>
		  </td>
	</tr>

	<tr>
		<td align="center">

<table class="table">
  <thead class="thead-dark">
    <tr>
	  <th>การเข้าร่วม</th>
	  <th>รหัสนักศึกษา</th>
      <th>ชื่อ-นามสกุล</th>
      <th>GPA</th>
	  <th>ชั้นปี</th>
	  <th class="text-center">รูปภาพ</th>
    </tr>
  </thead>
  <tbody>
  <?php
		$name=1;
  		$keyData=$_GET['User'];
		$studentAll = "SELECT * FROM realAdviser WHERE officerCode='$keyData' AND  advAcY='$academicYear'  ";
		$results = $crud->getData($studentAll);
		foreach ($results as $key => $res1) {
		$codediff=$res1['advStdId'];
		$studentGpax = "SELECT *,CAST(ROUND(GPA,2) as  DECIMAL (18,2) )as GPA1  FROM Student  WHERE studentId='$codediff' "; //ORDER BY ssmAcY DESC , ssmTmId DESC  LIMIT 1
		$resultGpax = $crud->getData($studentGpax);
		foreach ($resultGpax as $key => $res2) {
			$GPA=$res2['GPA1'];
			$studentYear=$res2['studentYear'];
		}

	?>
    <tr>
	  <th>
	   <div class="custom-control custom-checkbox">
		  <input type="checkbox" id="per<?=$name?>" name="per<?=$name?>" class="custom-control-input" value="<?=$res1['advStdId']?>" 
		  <?php  
		 if($resf['per'.$name]!=""){ echo "checked";}
		 ?>>
  		<label class="custom-control-label" for="per<?=$name?>"><font color="red">เข้าร่วม</font></label> 
		</div>
	  </th>
	  <th><?=$res1['studentCode']?></th>
      <td><?=$res1['sprefix'].$res1['studentName']." ".$res1['studentSurname']?></td>
     <td><?=$res2['GPA1']?></td>
	  <td><?=$res2['studentYear']?></td>
	  <td class="text-center"><img src="http://reg.bcnu.ac.th/mis//uploads/eregis/pictureStd/<?=$res1['sdtPicturePath']?>"></td>
	</tr>
	<?php
	$name++;
	}
	?>
  </tbody>
</table>


<tr>
		<td align="center">

		<table class="table">
				<thead class="thead-dark">
				<tr>
								<th>หัวข้อให้คำปรึกษา</th>
								<th>บันทึกผลการให้คำปรึกษา</th>
				</tr>
				</thead>

				<tbody>
				<tr>
					<td valign="top">
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s9" value="1" name="s9" <?php if($resf['s9']==1) echo checked ?>>
  						<label class="custom-control-label" for="s9">  การเรียนการปรับตัวในการใช้ชีวิต</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s10" value="1" name="s10" <?php if($resf['s10']==1) echo checked ?>>
  						<label class="custom-control-label" for="s10">  การก้าวเข้าสู่วิชาชีพ</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s11" value="1" name="s11" <?php if($resf['s11']==1) echo checked ?>>
  						<label class="custom-control-label" for="s11">  การเสริมสร้างทัศนคติทางบวก</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s1" value="1" name="s1" <?php if($resf['s1']==1) echo checked ?>>
  						<label class="custom-control-label" for="s1">  การเรียน</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s2" value="1" name="s2" <?php if($resf['s2']==1) echo checked ?>>
  						<label class="custom-control-label" for="s2">  สุขภาพ</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s3" value="1" name="s3" <?php if($resf['s3']==1) echo checked ?>>
  						<label class="custom-control-label" for="s3">  การเงิน</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s4" value="1" name="s4" <?php if($resf['s4']==1) echo checked ?>>
  						<label class="custom-control-label" for="s4">  ความรัก</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s5" value="1" name="s5" <?php if($resf['s5']==1) echo checked ?>>
  						<label class="custom-control-label" for="s5">  เพื่อน</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s6" value="1" name="s6" <?php if($resf['s6']==1) echo checked ?>>
  						<label class="custom-control-label" for="s6">  กิจกรรมพัฒนานักศึกษาและทำนุบำรุงศิลปะฯ</label>
						</div>
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s7" value="1" name="s7" <?php if($resf['s7']==1) echo checked ?>>
  						<label class="custom-control-label" for="s7">  จิตอาสา</label>
						</div>			
						<div class="custom-control custom-checkbox">
  						<input type="checkbox" class="custom-control-input" id="s8" value="1" name="s8" <?php if($resf['s8']==1) echo checked ?>>
  						<label class="custom-control-label" for="s8">  อื่นๆ</label>
						</div>			
						<div class="form-group">
    					<input type="text" class="form-control" id="other"  placeholder="ระบุ" name="other" value="<?= $resf['other'] ?>">		
  						</div>
					</td>
					<td valign="top"><textarea name="result" cols="50" rows="8"><?= $resf['result'] ?></textarea></td>

				</tr>
				</tbody>
			</table>


		</td>
	</tr>

	<tr>
		<td colspan="2" align="left"><b>ปัญหาที่พบจากการให้คำปรึกษา คือ ::</b><br>
			<label for="option-two" class="pure-radio">
				<input id="option-two" type="radio" name="problem" value="N" <?php if($resf['problem']=="N") echo checked?>>
				ไม่มีปัญหา
			</label><br>

			<label for="option-three" class="pure-radio">
				<input id="option-three" type="radio" name="problem" value="Y" <?php if($resf['problem']=="Y") echo checked?>>
				มีปัญหา
			</label>
		</td>
	</tr>
	<tr>
		<td align="left" ><b>รายละเอียดของปัญหาที่พบจากการให้คำปรึกษา คือ ::</b><br>
			<textarea name="ploblemDetail" cols="50" rows="3"><?= $resf['ploblemDetail'] ?></textarea>
		</td>
	</tr>
	<tr>
		<td  align="left"><b>ท่านสามารถจัดการกับปัญหาได้ด้วยตนเองหรือไม่</b><br>
			<label for="option-two" class="pure-radio">
				<input id="option-two" type="radio" name="probManage" value="Y" <?php if($resf['probManage']=="Y") echo checked?>>
				จัดการได้
			</label><br>

			<label for="option-three" class="pure-radio">
				<input id="option-three" type="radio" name="probManage" value="S" <?php if($resf['probManage']=="S") echo checked?>>
				ส่งต่อไปยังงานแนะแนวและให้คำปรึกษา
			</label>
		</td>
	</tr>
	<tr>
		<td  align="left"><b>หากท่าน <u>ไม่สามารถ</u> จัดการได้ด้วยตนเอง
							ท่านสามารถส่งต่อปัญหานี้ให้กับหน่วยงาน/ผู้เกี่ยวข้อง คือ</b><br>
			<label for="option-two" class="pure-radio">
				<input id="option-two" type="radio" name="probSend" value="Y" <?php if($resf['probSend']=="Y") echo checked?>>
				ส่งต่อไปยังงานแนะแนวและให้คำปรึกษา
			</label><br>

			<label for="option-three" class="pure-radio">
				<input id="option-three" type="radio" name="probSend" value="N" <?php if($resf['probSend']=="N") echo checked?>>
				ไม่ส่งต่อ
			</label>
		</td>
	</tr>
	<tr>
		<td  align="left"><b>อาจารย์ที่ปรึกษา</b>  <?=$_GET['name']?><br> ID::<?=$_GET['User']?> <input type="hidden" name="name" value="<?=$_GET['name']?>"><input type="hidden" name="userID" value="<?=$_GET['User']?>"><input type="hidden" name="id" value="<?=$id?>"></td>
	</tr>

	<tr>
		<td  align="left"><button class="pure-button">แก้ไขผลการให้คำปรึกษา</button>
		</td>
	</tr>


	</tbody>
</table>
</form>
<?php
}
?>
<?php
	function DateThai($strDate)
	{
		$strYear = date("Y",strtotime($strDate))+543;
		$strMonth= date("n",strtotime($strDate));
		$strDay= date("j",strtotime($strDate));
		$strHour= date("H",strtotime($strDate));
		$strMinute= date("i",strtotime($strDate));
		$strSeconds= date("s",strtotime($strDate));
		$strMonthCut = Array("","มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
		$strMonthThai=$strMonthCut[$strMonth];
		return "$strDay $strMonthThai $strYear เวลา $strHour:$strMinute น.";
	}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.006 ]--