Jump to content
×
×
  • Create New...
  • Please do not post a message for the purpose of insulting, incitement to hatred, sexual remarks and any other which does not respect our terms of use !

archivé Probléme configuration QuasarCMS


Recommended Posts

Hum, salut les gens j'ai un probléme sur 

Please login or register to see this link.

.

Je l'ai bien configuré comme il faut ! Je suis en localhost.

Mais il m'affiche "Query Failed" (pas la peine d'envoyer de screen il y'a que sa sur la page)

Voila mes fichiers de configuration :

app/Core/Config.php

<?php
    namespace Core;

    use Helpers\Session;

    class Config
    {
        public function __construct()
        {
            //turn on output buffering
            ob_start();

            //optionally create a constant for the name of the site
            define('SITETITLE', 'HSun :: A wave of excitement');

            //database details ONLY NEEDED IF USING A DATABASE
            define('DB_TYPE', 'mysql');
            define('DB_HOST', 'localhost');
            define('DB_NAME', 'habboworld');
            define('DB_USER', 'root');
            define('DB_PASS', '');
            define('PREFIX', '');

            //base path
            define('DIR', '');

            //set default controller and method for legacy calls
            define('DEFAULT_CONTROLLER', 'welcome');
            define('DEFAULT_METHOD', 'index');

            //set the default template
            define('TEMPLATE', 'default');

            //set a default language
            define('LANGUAGE_CODE', 'en');

            //set prefix for sessions
            define('SESSION_PREFIX', 'qsr_');

            //optionall set a site email address
            //define('SITEEMAIL', '');

            //turn on custom error handling
            set_exception_handler('Core\Logger::ExceptionHandler');
            set_error_handler('Core\Logger::ErrorHandler');

            //set timezone
            date_default_timezone_set('Europe/London');

            //start sessions
            Session::init();
        }
    }
?>

app/core/hotelconfig.php

 

<?php

    /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
     *    ___                              ____ __  __ ____    *
     *   / _ \ _   _  __ _ ___  __ _ _ __ / ___|  \/  / ___|   *
     *  | | | | | | |/ _` / __|/ _` | '__| |   | |\/| \___ \   *
     *  | |_| | |_| | (_| \__ \ (_| | |  | |___| |  | |___) |  *
     *   \__\_\\__,_|\__,_|___/\__,_|_|   \____|_|  |_|____/   *
     *                                                         *
     *     © All Rights Reserved - Quasar Made by Explorer     *
     *                                                         *
    \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

    namespace Core;

    use Models\User;
    use Models\System;
    use Helpers\Session;

    $User = new User;
    $System = new System;

    /**
     * Make this your personal hotel information
     */
    $conf = array(
        
        "hotelName" => "Habwave Hotel",
        "hotelShort" => "Habwave",
        "hotelSlogan" => "A wave of excitement!",
        "hotelBase" => "http://localhost/", // HAS TO END WITH A SLASH '/' !!!!
        "hotelIp" => "127.0.0.1",

        "gameMus" => "30001",
        "gamePort" => "30000",
        "gameBase" => "http://habwave.nl/swf/",
        "gameVars"  => 'http://habwave.nl/swf/external_variables.php',
        "gameTexts" => 'http://habwave.nl/swf/external_flash_texts.txt',
        "gameSwf" => 'http://habwave.nl/swf/Habbo.swf',

        "startLook" => "ch-3015-72.lg-275-90.hr-831-37.ha-1012-1330.hd-180-1",
        "startCredits" => 50000,
        "startPixels" => 5000,
        "startMotto" => "Hello, ik ben nieuw op Habwave",
        "startSalt" => "&@#_Xakd_Hab",

        "avatarLimit" => 5

    );


    /**
     * Don't touch unless you know what you're doing!
     */
    $params = array(
        "gameMus"   => $conf['gameMus'],
        "gamePort"  => $conf['gamePort'],
        "gameBase"  => base64_encode($conf['gameBase']),
        "gameVars"  => base64_encode($conf['gameVars']),
        "gameTexts" => base64_encode($conf['gameTexts']),
        "gameSwf"   => base64_encode($conf['gameSwf']),
        "hotelName"    => $conf['hotelName'],
        "hotelShort"   => $conf['hotelShort'],
        "hotelSlogan"  => $conf['hotelSlogan'],
        "hotelBase"    => $conf['hotelBase'],
        "hotelIp"      => $conf['hotelIp'],
        "startLook"    => $conf['startLook'],
        "startCredits" => $conf['startCredits'],
        "startPixels"  => $conf['startPixels'],
        "startMotto"   => $conf['startMotto'],
        "startSalt"    => $conf['startSalt'],
        "online"       => $System->server("users_online"),
        "avatarLimit"  => $conf['avatarLimit'],
        "habboImaging" => "http://www.habbo.nl/habbo-imaging/",
        "staffAlert"   => $System->getAlert()
    );

    if(Session::get("username"))
    {
        $mail = explode('_qsrSub', $User->get("mail"));
        
        $params["isLoggedIn"] = $User->isLoggedIn();
        $params["lastOnline"] = date("d-M-Y H:i:s", $User->get("last_online"));

        $params["userId"]          = $User->get("id");
        $params["userLook"]        = $User->get("look");
        $params["userMotto"]       = $User->get("motto");
        $params["userName"]        = Session::get("username");
        $params["userEmail"]       = $mail[0];
        $params["userRank"]        = $User->get("rank");
        $params["userCredits"]     = $User->get("credits");
        $params["userPixels"]      = $User->get("activity_points");
        $params["userDiamonds"]    = $User->get("vip_points");
        $params["userIsVip"]       = ($User->get("rank") >= 2) ? "Je bent VIP" : "Je bent geen VIP";
		$params["userClientRadio"] = $User->get("client_radio");
		$params["radioAutoplay"]   = $User->get("radio_autoplay");
    }
	
	$params['noCache'] = rand(10000, 99999);
?>

Si vous avez besoin d'autres renseignements im here :')

Merci :D 

Link to post
Share on other sites
  • 4 weeks later...
  • Administrateur
Admin

Salut,

 

Ton sujet qui se trouvait dans 

Please login or register to see this link.

>

Please login or register to see this link.

a été déplacé dans  

Please login or register to see this link.

>

Please login or register to see this link.

>

Please login or register to see this link.

 

 

Ceci est un message automatique.

Link to post
Share on other sites
Guest
This topic is now closed to further replies.