Jump to content

can any one help me get my pjirc login 2 work right?


Fun1

Recommended Posts

<body bgcolor="black" text="Green" alink="green" vlink="green" link="green">

<FONT COLOR="GREEN">

 

<?php

define ('IN_PLP', TRUE);

 

include 'config.php';

include 'include/functions.php';

 

$cookie_name = str_replace(" ", "_", $cookie_name);

$cookie_lifetime = math_lifetime($cookie_lifetime);

 

$self = $_SERVER['PHP_SELF'];

 

$delete = isset($_GET['delete'])  ? $_GET['delete']  : '';

$load  = isset($_GET['load'])    ? $_GET['load']    : '';

$save  = isset($_REQUEST['save']) ? $_REQUEST['save'] : '';

 

$jsenabled    = isset($_REQUEST['jsenabled'])    ? $_REQUEST['jsenabled']    : '';

$popupenabled = isset($_REQUEST['popupenabled']) ? $_REQUEST['popupenabled'] : '';

 

if (isset($_COOKIE[$cookie_name])) $cookie_set = TRUE;

 

if ($delete)

{

$cookie_set = FALSE;

set_cookie_vars('delete');

}

 

set_vars();

if ($load) set_cookie_vars('load');

if ($save) set_cookie_vars('save');

 

if ($age == '--' && $sex == '--' && $location == '--') $asl = $altasl;

else $asl = $age.'/'.$sex.'/'.$location;

 

$java_check  = set($java_check);

$layer      = set($layer);

$popup      = set($popup);

$away_script = set($away_script);

 

html(0, '<?xml version="1.0"?>');

?>

<!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>

<title>>><?php echo $title; ?><<</title>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<link rel="shortcut icon" href="favicon.ico" />

<link rel="stylesheet" type="text/css" href="script/chat.css" />

<script type="text/javascript" src="script/chat.js"></script>

<?php

// not existing page chosen -> set Basic Settings page

if ($page != 'advanced' && $page != 'chat') $page = '';

 

// set layout

if ($page == '') $layout = $layout['basic'];

if ($page == 'advanced') $layout = $layout['advanced'];

 

// beginning of loginpage

if ($page == '' || $page == 'advanced'):

?>

</head>

 

<body onload="document.login.nick.focus();" style="margin: 5px;">

 

<div class="invisible"><h1><?php echo $headline; ?></h1></div>

 

<?php

if ($java_check):

html(0, '<script type="text/javascript"><!--');

html(1, 'document.write(JavaCheck());');

html(0, '--></script>');

endif;

 

if ($layer):

$array = array('page' => $page);

$query_string = query_string($array);

html(0, '<script type="text/javascript"><!--');

html(1, 'document.write(WriteLayer(\''.$layer_message.'\'));');

html(0, '--></script>');

endif;

?>

 

<table align="center" width="380" cellspacing="0" cellpadding="0"><tr><td align="center" class="border">

<table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="tall">

<div style="margin-top: 15px; margin-bottom: 0px; margin-left: 15px; margin-right: 15px;">

<hr /><?php echo $headline; ?><hr />

</div>

</td>

</tr>

<tr><td><img src="img/blank.gif" width="1" height="5" alt="" /></td></tr>

<tr>

<td align="center">

<?php

$size = GetImageSize($logo);

html(4, '<a href="'.$link.'" target="_blank">');

html(4, '<img src="'.$logo.'" '.$size[3].' border="0" alt="'.$alt.'" /></a>');

?>

</td>

</tr>

<tr><td><img src="img/blank.gif" width="1" height="5" alt="" /></td></tr>

<tr>

<td align="center">

<?php

$array = array('page' => $page);

$query_string = query_string($array);

?>

<form name="login" action="<?php echo $self; ?>" method="<?php echo $method; ?>" onsubmit="return CheckForm('<?php echo $query_string; ?>')">

<input name="page" type="hidden" value="chat" />

<?php

html(4, '<script type="text/javascript"><!--');

html(5, 'document.writeln(\'<input name="jsenabled" type="hidden" value="1" \/>\');');

if ($popup) html(5, 'document.writeln(\'<input name="popupenabled" type="hidden" value="1" \/>\');');

if ($layer) html(5, 'document.writeln(\'<input name="layerenabled" type="hidden" value="1" \/>\');');

html(4, '--></script>');

?>

<table width="100%" cellspacing="0" cellpadding="0">

<tr>

<td width="150"class="medium">Nickname: </td>

<td width="130"><input name="nick" type="text" value="<?php echo $nick; ?>" class="input" /></td>

<td width="100"> </td>

</tr>

<?php

if (stristr($layout, 'password')):

?>

<tr>

<td class="medium">Password: </td>

<td><input name="pass" type="password" value="<?php echo $pass; ?>" class="input" /></td>

</tr>

<?php

endif;

if (stristr($layout, 'channel')):

?>

<tr>

<td class="medium">Channel: </td>

<td><input name="chan" type="text" value="<?php echo $chan; ?>" class="input" /></td>

</tr>

<?php

endif;

if (stristr($layout, 'server')):

?>

<tr>

