Location: PHPKode > projects > Psichat > psichat/chat/prvein.php
<html><head><meta http-equiv="expires" content="1209600">
<style type="text/css"> <!-- input{ color:#0000CC; } .Feld { background-color:#F0F0F0; width:100%; border:2px solid #A0A0A0; font-family: Verdana,Arial,Helvetica; font-size: 15px;} --> </style>
<script type="text/javascript"> <!--
function setzefocus(){if (typeof(parent.prvein.document.eingabeform)=="object"){parent.prvein.document.eingabeform.nachricht.focus();}}
//--> </script></head><body bgcolor="#C0C0C0" onload="setzefocus()">
<?php
if(($nick = $HTTP_POST_VARS['nick']) == "") $nick = $HTTP_GET_VARS['nick'];
if(($sid = $HTTP_POST_VARS['sid']) == "") $sid = $HTTP_GET_VARS['sid'];
if(($puser = $HTTP_POST_VARS['puser']) == "") $puser = $HTTP_GET_VARS['puser'];
if(($nachricht = htmlspecialchars($HTTP_POST_VARS['nachricht'], ENT_NOQUOTES) ) == "") $nachricht = htmlspecialchars($HTTP_GET_VARS['nachricht'], ENT_NOQUOTES);
$nachricht = str_replace('"', '&quot;', $nachricht);

include("varinfo.php");
include("../lib.php");

$banwert1 = getslot('../'.$varver.'chat/ba/'.strtolower($nick), 0, 0);
$banwert2 = getslot('../'.$varver.'chat/ba/'.getenv("REMOTE_ADDR"), 0, 0);
if($banwert1 != "" || $banwert2 != "")
{
	if($banwert1+86400 < date("U") && $banwert2+86400 < date("U"))
	{
		unlink('../'.$varver.'chat/ba/'.strtolower($nick).'.000');
		unlink('../'.$varver.'chat/ba/'.getenv("REMOTE_ADDR").'.000');
	}
	else
	{
		exit();
	}
}

$logwerte = getslot('../'.$varver.'chat/'.strtolower($nick), 0, 5);
if($sid == $logwerte[1] && getenv("REMOTE_ADDR") == $logwerte[2])
{
	if($nachricht != "" && $nachricht[0] != '/')
	{
		while(getslot('../'.$varver.'chat/pr/'.strtolower($puser), 0, 0)+1 >= plusunix()) {usleep(10000);}
		$msgneu = "";
		$msgneu[0] = plusunix();
		$msgneu[1] = $nick;
		$msgneu[2] = $nachricht;
		putslot('../'.$varver.'chat/pr/'.strtolower($puser), 0, $msgneu);
		$msgneu[1] = $puser;
		putslot('../'.$varver.'chat/pr/'.strtolower($nick), 3, $msgneu);
	}

	echo '<table border="0" style="table-layout:fixed" width="100%" height="100%"><tr><td align="center" valign="top">';
	echo '<form name="eingabeform" method="post" action="prvein.php" style="display:inline" width="100%">';
	echo '<input class="Feld" type="text" name="nachricht" value="" size="75">';
	echo '<input type="hidden" name="nick" value="'.$nick.'">';
	echo '<input type="hidden" name="sid" value="'.$sid.'">';
	echo '<input type="hidden" name="puser" value="'.$puser.'">';
	echo '</td></tr></table>';
}


?></body></html>
Return current item: Psichat