Just thought I may as well post the MySQL class which is UNFINISHED.
PHP Code:<?php
########################################################
# | IndigoWEB - An advanced Habbo CMS for IndigoEMU | #
########################################################
# | Copyright (c)2012 Ashley "nobrain" Davidson | #
# | http://baalhotel.com | http://jokohost.com | #
########################################################
# | IndigoWEB and IndigoEMU is registered under the | #
# | don't be a dick license. If you remove the | #
# | copyright to the original creator(s) you are | #
# | a dick. | #
# | http://philsturgeon.co.uk/code/dbad-license | #
########################################################
class IW_Database_Database_Engine
{
public function __construct()
{
global $config;
mysql_connect($config['mysql']['hostname'], $config['mysql']['username'], $config['mysql']['password']) or die('Cannot connect to MySQL!');
mysql_select_db($config['mysql']['database']) or die("Could not select MySQL database!");
}
public function __destruct()
{
// Nothing.
}
}
?>
What's with the class name..
If you want it to be using IW as the start.. use a namespace, bro!
Whatever you say bro, good luck.![]()
I have been looking into how I can simplify file request calling. The css stylesheets will now be called through 1 global file.
Example:
That is the stylesheet request.Code:<link rel="stylesheet" href="Framework/Views/css/global.css"></link>
Now, within the 'global.css' file it will import the other css files.
This should clean up the HTML inside the files and make it easier for me.Code:/* Document : global Created on : 20-Feb-2012, 17:14:53 Author : Ashley Davidson */ @import url("index.css"); body { font-family: Verdana,Arial,Helvetica,sans-serif; }
Last edited by NoBrain; 20-02-12 at 11:36 PM.
Looks nice, looking forward to more updates.![]()
Updates
-Almost finished the Database Class.
-Currently working on the Language Class.
I'll probably finish the Language class in like 15 - 20 minutes.
--------------
Finished the Language class but I decided to not use it until Build 2. :)
--------------
HTML so far:
Code:<!-- _____ _ _ __ ________ ____ |_ _| | (_) \ \ / / ____| _ \ | | _ __ __| |_ __ _ __\ \ /\ / /| |__ | |_) | | | | '_ \ / _` | |/ _` |/ _ \ \/ \/ / | __| | _ < _| |_| | | | (_| | | (_| | (_) \ /\ / | |____| |_) | |_____|_| |_|\__,_|_|\__, |\___/ \/ \/ |______|____/ __/ | Build 1.10 |___/ Codename: SHERLOCK Author: Ashley "nobrain" Davidson --> <html> <head> <meta name="description" content="Check into the world’s largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more…" /> <meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" /> <meta name="author" content="Ashley Davidson" /> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <link rel="stylesheet" href="Framework/Views/css/global.css"></link> <title>Indigo - Powered by IndigoWEB</title> </head> <div class="headerbar"> lalalaal </div>