[Release] Orbit Reborn - Source

11/25/2014 02:50 YURI-ELIADE.ITALY#376
Quote:
Originally Posted by insano_ View Post
My rank 21 -admin dont show on emulator, why not?

are you using atlantiz emulator for orbit reborn cms
no [Only registered and activated users can see links. Click Here To Register...]
11/25/2014 03:17 insano_#377
u have change spacemap of orbit for spacemap of atlantiz, cntrl c + cntrl v .-.
12/08/2014 20:57 Apni#378
This source is so messy.
12/08/2014 22:18 linkpad#379
Quote:
Originally Posted by Apni View Post
This source is so messy.
Yes, this source is messy but no one told you to use it. Also, you could make your own emulator, and show us how yours is better ?
12/08/2014 23:02 Apni#380
Quote:
Originally Posted by linkpad View Post
Yes, this source is messy but no one told you to use it. Also, you could make your own emulator, and show us how yours is better ?
You released it for educational purposes. I hope you're not expecting anyone to not critique your code.
12/08/2014 23:11 linkpad#381
Quote:
Originally Posted by Apni View Post
You released it for educational purposes. I hope you're not expecting anyone to not critique your code.
I'm open to critique, but then give some arguments about it instead of writing only one word.
12/13/2014 01:29 babyhamsta#382
I get a error in the database.. it says [Err] 1062 - Duplicate entry '1' for key 'PRIMARY'

Fixed.. Now on the home page I get these
Quote:
Deprecated: Non-static method Auth::getUser() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\views\internalStart\index.php on line 71
Quote:
Deprecated: Non-static method Auth::getUser() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\views\internalStart\index.php on line 86
MMO
and
Quote:
Notice: Undefined property: View::$hall_of_fame_user in C:\xampp\htdocs\views\internalStart\index.php on line 112
players
PLEASE HELP ME FIX!
PICTURE: [Only registered and activated users can see links. Click Here To Register...]
12/13/2014 17:57 OmenUS#383
I have such errors in last version of xampp, but in old xampp all is ok, so try another version of it.
12/16/2014 13:17 linkpad#384
Quote:
Originally Posted by babyhamsta View Post
I get a error in the database.. it says [Err] 1062 - Duplicate entry '1' for key 'PRIMARY'

Fixed.. Now on the home page I get these and

PLEASE HELP ME FIX!
PICTURE: [Only registered and activated users can see links. Click Here To Register...]
Replace util/Auth.php by this :

PHP Code:
<?php

class Auth
{
    public static function 
handleLogin()
    {

        @
session_start();
        
$logged Session::get('loggedIn');
        if (
$logged == false)
        {
            
Session::destroy();
            
header('location: /index');
            exit;
        }
    }

    public static function 
isLogged()
    {
        @
session_start();
        
$logged Session::get('loggedIn');
        if(
$logged == true)
        {
            
header('location: /internalStart');
            exit;
        }
    }

    public static function 
getUser($data)
    {
        @
session_start();
        
$logged Session::get('loggedIn');
        if (
$logged == true)
        {
            
$db = new Database(DB_TYPEDB_HOSTDB_NAMEDB_USERDB_PASS);
            
$returnvalue $db->select('SELECT '.$data.' FROM users WHERE id= :account_id', array('account_id' => Session::get('account_ID')));       
            return 
$returnvalue[0][$data];
        }
    }

    public static function 
getUserSettings($data)
    {
        @
session_start();
        
$logged Session::get('loggedIn');
        if (
$logged == true)
        {
            
$db = new Database(DB_TYPEDB_HOSTDB_NAMEDB_USERDB_PASS);
            
$returnvalue $db->select('SELECT '.$data.' FROM users_settings WHERE playerid= :account_id', array('account_id' => Session::get('account_ID')));       
            return 
$returnvalue[0][$data];
        }
    }

    public static function 
getUserByID($data$id)
    {
        
$db = new Database(DB_TYPEDB_HOSTDB_NAMEDB_USERDB_PASS);
        
$returnvalue $db->select('SELECT '.$data.' FROM users WHERE id= :account_id', array('account_id' => $id));       
        return 
$returnvalue[0][$data];
    }
}


?>
And also replace util/Server_status.php by this :

PHP Code:
<?php

class Server_status
{
    public static function 
online_users()
    {
            
$db = new Database(DB_TYPEDB_HOSTDB_NAMEDB_USERDB_PASS);
            
$req $db->prepare('SELECT sval FROM server_statistics WHERE skey="active_connections"');
            
$req->execute();

            
$resultat $req->fetch();
            
            return 
$resultat[0];
    }
}

?>
12/20/2014 14:51 DO_2048#385
Quote:
Deprecated: Non-static method Auth::getUser() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\views\internalStart\index.php on line 71
you can fix it with this code:
12/20/2014 21:07 Mr.Streuner#386
<label for="">Username:</label><span id="username"><?php echo Auth::getUser('username'); ?></span>
This Work ;)
12/21/2014 08:49 dfhkfvjd#387
Tell me where the game started. Do I need to key(code) on the certificate, if so please tell him
12/23/2014 16:25 ArDii98#388
Hi i have a problem the only problem i have on hamachi is this
when i go to trade the images of the ships and the scrollbar are okay
but when i click on the ship and buy it only make a refresh and follow with same ship (refresh of header.swf) also the under ship details are frozed there :
Speed : 360 Hit Points : 64000
Lasers : 6 Generators : 6
Extras : 1
12/23/2014 22:05 UND3RW0RLD#389
code?
12/24/2014 01:29 gforcz#390
You did a great job on this. Thanks for releasing the source.