Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-06-2005, 01:32 PM please help
Skilled Talker

Posts: 52
Trades: 0
i have a small web/wap based site and I have wrote a file that lets me edit things on the site and its saying there is an error in it but after many hours of looking at it I cant find it, would some kind person have a look at it and see if they can find it
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
 
Register now for full access!
Old 04-06-2005, 03:08 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
Post the address and the source code and everyone will look at it for ya

-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2005, 08:11 AM
Skilled Talker

Posts: 52
Trades: 0
PHP Code:
<?php

include('../scripts/header.php');
include(
'../scripts/session.inc');
include(
'../scripts/config.inc');

$posts=$row_ses["posts"];
$group $row_ses["userlevel"];
$banstatus=$row_ses["ban_status"];
$banwhy=$row_ses["ban_why"];
$banby=$row_ses["ban_by"];

$login=$row_ses["username"];

$trust=$row_ses["circle_of_trust"];



if (
$act == "preferences")


$act_query "UPDATE forum_users set lastactive=now(), location='preference options' where username='$login'";
mysql_query($act_query);

$act_query "UPDATE friends set lastactive=now(), location='preference options' where friendname='$login'";
mysql_query($act_query);


echo 
"<card title=\"$login@options\"><p align=\"center\"><b>forum options</b>$inboxes<br/>$breaker<br/>";

echo 
"<a href=\"./options.php?ses=$ses&amp;act=inbox\">new msg alert</a><br/>";
echo 
"<a href=\"./options.php?ses=$ses&amp;act=tmax\">topics per page</a><br/>";
echo 
"<a href=\"./options.php?ses=$ses&amp;act=pmax\">posts per page</a><br/>";
echo 
"<a href=\"./options.php?ses=$ses&amp;act=sicn\">icon display</a><br/>";
echo 
"<a href=\"./avatars/index.php?ses=$ses&amp;act=do\">my pic</a><br/>";
echo 
"<a href=\"./site.php?ses=$ses\">icon list</a><br/>";


echo 
"<br/><a href=\"index.php?ses=$ses\">options menu</a>
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/>

<do type=\"accept\" label=\"main menu\">
     <go href=\"../mainmenu.php?ses=
$ses\"/>
     </do>

     <do type=\"accept\" label=\"mailbox\">
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"forums\">
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/>
     </do>

      <do type=\"accept\" label=\"who's online?\">
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"buddy list\">
     <go href=\"../friends/index.php?ses=
$ses\"/>
     </do>
    </p></card></wml>"
;
    exit;



if (
$act == "getgtwo")


$act_query "UPDATE forum_users set lastactive=now(), location='moderation' where username='$login'";
mysql_query($act_query);

$act_query "UPDATE friends set lastactive=now(), location='moderation' where friendname='$login'";
mysql_query($act_query);

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>moderation</b>$inboxes<br/>$breaker<br/>you are $trust the circle of trust.";

echo 
"</p><p>";

if ( 
$group == ) echo "<br/><a href=\"./index2.php?ses=$ses&amp;act=delposts\">delete posts</a>";
if ( 
$group == ) echo "<br/><a href=\"./index2.php?ses=$ses&amp;act=adele\">delete users</a>";

        if (
$trust == "inside")

if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=moddinsert\">create a user</a>";


echo 
"<br/><br/><a href=\"index.php?ses=$ses\">options menu</a>
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>more options will be added in the future, any suggestions to my inbox please.<br/>$breaker<br/>


<do type=\"accept\" label=\"main menu\">
     <go href=\"../mainmenu.php?ses=
$ses\"/>
     </do>

     <do type=\"accept\" label=\"mailbox\">
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"forums\">
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/>
     </do>

      <do type=\"accept\" label=\"who's online?\">
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"buddy list\">
     <go href=\"../friends/index.php?ses=
$ses\"/>
     </do>

    </p></card></wml>"
;
    exit;


if (
$act == "getgone")


$act_query "UPDATE forum_users set lastactive=now(), location='administration' where username='$login'";
mysql_query($act_query);

$act_query "UPDATE friends set lastactive=now(), location='administration' where friendname='$login'";
mysql_query($act_query);

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>administration</b>$inboxes<br/>$breaker<br/>you are $trust the circle of trust.<br/>";



