Gumslone please can you help me thanks

Started on the old forum in December 2011 · view the original in the archive · old links redirect here

6 replies · 969 views · started 14 years ago · 1 min read

5 participants
brand Senior · 391 posts #1

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

Download
You are not logged in
Or Your session has been expired

Login

code below

<?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();
?>

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

GumSlone Administrator Principal · 1,690 posts #3

brand wrote: 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

Download
You are not logged in
Or Your session has been expired

Login

code below

<?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 rel="nofollow" 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();
?>

your code sucks, realy, you have not closed many html tags correctly, you put the image tag before the html header, there are many many mistakes and errors in it.

to add the missing sid add after <?php this code

$sid = $_REQUEST['sid'];

also close the form tag, and add to it <input type="hidden" name="sid" value="<?=$sid?>" /> and validate your markup with http://validator.w3.org/

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

brand Senior · 391 posts #4

GumSlone wrote: your code sucks, realy, you have not closed many html tags correctly, you put the image tag before the html header, there are many many mistakes and errors in it.

to add the missing sid add after <?php this code

$sid = $_REQUEST['sid'];

also close the form tag, and add to it <input type="hidden" name="sid" value="<?=$sid?>" /> and validate your markup with The W3C Markup Validation Service

thanks gumslone and i dont normaly edit people's coding but i like this and as for my coding suck's i am still learning but i think what i am doing so far in making new coding i am doing well with it and thanks for helping me

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

nclemale36 Lead · 537 posts #5

brand wrote: thanks gumslone and i dont normaly edit people's coding but i like this and as for my coding suck's i am still learning but i think what i am doing so far in making new coding i am doing well with it and thanks for helping me John you been doing this for 4 years aint you learnt anything. ? i wasnt going to say anything but i noticed a few other posts you put up asking for the most simple of things . am fairly sure over the 4 years you been doing this am sure you can work things out for your self by now. and the above quote well erm that is all you do edit other ppls coding .am no expert either i admit but think i can work out simple probs unlike you. Rant over .

brand Senior · 391 posts #6

nclemale36 wrote: John you been doing this for 4 years aint you learnt anything. ? i wasnt going to say anything but i noticed a few other posts you put up asking for the most simple of things . am fairly sure over the 4 years you been doing this am sure you can work things out for your self by now. and the above quote well erm that is all you do edit other ppls coding .am no expert either i admit but think i can work out simple probs unlike you. Rant over .

dave everyone still learning in coding no one can say there are coders because there are new things to learn all the time dave and the stuff i added yes i asked for help to sort things out because i am not 100% in it dave and its like you dave you still learning and dont say ya not because you are dave we all learn new things all the time

thanks gumslone its working great now

(please close this now as all working ok thanks)

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

crazybrumi Super moderator Principal · 1,064 posts #7

dave everyone still learning in coding no one can say there are coders because there are new things to learn all the time dave and the stuff i added yes i asked for help to sort things out because i am not 100% in it dave and its like you dave you still learning and dont say ya not because you are dave we all learn new things all the time

thanks gumslone its working great now

(please close this now as all working ok thanks)[/QUOTE

your just a joke full stop

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close