Nieuw lid |
|
Hey..
Ik ben momenteel nog altijd bezig met chati.be maar zit nu effe vast aan het chatgedeelte.. Ben niet echt zo straf in die zaken.. Het zit dus zo.. Je moet eerst aanmelden om te kunnen chatten omdat je gebruikersnaam je nickname wordt op de chat maar er loopt iets mis.. Je klikt op chat.. je gaat naar de adim om in te loggen met gegeven maar dan zou je naar de chat moeten gaan en dat doet hij niet. Hij gaat terug naar de indexpage
Hier men code :
<?php
// For register_global on PHP settings
$member = $_COOKIE['member'];
session_start();
if (empty($fusion_users) || !isset($fusion_users)) // fail to read the browser cookie
{
if (empty($_SESSION['member']) || !isset($_SESSION['member']))
{
header("Location: login.php"); // redirect user to login
exit;
}
else
{
$member = $_SESSION['member'];
}
}
$hostname='localhost';
$user='54629'; //'user name for MySQL database';
$pass=''; //'Password for database';
$dbase='54629'; //'database name';
$connection = mysql_connect("$hostname" , "$user" , "$pass") or die ("Can't connect to MySQL");
$db = mysql_select_db($dbase , $connection) or die ("Can't select database.");
$qChk = "select id from membership where name='$member' and status='Y' ";
$rsChk = mysql_query($qChk);
if (mysql_num_rows($rsChk) != '1')
{
header("Location: 404.htm");
exit;
}
$name = (isset($_REQUEST['name'])) ? $_REQUEST['name'] : '';
include("header.php");
?>
<center>
<applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=420 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">
<param name="nick" value="<?php echo $_POST['name']; ?>">
<param name="alternatenick" value="ConstructViewer">
<param name="fullname" value="Java User">
<param name="host" value="irc.krey.net">
<param name="gui" value="pixx">
</applet></center>
<?php include("footer.php"); ?>
<?php // For register_global on PHP settings $member = $_COOKIE['member']; if (empty($fusion_users) || !isset($fusion_users)) // fail to read the browser cookie { if (empty($_SESSION['member']) || !isset($_SESSION['member'])) { header("Location: login.php"); // redirect user to login } else { $member = $_SESSION['member']; } } $hostname='localhost'; $user='54629'; //'user name for MySQL database'; $pass=''; //'Password for database'; $dbase='54629'; //'database name'; $connection = mysql_connect("$hostname" , "$user" , "$pass") or die ("Can't connect to MySQL"); $qChk = "select id from membership where name='$member' and status='Y' "; { } $name = (isset($_REQUEST['name'])) ? $_REQUEST['name'] : ''; include("header.php"); ?> <center> <applet code=IRCApplet.class archive="irc.jar,pixx.jar" width=420 height=400> <param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab"> <param name="nick" value=" <?php echo $_POST['name']; ?>"> <param name="alternatenick" value="ConstructViewer"> <param name="fullname" value="Java User"> <param name="host" value="irc.krey.net"> <param name="gui" value="pixx"> </applet></center> <?php include("footer.php"); ?>
Alvast bedankt.
|