403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/reportservice/1/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/reportservice/1/inventory_details.php
<?php require_once('Connections/IT.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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_Computer = "-1";
if (isset($_GET['id'])) {
  $colname_Computer = $_GET['id'];
}
mysql_select_db($database_IT, $IT);
$query_Computer = sprintf("SELECT * FROM table_computer WHERE id = %s", GetSQLValueString($colname_Computer, "int"));
$Computer = mysql_query($query_Computer, $IT) or die(mysql_error());
$row_Computer = mysql_fetch_assoc($Computer);
$totalRows_Computer = mysql_num_rows($Computer);
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Untitled Document</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style type="text/css">
#wrapall {
	width: 80%;
	margin: auto;
	position: static;
}
@media print{
	#wrapall{width:100%;}
	#btnprint{display:none;}
	}
</style>
</head>

<body>
<div id="wrapall">
  <table width="100%" border="0">
    <tr>
      <td colspan="6" align="center"><table width="100%" border="0">
        <tr>
          <td width="45%" height="89">&nbsp;</td>
          <td width="40%"><strong><img src="images/R24pic.gif" width="95" height="87" /></strong></td>
          <td width="15%">&nbsp;</td>
        </tr>
      </table>
      <p><strong>แบบบันทึกข้อมูลอุปกรณ์ฝ่ายเทคโนโลยีสารสนเทศ ( IT Depaerment )</strong></p></td>
    </tr>
    <tr>
      <td width="14%" height="35">&nbsp;</td>
      <td colspan="4" align="center" class="btn-info"><strong>ข้อมูลผู้ใช้งาน</strong></td>
      <td width="5%">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td width="20%" align="center">รหัสอุปกรณ์</td>
      <td width="27%"><strong>: <?php echo $row_Computer['device_id']; ?></strong></td>
      <td width="9%" align="center">สังกัดแผนก</td>
      <td width="25%"><strong>: <?php echo $row_Computer['department']; ?></strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">ชื่อผู้ใช้งาน </td>
      <td><strong>: <?php echo $row_Computer['username']; ?></strong></td>
      <td align="center">IP Address</td>
      <td><strong>: <?php echo $row_Computer['ip']; ?></strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">ตำแหน่งงาน</td>
      <td><strong>: <?php echo $row_Computer['position']; ?></strong></td>
      <td align="center">สถานะ</td>
      <td><strong>: Working</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">วันที่ซื้อ</td>
      <td><strong>: <?php echo $row_Computer['date_pr']; ?></strong></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="34">&nbsp;</td>
      <td colspan="4" align="center" class="btn-info"><strong>ข้อมูลด้าน Hardware</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center"><strong>Hardware</strong></td>
      <td align="center"><strong>Specification</strong></td>
      <td align="center"><strong>Checked</strong></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">CPU</td>
      <td><strong>: <?php echo $row_Computer['cpu']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Mainboard</td>
      <td><strong>: <?php echo $row_Computer['mainboard']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Ram</td>
      <td><strong>: <?php echo $row_Computer['ram']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">VGA Adapter</td>
      <td><strong>: <?php echo $row_Computer['vga']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Harddisk</td>
      <td><strong>: <?php echo $row_Computer['harddisk']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Optical Drive</td>
      <td><strong>: <?php echo $row_Computer['optical_drive']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Ploppy Drive</td>
      <td><strong>: N/A</strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Monitor</td>
      <td><strong>: <?php echo $row_Computer['monitor']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Mouse</td>
      <td><strong>: <?php echo $row_Computer['mouse']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Keyboard</td>
      <td><strong>: <?php echo $row_Computer['keyboard']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Network Adapter</td>
      <td><strong>: <?php echo $row_Computer['network']; ?></strong></td>
      <td align="center">Pass</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="37">&nbsp;</td>
      <td colspan="4" align="center" class="btn-info"><strong>ข้อมูลระบบ</strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">Operating System</td>
      <td><strong>: <?php echo $row_Computer['os']; ?></strong></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td align="center">License</td>
      <td><strong>: <?php echo $row_Computer['license']; ?></strong></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="2" align="center">..........................................................</td>
      <td colspan="2" align="center">..........................................................</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="2" align="center"><strong>Mr. Mana Duangsri</strong></td>
      <td colspan="2" align="center"><strong><?php echo $row_Computer['username']; ?></strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="2" align="center"><strong>IT Supervisor</strong></td>
      <td colspan="2" align="center"><strong><?php echo $row_Computer['position']; ?></strong></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td colspan="2" align="center">ผู้บันทึก</td>
      <td colspan="2" align="center">ผู้ถือครอง</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input name="btnprint" id="btnprint" type="button" onClick="window.print()" value="Print" /></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
</div>
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php
mysql_free_result($Computer);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit