HobbuCMS Client funktioniert nicht

  • Hallo RT, ich hab ein folgenden Problem mit meinem Client.

    Ich hab jetzt soweit alles behoben, dass der Emu funktioniert.

    Jetzt wollte ich ins Client, aber komme nicht richtig rein.

    Es sieht folgendes so aus:

    nk.PNG Wie es aussieht werden die Verbindungen nicht zugeführt, aber ich hab keine Ahnung wieso. Hab alles durchkuckt. Evtl wisst ihr, was das Problem ist.

  • Moin,

    schau mal nach ob in deiner client.php die IP und der Port richtig eingetragen sind. Damit dein Emulator eine Verbindung empfangen kann sollten die IP und der Port in der config.ini deines Emulators ebenfalls der deiner client.php entsprechen.

    Das Problem ist alles ist so komisch verlinkt, dass man nicht die Sachen in client.php einstellen kann

  • Abend,

    du sollst nicht nach Verlinkungen Ausschau halten sondern die IP Adresse und den Port überprüfen in der client.php und config.ini

    Wenn es komisch verlinkt ist dann suchst du halt den Ursprung der Verlinkung, wahrscheinlich ist die Rede von Variablen.. core.php oder so, CMS Einstellungen halt.

    Hab ich, aber ich finde nix mit client.

  • Wenn dir sonst keiner helfen mag, warte bis Montag, dann könnte ich diesbezüglich einsteigen. Sonst viel Glück bei der Suche ^^

    Diese Aussage ist Schwachsinn, hier wird versucht zu helfen, aber es wird von NoHand wenig Kooperation gezeigt.

    Sein Problem wird wahrscheinlich ein Connection Problem sein, was sagt denn die Chrome Console?

  • Diese Aussage ist Schwachsinn, hier wird versucht zu helfen, aber es wird von NoHand wenig Kooperation gezeigt.

    Sein Problem wird wahrscheinlich ein Connection Problem sein, was sagt denn die Chrome Console?

    Sehe ich genau so, keine hilfreichen Informationen über das Problem, ich denke jetzt zwar wenig das etwas in der Console gemeldet wird wenn es ein Verbindungsproblem zwischen Client und Emulator gibt.

  • Was soll ich den genau sagen? Ich hab in der

    Client.php nachgekuckt

    Spoiler anzeigen

    <?php

    /* mCMS

    * A first CMS by Micki

    * -------------------------

    * Copyright (C) by Micki

    * Copyright reserved!

    */

    header('Content-Type: text/html; charset=utf-8');

    require ('./inc/base.inc.php');

    require ('./inc/maintenance.inc.php');

    if(LOGGING_IN == false){

    header('location: '. $_CONFIG['website']['url']);

    }

    header('location: '. $_CONFIG['website']['url'] .'/game');

    ?>

    Dann ebenfalls in die game.php

    Spoiler anzeigen

    <?php

    /* mCMS

    * A first CMS by Micki

    * -------------------------

    * Copyright (C) by Micki

    * Copyright reserved!

    */

    header('Content-Type: text/html; charset=utf-8');

    require ('./inc/base.inc.php');

    require ('./inc/maintenance.inc.php');

    if(LOGGING_IN == false){

    header('location: '. $_CONFIG['website']['url']);

    }

    if($_CONFIG['client']['maxusers'] <= $core->ServerStatus('users_online')) {

    header('location: '. $_CONFIG['website']['url'] .'/me?client');

    }

    if($_CONFIG['housekeeping']['rank'] <= $user->UserData('rank')){

    if(empty($_SESSION['intern']['acp'])){

    header('location: '. $_CONFIG['website']['url'].$_CONFIG['housekeeping']['url'].'');

    }

    }

    /*

    if($user->UserData('online') == 1){

    header('location: '. $_CONFIG['website']['url'] .'/me');

    }

    */

    $form_data_user_clientauth = array(

    'auth_ticket' => $core->GenerateTicket(),

    'ip_last' => $remoteip

    );

    dbUpdate('users', $form_data_user_clientauth, "WHERE id = '" . $user->UserData('id') . "' LIMIT 1");

    $tpl->assign(array(

    'SEITE' => 'Client'

    ));

    $tpl->display($user->UserData('theme').'/page-client');

    ?>

    Danach hab ich in den base.inc.php reingekuckt.

    Spoiler anzeigen

    <?php

    /* mCMS

    * A first CMS by Micki

    * -------------------------

    * Copyright (C) by Micki

    * Copyright reserved!

    */

    @session_start();

    // Anti Flood Protection

    /*if($_SESSION['last_session_request'] > time() - 2){

    // users will be redirected to this page if it makes requests faster than 2 seconds

    header("location: /error");

    exit;

    }*/

    $_SESSION['last_session_request'] = time();


    // Zeitzone

    date_default_timezone_set('Europe/Berlin');

    if(@ini_get('date.timezone') == null && function_exists("date_default_timezone_get")){ @date_default_timezone_set("Europe/Berlin"); }

    // Ordnerpath definieren

    define("ROOT", $_SERVER['DOCUMENT_ROOT']);

    $_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];

    require (ROOT . "/inc/mysql.inc.php");

    require (ROOT . "/inc/config.inc.php");

    // MySQL timeout connection

    $mysqli->options(MYSQLI_OPT_CONNECT_TIMEOUT, 500);

    // Urlpath definieren

    $url = $_CONFIG['website']['url'];

    // IP defninieren

    $remoteip = $_SERVER['REMOTE_ADDR']; // HTTP_X_FORWARDED_FOR

    // Debug

    if($_CONFIG['system']['debug'] == true) {

    error_reporting(E_ALL);

    } else {

    error_reporting(0);

    }

    // Alle Klassen aufrufen

    function __autoload($class_name) {

    require ROOT . "/inc/classes/class." . strtolower($class_name). ".php";

    }

    // Klassen ausführen

    $user = new User();

    $core = new Core();

    $tpl = new Template();

    $filter = new Filter();

    $news = new News();

    $housekeeping = new Housekeeping();

    // Funktionen aufrufen

    require (ROOT . "/inc/functions/functions.user.php");

    // Template

    require (ROOT . "/inc/template.inc.php");

    // Autoalert

    if($_CONFIG['autoalert']['status'] == 1){

    if($_CONFIG['autoalert']['timestamp'] < time()){

    // $core->MUS('ha', $_CONFIG['autoalert']['text']);

    $timestamp_update = array(

    'option' => time()+$_CONFIG['autoalert']['interval']

    );

    dbUpdate('cms_config', $timestamp_update, "WHERE config = 'autoalert-timestamp' LIMIT 1");

    }

    }

    ?>

    Dann ist wieder zwei andere Links verlinkt.

    mysql.inc.php

    Spoiler anzeigen

    <?php

    /* mCMS

    * A first CMS by Micki

    * -------------------------

    * Copyright (C) by Micki

    * Copyright reserved!

    *

    */

    // MySQL Daten

    $_CONFIG['mysqli']['mysql_ip'] = "localhost";

    $_CONFIG['mysqli']['mysql_user'] = "root";

    $_CONFIG['mysqli']['mysql_pass'] = "123";

    $_CONFIG['mysqli']['mysql_db'] = "land";

    $_CONFIG['mysqli']['mysql_port'] = "3306";

    $mysqli = new mysqli(

    $_CONFIG['mysqli']['mysql_ip'],

    $_CONFIG['mysqli']['mysql_user'],

    $_CONFIG['mysqli']['mysql_pass'],

    $_CONFIG['mysqli']['mysql_db'],

    $_CONFIG['mysqli']['mysql_port']

    );

    if ($mysqli->connect_errno) {

    include("/update.php");

    exit;

    }

    function dbSelect($select_column, $table_name, $where_clause='')

    {

    global $mysqli;

    $whereSQL = '';

    if(!empty($where_clause))

    {

    if(substr(strtoupper(trim($where_clause)), 0, 5) != 'WHERE')

    {

    $whereSQL = " WHERE ".$where_clause;

    } else

    {

    $whereSQL = " ".trim($where_clause);

    }

    }

    $sql = "SELECT ".$select_column." FROM ".$table_name.$whereSQL;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query;

    }

    function dbSelectS($select_column, $table_name, $order_clause='')

    {

    global $mysqli;

    $whereSQL = '';

    if(!empty($$order_clause))

    {

    if(substr(strtoupper(trim($$order_clause)), 0, 5) != 'ORDER')

    {

    $whereSQL = " ORDER ".$$order_clause;

    } else

    {

    $whereSQL = " ".trim($$order_clause);

    }

    }

    $sql = "SELECT ".$select_column." FROM ".$table_name.$whereSQL;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query;

    }

    function dbSelectNumRows($select_column, $table_name, $where_clause='')

    {

    global $mysqli;

    $whereSQL = '';

    if(!empty($where_clause))

    {

    if(substr(strtoupper(trim($where_clause)), 0, 5) != 'WHERE')

    {

    $whereSQL = " WHERE ".$where_clause;

    } else

    {

    $whereSQL = " ".trim($where_clause);

    }

    }

    $sql = "SELECT ".$select_column." FROM ".$table_name.$whereSQL;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query->num_rows;

    }

    function dbSelectNumRowsS($select_column, $table_name)

    {

    global $mysqli;

    $sql = "SELECT ".$select_column." FROM ".$table_name;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query->num_rows;

    }

    function dbInsert($table_name, $form_data)

    {

    global $mysqli;

    $fields = array_keys($form_data);

    $sql = "INSERT INTO ".$table_name."

    (`".implode('`,`', $fields)."`) VALUES('".implode("','", $form_data)."')";

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query;

    }

    function dbUpdate($table_name, $form_data, $where_clause='')

    {

    global $mysqli;

    $whereSQL = '';

    if(!empty($where_clause))

    {

    if(substr(strtoupper(trim($where_clause)), 0, 5) != 'WHERE')

    {

    $whereSQL = " WHERE ".$where_clause;

    } else

    {

    $whereSQL = " ".trim($where_clause);

    }

    }

    $sql = "UPDATE ".$table_name." SET ";

    $sets = array();

    foreach($form_data as $column => $value)

    {

    $sets[] = "`".$column."` = '".$value."'";

    }

    $sql .= implode(', ', $sets);

    $sql .= $whereSQL;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query;

    }

    function dbDelete($table_name, $where_clause='')

    {

    global $mysqli;

    $whereSQL = '';

    if(!empty($where_clause))

    {

    if(substr(strtoupper(trim($where_clause)), 0, 5) != 'WHERE')

    {

    $whereSQL = " WHERE ".$where_clause;

    } else

    {

    $whereSQL = " ".trim($where_clause);

    }

    }

    $sql = "DELETE FROM ".$table_name.$whereSQL;

    $query = $mysqli->query($sql);

    if($mysqli->error){

    exit( $mysqli->error );

    }

    return $query;

    }

    ?>

    config.inc.php

    Spoiler anzeigen

    <?php

    /* mCMS

    * A first CMS by Micki

    * -------------------------

    * Copyright (C) by Micki

    * Copyright reserved!

    *

    */

    $configtable = dbSelect('*','cms_config');

    while($config = $configtable->fetch_assoc()){

    $array = explode('-', $config['config']);

    $_CONFIG[$array[0]][$array[1]] = $config['option'];

    }

    // Housekeeping

    $_CONFIG['housekeeping']['rank'] = '6';

    $_CONFIG['housekeeping']['url'] = '/intern/housekeeping';

    $_CONFIG['housekeeping']['name'] = $_CONFIG['website']['name'].' Housekeeping';

    $_CONFIG['housekeeping']['footer'] = 'Housekeeping by Hobba - Version 1.0.0<br/><i>Template: AdminLTE</i>';

    // Housekeeping - Rights - ab welchen Rank

    $_CONFIG['housekeeping']['right']['dashboard'] = '6'; // Dashboard

    $_CONFIG['housekeeping']['right']['dashboard.delalltask'] = '10'; // Dashboard: alle Aufgaben löschbar

    $_CONFIG['housekeeping']['right']['dashboard.delallchat'] = '10'; // Dashboard: alle Chatsverlauf löschbar

    $_CONFIG['housekeeping']['right']['dashboard.calendar'] = '7'; // Dashboard: Kalender

    $_CONFIG['housekeeping']['right']['dashboard.calendar.changeall'] = '9'; // Dashboard: Kalender - alles änderbar

    $_CONFIG['housekeeping']['right']['rules'] = '7'; // Regeln

    $_CONFIG['housekeeping']['right']['timeline'] = '10'; // Timeline

    $_CONFIG['housekeeping']['right']['commands'] = '7'; // Commandliste

    $_CONFIG['housekeeping']['right']['statistik'] = '7'; // Statistik: User, Räume & Online

    $_CONFIG['housekeeping']['right']['system'] = '10'; // System

    $_CONFIG['housekeeping']['right']['system.config'] = '14'; // System: Config

    $_CONFIG['housekeeping']['right']['system.server'] = '14'; // System: Server

    $_CONFIG['housekeeping']['right']['system.datenbank'] = '14'; // System: Datenbank

    $_CONFIG['housekeeping']['right']['system.clean'] = '14'; // System: Datensätze leeren

    $_CONFIG['housekeeping']['right']['events'] = '7'; // Eventkalender

    $_CONFIG['housekeeping']['right']['events.change'] = '9'; // Eventkalender: Änderungen

    $_CONFIG['housekeeping']['right']['homepage'] = '6'; // Homepage

    $_CONFIG['housekeeping']['right']['homepage.support'] = '6'; // Homepage: Support

    $_CONFIG['housekeeping']['right']['homepage.support.del'] = '10'; // Homepage: Support löschen

    $_CONFIG['housekeeping']['right']['homepage.lotto'] = '10'; // Homepage: Lotto

    $_CONFIG['housekeeping']['right']['homepage.badgeshop'] = '9'; // Homepage: Badgeshop

    $_CONFIG['housekeeping']['right']['homepage.shop'] = '10'; // Homepage: Shop Bearbeitung

    $_CONFIG['housekeeping']['right']['homepage.shoppurchase'] = '10'; // Homepage: Shop Bestellungen

    $_CONFIG['housekeeping']['right']['news'] = '7'; // News

    $_CONFIG['housekeeping']['right']['news.delall'] = '10'; // Alle News löschen

    $_CONFIG['housekeeping']['right']['news.editall'] = '7'; // Alle News bearbeiten

    $_CONFIG['housekeeping']['right']['news.survey'] = '7'; // News Umfrage

    $_CONFIG['housekeeping']['right']['news.survey.editall'] = '9'; // News Umfrage Bearbeitung

    $_CONFIG['housekeeping']['right']['client'] = '6'; // Client

    $_CONFIG['housekeeping']['right']['client.config'] = '14'; // Client: Config

    $_CONFIG['housekeeping']['right']['client.furni'] = '6'; // Client: Möbel

    $_CONFIG['housekeeping']['right']['client.rooms'] = '8'; // Client: Räume

    $_CONFIG['housekeeping']['right']['client.rooms.edit'] = '10'; // Client: Räume bearbeiten

    $_CONFIG['housekeeping']['right']['client.bot'] = '7'; // Client: Bot

    $_CONFIG['housekeeping']['right']['client.code'] = '7'; // Client: Vouchercode

    $_CONFIG['housekeeping']['right']['client.code.dias'] = '9'; // Client: Vouchercode - Dias

    $_CONFIG['housekeeping']['right']['client.survey'] = '8'; // Client: Umfragen

    $_CONFIG['housekeeping']['right']['client.filter'] = '10'; // Client: Wordfilter

    $_CONFIG['housekeeping']['right']['client.filter.antiwerber'] = '10'; // Client: Wordfilter - AntiWerber

    $_CONFIG['housekeeping']['right']['client.badges'] = '7'; // Client: Badgebeschriftungen

    $_CONFIG['housekeeping']['right']['client.emutask'] = '10'; // Client: Emulator Commands

    $_CONFIG['housekeeping']['right']['client.autorare'] = '10'; // Client: Automatische Rareänderung

    $_CONFIG['housekeeping']['right']['user'] = '6'; // User

    $_CONFIG['housekeeping']['right']['user.list'] = '6'; // User: Liste

    $_CONFIG['housekeeping']['right']['user.edit'] = '6'; // User: Bearbeitung

    $_CONFIG['housekeeping']['right']['user.edit.disconnect'] = '9'; // User: Bearbeitung: Disconnect

    $_CONFIG['housekeeping']['right']['user.info'] = '6'; // User: Informationen

    $_CONFIG['housekeeping']['right']['user.ban'] = '6'; // User: Bann

    $_CONFIG['housekeeping']['right']['user.clon'] = '6'; // User: Klon

    $_CONFIG['housekeeping']['right']['user.badgetool'] = '7'; // User: Badgetool

    $_CONFIG['housekeeping']['right']['user.mass'] = '9'; // User: Massensenden

    $_CONFIG['housekeeping']['right']['user.currency'] = '7'; // User: Währungen

    $_CONFIG['housekeeping']['right']['user.currency.credits'] = '7'; // User: Währungen: Taler

    $_CONFIG['housekeeping']['right']['user.currency.pixels'] = '7'; // User: Währungen: Duckets/Pixel

    $_CONFIG['housekeeping']['right']['user.currency.dias'] = '8'; // User: Währungen: Diamanten

    $_CONFIG['housekeeping']['right']['user.vip'] = '9'; // User: VIP

    $_CONFIG['housekeeping']['right']['user.change.name'] = '9'; // User: Name ändern

    $_CONFIG['housekeeping']['right']['user.change.password'] = '10'; // User: Passwort ändern

    $_CONFIG['housekeeping']['right']['logs'] = '7'; // Logs

    $_CONFIG['housekeeping']['right']['logs.login'] = '7'; // Logs: Login

    $_CONFIG['housekeeping']['right']['logs.ban'] = '7'; // Logs: Bann

    $_CONFIG['housekeeping']['right']['logs.chat'] = '6'; // Logs: Chat

    $_CONFIG['housekeeping']['right']['logs.commands'] = '8'; // Logs: Commands

    $_CONFIG['housekeeping']['right']['logs.rooms'] = '7'; // Logs: Räume

    $_CONFIG['housekeeping']['right']['logs.housekeeping'] = '10'; // Logs: Housekeeping

    // System

    $_CONFIG['system']['hash_secret'] = 'xCg532%@%gdvf^5DGaa10&*rFTfg^FD4\$OIFThrR_gh(ugf*/';

    $_CONFIG['system']['debug'] = false;

    ?>

    Ich hab in den ganzen Verlinkungen nix gefunden

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!