403Webshell
Server IP : 134.236.49.22  /  Your IP : 216.73.216.114
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/sendoutsite_report.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;
}
}

mysql_select_db($database_IT, $IT);
$query_MAR = "SELECT * FROM addjob";
$MAR = mysql_query($query_MAR, $IT) or die(mysql_error());
$row_MAR = mysql_fetch_assoc($MAR);
$totalRows_MAR = mysql_num_rows($MAR);$colname_MAR = "-1";
if (isset($_GET['id'])) {
  $colname_MAR = $_GET['id'];
}
mysql_select_db($database_IT, $IT);
$query_MAR = sprintf("SELECT * FROM addjob WHERE id = %s", GetSQLValueString($colname_MAR, "int"));
$MAR = mysql_query($query_MAR, $IT) or die(mysql_error());
$row_MAR = mysql_fetch_assoc($MAR);
$totalRows_MAR = mysql_num_rows($MAR);
?>
<!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">
#wrapall {
	font-family: "Angsana New";
	margin: auto;
	width: 800px;
}
#date_reg {
	font-size: 1em;
	font-weight: normal;
	float: left;
	width: 48%;
}
#data_no {
	font-size: 1em;
	font-weight: normal;
	float: right;
	width: 48%;
}
.data_line {
	font-size: 22px;
	font-weight: normal;
	clear: both;
	width: 98%;
	padding-top: 10px;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
	border-bottom-color: #666;
}
@media print{
	#wrapall{width:100%;}
	#btnprint{display:none;}
	}
#sig1 {
	float: left;
	width: 30%;
	border-top-width: thin;
	border-top-style: dotted;
	border-top-color: #333;
}
</style>
</head>

<body>
  <?
 
    $date = date("d-m-Y");
    $time = date("H:i");
    ?>
<div id="wrapall">
  <table width="100%" border="0">
    <tr>
      <td width="25%" rowspan="4" align="center"><img src="images/rws_logo.png" width="162" height="111" /></td>
      <td width="60%" align="center"><h2><strong>** ใบแจ้งงานซ่อม **</strong></h2></td>
      <td width="15%" align="center">  <div class="data_line">
    <input name="btnprint" id="btnprint" type="button" onClick="window.print()" value="Print" />
  </div></td>
    </tr>
    <tr>
      <td align="center">178 MOO 1, BOPHUT BEACH, KOH SAMUI</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td align="center">SURATTHANI 84320 THAILAND </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td height="24" align="center"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel </strong>: +66 77 425 357 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Fax</strong> : +66 77 425 343</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <div class="data_line">&nbsp;&nbsp;<strong>Date/Time ::</strong> &nbsp;<?php echo $row_MAR['datepicker']; ?>:<?php echo $row_MAR['time']; ?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Job ID ::</strong> IT-JOB00<?php echo $row_MAR['id']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Username ::&nbsp;</strong><?php echo $row_MAR['name']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Department ::</strong> <?php echo $row_MAR['department']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Priority &nbsp;::</strong> <?php echo $row_MAR['piority']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Problem ::</strong>&nbsp;<?php echo $row_MAR['problem']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Subject ::</strong> <?php echo $row_MAR['subject']; ?></div>
  <div class="data_line">&nbsp;<strong>&nbsp;Detail ::</strong>&nbsp;<?php echo $row_MAR['details']; ?></div>
  <div class="data_line">&nbsp;</div>
  <div class="data_line">&nbsp;&nbsp;<strong>Status ::</strong>&nbsp;<?php echo $row_MAR['status']; ?></div>
  <div class="data_line">&nbsp;&nbsp;<strong>Comment ::</strong>&nbsp;<?php echo $row_MAR['comment']; ?></div>
  <div class="data_line">&nbsp;&nbsp;
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;.....................................&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...................................
</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&nbsp;หัวหน้าแผนก			</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>แผนก IT</strong>&nbsp;&nbsp;&nbsp;</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>Date/Time ::</strong> <? echo $date."&nbsp;/&nbsp;".$time?></p>
  </div>
</div>
</body>
</html>
<?php
mysql_free_result($MAR);
?>

Youez - 2016 - github.com/yon3zu
LinuXploit