[HILFE] Huggo.st CMS Hilfe [HILFE]

  • Das ist die Core

    <?php

    define("CMS_CHECK", TRUE);
    require('CONFIG-7iIXUInqDS6A05R4zCT721Pfe.php');

    // #########################################################################
    // CLOUDFARE
    // #########################################################################

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

    // #########################################################################
    // MySQL_EVALUATE
    // #########################################################################

    function mysql_evaluate($query, $default_value="undefined") {
    $result = mysql_query($query) or die(mysql_error());

    if(mysql_num_rows($result) < 1){
    return $default_value;
    } else {
    return mysql_result($result, 0);
    }
    }

    // #########################################################################
    // Filter/-HoloText
    // #########################################################################

    function FilterText($str) {
    $str = mysql_real_escape_string(addslashes(htmlspecialchars($str)));
    return $str;
    }

    function News_Text($str) {
    if(get_magic_quotes_gpc()){ $str = stripslashes($str); }
    $str = preg_replace(array('/\x{0001}/u','/\x{0002}/u','/\x{0003}/u','/\x{0005}/u','/\x{0009}/u'),' ',$str);
    $str = mysql_real_escape_string($str);
    return $str;
    }

    function Filter_Text($str, $advanced=false) {
    if($advanced == true){ return mysql_real_escape_string($str); }
    $str = mysql_real_escape_string($str);
    return $str;
    }

    function STR($str) {
    $str = mysql_real_escape_string($str);
    return $str;
    }

    function HoloText($str, $advanced=false, $bbcode=false) {
    if($advanced == true){ return stripslashes($str); }
    $str = stripslashes(nl2br(htmlspecialchars($str)));
    return $str;
    }

    // #########################################################################
    // GET CONFIG FROM MYSQL
    // #########################################################################

    function FetchSITESetting($strSetting){

    $tmp = mysql_query("SELECT ".$strSetting." FROM cms_settings LIMIT 1") or die(mysql_error());
    $tmp = mysql_fetch_assoc($tmp);
    return $tmp[$strSetting];

    }

    if(!isset($_SESSION['username']) or !isset($_SESSION['acp'])){
    ini_set('session.gc_probability', 1);
    @session_start();
    }

    $server = mysql_fetch_object($server_status = mysql_query("SELECT users_online,stamp FROM server_status"));
    $online_counter = 1.3 * $server->users_online;
    $online_count = round($online_counter, 0);

    // #########################################################################
    // LOGIN
    // #########################################################################

    if(session_is_registered('username')){

    $rawname = FilterText($_SESSION['username']);
    $rawpass = FilterText($_SESSION['password']);

    $sql = mysql_query("SELECT * FROM users WHERE username = '".$rawname."' AND password = '".$rawpass."' LIMIT 1");
    $user = mysql_fetch_object($sql);

    if(mysql_num_rows($sql) < 1) {
    session_destroy();
    header("location: ".$site->url); exit;
    }

    $sql = mysql_query("SELECT expire,reason FROM bans WHERE value = '".$user->username."' AND bantype = 'user' AND expire > '".time()."' or value = '".$_SERVER["REMOTE_ADDR"]."' AND bantype = 'ip' AND expire > '".time()."' ORDER BY id DESC LIMIT 1");

    if(mysql_num_rows($sql) > 0){
    session_destroy();
    header("location: $site->url"); exit;
    }

    if($user->gast == 1 && $gast != true) {
    header("location: ".$site->url."client");
    }

    $_SESSION['id'] = $user->id;
    $_SESSION['login'] = "true";
    $my_id = $user->id;
    $name = $user->username;

    } else {
    $name = "null";
    $_SESSION['login'] = "false";
    $user->theme = "classic";
    $user->id = "0";
    }

    if(!session_is_registered('username')){
    require('COOKIE-REMEMBER.php');
    }

    // #########################################################################
    // HK/IS_MAINTENANCE CHECK
    // #########################################################################

    if($user->rank > 4 && !isset($_SESSION['acp']) && !isset($hk)){
    header("location: ".$site->url."housekeeping");
    } else {
    $rank['iAdmin'] = "0";
    }

    if(FetchSITESetting('maintenance') == '1' && !isset($maintenance) && !isset($_SESSION['acp']) || FetchSITESetting('maintenance') == '1' && $user->rank < 5 && !isset($maintenance)){
    header("Location: ".$site->url."maintenance");
    exit;
    }

    ?>

  • <?php
    /**************************/
    /* CONFIGURATION SETTINGS */
    /**************************/

    $facebook = "http://www.huggo.st";
    $twitter = "Huggo_ST";
    $hash_secret = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";

    /**********************************************************************/
    ///////////////////////////// PATH SCRIPT /////////////////////////////*
    /**********************************************************************/

    $site->version = "Huggo v1.0";
    $site->name = "Hobbu";
    $site->url = "http://25.88.242.65/";
    $shortpath = $site->url;
    $path = $shortpath;
    $defaultpath = $shortpath;
    $swfpath = "".$path."/SWF";
    $adminpath = "".$site->url."manage/cms/DE-de/hk_re";
    $adminpath_beta = "".$site->url."housekeeping";
    $cimagesurl = $site->url."SWF/c_images";
    $avatar = "http://www.habbo.de/habbo-imaging/avatarimage?figure=";
    $badgesurl = "/album1584/";
    $raresurl = $site->url."web-gallery/v2/images/limited/furni/";
    $campaignsurl = "/hot_campaign_images_hq/";
    $newsurl = "/Top_Story_Images/";
    $pricelisturl = $site->url."web-gallery/v2/images/pricelist/furni/";
    $supportmail = "HuggoSUP@hotmail.de";

    if($_SERVER['SERVER_NAME'] != "http://www.huggo.st"){
    header("location: ".$site->url.""); exit;
    }

    /**********************************************************************/
    ///////////////////////////// CONFIG SCRIPT ////////////////////////////*
    /**********************************************************************/

    $config['footer_tabs'] = "<br /><a href=\"#\" target=\"_self\">Homepage</a> | <a href=\"/hilfe\" target=\"new\">Hilfe</a> | <a href=\"http://www.rattleprojects.de/impressum\" target=\"new\">Impressum</a> | <a href=\"/haftung\" target=\"new\">Haftungsausschluss</a> | <a href=\"/datenschutz\" target=\"new\">Datenschutz</a> | <a href=\"/kontakt\" target=\"new\">Kontakt</a> | <a href=\"/help\" target=\"new\">FAQ</a>";
    $config['footer_content'] = "&copy; Copyright Huggo Hotel 2014";
    $config['dir'] = "../SWF/c_images/album1584"; // OPENDIR FOR BADGESHOP (HK)
    $config['pir'] = "../SWF/c_images/navi"; // OPENDIR FOR PUBLIC IMAGES
    $config['bir'] = "../SWF/c_images/hot_campaign_images_hq"; // OPENDIR FOR HOT CAMPAIGNS (HK)
    $config['nir'] = "../SWF/c_images/Top_Story_Images"; // OPENDIR FOR NEWS (HK)
    $config['rir'] = "../web-gallery/v2/images/limited/furni"; // OPENDIR FOR RARESHOP (HK)

    $config['max_account'] = "3"; // Anzahl an Accounts pro IP

    $price['group'] = "250";
    $price['horse/credits'] = "5000";
    $price['horse/pixels'] = "1000";

    $start->credits = "6000"; // Taler nach Registrierung
    $start->pixels = "2500"; // Pixel nach Registrierung
    $start->motto = "Hey! Ich bin neu hier."; // Motto nach Registrierung
    $start->home_room = "1"; // Raum ID wo die neuen User nach Registrierung starten sollen
    $start->figuredataM = "hr-893-45.hd-185-4.ch-215-73.lg-285-64.sh-290-62"; // Aussehen der Jungs (Figuredata - Male)
    $start->figuredataF = "hr-515-45.hd-600-4.ch-685-73.lg-720-64.sh-725-62"; // Aussehen der Mädchen (Figuredata - Female)

    $bot->preis = "5000";
    $bot->max = "20";
    $bot->newoutfit = "ch-3111-63-62.hd-3103-1.hr-3163-39.lg-285-77.sh-305-78";

    $client->IP = "37.187.29.117";
    $client->port = "30020";
    $client->variables = "".$site->url."SWF/gamedata/external_variables/2.txt";
    $client->texts = "".$site->url."SWF/gamedata/external_flash_texts/1.txt";
    $client->productdata = "".$site->url."SWF/gamedata/productdata/1.txt";
    $client->furnidata = "".$site->url."SWF/gamedata/furnidata/1.txt";
    $client->swf_path = "".$site->url."SWF/gordon/";
    $client->habbo_swf = "".$site->url."SWF/gordon/Habbo.swf";

    /**********************************************************************/
    /////////////////////////// GETMONEY SCRIPT ///////////////////////////*
    /**********************************************************************/

    $getmoney['credits'] = "1500";
    $getmoney['pixels'] = "250";
    $getmoney['credits(VIP)'] = "7000";
    $getmoney['pixels(VIP)'] = "1000";
    $getmoney['respects'] = "3";
    $getmoney['respects(VIP)'] = "5";
    $getmoney['vip_points'] = "0";
    $referer['vip_points'] = "0";

    /**********************************************************************/

    ?>

Jetzt mitmachen!

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