bank error

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

8 replies · 331 views · started 17 years ago · 1 min read

5 participants
brand Senior · 391 posts #1

hi there good coders i am trying to re code a bank so it goes with the wapdesire v_2 script

this is what i done and i keep getting a error on line 55 which it is }

<?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();
}
if($pass!=""){$pw="&pass=$pass";}
if($rid!=""){
$rooms=mysql_fetch_array(mysql_query("SELECT id, name FROM chatrooms WHERE id='".$rid."'"));
$rname=$rooms[1];
$chatlink="&rid=$rid$pw";
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////SITE EXTRAS/////////////////////////

addonline(getuid_sid($sid), "Putting Plusses Into My $sitename Plusses Account ", "");
echo head_tag(getnick_sid($sid)."@The Bank",1,getnick_sid($sid));
$title="<b>Welcome To The $sitename Bank!</b>";
$main="<p align=".align().">";
$main.="<img src=\"../phpThumb/phpThumb.php?src=../smilies/bank1.gif\" alt=\"*\"/><br>";
  $main.="<b>$sitename diposit bank<b/><br/>";
       echo "<p align=\"center\">";
  $main.="<b>Welcome to the bank ".getnick_uid($uid)."</b><br/><br/>"; 
$gps = mysql_fetch_array(mysql_query("SELECT points FROM users WHERE id='".getuid_sid($sid)."'"));
  $main.="You have $gps[0] Points <br/>";
 $main.="<p align=\"center\">";
$main.="<form action=\"diposit.php?action=diposit&sid=$sid\" method=\"post\">";
$main.="Amount dipositing<br/>\n";
$main.="<input name=\"ptg\" maxlength=\"8\"/>\n";
$main.="<br/>";
$main.="<input type=\"submit\" value=\"Diposit\"/>\n";
$main.="</form>\n";
$main.="<img src=\"../phpThumb/phpThumb.php?src=../images/banner_1.png\" alt=\"*\"/>";

[COLOR="Red"]}[/COLOR]
$L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
?>

the error is in red now when i take that out i get error on line 3 and line 4 but i am doing it right is there any chance some one can help me with this please

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Mysterio Lead · 630 posts #2

two things: what arror you get, and which line is 55th?

mysterio.al - programming is a functional art

brand Senior · 391 posts #3

Mysterio3 wrote: two things: what arror you get, and which line is 55th?

i wish ppl would read

the error is in red

Parse error: syntax error, unexpected '[COLOR="Red"]}[/COLOR]' in /home/**********/public_html/bank/bankpage.php on line 55

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

brand Senior · 391 posts #5

NickGriffin wrote: lol ur fix is in the error message it ses unexpected } which means it should be there lol.. ....

i now it should be there but i can not under stand why it says its a error nickgriffin

nickgriffin can u help in this please mate as u recoded a chapel so its on diffrent pages and thats what i am trying to do with the bank

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

icedroplet1987 Senior · 258 posts #6

lol.. u know wat.. i started after u n learnt more than u 😀

WhiteWarrior Principal · 1,419 posts #8

Erm... Error in red??

i cannot see any red.. or am i going colour blind?

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