if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;trust=circle\">circle of trust</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=visibility\">online visibility</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=validinst\">validation instruction</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=open\">welcome message</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=changelog\">alter usernames</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=admail\">user email</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=groupinfo\">user groups</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adpass\">user passwords</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adposts\">user post count</a>";
if ( 
$group == ) echo "<br/><a href=\"./index2.php?ses=$ses&amp;act=delposts\">delete posts</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=moveposts\">move posts</a>";
if ( 
$group == ) echo "<br/><a href=\"./index2.php?ses=$ses&amp;act=adele\">delete users</a>";
if ( 
$group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adinsert\">create a user</a>";`
if ( 
$group == 1 ) echo "<br/><a href=\"./insert.php?ses=$ses&amp;act=admsgs\">clean mail</a>";

echo "<br/><a href=\"./index.php?ses=
$ses\">options menu</a>
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/>


<do type=\"accept\" label=\"main menu\">
     <go href=\"../mainmenu.php?ses=
$ses\"/>
     </do>

     <do type=\"accept\" label=\"mailbox\">
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"forums\">
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/>
     </do>

      <do type=\"accept\" label=\"who's online?\">
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"buddy list\">
     <go href=\"../friends/index.php?ses=
$ses\"/>
     </do>

    </p></card></wml>";

    exit;


if (
$act == "adele")




echo "<card title=\"
$login@options\"><p align=\"center\"><b>kill people</b>$inboxes<br/>$breaker";

echo "<br/>user delete options<br/>";


if ( 
$group <= 2 ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adele\">delete by name</a>";
if ( 
$group <= 2 ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=pdele\">delete by posts</a>";
if ( 
$group <= 2 ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=visidele\">delete by visits</a>";

echo "<br/><a href=\"./index.php?ses=
$ses\">options menu</a>
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/>


<do type=\"accept\" label=\"main menu\">
     <go href=\"../mainmenu.php?ses=
$ses\"/>
     </do>

     <do type=\"accept\" label=\"mailbox\">
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"forums\">
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/>
     </do>

      <do type=\"accept\" label=\"who's online?\">
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"buddy list\">
     <go href=\"../friends/index.php?ses=
$ses\"/>
     </do>

    </p></card></wml>";
    exit;


#============================================================================================================

if (
$act == "delposts")



echo "<card title=\"
$login@options\"><p align=\"center\"><b>remove forum messages</b>$inboxes<br/>$breaker";

echo "<br/>user delete options<br/>";


if ( 
$group == 1 ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adtopics\">delete by username</a>";
if ( 
$group == 1 ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=oldtopics\">delete by date</a>";


echo "<br/><a href=\"./index.php?ses=
$ses\">options menu</a>
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/>


<do type=\"accept\" label=\"main menu\">
     <go href=\"../mainmenu.php?ses=
$ses\"/>
     </do>

     <do type=\"accept\" label=\"mailbox\">
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"forums\">
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/>
     </do>

      <do type=\"accept\" label=\"who's online?\">
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/>
     </do>

     <do type=\"accept\" label=\"buddy list\">
     <go href=\"../friends/index.php?ses=
$ses\"/>
     </do>

echo "</p></card></wml>";
    exit;
?>
here is the code can anyone spot the error as i cant

Last edited by 0beron; 04-07-2005 at 05:18 PM.. Reason: Added [php ] tags
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
Old 04-07-2005, 03:15 PM
KML9870's Avatar
One Bad Mamma :-)

Posts: 5,489
Name: Kandi
Location: Western NY
Trades: 0
What error specific error are you getting? Is it a parse error? Is it giving you a line number?
KML9870 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2005, 05:18 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Moved to the PHP forum, you might get some better response this way.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-07-2005, 06:08 PM
Skilled Talker

Posts: 52
Trades: 0
Parse error: parse error, unexpected $ in /index2.php on line 282

line 282 is the line with ?> on it at the end

Last edited by lee-buck-9-uk; 04-07-2005 at 06:11 PM..
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
Old 04-07-2005, 06:28 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Sounds like something has gone wrong earlier on in the file. Look at your code in the above post, I've put tags round it so we see the syntax highlighting. About halfway down, it changes to be all blue in colour, round about the line
PHP Code:
if ( $group == ) echo "<br/><a href=\"./options.php?ses=$ses&amp;act=adinsert\">create a user</a>";` 
There is a backtick (`) on the end of that line that might be screwing things up.

Also - your if blocks are way off. You don't need an if check for every single line, for example you are checking $group==1 many times over. You just check it once and put the lines of code in a block using { and }:

PHP Code:

if($group == 1) {
    echo 
"link1";
    echo 
"link2";
    echo 
"link3";

Some of your other if blocks don't have {'s when they really should.

PHP Code:
if($a==1)
echo 
"1"//executed only if a is 1
echo "2"// ALWAYS executed

if($a==1) {
echo 
"1";  //Both only executed when a is 1
echo "2";

One last thing, you seem to have an exit() call in your script, so the second half of your script will NEVER happen. Perhaps this is because you need to close an if block around it with a }. Ifs in PHP don't work with indenting like in Python.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)

Last edited by 0beron; 04-07-2005 at 06:35 PM..
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-07-2005, 06:43 PM
Skilled Talker

Posts: 52
Trades: 0
i removed that backtick n its still giving me an error Parse error: parse error, unexpected '/' index2.php on line 280 as you can tell im a bit new to this
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
Old 04-07-2005, 06:57 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Read what I posted about the syntax of the if statement, and make sure they are correct. Your script will not work properly without doing this.

The error you are getting at the moment is because you are starting another echo without finishing the last one. You need a "; after </do> on the line above the last echo.

If you want to output large blocks of text, avoid using echo. Do it by dropping out of php and back in again, this can even be done conditionally:

PHP Code:

if(condition) {
  echo "Very long piece of html........
spanning many lines....
that get's confusing.....
with lots of \"escaped quotes\"
......";
}
//Instead use:
if(condition) { ?>
You can write html here without
worrying about "quotes"
and it will appear in the browser
if the condition is true
<?php }

// continue php
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-07-2005, 06:58 PM
Skilled Talker

Posts: 52
Trades: 0
could someone edit the code i posted and post it for me as im totally lost
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
Old 04-07-2005, 07:02 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
i'm not sure what you wanted, so i guessed =)

PHP Code:
<?php 
include('../scripts/header.php'); 
include(
'../scripts/session.inc'); 
include(
'../scripts/config.inc'); 

$posts=$row_ses["posts"]; 
$group $row_ses["userlevel"]; 
$banstatus=$row_ses["ban_status"]; 
$banwhy=$row_ses["ban_why"]; 
$banby=$row_ses["ban_by"]; 

$login=$row_ses["username"]; 

$trust=$row_ses["circle_of_trust"]; 

if (
$act == "preferences")
{

$act_query "UPDATE forum_users set lastactive=now(), location='preference options' where username='$login'"
mysql_query($act_query); 

$act_query "UPDATE friends set lastactive=now(), location='preference options' where friendname='$login'"
mysql_query($act_query); 


echo 
"<card title=\"$login@options\"><p align=\"center\"><b>forum options</b>$inboxes<br/>$breaker<br/>"

echo 
"<a href=\"./options.php?ses=$ses&amp;act=inbox\">new msg alert</a><br/>"
echo 
"<a href=\"./options.php?ses=$ses&amp;act=tmax\">topics per page</a><br/>"
echo 
"<a href=\"./options.php?ses=$ses&amp;act=pmax\">posts per page</a><br/>"
echo 
"<a href=\"./options.php?ses=$ses&amp;act=sicn\">icon display</a><br/>"
echo 
"<a href=\"./avatars/index.php?ses=$ses&amp;act=do\">my pic</a><br/>"
echo 
"<a href=\"./site.php?ses=$ses\">icon list</a><br/>"


echo 
"<br/><a href=\"index.php?ses=$ses\">options menu</a> 
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/> 

<do type=\"accept\" label=\"main menu\"> 
     <go href=\"../mainmenu.php?ses=
$ses\"/> 
     </do> 

     <do type=\"accept\" label=\"mailbox\"> 
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"forums\"> 
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/> 
     </do> 

      <do type=\"accept\" label=\"who's online?\"> 
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"buddy list\"> 
     <go href=\"../friends/index.php?ses=
$ses\"/> 
     </do> 
    </p></card></wml>"

    exit; 
}


if (
$act == "getgtwo")
{

$act_query "UPDATE forum_users set lastactive=now(), location='moderation' where username='$login'"
mysql_query($act_query); 

$act_query "UPDATE friends set lastactive=now(), location='moderation' where friendname='$login'"
mysql_query($act_query); 

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>moderation</b>$inboxes<br/>$breaker<br/>you are $trust the circle of trust."

echo 
"</p><p>"

    if ( 
$group == )
    {
    echo 
"<br/><a href=\"./index2.php?ses=$ses&amp;act=delposts\">delete posts</a>"
    echo 
"<br/><a href=\"./index2.php?ses=$ses&amp;act=adele\">delete users</a>";
    } 

    if (
$trust == "inside")
    {
    
        if ( 
$group == )
        {
        echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=moddinsert\">create a user</a>"
        }

echo 
"<br/><br/><a href=\"index.php?ses=$ses\">options menu</a> 
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>more options will be added in the future, any suggestions to my inbox please.<br/>$breaker<br/> 


<do type=\"accept\" label=\"main menu\"> 
     <go href=\"../mainmenu.php?ses=
$ses\"/> 
     </do> 

     <do type=\"accept\" label=\"mailbox\"> 
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"forums\"> 
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/> 
     </do> 

      <do type=\"accept\" label=\"who's online?\"> 
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"buddy list\"> 
     <go href=\"../friends/index.php?ses=
$ses\"/> 
     </do> 

    </p></card></wml>"

    exit;
    }
}


if (
$act == "getgone")
{

$act_query "UPDATE forum_users set lastactive=now(), location='administration' where username='$login'"
mysql_query($act_query); 

$act_query "UPDATE friends set lastactive=now(), location='administration' where friendname='$login'"
mysql_query($act_query); 

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>administration</b>$inboxes<br/>$breaker<br/>you are $trust the circle of trust.<br/>"


    if ( 
$group == )
    {
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;trust=circle\">circle of trust</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=visibility\">online visibility</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=validinst\">validation instruction</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=open\">welcome message</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=changelog\">alter usernames</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=admail\">user email</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=groupinfo\">user groups</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=adpass\">user passwords</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=adposts\">user post count</a>"
    echo 
"<br/><a href=\"./index2.php?ses=$ses&amp;act=delposts\">delete posts</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=moveposts\">move posts</a>"
    echo 
"<br/><a href=\"./index2.php?ses=$ses&amp;act=adele\">delete users</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=adinsert\">create a user</a>";
    echo 
"<br/><a href=\"./insert.php?ses=$ses&amp;act=admsgs\">clean mail</a>";
    }

echo 
"<br/><a href=\"./index.php?ses=$ses\">options menu</a> 
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/> 


<do type=\"accept\" label=\"main menu\"> 
     <go href=\"../mainmenu.php?ses=
$ses\"/> 
     </do> 

     <do type=\"accept\" label=\"mailbox\"> 
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"forums\"> 
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/> 
     </do> 

      <do type=\"accept\" label=\"who's online?\"> 
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"buddy list\"> 
     <go href=\"../friends/index.php?ses=
$ses\"/> 
     </do> 

    </p></card></wml>"


    exit;
}


if (
$act == "adele")
{

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>kill people</b>$inboxes<br/>$breaker"

echo 
"<br/>user delete options<br/>"


    if ( 
$group <= )
    {
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=adele\">delete by name</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=pdele\">delete by posts</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=visidele\">delete by visits</a>";
    }

echo 
"<br/><a href=\"./index.php?ses=$ses\">options menu</a> 
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/> 


<do type=\"accept\" label=\"main menu\"> 
     <go href=\"../mainmenu.php?ses=
$ses\"/> 
     </do> 

     <do type=\"accept\" label=\"mailbox\"> 
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"forums\"> 
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/> 
     </do> 

      <do type=\"accept\" label=\"who's online?\"> 
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"buddy list\"> 
     <go href=\"../friends/index.php?ses=
$ses\"/> 
     </do> 

    </p></card></wml>"

    exit;
}

#=================================================  =========================================================== 

if ($act == "delposts")
{

echo 
"<card title=\"$login@options\"><p align=\"center\"><b>remove forum messages</b>$inboxes<br/>$breaker"

echo 
"<br/>user delete options<br/>"


    if ( 
$group == )
    {
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=adtopics\">delete by username</a>"
    echo 
"<br/><a href=\"./options.php?ses=$ses&amp;act=oldtopics\">delete by date</a>";
    }


echo 
"<br/><a href=\"./index.php?ses=$ses\">options menu</a> 
<br/><a href=\"../mainmenu.php?ses=
$ses\">main menu</a><br/>$breaker<br/> 


<do type=\"accept\" label=\"main menu\"> 
     <go href=\"../mainmenu.php?ses=
$ses\"/> 
     </do> 

     <do type=\"accept\" label=\"mailbox\"> 
     <go href=\"../mail/index.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"forums\"> 
     <go href=\"../forum/forums.php?ses=
$ses&amp;act=index\"/> 
     </do> 

      <do type=\"accept\" label=\"who's online?\"> 
     <go href=\"../online.php?ses=
$ses&amp;act=index\"/> 
     </do> 

     <do type=\"accept\" label=\"buddy list\"> 
     <go href=\"../friends/index.php?ses=
$ses\"/> 
     </do>"
;

echo 
"</p></card></wml>"
    exit;
}
?>

Last edited by timsquash5; 04-07-2005 at 07:06 PM..
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2005, 07:02 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Crikey... your code crashed notepad2 !
Am workin on it...

Edit, nevermind, timsquash was too quick
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)

Last edited by 0beron; 04-07-2005 at 07:04 PM..
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-07-2005, 07:07 PM
Skilled Talker

Posts: 52
Trades: 0
whoohoo thank you timsquash5 you got it working for me
lee-buck-9-uk is offline
Reply With Quote
View Public Profile Visit lee-buck-9-uk's homepage!
 
Old 04-07-2005, 07:08 PM
Extreme Talker

Posts: 219
Location: UK, East Anglia
Trades: 0
:P lol, PSpad is good

edit: No problem
timsquash5 is offline
Reply With Quote
View Public Profile
 
Old 04-07-2005, 07:35 PM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
^^ PSPad! Isnt it great!
Sorry didnt mean to change subject..
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Reply     « Reply to please help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.40975 seconds with 12 queries