Location: PHPKode > projects > OpenSupports > Opensupports_v2_EN/support/admin/responder2.php
<?php
session_start();
require "config.php";
if($_SESSION[login] != true)
{
header('Location: index.php');
}
if(!isset($_GET['id']))
{
header('Location: admin.php?id=users');
}
if(strlen($_POST['textarea2']) > 5)
{
$fecha = date("d/m/y H:i a");
$comentariosuma = mysql_query("insert into comentariostickets (id,idticket,fecha,autor,contenido,staff) values ('','$_POST[idticket]','$fecha','$_POST[name]','$_POST[textarea2]','si')") or die ("Error el insertar");
$modifica=mysql_query("update tickets set leido='0' where id='$_POST[idticket]'");
$modifica2=mysql_query("update tickets set ultimo='$_POST[name]' where id='$_POST[idticket]'");
$resultate = yes;
//iniciar:mail
$ticekt1 = mysql_query("SELECT * from tickets WHERE id='$_POST[idticket]'");
$ticket = mysql_fetch_array($ticket1);
$user1 = mysql_query("SELECT * from usuarios WHERE nombre='$ticket[user]'");
$user = mysql_fetch_array($user1);

$sendTo = $user[user];
$subject = "Support Center - " . $titulo ." - New Answer";
$headers = "From: ";
$headers .= "<" . $mailprincipal . ">\r\n";
$headers .= "Reply-To: " . $mailprincipal; 
$message =   "Hello,\nYou have recived a have received a response from our Support Center.\nPlase login here to see the answer:" . $url;
mail($sendTo, $subject, $message, $headers);
//temina
}
else
{
$resultate = no;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>

<script>
function mostrar(name) {
div = document.getElementById(name);
div.style.display = '';
if(typeof (actual) != "undefined")
{
cerrar(actual);
}
}

function cerrar(name) {
div = document.getElementById(name);
if(div.style.display != 'none')
{
div.style.display='none';
}
}

</script>
<script language="JavaScript" type="text/javascript"> 
function enviar()
{
    document.departamentoselect.submit();
}
          </script>
<title>Support Center - <?php echo $titulo; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!-- default stylesheet -->
<link rel="stylesheet" type="text/css" media="all" href="index_files/index.css">
<style type="text/css">
<!--
body {
	background-image: url();
	margin-top: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link rel="stylesheet" href="index_files/style.css" type="text/css">
<!-- default javascript -->
<script language="Javascript">
</script>
<script language="Javascript" src="index_files/basejs.js" type="text/javascript"></script>
<style type="text/css">
<!--
.Estilo1 {
	color: #006600;
	font-style: italic;
	font-weight: bold;
}
.Estilo3 {font-weight: bold; color: #006600;}
.Estilo5 {FONT-FAMILY: Verdana, Arial, Helvetica; font-size: 11px;}
.Estilo6 {
	color: #FF0000;
	font-size: 14px;
}
.Estilo7 {color: #000099}
.Estilo4 {font-size: 18px;
	font-weight: bold;
}
.Estilo11 {	FONT-FAMILY: Verdana, Arial, Helvetica;
	font-size: 14px;
	font-weight: bold;
}
.Estilo12 {color: #009933}
.Estilo12 {color: #FF0000}
.Estilo13 {font-size: 14px;
	font-weight: bold;
	color: #006600;
}
.Estilo8 {color: #006600; }
-->
</style>
</head>
</html>
<html>
<head>
</head>
<body>
<center>
  <table align="center" border="0" cellpadding="0" cellspacing="0" width="780">
    <tbody>
      <tr>
        <td style="background-image: url();" valign="top"><table align="center" border="0" cellpadding="0" cellspacing="0" width="750">
          <tbody>
            <tr>
              <td><table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tbody>
                    <tr>
                      <td><table width="100%" border="0" cellpadding="3" cellspacing="0" background="index_files/button-right.jpg">
                        <tbody>
                          <tr>
                            <td class="smalltext" align="left" valign="top"><b><font color="#707070"><a href="index.php" id="navlink"></a>Support Center <img src="login_files/blueblockarrow.gif" width="8" height="8"> Administration <img src="login_files/blueblockarrow.gif" width="8" height="8"> <a href="admin.php">Panel</a> </font></b></td>
                          </tr>
                        </tbody>
                      </table></td>
                    </tr>
                  </tbody>
              </table></td>
            </tr>
            <tr>
              <td><table width="748">
                <tr>
                  <td><div align="center">
                    <p><img src="panel.png" width="128" height="128"></p>
                    <p><span class="Estilo1">Welcome to the Administration Panel </span><span class="Estilo3"></span> (<a href="admin.php?id=cerrar">Close Session</a>) </p>
                  </div></td>
                </tr></table>
                <p align="center"><a href="admin.php"><img src="Back.png" width="70" height="70" border="0"></a> </p>
                <p align="center">
                  <?php
						  if($resultate == yes)
						  {
						  ?>
</p>
                <div align="center">
                  <p class="Estilo13">Success!</p>
                  </div>
                <p>
                  <?php
}
						  ?>
                </p>
                <p>
                  <?php
						  if($resultate == no)
						  {
						  ?>
                </p>
                <div align="center">
                  <p class="Estilo1 Estilo6">Error! </p>
                  </div>
                <?php
}
						  ?>
<p align="center">&nbsp;</p>
				<hr>
				<p align="center">*Select on the up bar an area to admin. </p></td>
            </tr>
            <tr>
              <td colspan="2" height="15"><div align="center"><?php echo $titulo; echo "©"; echo $fecha = date("Y");  ?>. All rights Reserved - Power by <a href="http://www.opensupports.com" class="Estilo7">OpenSupports</a></div></td>
            </tr>
          </tbody>
        </table></td>
      </tr>
    </tbody>
  </table>
</center>
</body>
</html>

Return current item: OpenSupports