Page Problem!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Page Problem!

    my wap is vampirewap.xphost.org

    my problem is the login page still apear in index after i succesfuly logged into my site..

    when i set announcement..its not display.

    #2
    my wap is vampirewap.xphost.org

    my problem is the login page still apear in index after i succesfuly logged into my site..

    when i set announcement..its not display.[/b]

    ask anyone that knows about lava scripts . cos i dont and had same problem when i used lava.
    Wapchat4u


    Topsites4u

    Comment


      #3
      I found that changing the last else to else if($action=="") usually does the trick

      Comment


        #4
        <?php


        include("core.php");
        include("config.php");


        header("Content-type: text/html; charset=ISO-8859-1");
        echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
        echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
        echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

        echo "<head>";

        echo "<title>$stitle</title>";
        echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
        echo "</head>";

        echo "<body>";

        $bcon = connectdb();
        if (!$bcon)
        {

        echo "<p align=\"center\">";
        echo "<img src=\"images/exit.gif\" alt=\"*\"/>
        ";
        echo "ERROR! cannot connect to database

        ";
        echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

        ";

        echo "THANK YOU VERY MUCH";
        echo "</p>";
        exit();
        }
        $brws = explode(" ",$HTTP_USER_AGENT);
        $ubr = $brws[0];
        $uip = getip();
        $action = $_GET["action"];
        $sid = $_GET["sid"];
        $page = $_GET["page"];
        $who = $_GET["who"];

        $uid = getuid_sid($sid);

        cleardata();
        if(isipbanned($uip,$ubr))
        {
        if(!isshield(getuid_sid($sid)))
        {

        echo "<p align=\"center\">";
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>
        ";
        echo "This IP address is blocked
        ";
        echo "
        ";
        echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

        ";
        $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM fun_penalties WHERE penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
        //echo mysql_error();
        $remain = $banto[0] - time();
        $rmsg = gettimemsg($remain);
        echo " IP: $rmsg

        ";

        echo "</p>";
        echo "

        ";
        echo "<form action=\"login.php\" method=\"get\">";
        echo "username:
        <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/>
        ";
        echo "password:
        <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/>
        ";
        echo "<input type=\"submit\" value=\"login »\"/>";
        echo "</form>";
        echo "</p>";
        exit();
        }
        }
        if(($action != "") && ($action!="terms"))
        {
        $uid = getuid_sid($sid);
        if((islogged($sid)==false)||($uid==0))
        {

        echo "<p align=\"center\">";
        echo "You are not logged in
        ";
        echo "Or Your session has been expired

        ";
        echo "<a href=\"index.php\">Login</a>";
        echo "</p>";
        exit();
        }



        }
        //echo isbanned($uid);
        if(isbanned($uid))
        {

        echo "<p align=\"center\">";
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>
        ";
        echo "You are Banned
        ";
        $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM fun_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
        $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM fun_users WHERE id=&#39;".$uid."&#39;"));

        $remain = $banto[0]- time();
        $rmsg = gettimemsg($remain);
        echo "Time to finish your penalty: $rmsg

        ";
        echo "Ban Reason: $banres[0]";
        //echo "<a href=\"index.php\">Login</a>";
        echo "</p>";
        exit();
        }
        $res = mysql_query("UPDATE fun_users SET browserm=&#39;".$ubr."&#39;, ipadd=&#39;".$uip."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");


        echo "<p align=\"center\">";




        echo "<a href=\"index.php?action=main&sid=$sid\">hOmE</a>";
        echo "
        ";



        echo "</p>";

        }
        }
        echo "</p>";

        echo "<p align=\"center\">";

        echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";


        }

        //////////////////////////////////////////Post Options

        else if($action=="pstopt")
        {
        $pid = $_GET["pid"];
        $page = $_GET["page"];
        $fid = $_GET["fid"];
        addonline(getuid_sid($sid),"Post Options","");
        $pinfo= mysql_fetch_array(mysql_query("SELECT uid,tid, text FROM fun_posts WHERE id=&#39;".$pid."&#39;"));
        $trid = $pinfo[0];
        $tid = $pinfo[1];
        $ptext = htmlspecialchars($pinfo[2]);


        echo "<p align=\"center\">";
        echo "Post Options";

        echo "</p>";
        echo "

        ";
        $trnick = getnick_uid($trid);
        echo "<a href=\"inbox.php?action=sendpm&sid=$sid&who=$trid\ ">»Send PM to $trnick</a>
        ";
        echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$tri d\">»View $trnick&#39;s Profile</a>
        ";
        //echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid&qut =$pid\">»Quote</a>
        ";
        echo "<a href=\"genproc.php?action=rpost&sid=$sid&pid=$pid\ ">»Report</a>
        ";
        echo "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$tid& page=$page\">«Back to topic</a>
        ";
        if(ismod(getuid_sid($sid)))
        {
        echo "
        Text: ";
        echo "<form action=\"modproc.php?action=edtpst&sid=$sid&pid=$p id\" method=\"post\">";
        echo "<input name=\"ptext\" value=\"$ptext\" maxlength=\"500\" value=\"$pmtext\"/> ";
        echo "<input type=\"submit\" value=\"Edit\"/>";
        echo "</form>";
        echo "
        ";
        echo "
        <a href=\"modproc.php?action=delp&sid=$sid&pid=$pid\" >»DELETE</a>
        ";
        }
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Home</a>";
        echo "</p>";

        }

        else if($action=="tpcopt")
        {
        $tid = $_GET["tid"];
        addonline(getuid_sid($sid),"Topic Options","");
        $tinfo= mysql_fetch_array(mysql_query("SELECT name,fid, authorid, text, pinned, closed FROM fun_topics WHERE id=&#39;".$tid."&#39;"));
        $trid = $tinfo[2];
        $ttext = htmlspecialchars($tinfo[3]);
        $tname = htmlspecialchars($tinfo[0]);


        echo "<p align=\"center\">";
        echo "Topic Options";

        echo "</p>";
        echo "

        ";
        echo "Topic ID: $tid
        ";
        $trnick = getnick_uid($trid);
        echo "<a href=\"inbox.php?action=sendpm&sid=$sid&who=$trid\ ">»Send PM to $trnick</a>
        ";
        echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$tri d\">»View $trnick&#39;s Profile</a>
        ";
        //echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid&qut =$pid\">»Quote</a>
        ";
        $plid = mysql_fetch_array(mysql_query("SELECT pollid FROM fun_topics WHERE id=&#39;".$tid."&#39;"));
        if($plid[0]==0)
        {
        if(ismod($uid))
        {
        echo "<a href=\"index.php?action=pltpc&sid=$sid&tid=$tid\"> »Add Poll</a>
        ";
        }
        }else{
        if(ismod($uid))
        {
        echo "<a href=\"genproc.php?action=dltpl&sid=$sid&tid=$tid\ ">»Delete Poll</a>
        ";
        }
        }
        echo "<a href=\"genproc.php?action=rtpc&sid=$sid&tid=$tid\" >»Report</a>
        ";
        echo "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$tid& page=1\">«Back to topic</a>
        ";
        if(ismod(getuid_sid($sid)))
        {
        echo "
        Title: ";
        echo "<form action=\"modproc.php?action=rentpc&sid=$sid&tid=$t id\" method=\"post\">";
        echo "<input name=\"tname\" value=\"$tname\" maxlength=\"25\" value=\"$tname\"/> ";

        echo "<input type=\"submit\" value=\"Rename\"/>";
        echo "</form>";

        echo "
        Text: ";
        echo "<form action=\"modproc.php?action=edttpc&sid=$sid&tid=$t id\" method=\"post\">";
        echo "<input name=\"ttext\" value=\"$ttext\" maxlength=\"500\" value=\"$pmtext\"/> ";


        echo "<input type=\"submit\" value=\"Edit\"/>";
        echo "</form>";

        echo "
        <a href=\"modproc.php?action=delt&sid=$sid&tid=$tid\" >»DELETE</a>
        ";
        echo "
        ";
        if($tinfo[5]==&#39;1&#39;)
        {
        $ctxt = "Open";
        $cact = "0";
        }else{
        $ctxt = "Close";
        $cact = "1";
        }
        echo "<a href=\"modproc.php?action=clot&sid=$sid&tid=$tid&t do=$cact\">»$ctxt</a>
        ";
        if($tinfo[4]==&#39;1&#39;)
        {
        $ptxt = "}

        else{
        /////////////////////////Main Page Here

        echo "<p align=\"center\">";
        echo "<img src=\"images/logo.gif\" alt=\"*\"/>
        ";
        echo "</p>";

        echo "<p align=\"center\">";
        echo "Welcome To VampireWAP! Please Free To Invite Your Friend Here! Best Wishes From All Staff Members!

        ";
        echo "</p>";
        echo "<p align=\"center\">";
        echo "<form action=\"login.php\" method=\"get\">";
        echo "username:
        <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/>
        ";
        echo "password:
        <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/>
        ";
        echo "<input type=\"submit\" value=\"login »\"/>";
        echo "</form>";
        echo "</p>";
        echo "<p align=\"center\">";
        echo "Not registered yet?
        <a href=\"register.php\">Sign up Now!</a>
        ";
        echo "<a href=\"index.php?action=terms&sid=$sid\">TERMS OF USE</a>
        ";
        echo "</p>";
        echo "<p align=\"center\">";
        $onu = getnumonline();
        echo "Members Inside: $onu

        ";
        echo "";
        echo "</p>";

        }


        echo "</body>";
        echo "</html>";
        ?>

        Comment


          #5
          <?php
          include("core.php");
          include("config.php");
          header("Content-type: text/html; charset=ISO-8859-1");
          echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
          echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
          echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

          echo "<head>";

          echo "<title>$stitle</title>";
          echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
          echo "</head>";

          echo "<body>";

          $bcon = connectdb();
          if (!$bcon)
          {

          echo "<p align=\"center\">";
          echo "<img src=\"images/exit.gif\" alt=\"*\"/>
          ";
          echo "ERROR! cannot connect to database

          ";
          echo "This error happens usually when backing up the database, please be patient, The site will be up any minute

          ";

          echo "THANK YOU VERY MUCH";
          echo "</p>";
          exit();
          }
          $brws = explode(" ",$HTTP_USER_AGENT);
          $ubr = $brws[0];
          $uip = getip();
          $action = $_GET["action"];
          $sid = $_GET["sid"];
          $page = $_GET["page"];
          $who = $_GET["who"];

          $uid = getuid_sid($sid);

          cleardata();
          if(isipbanned($uip,$ubr))
          {
          if(!isshield(getuid_sid($sid)))
          {

          echo "<p align=\"center\">";
          echo "<img src=\"images/notok.gif\" alt=\"x\"/>
          ";
          echo "This IP address is blocked
          ";
          echo "
          ";
          echo "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over

          ";
          $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM fun_penalties WHERE penalty=&#39;2&#39; AND ipadd=&#39;".$uip."&#39; AND browserm=&#39;".$ubr."&#39; LIMIT 1 "));
          //echo mysql_error();
          $remain = $banto[0] - time();
          $rmsg = gettimemsg($remain);
          echo " IP: $rmsg

          ";

          echo "</p>";
          echo "

          ";
          echo "<form action=\"login.php\" method=\"get\">";
          echo "username:
          <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/>
          ";
          echo "password:
          <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/>
          ";
          echo "<input type=\"submit\" value=\"login »\"/>";
          echo "</form>";
          echo "</p>";
          exit();
          }
          }
          if(($action != "") && ($action!="terms"))
          {
          $uid = getuid_sid($sid);
          if((islogged($sid)==false)||($uid==0))
          {

          echo "<p align=\"center\">";
          echo "You are not logged in
          ";
          echo "Or Your session has been expired

          ";
          echo "<a href=\"index.php\">Login</a>";
          echo "</p>";
          exit();
          }



          }
          //echo isbanned($uid);
          if(isbanned($uid))
          {

          echo "<p align=\"center\">";
          echo "<img src=\"images/notok.gif\" alt=\"x\"/>
          ";
          echo "You are Banned
          ";
          $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM fun_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39;"));
          $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM fun_users WHERE id=&#39;".$uid."&#39;"));

          $remain = $banto[0]- time();
          $rmsg = gettimemsg($remain);
          echo "Time to finish your penalty: $rmsg

          ";
          echo "Ban Reason: $banres[0]";
          //echo "<a href=\"index.php\">Login</a>";
          echo "</p>";
          exit();
          }
          $res = mysql_query("UPDATE fun_users SET browserm=&#39;".$ubr."&#39;, ipadd=&#39;".$uip."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");
          echo "<p align=\"center\">";




          echo "<a href=\"index.php?action=main&sid=$sid\">hOmE</a>";
          echo "
          ";



          echo "</p>";

          }
          }
          echo "</p>";

          echo "<p align=\"center\">";

          echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";


          }

          //////////////////////////////////////////Post Options

          else if($action=="pstopt")
          {
          $pid = $_GET["pid"];
          $page = $_GET["page"];
          $fid = $_GET["fid"];
          addonline(getuid_sid($sid),"Post Options","");
          $pinfo= mysql_fetch_array(mysql_query("SELECT uid,tid, text FROM fun_posts WHERE id=&#39;".$pid."&#39;"));
          $trid = $pinfo[0];
          $tid = $pinfo[1];
          $ptext = htmlspecialchars($pinfo[2]);


          echo "<p align=\"center\">";
          echo "Post Options";

          echo "</p>";
          echo "

          ";
          $trnick = getnick_uid($trid);
          echo "<a href=\"inbox.php?action=sendpm&sid=$sid&who=$trid\ ">»Send PM to $trnick</a>
          ";
          echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$tri d\">»View $trnick&#39;s Profile</a>
          ";
          //echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid&qut =$pid\">»Quote</a>
          ";
          echo "<a href=\"genproc.php?action=rpost&sid=$sid&pid=$pid\ ">»Report</a>
          ";
          echo "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$tid& page=$page\">«Back to topic</a>
          ";
          if(ismod(getuid_sid($sid)))
          {
          echo "
          Text: ";
          echo "<form action=\"modproc.php?action=edtpst&sid=$sid&pid=$p id\" method=\"post\">";
          echo "<input name=\"ptext\" value=\"$ptext\" maxlength=\"500\" value=\"$pmtext\"/> ";
          echo "<input type=\"submit\" value=\"Edit\"/>";
          echo "</form>";
          echo "
          ";
          echo "
          <a href=\"modproc.php?action=delp&sid=$sid&pid=$pid\" >»DELETE</a>
          ";
          }
          echo "</p>";
          echo "<p align=\"center\">";
          echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
          echo "Home</a>";
          echo "</p>";

          }

          else if($action=="tpcopt")
          {
          $tid = $_GET["tid"];
          addonline(getuid_sid($sid),"Topic Options","");
          $tinfo= mysql_fetch_array(mysql_query("SELECT name,fid, authorid, text, pinned, closed FROM fun_topics WHERE id=&#39;".$tid."&#39;"));
          $trid = $tinfo[2];
          $ttext = htmlspecialchars($tinfo[3]);
          $tname = htmlspecialchars($tinfo[0]);


          echo "<p align=\"center\">";
          echo "Topic Options";

          echo "</p>";
          echo "

          ";
          echo "Topic ID: $tid
          ";
          $trnick = getnick_uid($trid);
          echo "<a href=\"inbox.php?action=sendpm&sid=$sid&who=$trid\ ">»Send PM to $trnick</a>
          ";
          echo "<a href=\"index.php?action=viewuser&sid=$sid&who=$tri d\">»View $trnick&#39;s Profile</a>
          ";
          //echo "<a href=\"index.php?action=post&sid=$sid&tid=$tid&qut =$pid\">»Quote</a>
          ";
          $plid = mysql_fetch_array(mysql_query("SELECT pollid FROM fun_topics WHERE id=&#39;".$tid."&#39;"));
          if($plid[0]==0)
          {
          if(ismod($uid))
          {
          echo "<a href=\"index.php?action=pltpc&sid=$sid&tid=$tid\"> »Add Poll</a>
          ";
          }
          }else{
          if(ismod($uid))
          {
          echo "<a href=\"genproc.php?action=dltpl&sid=$sid&tid=$tid\ ">»Delete Poll</a>
          ";
          }
          }
          echo "<a href=\"genproc.php?action=rtpc&sid=$sid&tid=$tid\" >»Report</a>
          ";
          echo "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$tid& page=1\">«Back to topic</a>
          ";
          if(ismod(getuid_sid($sid)))
          {
          echo "
          Title: ";
          echo "<form action=\"modproc.php?action=rentpc&sid=$sid&tid=$t id\" method=\"post\">";
          echo "<input name=\"tname\" value=\"$tname\" maxlength=\"25\" value=\"$tname\"/> ";

          echo "<input type=\"submit\" value=\"Rename\"/>";
          echo "</form>";

          echo "
          Text: ";
          echo "<form action=\"modproc.php?action=edttpc&sid=$sid&tid=$t id\" method=\"post\">";
          echo "<input name=\"ttext\" value=\"$ttext\" maxlength=\"500\" value=\"$pmtext\"/> ";


          echo "<input type=\"submit\" value=\"Edit\"/>";
          echo "</form>";

          echo "
          <a href=\"modproc.php?action=delt&sid=$sid&tid=$tid\" >»DELETE</a>
          ";
          echo "
          ";
          if($tinfo[5]==&#39;1&#39;)
          {
          $ctxt = "Open";
          $cact = "0";
          }else{
          $ctxt = "Close";
          $cact = "1";
          }
          echo "<a href=\"modproc.php?action=clot&sid=$sid&tid=$tid&t do=$cact\">»$ctxt</a>
          ";
          if($tinfo[4]==&#39;1&#39;)
          {
          $ptxt = "}

          else{
          /////////////////////////Main Page Here

          echo "<p align=\"center\">";
          echo "<img src=\"images/logo.gif\" alt=\"*\"/>
          ";
          echo "</p>";

          echo "<p align=\"center\">";
          echo "Welcome To VampireWAP! Please Free To Invite Your Friend Here! Best Wishes From All Staff Members!

          ";
          echo "</p>";
          echo "<p align=\"center\">";
          echo "<form action=\"login.php\" method=\"get\">";
          echo "username:
          <input name=\"loguid\" format=\"*x\" size=\"8\" maxlength=\"30\"/>
          ";
          echo "password:
          <input type=\"password\" name=\"logpwd\" size=\"8\" maxlength=\"30\"/>
          ";
          echo "<input type=\"submit\" value=\"login »\"/>";
          echo "</form>";
          echo "</p>";
          echo "<p align=\"center\">";
          echo "Not registered yet?
          <a href=\"register.php\">Sign up Now!</a>
          ";
          echo "<a href=\"index.php?action=terms&sid=$sid\">TERMS OF USE</a>
          ";
          echo "</p>";
          echo "<p align=\"center\">";
          $onu = getnumonline();
          echo "Members Inside: $onu

          ";
          echo "";
          echo "</p>";

          }
          echo "</body>";
          echo "</html>";
          ?>[/b]
          p/s: this is upper and bottom of my index.php
          cant post all...text too long!

          Comment


            #6
            Code:
            $cact = "1";
            }
            echo "<a href=\"modproc.php?action=clot&sid=$sid&tid=$tid&tdo=$cact\">»$ctxt</a>
            ";
            if($tinfo[4]==&#39;1&#39;)
            {
            $ptxt = "}
            
            else{
            /////////////////////////Main Page Here
            
            echo "<p align=\"center\">";
            echo "<img src=\"images/logo.gif\" alt=\"*\"/>
            ";
            echo "</p>";
            
            echo "<p align=\"center\">";

            is this part as it is in your script?
            If not then please post the "main page here" part with the entire action that appears above it

            Comment


              #7
              here is the test page...

              vampirewap.xphost.org

              id : test
              password : test

              Comment


                #8
                ////////////////////////////////////////MAIN PAGE
                if($action=="main")
                {
                addvisitor();
                addonline(getuid_sid($sid),"Forum Index","index.php?action=$action");
                //saveuinfo($sid);

                $time = time() - (0 * 60 * 60);
                $newtime = date("H:i",$time);
                $date = strtotime(&#39;-0 hours&#39;);
                $newdate = date(&#39;D jS M y&#39;,$date);

                echo "<p align=\"center\">";
                echo "<img src=\"../images/logo.gif\" alt=\"logo\"/>
                ";
                echo "".$newtime." - ".$newdate."</p>";
                echo "<p align=\"center\">";
                $fmsg = htmlspecialchars(getfmsg());
                echo "$fmsg
                ";

                echo "</p>

                ";

                echo "</p><p align=\"center\">";
                echo getshoutbox($sid);
                echo "</p>";


                /////inbox data
                $tmsg = getpmcount(getuid_sid($sid));
                $umsg = getunreadpm(getuid_sid($sid));
                //$new_gm = getnewgml(getuid_sid($sid));
                echo "<a href=\"inbox.php?action=main&sid=$sid\">::InBoX:$umsg/$tmsg)</a>
                ";

                $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_chonline"));
                echo "<a href=\"index.php?action=chat&sid=$sid\">::ChAtRoOm :$chs[0])</a>
                ";
                echo "<a href=\"index.php?action=forums&sid=$sid\">::FoRuMs ::</a>
                ";
                $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubs"));
                echo "<a href=\"index.php?action=clmenu&sid=$sid\">::CluBs:$chs[0])</a>
                ";
                $uid = getuid_sid($sid);
                $mybuds = getnbuds($uid);
                $onbuds = getonbuds($uid);
                echo "<a href=\"lists.php?action=buds&sid=$sid\">::bUdDies Lists:$onbuds/$mybuds)</a>";
                $reqs = getnreqs($uid);
                if($reqs>0)
                {

                echo ": <a href=\"lists.php?action=reqs&sid=$sid\">$reqs</a>";
                }
                echo "
                ";
                echo "<a href=\"index.php?action=funm&sid=$sid\">::GaMes::</a>
                ";

                echo "<a href=\"index.php?action=cpanel&sid=$sid\">::CPaneL ::</a>
                ";
                $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_vault"));
                echo "<a href=\"lists.php?action=vault&sid=$sid\">::DoWnLoa D:$noi[0])</a>
                ";
                if(ismod($uid))
                {
                $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_private WHERE reported=&#39;1&#39;"));
                $tot = $tnor[0];
                $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_posts WHERE reported=&#39;1&#39;"));
                $tot += $tnor[0];
                $tnor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_topics WHERE reported=&#39;1&#39;"));
                $tot += $tnor[0];
                $tnol = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_mlog"));
                $tol = $tnol[0];
                if($tol+$tot>0)
                {
                echo "<a href=\"modcp.php?action=main&sid=$sid\">**Mods Logs/Reports** ($tot/$tol)</a>
                ";
                }

                }

                echo "<p align=\"center\">";


                echo ">>MemBerS OnLine<< : <a href=\"index.php?action=online&sid=$sid\">".getnum online()."</a>
                ";
                $timeout = 180;
                $timeon = time()-$timeout;
                $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_users WHERE perm>&#39;0&#39; AND lastact>&#39;".$timeon."&#39;"));
                echo ">>StaFf OnLinE<< : <a href=\"index.php?action=stfol&sid=$sid\">".$noi[0]."</a>
                ";
                echo "
                <a href=\"index.php?action=stats&sid=$sid\">SiteS StaTs</a>
                ";
                echo "<a href=\"index.php?action=search&sid=$sid\">SeArCh</a>
                ";
                echo "<a href=\"index.php?action=terms&sid=$sid\">TerMs Of UsE</a>";
                echo "
                ";


                if (isadmin(getuid_sid($sid)))
                {
                echo "[/b]
                <a href=\"index.php?action=admincp&sid=$sid\">**AdMin Cp**</a>";
                }
                echo "</p>";

                echo "<p align=\"center\">";

                echo "VampireWAP © 2007
                ";
                echo "WitchLaiELa - ALL RigHts ResErVed";

                echo "</p>";

                }
                if($action=="forums")
                {
                addvisitor();
                addonline(getuid_sid($sid),"forums","index.php?act ion=$action");
                //saveuinfo($sid);


                echo "<p align=\"center\">";
                echo "<img src=\"images/logo.gif\" alt=\"$stitle\"/>";

                echo "</p>";




                echo "<p align=\"center\">";
                echo getshoutbox($sid);
                echo "</p>";

                echo "

                ";
                $fcats = mysql_query("SELECT id, name FROM fun_fcats ORDER BY position, id");
                $iml = "<img src=\"images/1.gif\" alt=\"*\"/>";
                while($fcat=mysql_fetch_array($fcats))
                {
                $catlink = "<a href=\"index.php?action=viewcat&sid=$sid&cid=$fcat[0]\">$iml$fcat[1]</a>";
                echo "
                $catlink";
                $forums = mysql_query("SELECT id, name FROM fun_forums WHERE cid=&#39;".$fcat[0]."&#39; AND clubid=&#39;0&#39; ORDER BY position, id, name");
                if(getfview()==0)
                {
                echo "
                ";
                while($forum=mysql_fetch_array($forums))
                {
                if(canaccess(getuid_sid($sid),$forum[0]))
                {

                echo "<a href=\"index.php?action=viewfrm&sid=$sid&fid=$foru m[0]\">$forum[1]</a>, ";
                }
                }
                echo "";
                }else if(getfview()==20)
                {
                echo "<form action=\"index.php\" method=\"get\">";
                echo "
                Forums: <select name=\"fid\">";
                while($forum=mysql_fetch_array($forums))
                {
                if(canaccess(getuid_sid($sid),$forum[0]))
                {
                $notp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_topics WHERE fid=&#39;".$forum[0]."&#39;"));
                echo "<option value=\"$forum[0]\">$forum[1]($notp[0])</option>";
                }
                }

                echo "</select>";
                echo "<input type=\"submit\" value=\"GO\"/>";
                echo "<go href=\"index.php\" method=\"get\">";
                echo "<input type=\"hidden\" name=\"action\" value=\"viewfrm\"/>";
                echo "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                echo "<input type=\"hidden\" name=\"fid\" value=\"$(fid)\"/>";
                echo "</form>";

                }

                }
                echo "</p>";

                echo "<p align=\"center\">";




                echo "<a href=\"index.php?action=main&sid=$sid\">hOmE</a>";
                echo "
                ";



                echo "</p>";

                }
                else if($action=="clmop")
                {
                $clid = $_GET["clid"];
                $who = $_GET["who"];
                addonline(getuid_sid($sid),"Moderating Club Member","");

                echo "<p align=\"center\">";
                $whnick = getnick_uid($who);
                echo "$whnick";
                echo "</p>";
                echo "

                ";
                $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubmembers WHERE uid=&#39;".$who."&#39; AND clid=".$clid.""));
                $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubs WHERE owner=&#39;".$uid."&#39; AND id=".$clid.""));
                if($exs[0]>0 && $cow[0]>0)
                {
                echo "<a href=\"genproc.php?action=dcm&sid=$sid&who=$who&cl id=$clid\">»Kick $whnick out</a>
                ";
                echo "<a href=\"index.php?action=gcp&sid=$sid&who=$who&clid =$clid\">»$whnick&#39;s Club Points</a>
                ";
                echo "<a href=\"index.php?action=gpl&sid=$sid&who=$who&clid =$clid\">»Give $whnick Plusses</a>
                ";
                }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!";
                }
                echo "</p>";

                echo "<p align=\"center\">";

                echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";

                }

                else if($action=="gcp")
                {
                $clid = $_GET["clid"];
                $who = $_GET["who"];
                addonline(getuid_sid($sid),"Moderating Club Member","");

                echo "<p align=\"center\">";
                $whnick = getnick_uid($who);
                echo "$whnick";
                echo "</p>";
                echo "

                ";
                $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubmembers WHERE uid=&#39;".$who."&#39; AND clid=".$clid.""));
                $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubs WHERE owner=&#39;".$uid."&#39; AND id=".$clid.""));
                if($exs[0]>0 && $cow[0]>0)
                {
                echo "<form action=\"genproc.php?action=gcp&sid=$sid&who=$who& clid=$clid\" method=\"post\">";
                echo "Action: <select name=\"giv\">";
                echo "<option value=\"1\">Add</option>";
                echo "<option value=\"0\">Subtract</option>";
                echo "</select>
                ";
                echo "Points: <input name=\"pnt\" format=\"*N\" size=\"2\" maxlength=\"2\"/>
                ";
                echo "<input type=\"submit\" value=\"GO\"/>";
                echo "</form>";

                }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!";
                }
                echo "</p>";

                echo "<p align=\"center\">";

                echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";

                }

                else if($action=="gpl")
                {
                $clid = $_GET["clid"];
                $who = $_GET["who"];
                addonline(getuid_sid($sid),"Moderating Club Member","");

                echo "<p align=\"center\">";
                $whnick = getnick_uid($who);
                echo "$whnick";
                echo "</p>";
                echo "

                ";
                $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubmembers WHERE uid=&#39;".$who."&#39; AND clid=".$clid.""));
                $cow = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM fun_clubs WHERE owner=&#39;".$uid."&#39; AND id=".$clid.""));
                if($exs[0]>0 && $cow[0]>0)
                {
                echo "<img src=\"images/point.gif\" alt=\"!\"/>You can only give plusses, these are real plusses, you can&#39;t subtract plusses
                ";
                $cpl = mysql_fetch_array(mysql_query("SELECT plusses FROM fun_clubs WHERE id=&#39;".$clid."&#39;"));
                echo "<img src=\"images/point.gif\" alt=\"!\"/>Your club plusses credit is $cpl[0]
                ";
                echo "<img src=\"images/point.gif\" alt=\"!\"/>Do not abuse giving of plusses to users, your club could be deleted

                ";

                echo "<form action=\"genproc.php?action=gpl&sid=$sid&who=$who& clid=$clid\" method=\"post\">";
                echo "Plusses: <input name=\"pnt\" format=\"*N\" size=\"2\" maxlength=\"2\"/>
                ";
                echo "<input type=\"submit\" value=\"GO\"/>";
                echo "</form>";
                }else{
                echo "<img src=\"images/notok.gif\" alt=\"X\"/>Missing Info!";
                }
                echo "</p>";

                echo "<p align=\"center\">";

                echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
                echo "Home</a>";
                echo "</p>";


                P/S : MY //////////////////main page here

                Comment


                  #9
                  i have a problem with my page..
                  when i login.. in main page..i found login.php in bottom of main page..
                  u can see it here...

                  vampirewap.xphost.org

                  id: test
                  password : test

                  p/s:heres my index.php
                  Attached Files

                  Comment


                    #10
                    i have a problem with my page..
                    when i login.. in main page..i found login.php in bottom of main page..
                    u can see it here...

                    vampirewap.xphost.org

                    id: test
                    password : test

                    p/s:heres my index.php[/b]

                    its fixed!!!! lol!

                    Comment

                    Working...
                    X