Aller au contenu
  • Veuillez ne pas poster de message pour but d'insulter, incitation à la haine, propos sexuels et tout autre qui ne respecte pas nos conditions générales !

Probléme configuration QuasarCMS


TuesdayATB

Messages recommandés

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

Pour avoir accès à ce lien, merci de vous connecter.

.

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 

Résultat de recherche d'images pour "alltta 20syl & mr j medeiros under"

Lien à poster
Partager sur d’autres sites

  • 4 semaines plus tard...
  • Administrateur

Salut,

 

Ton sujet qui se trouvait dans Divers Habbo > Aides et support a été déplacé dans  Aides et support > Divers Habbo > Archivés 

 

Ceci est un message automatique.

⠀⠀Founder of Inshare.fr

⠀⠀Baylife moderator

⠀⠀Twitch channel moderator

⠀⠀French translator Trucksbook.eu

𝐹𝑒𝑒𝑙 𝑓𝑟𝑒𝑒 𝑡𝑜 𝑤𝑟𝑖𝑡𝑒 𝑎 𝑐𝑜𝑚𝑚𝑒𝑛𝑡

—————————————————

╱⠀⠀⠀⠀⠀⠀⠀⠀⠀Règlements⠀⠀ //⠀⠀Abonnements⠀⠀ //⠀⠀ Discord   ⠀⠀⠀⠀⠀⠀⠀⠀⠀╲

 

signature.png

Lien à poster
Partager sur d’autres sites

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • Créer...