Yeah yeah...
Code:Ash - ησвяαιη says
you love the h4bbo theme? ;3
Alex McQuack says
yeah ;D
Printable View
Looks awesome! Good luck
Lol h4bbo themes good.
Posted via Mobile Device
Shexy updates, what have you got done so far?
Can't he just piss off. :<:
I don't like you but thanks for saying you like the Project.
--------------
Sourceforge anyone?
https://sourceforge.net/projects/indigoweb/
Github is better but let's critique this source.
- Final is un-needed.
- throwError is.. sloppy.
- You could have a bootstrap file to require and init all the classes(would clean up the global file)
- Defining the db variables is a bad idea, You can't re-define or un-define so the password is in broad-daylight. You would be better off init' the database class from the configuration arrays.
I can go more in depth the next framework release.
Yeah, I was just fucking around with some shit. This is how it normally looks like...
PHP Code:<?php
/*
* ____ ___
* / _/___ ____/ (_)___ _____
* / // __ \/ __ / / __ `/ __ \
* _/ // / / / /_/ / / /_/ / /_/ /
* /___/_/ /_/\__,_/_/\__, /\____/
* /____/
*
* @author: Ashley "nobrain" Davidson
* @credits: TheJacob
*/
require_once 'global.php';
$template->add_template('header');
$template->add_parameter('page_desc', 'Make friends, join the fun, get noticed!');
$template->add_template('frontpage');
$template->add_template('footer');
$template->build_page();
?>
Updates
-Working on a class for the Error handling.
-Renaming a few classes.
-Planning on an init file as Makarov said.
-Almost broke my fucking final keyword habit!
UNFINISHED
Yeah, ummmm, the configuration is rather long...PHP Code:<?php
/*
* ____ ___
* / _/___ ____/ (_)___ _____
* / // __ \/ __ / / __ `/ __ \
* _/ // / / / /_/ / / /_/ / /_/ /
* /___/_/ /_/\__,_/_/\__, /\____/
* /____/
*
* @author: Ashley "nobrain" Davidson
* @credits: TheJacob
*/
/*
* Error handling: All errors are processed through this file then outputted onto the site.
*/
class IW_Error_Handling
{
public function requireCSS()
{
return;
}
public function requireHTML()
{
return;
}
public function requireICO()
{
return;
}
public function buildError()
{
return;
}
}
?>
PHP Code:<?php
/*
* ____ ___
* / _/___ ____/ (_)___ _____
* / // __ \/ __ / / __ `/ __ \
* _/ // / / / /_/ / / /_/ / /_/ /
* /___/_/ /_/\__,_/_/\__, /\____/
* /____/
*
* @author: Ashley "nobrain" Davidson
* @credits: TheJacob
*/
// ##################################################
// Website URL
$_CONFIG['site']['www'] = "http://127.0.0.1/Indigo";
// ##################################################
// MySQL configuration options
$_CONFIG['mysql']['host'] = "localhost";
$_CONFIG['mysql']['user'] = "root";
$_CONFIG['mysql']['pass'] = "loled123";
$_CONFIG['mysql']['database'] = "indigo";
// ##################################################
// Password management
$_CONFIG['password']['hash'] = "n9n837f98h6&*^£(87205n8734295786*&^$870236"; // This will need changing!
$_CONFIG['password']['encryption'] = "sha2"; // md5, sha1, sha2 - you choose!
// ##################################################
// Development management
$_CONFIG['development']['enabled'] = false; // Site timer (true = debugging enabled - false = debugging disabled)
// ##################################################
// Hotel options
$_CONFIG['hotel']['sname'] = ""; // Short hotel name
$_CONFIG['hotel']['fame'] = ""; // Full hotel name
// ##################################################
// User default settings upon register
$_CONFIG['default']['credits'] = "7500"; // Credits amount
$_CONFIG['default']['pixels'] = "1500"; // Pixels amount
$_CONFIG['default']['figure'] = "-"; // Look code
// ##################################################
// Security management
$_CONFIG['security']['activation'] = true; // Stops client spamming (true = account activation is required - false = account activation is disabled)
// ##################################################
// Styling options
$_CONFIG['style']['name'] = "default"; // Style name of the folder in web-gallery
?>
It isn't as bad as I thought it was going to be :D:
Updates
-Figuring out a few errors within error_handling.php.
-Rewriting error_handling.php so that it's in OOP.
Don't want to sound offensive or anything, but you shouldn't need such a fancy error handler?
Anyway, good luck :P
Posted via Mobile Device