[PHP][OOP][MYSQLi]HabboGT CMS[PHP][OOP][MYSQLi]

Status
Not open for further replies.

necm1

Member
Jan 27, 2014
111
16
Hey people,
Today I present my new project.
I currently create a CMS for the hotel HabboGT where I work as a technician.
While it will not be a big job, but I'm going to release it, it might.

Here's the first screens and snippets:
Index:
Me:
Client (works only new habbo ui client):

Snippets:
Site.class.php
Code:
<?php
/**
* @author Juka
* @copyright 2014
*/
include('db.connect.php');
class Site {
    public $sitename = null;
    public $path = null;
    private $mysqli;
 
    public function __construct(mysqli $mysqli) {
        $this -> setConnect($mysqli);
        $this -> fetchSiteNameFromDatabase();
        $this -> getPath();
    }
 
    private function setConnect($mysqli) {
        $this -> mysqli = $mysqli;
        return $this;
    }
 
    public function fetchSiteNameFromDatabase() {
        $result = $this -> mysqli->query("SELECT sitename FROM site_config");
        $arrayFetch = $result->fetch_assoc();
        $this -> sitename = $arrayFetch["sitename"];
        return $this -> sitename;
    }
 
    public function __tostring() {
        return (string)$this -> fetchSiteNameFromDatabase();
    }
 
    public function getPath() {
        $result = $this -> mysqli->query("SELECT path FROM site_config");
        $arrayFetch = $result->fetch_assoc();
        $this -> path = $arrayFetch['path'];
        return $this -> path;
    }
}

?>

Sincerely,
JazzerDEV
 
Last edited:

Whip

- FiveM Server Developer -
Nov 6, 2013
408
46
Ermm Shock Hotels Index And Nominels Phoniex....
 

necm1

Member
Jan 27, 2014
111
16
Why are you using shock hotels login page? :/
Because I am not a good designer, and I absolutely loved this index.
Ermm Shock Hotels Index And Nominels Phoniex....
You got it, all is well in the footer as copyright.
Theres no need to rip the index from shock hotel..
Not really, but we had this index really liked and wanted to have in necessarily. I'm not sure if it is used at the opening of this index.
 

necm1

Member
Jan 27, 2014
111
16
#UPDATE1:
Client works with the new habbo ui:
 

necm1

Member
Jan 27, 2014
111
16
Please dont continue with this CMS x] looks like a bunch of bull rip
Actually, I had the project completed long ago, when I realized that I should learn more orrentierten field in the object. I have also done, and lost the desire to Habbo.
WbR,
 

lepos

thinking about you. yes you
Dec 11, 2011
2,024
687
Thread closed. There seems to have been no updates in the last 14 days, feel free to PM me to have it re-opened.
 
Status
Not open for further replies.

Users who are viewing this thread

Top