[Release] Orbit Reborn - Source

11/18/2014 20:46 BotorCrime#361
Quote:
Originally Posted by LEJYONER(PvP) View Post
I Fixed Loading :)
STOP SPAM ! :rtfm::rtfm::rtfm::rtfm::rtfm::rtfm:
11/18/2014 22:31 UND3RW0RLD#362
Quote:
Originally Posted by LEJYONER(PvP) View Post
I Fixed Loading :)
how? :)
11/23/2014 21:36 insano_#363
[Only registered and activated users can see links. Click Here To Register...]

the do_img this in htdocs and even then the hangar does not work
11/23/2014 22:20 UND3RW0RLD#364
url is corrupt
11/23/2014 22:45 insano_#365
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
url is corrupt
?? :confused: dont understand
11/24/2014 09:10 kdrhn68#366
i edited inventory.php and shipAnim.php but dont work hangar help me pelase
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
11/24/2014 13:47 steppdroid#367
For buy ships with uridium i change internalDock_model so:

PHP Code:
<?php

class InternalDock_Model extends Model
{

    public function 
__construct()
    {
        
parent::__construct();
    }

    function 
get_ship_infos()
    {
        
$req $this->db->prepare('SELECT price_uri, ship_hp, laser, generator, extras, base_speed FROM ships WHERE ship_id=:id');
        
$req->execute(array('id' => $id));
        
$data $req->fetchAll();

        return 
$data;
    }

    function 
BuyShip()
    {
    
$price $this->db->prepare("SELECT price_uri FROM ships WHERE ship_id = :id");
    
$price->execute(array('id' => $id));
    
$uri $this->db->prepare("SELECT uridium FROM users WHERE id = :id");
    
$uri->execute(array('id' => $id));
    
    if(
$price $uri){
    
$uri $uri $price;
    
        try
        {

            
$form = new Form();

            
$form     ->post('id')
                    ->
val('verifyShipID');

            
$form     ->submit();
            
$data $form->fetch();
            
            
$sth $this->db->prepare("SELECT ship_id, ship_hp, base_speed FROM ships WHERE ship_id = :id");
            
$sth->execute(array('id' => $data['id']));
            
$data2 $sth->fetchAll();

            
$sth $this->db->prepare("UPDATE users SET shipid=:ship_id, current_hp=:curr_hp, max_hp=:max_hp WHERE id=:id");
            
$sth->execute(array('id' => Session::get('account_ID'), 'ship_id' => $data2[0]['ship_id'], 'curr_hp' => 0'max_hp' => $data2[0]['ship_hp']));

            
$sth $this->db->prepare("UPDATE player_config SET current_shield=0, max_shield=0, ship_speed=:speed, min_damage=0, max_damage=0 WHERE player_id=:id");
            
$sth->execute(array('id' => Session::get('account_ID'), 'speed' => $data2[0]['base_speed']));

            
$sth $this->db->prepare("UPDATE users_items SET OnConfig_1=0, OnConfig_2=0, Config1_DroneID=0, Config2_DroneID=0 WHERE player_id=:id");
            
$sth->execute(array('id' => Session::get('account_ID')));


            echo 
json_encode(array('result' => 'Ship bought !'));

            
header('location: '.URL.'internalDock');
        }

    }
    else{
    echo 
"<script>alert('Uridium insufficent...');</script>";}
    
    catch (
Exception $e
        {
            echo 
$e->getMessage();
        }

}

?>
but no work why? :(
11/24/2014 13:57 UND3RW0RLD#368
This hurts my eyes

6 qrys in one method? seriously?

function BuyShip($id)
11/24/2014 14:07 steppdroid#369
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
This hurts my eyes

6 qrys in one method? seriously?

function BuyShip($id)
hahaha excuse my ignorance ..
11/24/2014 14:42 insano_#370
Quote:
Originally Posted by kdrhn68 View Post
i edited inventory.php and shipAnim.php but dont work hangar help me pelase
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
you need swf_global on htdocs to fix it ;)
11/24/2014 21:03 bazhanyuk#371
How did you change title color from yellow to green? :)
11/24/2014 22:54 cryz35#372
Quote:
Originally Posted by bazhanyuk View Post
How did you change title color from yellow to green? :)
Edited main.swf, probably.
11/25/2014 00:25 insano_#373
PHP Code:
<label for="server_stats"></label><span id="server_stats"> Server status: <img src="/public/images/server_stats/<?php echo('server_stats'); ?>.png</span>
what wrong ta that?
[Only registered and activated users can see links. Click Here To Register...]
11/25/2014 01:51 YURI-ELIADE.ITALY#374
hehehehe faczion orbit-reborn [Only registered and activated users can see links. Click Here To Register...] [Only registered and activated users can see links. Click Here To Register...]
11/25/2014 02:04 insano_#375
My rank 21 -admin dont show on emulator, why not?

are you using atlantiz emulator for orbit reborn cms