[Help] menu

Shout-Out

User Tag List

Thread: [Help]

Results 1 to 6 of 6
  1. #1
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help]

    Ok guys i been working with my site and i've run into a snag I changed my Registration page and then went perfect, but when i goto the little downloads section i have it doesnt work, It just goes to the registration page. I changed the files and when i change back it works so I know which file does it. Ill post the codes

    Before Change:
    Code:
    <?php
    require_once("header.php"); 
    ?>
    <td id="page2">
    <?php
    
    if ( $_GET['name'] ) {
                //check for file itself
                if (!@file_exists('./modules/'.pun_htmlspecialchars($_GET['name']).'.php'))
                {
                    print " 404 - Sorry, page not found.";
                }
                else
                {
                    if (pun_htmlspecialchars($_GET['name'])=='donate_success')
                    {
                        print " 404 - Sorry, page not found.";
                    }
                    else
                    {
                        include "./modules/".pun_htmlspecialchars($_GET['name']).".php";
                    }
                    
                }
    } 
    else
    { print "<center><br>No Quests...</center>";}
    ?>
    </td>
        
    
    <?php
    require_once("footer.php"); 
    ?>
    Broken after Change:
    Code:
    <?php
    /*
        SPORA (Simple Page Of Registration of Accounts) for Ascent V1.5
        Simple Account Signup and Status Page
    
        Original creation by mirage666 for MaNGOS
        Modified by Kandyman for Ascent
        Modified again by ravenger
    */
    
    include("includes/config.php");
    include("includes/include.php");
    ?>
    
    <html>
    <head>
    <title><?php echo $title ?></title>
    <link id=bnetstyle type=text/css rel=stylesheet href="style.css">
    <script type="text/javascript" src="js/script.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <form name=login_form method=post>
    <div id="bg"><img src="<?php echo $img_base ?>backgrounds/<?php echo $bg ?>" width="640" height="480"></div>
    <div id="cont">
        <?php echo $cont ?>
    </div>
    
    <div id="list">
      <center><a class="title"><?php echo $title ?></a></center><br>
        <table width="100%" border="0">
          <tr>
            <td align="left" width=50></td>
            <td align="left" width=60><a href="<?php echo $link.'0">'.$text['char'][0] ?></a></td>
            <td align="center" width=40><a href="<?php echo $link.'1">'.$text['char'][1] ?></a></td>
            <td align="center" width=40><a href="<?php echo $link.'2">'.$text['char'][2] ?></a></td>
            <td align="center" width=40><a href="<?php echo $link.'3">'.$text['char'][3] ?></a></td>
            <td align="left" width=100><a href="<?php echo $link.'4">'.$text['char'][4] ?></a></td>
          </tr>
            <?php echo $list ?>
        </table>
    </div>
    </form>
    </body>
    </html>
    If you need more info tell me.

    [Help]
  2. #2
    ReidE96's Avatar Archer Authenticator enabled
    Reputation
    470
    Join Date
    Dec 2006
    Posts
    1,625
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first page looks like a download one, the second like a registration page. Anything to do with that?

  3. #3
    bt411's Avatar Member
    Reputation
    11
    Join Date
    Jun 2009
    Posts
    138
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can't expect them to be the same if the second one has static content like the jscript and the formula while the first file only loads the php file provided by the variable 'name'

    Also is it intended that
    if (pun_htmlspecialchars($_GET['name'])=='donate_success')
    {
    print " 404 - Sorry, page not found.";

    gives someone who tries to reach the donate_success site a blank page with an error?

  4. #4
    B14d3r11's Avatar Sergeant Major
    Reputation
    9
    Join Date
    Jan 2007
    Posts
    179
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is what happens. If i use the 1st one i can go through the website fine, but if i use the 2nd one i can go to the registration fine. But when I try to go to Login to vote or anything else it sends me to the registration page.

  5. #5
    bt411's Avatar Member
    Reputation
    11
    Join Date
    Jun 2009
    Posts
    138
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well thats cause like i said the first code selects the different pages that should be displayed while the second one is mostly just this one static side.

    From my understanding you should go to your registration page.
    The URL should be something like airline tickets cell phone deals at whatever.com

    your first code displays the filename.php site according to ?name=filename
    filename.php is the actual page you want to change, the page you tried to change should be left untouched, to change your registration page go to the page and check the "?name=filename" part so that you know how the registration file is called ($filename.".php") and change it according to your needs

    hopefully you understand what i mean, ain't that good at explaining ^^'

  6. #6
    bt411's Avatar Member
    Reputation
    11
    Join Date
    Jun 2009
    Posts
    138
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well thats cause like i said the first code selects the different pages that should be displayed while the second one is mostly just this one static side.

    From my understanding you should go to your registration page.
    The URL should be something like
    h t t p //whatever. com/index.php?name=filename

    your first code displays the filename.php site according to ?name=filename
    filename.php is the actual page you want to change, the page you tried to change should be left untouched, to change your registration page go to the page and check the "?name=filename" part so that you know how the registration file is called ($filename.".php") and change it according to your needs

    hopefully you understand what i mean, ain't that good at explaining ^^'

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  3. Banner Ad Redesign help
    By Matt in forum Community Chat
    Replies: 57
    Last Post: 07-08-2006, 08:40 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 09:08 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search