Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

mobbo cms - OOP/PDO/PHP 5.5/MVC/PLUGINS/INSTALLER/TEMPLATES/CLASSES/PARSING/HK

Status
Not open for further replies.
git bisect -m
Loyal Member
Joined
Sep 2, 2011
Messages
2,173
Reaction score
917
mobbo 5.4



what is it?

The mobbo CMS CMS is a Revolutionary, which transforms Book your hotel online Habbo's community centers and fun, where members can enhance and improve. Now is the official mobbo cms PowerPíxel that neither Projj which was already.


Screenies

<Select Language
<Installer
<Index
<Registry
<Load
<Me Part 1
<Me Part 2
<Me Part 3
<Menu
<Wall
<Wall Posted in Content
<Home With On Tutorial
<Community
<Read News
<Users
<Store Part 1
<Store Part 2
<Staffs
<Security
<Panel

Language System
With the language files in .txt File, the line its a word, and with the parsering system
you can on the template use that syntax: [{(LINE_OF_THE_FILE)]} in the .ini you choose the Language, and in
the setup.

Parsering
To Customize the System Templates in index.php you can select the items translation,
PHP:
$vars = array ( 'users' => '1' , 'plugins' => '1' , 'settings' => '1' , 'languages' => '1' ) ;
$page = new Pages ( $vars ) ;
echo $page -> show () ;
This say to activate these modules.

Logs System
The system logs and errors, logs everything that happens in CMS, since queries, accessions, attacks, among other items.

Templates System
The System Templates and Plugins, lets you create templates and plugins in , creating a developer account, plugins allow addition of codes, and template system works like in Wordpress, but there may be several downloaded only one enabled.



Installing
Step 1 - Extract the CMS
Step 2 - Go to the Browser and type:
Step 3 - Import your Database
Step 4 - Go to the Browser and type:
Step 5 - Choose Your Language
Step 6 - Follow Steps Installer
Step 7 - After Installing Delete the folder Setup
Step 8 - Be Happy

Details
Object-Oriented

PDO library

Functional with mysql, pgsql, mssql, oci8, sqlite, etc..

System Logs

System Error

installer

Plugins system

Pages System

Actions of systems

System of Parsering

Templates System

And Much More.




Snippet
Class Transaction - Its the Query Class..
PHP:
<?php

/*
 * classe TTransaction
 * esta classe prov� os m�todos necess�rios manipular transa��es
 */

