Experienced Elementalist
- Joined
- Apr 25, 2012
- Messages
- 222
- Reaction score
- 35
Sup RageZone,
Like the title says, i'm currently developing "BandzCMS" with a friend of mine.
It's a Content Management System written in PHP, PDO , with an easy template system.
I'm using RainTPL because i'm lazy. (Oh yeah, and because i like RainTPL tt1: )
But me and my friend are kinda stuck on the 'template' right now, so we would like to hear y'all opinions.
Screen of Index:
Screen of Register: (It's animated, with fadeIn) :
Screen of Me page (Sorry that the screens are dutch, we will be adding languages soon!) :
snippet :
Any tips or idea's are welcome. This is my first CMS written from scratch so easy on me.
LOL
Kind regards,
Mozilla.
Like the title says, i'm currently developing "BandzCMS" with a friend of mine.
It's a Content Management System written in PHP, PDO , with an easy template system.
I'm using RainTPL because i'm lazy. (Oh yeah, and because i like RainTPL tt1: )
But me and my friend are kinda stuck on the 'template' right now, so we would like to hear y'all opinions.
Screen of Index:
Screen of Register: (It's animated, with fadeIn) :
Screen of Me page (Sorry that the screens are dutch, we will be adding languages soon!) :
snippet :
PHP:
<?php
/*
* BandzCMS - A Habbo Hotel Content Management System
*
* © Copyright Mozilla and ℓσgιc
*/
session_start();
define('ROOT', __DIR__);
define('IP', $_SERVER['REMOTE_ADDR']);
if (!defined ('ACCESS_LEVEL'))
define ('ACCESS_LEVEL', 'ACCESS_ALL');
if (! (ACCESS_LEVEL == 'ACCESS_ALL' || ACCESS_LEVEL == 'ACCESS_GUESTS' || ACCESS_LEVEL == 'ACCESS_USERS' || ACCESS_LEVEL == 'ACCESS_ADMIN'))
exit (' BandzCMS Access Level Error at '. __FILE__ .': ACCESS_LEVEL is neither ACCESS_ALL, ACCESS_GUESTS, ACCESS_ADMIN or ACCESS_USERS. ');
require dirname(__DIR__) . '/configuration/config.php';
## Autoload classes ##
spl_autoload_register (function ($classname)
{
$class = __DIR__ . '/classes/class.' . strtolower($classname) . '.php';
if (!file_exists ($classname))
require $class;
else
die("<em>BandzCMS Classes -></em> Cannot load class <b>" . $classname . "</b> on " . $class);
});
## Trying to connect with a database with PDO. ##
try
{
$db = new PDO('mysql:host=' . (db_host == 'localhost' ? '127.0.0.1' : db_host) . ';dbname=' . db_name, db_user, db_pass, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
TableHolder::setPDO ($db);
}
catch(PDOException $ex)
{
die("<em>Bandz Database -></em> " . $ex->getMessage());
}
Any tips or idea's are welcome. This is my first CMS written from scratch so easy on me.
LOL
Kind regards,
Mozilla.
Attachments
You must be registered for see attachments list