Error 404.

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! 280689 is offline
    MemberRank
    Jul 2006 Join Date
    333Posts

    Error 404.

    Hello guys, today i tryed to use this panel
    Painel RadixPK By DiMaS.rar - 4shared.com - online file sharing and storage - download

    and get this error when try register.

    Object not found!

    The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of this page about the error.

    If you think this is a server error, please contact the webmaster.
    Error 404
    localhost
    20/7/2011 19:09:54
    Apache/2.2.17 (Win32) mod_ssl/2.2.17 PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 OpenSSL/0.9.8o



    address bar appears this :
    http://localhost/painel/%3Cbr%20/%3E...cadastrar.php?

    some1 ?
    Last edited by DarkKnightH20; 21-07-11 at 05:13 AM. Reason: Title tag


  2. #2
    Banned random idiot is offline
    BannedRank
    Jul 2010 Join Date
    Under the MoonLocation
    901Posts

    Re: Error 404.

    Lol I thought Error 404 the FM.

  3. #3
    . Gregoo is offline
    MemberRank
    Apr 2009 Join Date
    352Posts

    Re: Error 404.

    Quote Originally Posted by 280689 View Post
    Code:
    http://localhost/painel/<br /><b>Notice</b>:  Use of undefined constant PHP_SELF - assumed 'PHP_SELF' in <b>C:/xampp/htdocs/painel/cadastrar.php</b> on line <b>55</b><br /><br /><b>Notice</b>:  Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in <b>C:/xampp/htdocs/painel/cadastrar.php</b> on line <b>55</b><br />/painel/cadastrar.php?
    That's pretty self explanatory...

    The PHP code is really poor. It was coded on a PHP4 powered server, and with very shady coding habits.

    You have 2 solutions.
    - fallback to version 4 of PHP (but you'll still have ugly code).
    - search for all the $_SERVER occurences in every files in the manager and fix it.
    Currently it's used like this:
    PHP Code:
                      <form name="form_cad" action="<?=$_SERVER[PHP_SELF]."?".$_SERVER[QUERY_STRING]?>" method="post" enctype="multipart/form-data" onSubmit="disabledBttn(this);return verifica()">
    And it assumes PHP_SELF and QUERY_STRING are constant. They are keys for the associative array $_SERVER and should be written as strings.
    You need to wrap it inside simple/double quotes, like this :
    PHP Code:
                      <form name="form_cad" action="<?=$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']?>" method="post" enctype="multipart/form-data" onSubmit="disabledBttn(this);return verifica()">
    So in every single file, you have to do:
    PHP Code:
     // Before
    $_SERVER[BLAH_BLAH]
    // After
    $_SERVER['BLAH_BLAH'

  4. #4
    Account Upgraded | Title Enabled! 280689 is offline
    MemberRank
    Jul 2006 Join Date
    333Posts

    Re: Error 404.

    works fine ^^ thanks



Advertisement