<td class="medium">IRC Server: </td>

<td><input name="server" type="text" value="<?php echo $server; ?>" class="input" /></td>

</tr>

<?php

endif;

if (stristr($layout, 'style')):

?>

<tr>

<td class="medium">Applet Style: </td>

<td>

<select name="style" size="1" style="width: 100%;">

<?php

$options_style = array();

foreach ($colorset as $key => $val)

{

$options_style[] = $key;

}

$options_style[] = 'Default';

 

selected(8, $options_style, $style);

?>

</select>

</td>

</tr>

<?php

endif;

if (stristr($layout, 'font')):

?>

<tr>

<td class="medium">Font/Size: </td>

<td>

<select name="font" size="1" style="width: 70%;">

<?php

selected(8, $options_font, $font);

?>

</select><select name="font2" size="1" style="width: 30%;">

<?php

selected(8, $options_font2, $font2);

?>

</select>

</td>

</tr>

<?php

endif;

if (stristr($layout, 'asl')):

?>

<tr>

<td class="medium">Age/Sex: </td>

<td>

<select name="age" size="1" style="width: 70%;">

<?php

$options_age[] = '--';

for($i=$start; $i<=$end; $i++) $options_age[] = $i;

 

selected(8, $options_age, $age);

?>

</select><select name="sex" size="1" style="width: 30%;">

<?php

selected(8, $options_sex, $sex);

?>

</select>

</td>

</tr>

<tr>

<td class="medium">Location: </td>

<td><input name="location" type="text" value="<?php echo $location; ?>" class="input" /></td>

</tr>

<?php

endif;

if (stristr($layout, 'smiley')):

?>

<tr>

<td class="medium">Smileys: </td>

<td>

<?php

$options_smileys = array('Yes' => 1, 'No' => 0);

 

foreach ($options_smileys as $key => $val)

{

$checked = '';

if ($val == $smileys) $checked = ' checked="checked"';

html(7, '<input name="smileys" type="radio" value="'.$val.'"'.$checked.' />'.$key);

}

?>

</td>

</tr>

<?php

endif;

if (stristr($layout, 'save')):

?>

<tr>

<td class="medium">Save Settings: </td>

<?php

$checked = '';

if ($save) $checked = ' checked="checked"';

html(6, '<td><input name="save" type="checkbox"'.$checked.' /></td>');

 

?>

</tr>

<?php

endif;

?>

<tr><td><img src="img/blank.gif" width="1" height="5" alt="" /></td></tr>

<tr><td align="center" colspan="3"><input type="submit" value="Connect" /></td></tr>

</table>

</form>

</td>

</tr>

<tr><td><img src="img/blank.gif" width="1" height="10" alt="" /></td></tr>

<tr>

<td align="center">

<table width="99%" cellspacing="0" cellpadding="0" class="small"><tr>

<?php

if (isset($cookie_set) && $cookie_set)

{

$array        = array('page' => 'advanced', 'load' => '1');

$query_string = query_string($array);

html(5, '<td align="center" width="33%"><a href="'.$query_string.'">Load Settings</a></td>');

}

 

if ($page == '')

{

$settings    = 'Advanced Settings';

$array        = array('page' => 'advanced');

$query_string = query_string($array);

}

if ($page == 'advanced')

{

$settings    = 'Basic Settings';

$query_string = query_string();

}

html(5, '<td align="center" width="33%"><a href="'.$query_string.'">'.$settings.'</a></td>');

 

if (isset($cookie_set) && $cookie_set)

{

$query_string = query_string(array('page' => 'advanced', 'delete' => '1'));

html(5, '<td align="center" width="33%"><a href="'.$query_string.'">Delete Settings</a></td>');

}

?>

</tr></table>

</td>

</tr>

<tr><td><img src="img/blank.gif" width="1" height="5" alt="" /></td></tr>

</table>

</td></tr></table>

 

<?php print_footer(); ?>

</body>

 

<?php

endif;

// ===============================================================================

// == Chatpage ==============================================================

// ===============================================================================

if ($page == 'chat'):

 

$width = '700px';

if ($popupenabled) $width = '100%';

?>

<style type="text/css"><!--

html, body {

width: 100%; height: 100%; margin: 0px;

}

--></style>

</head>

 

<body>

 

<table align="center" cellspacing="0" cellpadding="0" style="width: <?php echo $width; ?>; height: 100%; border: 5px solid #FFFFFF;">

<?php

if (!$popupenabled)

{

html(1, '<tr><td align="left" style="height: 5%;">Back to <a href="'.$self.'">Login</a></td></tr>');

}

?>

<tr>

<td align="center">

<applet codebase="<?php echo $appletpath; ?>" name="pjirc" code="IRCApplet.class" archive="irc.jar,pixx.jar" width="100%" height="100%">

<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab" />

<!-- Mandatory parameters -->

<param name="nick" value="<?php echo $nick; ?>" />

<param name="alternatenick" value="<?php echo $nick; ?>???" />

<param name="host" value="<?php echo $server; ?>" />

<param name="gui" value="pixx" />

<param name="name" value="<?php echo $asl; ?>" />

