Complete Silkroad Castle New Website

Page 2 of 2 FirstFirst 12
Results 16 to 27 of 27
  1. #16
    Valued Member Nexus2oo7 is offline
    MemberRank
    Mar 2008 Join Date
    102Posts

    Re: [Release]Complete Silkroad Castle New Website

    i fixed that all :) its easy to fix

  2. #17
    No avatar RenePunik is offline
    MemberRank
    Feb 2013 Join Date
    1,431Posts

    Re: [Release]Complete Silkroad Castle New Website

    Quote Originally Posted by FantasiaSRO View Post
    Using wamp, shows white screen.. ._.
    I'm using wampserver. working perfect!

  3. #18
    Enthusiast Nooway is offline
    MemberRank
    Jun 2012 Join Date
    SwedenLocation
    28Posts

    Re: [Release]Complete Silkroad Castle New Website

    Quote Originally Posted by loveme View Post
    Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\modules\include\Security.php:12) in C:\AppServ\www\user\login.php on line 37

    and admin panel why dont login ?
    This is very simple to fix, everyone with this bug use this fix, below.

    Where the <?php syntax starts add this code

    PHP Code:
    <?php
    ob_start
    ();
    ?>
    At the end of the entire code or page add this

    PHP Code:
    <?php
    ob_flush
    ();
    ?>
    OP => Add this fix into the main post, don't forget to give me some credits for fixing it! :>

    This is the login page located in user/login.php, this is also how to fix the issue!
    Spoiler:

    PHP Code:
    <?php
        ob_start
    ();
        
    session_start();
        
        include(
    "../modules/include/Config.php");
        require_once(
    "../modules/include/Security.php");
        require_once(
    "../modules/include/sqlConn.php");
        
        
        
    mssql_select_db($dbName1$dbConn) or die ("Couln't select database $dbName1");
        
        if(isset(
    $_SESSION['loggedin'])) {
            
    header("location:./../");
        } else {
            if(isset(
    $_POST['submit'])) {
                
                
    $check = new security();
                
                
    $message null;
                if(
    $check->is_secure($_POST['username']) == false$message[] = "";
                if (
    $check->is_secure($_POST['password']) == false$message[] = "";
                
                if(
    count($message) > 0) {
                    for(
    $i 0$i count($message); $i++) {
                        print 
    $message[$i];
                        
    header("location:./../?invalidData");
                    }
                    return;
                } else {
                    
    $username $_POST['username'];
                    
    $password md5($_POST['password']);
                    
    $verifyAccount mssql_num_rows(mssql_query("select * from TB_User where StrUserID = '$username' AND password = '$password'"));
                    if(
    $verifyAccount <= 0) {
                        
    header("location:./../?failedLogin");
                    } else {
                        
    $_SESSION['loggedin'] = "YES";
                        
    $_SESSION['name'] = $username;
                        
    header("location:./../");
                    }
                }
                
            }
        }
    ob_flush();
    ?>

    An explanation of this bug is that you should only use header_location before a <html> code, I searched for this before, and I fixed it.

    Quote Originally Posted by LeMbo View Post
    guys use ( Wamp Or Zend Servers )
    If you learned how to code properly nobody would need to use these programs, enough said.

    Quote Originally Posted by FantasiaSRO View Post
    The website stays white when i want to go to it? any ideas O__O?
    Try to change error_reporting(0); to value 1 in index.php and print the error, if still white make sure you have extension mssql_connect installed, also check modules/include/config.php and change your settings, looking forward to hear back from you!



    Don't worry be happy! :)

    Enjoy!
    Last edited by Nooway; 12-05-13 at 05:29 AM.

  4. #19
    Member longway is offline
    MemberRank
    Sep 2012 Join Date
    Alexandria, EgyLocation
    76Posts

    Re: Complete Silkroad Castle New Website

    thx so Much Its So Good ^^

  5. #20
    Apprentice Sha Dy is offline
    MemberRank
    May 2013 Join Date
    5Posts

    Re: Complete Silkroad Castle New Website

    so bad..

  6. #21
    Apprentice oOJhuneOo is offline
    MemberRank
    Mar 2012 Join Date
    22Posts

    Re: [Release]Complete Silkroad Castle New Website

    Quote Originally Posted by RenePunik View Post
    I'm using wampserver. working perfect!
    u can help me? i get error....


    Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\Silkroad Castle New Design\modules\include\sqlConn.php on line 2
    Call Stack
    # Time Memory Function Location
    1 0.0050 154232 {main}( ) ..\index.php:0
    2 0.0090 157968 include( 'C:\wamp\www\Silkroad Castle New Design\modules\include\sqlConn.php' ) ..\index.php:5

  7. #22
    Proficient Member lepitismak is offline
    MemberRank
    May 2013 Join Date
    Fortaleza, BrazLocation
    170Posts

    Re: Complete Silkroad Castle New Website

    logout dont work
    and admin panel
    where?

  8. #23
    Enthusiast L0ckam is offline
    MemberRank
    Dec 2011 Join Date
    TurkeyLocation
    28Posts

    Re: Complete Silkroad Castle New Website

    reup please

  9. #24
    Retired blapanda is offline
    MemberRank
    Oct 2013 Join Date
    LocalhostLocation
    536Posts

    Re: Complete Silkroad Castle New Website

    19-09-12 - I guess the TO won't reup it again.

  10. #25
    Apprentice Towan is offline
    MemberRank
    Nov 2014 Join Date
    12Posts

    Re: Complete Silkroad Castle New Website

    reupload pls

  11. #26
    Retired blapanda is offline
    MemberRank
    Oct 2013 Join Date
    LocalhostLocation
    536Posts

    Re: Complete Silkroad Castle New Website

    Duh...

  12. #27
    Novice guerrero102 is offline
    MemberRank
    Jul 2014 Join Date
    4Posts

    Re: Complete Silkroad Castle New Website

    Broken

    Pls reupload



Page 2 of 2 FirstFirst 12

Advertisement