hi there i am trying to sort this out so it works with the wapdesire v_2 script and have sorted some of the bits out and not got any problems untill i click the create button then it comes up with
code below
Code:
Download You are not logged in Or Your session has been expired Login
Code:
<?php
/////////////////////////////////////////////////////////////////////////////////////////////////
// //
// GumSmilieGenerator //
// Current Version : 1.0.0 //
// Author : GUMSLONE //
// You you can redistribute it and/or modify this script but please always put author's name //
// Copyright (c) 2008 GumSlone. All rights reserved. //
// Additional scripts can be found at http://www.wapforum.org.uk //
// 24.01.2008 //
/////////////////////////////////////////////////////////////////////////////////////////////////
echo '<?xml version="1.0"?>';
<?php
if(empty($_GET["f"])) $f='y1'; else $f=$_GET["f"];
if(empty($_GET["e"])) $e='3'; else $e=$_GET["e"];
if(empty($_GET["l"])) $l='29'; else $l=$_GET["l"];
if(isset($f)&&isset($l)&&isset($e)) echo '<center><img src="sm_gen.php?f='.$f.'&l='.$l.'&e='.$e.'" alt="smilie"/><br/>
<a href="sm_gen.php?f='.$f.'&l='.$l.'&e='.$e.'"><center>Download</a>';
include "funct.php";
?>
<?php
define('WCS',true);
include('../core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
/////////////////////////GAMES/////////////////////////
addonline(getuid_sid($sid),"Games","");
echo head_tag(getnick_sid($sid)."@Games",1,getnick_sid($sid));
$main.="</p>
<p align=".align().">";
?>
</div>
<form method="get" action="<? echo $_SERVER["PHP_SELF"]; ?>">
<div>
<center>
Create own smilie:<br/>
Face: <select name="f">
<?php
if (!empty($_GET["f"]))echo '<option value="'.$f.'">'.$f.'</option>'; else echo '<option value="">select</option>';
option("faces");
?>
</select><br/>
Lips: <select name="l">
<?php
if (!empty($_GET["l"]))echo '<option value="'.$l.'">'.$l.'</option>'; else echo '<option value="">select</option>';
option("lips");
?>
</select><br/>
Eyes: <select name="e">
<?php
if (!empty($_GET["e"]))echo '<option value="'.$e.'">'.$e.'</option>'; else echo '<option value="">select</option>';
option("eyes");
?>
</select><br/>
<center>
<input type="submit" value="Create" />
</div>
<?php
$main.="</p>\n";
$main.="<p align=".align().">";
$main.="<a $key6 href=\"../inbox/inbox.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Inbox</a>";
$main.="<a $key7 href=\"../buds/buds.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>BuddyList</a>";
$main.="<a $key8 href=\"../chat/public.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Chat</a>";
$main.="<a $key9 href=\"../forums/forums.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Forums</a>";
$main.="<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home<img src=\"../images/home.gif\" alt=\"\"/></a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
?>


Comment