<param name="userid" value="<?php echo $nick; ?>" />

<param name="command1" value="<?php echo $nickserv_identify_password.' '.$pass; ?>" />

<param name="command2" value="<?php echo $join_channel.' '.$chan; ?>" />

<param name="quitmessage" value="<?php echo $quit_message; ?>" />

<param name="language" value="<?php echo $lang; ?>" />

<param name="lngextension" value="<?php echo $langext; ?>" />

<param name="soundbeep" value="<?php echo $soundpath; ?>bell2.au" />

<param name="soundquery" value="<?php echo $soundpath; ?>ding.au" />

<param name="style:sourcefontrule1" value="all all <?php echo $font.' '.$font2; ?>" />

<param name="pixx:language" value="<?php echo $pixx_lang; ?>" />

<param name="pixx:lngextension" value="<?php echo $langext; ?>" />

<!-- Optional parameters -->

<?php

foreach ($param as $key => $val)

{

html(4, '<param name="'.$key.'" value="'.$val.'" />');

}

 

if ($smileys)

{

html(4, '<param name="style:bitmapsmileys" value="true" />');

 

$x=1;

for ($i=0; isset($smiley[$i][0]); $i++)

{

for ($k=1; isset($smiley[$i][$k]); $k++)

{

$img = $imgpath.$smiley[$i][0];

$smiley[$i][$k] = stripslashes($smiley[$i][$k]);

html(4, '<param name="style:smiley'.$x.'" value="'.$smiley[$i][$k].' '.$img.'" />');

$x++;

}

}

}

 

if (!array_key_exists($style, $colorset)) $style = 'Default';

 

if ($style == 'Default')

{

$color = '084079';

html(4, '<param name="pixx:nickfield" value="true" />');

}

else

{

$color = $colorset[$style][6];

for ($i=0; isset($colorset[$style][$i]); $i++)

{

html(4, '<param name="pixx:color'.$i.'" value="'.$colorset[$style][$i].'" />'.$comment[$i]);

}

}

?>

</applet>

</td>

</tr>

<?php

// ===============================================================================

// == Smileys ===============================================================

// ===============================================================================

if($smileys && $jsenabled): ?>

<tr>

<td style="background-color: #<?php echo $color; ?>; height: 5%;">

<table cellspacing="0" cellpadding="0" style="height: 100%;"><tr>

<td><img src="img/blank.gif" width="60" height="1" alt="" /></td>

<?php

for ($i=0; isset($smiley[$i][0]); $i++)

{

$img  = $appletpath.$imgpath.$smiley[$i][0];

$link = addslashes($smiley[$i][1]);

$alt  = stripslashes($smiley[$i][1]);

if (file_exists($img))

{

$size = GetImageSize($img);

html(5, '<td>');

html(6, '<a href="javascript:smiley(\''.$link.'\')">');

html(6, '<img src="'.$img.'" '.$size[3].' border="0" title="'.$alt.'" alt="'.$alt.'" /></a> ');

html(5, '</td>');

}

else

{

$error = '/'.$img.' doesn\'t exist';

html(5, '<td><a href="javascript:smiley(\''.$link.'\')" title="'.$error.'">'.$alt.'</a> </td>');

}

}

?>

</tr></table>

</td>

</tr>

<?php endif; // end of smileys

// ===============================================================================

// == Away/Back Form ========================================================

// ===============================================================================

if ($away_script && $jsenabled): ?>

<tr>

<td style="height: 5%; vertical-align: bottom;">

<span class="tall">Away Message:</span> <input id="away_reason" type="text" size="30" /> 

<input type="button" value="Set Away" onclick="maway('away', '<?php echo $nick; ?>');" /> 

<input type="button" value="Set Back" onclick="maway('back', '<?php echo $nick; ?>');" />

</td>

</tr>

<?php endif; // end of away script ?>

</table>

 

</body>

 

<?php endif; // end of chatpage ?>

 

 

<!-- Inlive Script Start -->

<a href="http://www.statssheet.com/" target="_top"><img src="http://www.statssheet.com/images/hit_counter_02.gif" border="0" align="middle" vspace="2"></a>

<script type="text/javascript">

<!--

var FCS_Account="5495";

var FCS_Server="http://www.statssheet.com";

var FCS_Offset="0";

var FCS_Sec="9e886e4b377efe990f936dde0d9c98ca";

// -->

</script>

<script type="text/javascript" src="http://www.statssheet.com/inlive.php?usr=5495&offset=0&interval=1&s=9e886e4b377efe990f936dde0d9c98ca">

</script>

<noscript>

<a href="http://www.statssheet.com/" target="_top">

<img src="http://www.statssheet.com/inlive.php?usr=5495&offset=0&interval=1&s=9e886e4b377efe990f936dde0d9c98ca&img=1" border=0 title="web counter" alt="web counter"></a>

</noscript>

<span style="color: #9c9c9c;"><a href="http://www.statssheet.com/" target="_top" style="text-decoration: none; color: #9c9c9c;" title="visitors online">visitors online</a></span>

<!-- Inlive Script  End  -->

 

</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.