final
        class Transaction {

    private static
            $conn ; // conex�o ativa
    private static
            $logger ; // objeto de LOG
    private static
            $loggers  = NULL ; // objeto de LOG
    private static
            $messages = NULL ; // objeto de LOG

    /*
     * m�todo __construct()
     * Est� declarado como private para impedir que se crie inst�ncias de TTransaction
     */

    private
            function __construct () {
        
    }

    /*
     * m�todo open()
     * Abre uma transa��o e uma conex�o ao BD
     * [USER=1333357818]param[/USER] $database = nome do banco de dados
     */

    public static
            function open ( $database ) {
        // abre uma conex�o e armazena na propriedade est�tica $conn
        if ( empty ( self::$conn ) )
        {
            self::$conn = Connection::open ( $database ) ;
            // inicia a transa��o
            // desliga o log de SQL
            self::$logger = NULL ;
        }
    }

    /*
     * m�todo get()
     * retorna a conex�o ativa da transa��o
     */

    public static
            function get () {
        // retorna a conex�o ativa
        return self::$conn ;
    }

    /*
     * m�todo rollback()
     * desfaz todas opera��es realizadas na transa��o
     */

    public static
            function rollback () {
        if ( self::$conn )
        {
            // desfaz as opera��es realizadas durante a transa��o
            self::$conn = NULL ;
        }
    }

    /*
     * m�todo close()
     * Aplica todas opera��es realizadas e fecha a transa��o
     */

    public static
            function close () {
        if ( self::$conn )
        {
            // aplica as opera��es realizadas
            // durante a transa��o
            self::$conn = NULL ;
        }
    }

    /*
     * m�todo setLogger()
     * define qual estrat�gia (algoritmo de LOG ser� usado)
     */

    public static
            function setLogger ( Logger $logger ) {
        self::$logger = $logger ;
    }

    public static
            function query ( $query = NULL ) {
        try
        {
            $result = self::$conn -> query ( $query ) ;
            if ( isset ( $result ) )
            {

                return $result ;
            }

            Transaction::log ( "Executed Query: $query" , 'sql' ) ;
        }
        catch ( PDOException $ex )
        {
            if ( DEBUGMODE >= 1 )
            {
                print "Erro! " . $ex -> getMessage () . "</br>" ;
                if ( DEBUGMODE >= 2 )
                {
                    die () ;
                }
            }
        }
    }

    public static
            function fetch ( $result = NULL ) {

        try
        {
            if ( isset ( $result ) )
            {
                $row = $result -> fetch ( PDO::FETCH_ASSOC ) ;
                return $row ;
            }
            else
            {
                return "0" ;
            }
        }
        catch ( PDOException $ex )
        {
            if ( DEBUGMODE >= 1 )
            {
                print "Erro! " . $ex -> getMessage () . "</br>" ;
                if ( DEBUGMODE >= 2 )
                {
                    die () ;
                }
            }
        }
    }

    public static
            function num_rows ( $query = NULL ) {
        try
        {
            if ( isset ( $query ) )
            {
                $values = 0 ;
                while ( $row    = $query -> fetch ( PDO::FETCH_ASSOC ) )
                {
                    $values++ ;
                }
                return $values ;
            }
            else
            {
                return "0" ;
            }
        }
        catch ( PDOException $ex )
        {
            if ( DEBUGMODE >= 1 )
            {
                print "Erro! " . $ex -> getMessage () . "</br>" ;
                if ( DEBUGMODE >= 2 )
                {
                    die () ;
                }
            }
        }
    }

    public static
            function evaluate ( $query , $default_value = "undefined" ) {
        $result = Transaction::query ( $query ) ;

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

    public static
            function insert_array ( $table , $data , $exclude = array () ) {

        $fields = $values = array () ;

        if ( !is_array ( $exclude ) )
            $exclude = array (
                $exclude
                    ) ;

        foreach ( array_keys ( $data ) as $key )
        {
            if ( !in_array ( $key , $exclude ) )
            {
                $fields[] = "`$key`" ;
                $values[] = "'" . Security::injection ( $data[ $key ] ) . "'" ;
            }
        }

        $fields = implode ( "," , $fields ) ;
        $values = implode ( "," , $values ) ;

        if ( Transaction::query ( "INSERT INTO `$table` ($fields) VALUES ($values)" ) )
        {
            return array (
                "mysql_error"         => false ,
                "mysql_insert_id"     => mysql_insert_id () ,
                "mysql_affected_rows" => mysql_affected_rows () ,
                "mysql_info"          => mysql_info ()
                    ) ;
        }
        else
        {
            
        }
    }

Download


VirusTotal

TROJ_GE.E926DE17 its inofensive

Credits
bi0s - 100% Maked from scratch.

Skype: m0vame
 
Banned
Banned
Joined
Aug 25, 2009
Messages
431
Reaction score
190
Not a fan of the interface, coding looks good.
 
I don't even know
Loyal Member
Joined
Apr 7, 2010
Messages
1,699
Reaction score
420
PHP:
$sitename         = mobbo::mobbo_settings ( 'hotel_name' ) ;
$path             = mobbo::mobbo_settings ( 'hotel_url' ) ;
$maintenance      = mobbo::mobbo_settings ( 'maintenace' ) ;
$maintenance_text = mobbo::mobbo_settings ( 'maintenance_text' ) ;
$language         = mobbo::mobbo_settings ( 'language' ) ;
$twitter          = mobbo::mobbo_settings ( 'twitter' ) ;


    public static
            function mobbo_settings ( $var ) {
        $var2   = Security::injection ( $var ) ;
        $sql    = Transaction::query ( "SELECT value FROM `mobbo_settings` WHERE `variable` LIKE '$var2'" );
        $return = Transaction::fetch ( $sql ) ;
        return $return[ 'value' ] ;
    }

--

            $name      = mobbo::users_info ( 'username' ) ;
            $id        = mobbo::users_info ( 'id' ) ;
            $fb_id     = mobbo::users_info ( 'fb_id' ) ;
            $my_id     = mobbo::users_info ( 'id' ) ;
            $motto     = mobbo::users_info ( 'motto' ) ;
            $mail      = mobbo::users_info ( 'mail' ) ;
            $password  = mobbo::users_info ( 'password' ) ;
            $rank      = mobbo::users_info ( 'rank' ) ;
            $credits   = mobbo::users_info ( 'credits' ) ;
            $pixels    = mobbo::users_info ( 'activity_points' ) ;
            $look      = mobbo::users_info ( 'look' ) ;
            $online    = mobbo::users_info ( 'online' ) ;

    public static
            function users_info ( $get ) {
        $get = Security::injection ( $get ) ;
        if ( isset ( $_SESSION[ 'id' ] ) )
        {
            $id2 = Security::injection ( $_SESSION[ 'id' ] ) ;
        }
        else
        {
            $id2 = 0 ;
        }
        $sql    = Transaction::query ( "SELECT * FROM `users` WHERE id = '$id2' LIMIT 1" ) ;
        $return = Transaction::fetch ( $sql ) ;
        return $return[ $get ] ;
    }

Please don't do this, it's giving me flashbacks to PhoenixPHP
 
Developer
Developer
Joined
Aug 10, 2011
Messages
7,405
Reaction score
3,314
Use prepared statements as it is less vulnerable to Injection and if you then forget some escaping, it doesn't harm your website.
 
Status
Not open for further replies.
Back
Top