[DEV] CMS STARTER IN PHP [MYSQL]

Status
Not open for further replies.

GarettM

Posting Freak
Aug 5, 2010
833
136
Hello Devbest!
I am Building a Simple Starter Kit To build a CMS or a Habbo retro CMS your choice because this can be used for other things then habbo its Here under coders paradise.
What the Starter Kit Will Include:
  1. A Comment Area to put your details
  2. Index,Core, Config and config check to see if config has been edited yet or not :]
  3. Template Class And A Database Class.
If You believe There Should Be anything added please comment
[Idea] YOUR IDEA [/idea] thanks :)
If You Think this is stupid and wanna comment?
Just please dont lolz

Current Progress
Database Class Done!​
Template Class 50/50​
Release Date:
2 Hours​
 

GarettM

Posting Freak
Aug 5, 2010
833
136
Good luck with your CMS Starter; however some people will need to put your credits in it :p
The point of this is to give people that small push to create a cms .. I cant take credit for something anyone could do :]
The dude who posted this has never even edited a CMS before.

Why Would i have to edit anything i wrote this with simple knowledge ( Besides Template Class that is based of a tut )

<b>Point of this</b>
For you to finish the classes and make A CMS for your self -_- ;D

CMS Starter Kit Version 1.0.1
For Devbest.com
Starter Kit Includes:
  • config.php​
  • config checker.php​
  • template class​
  • database class​
Version 1.0.1 Snipits [ V1.0.0 Already Released ]
Config checker:
Code:
Function check_config_variable( $variable , $name = '' )
{
  if(($variable == '') or ($variable == 'changeme'))
  {
  Print ("<i>$name</i> Needs To Be Filled Out or Changed <Br />");
  exit();
  }
}
 
// Check Configuration //
check_config_variable($_SETTINGS['storage']['host']);
check_config_variable($_SETTINGS['storage']['port']);
check_config_variable($_SETTINGS['storage']['user']);
check_config_variable($_SETTINGS['storage']['pass']);
check_config_variable($_SETTINGS['storage']['database']);
Index:
Code:
  include 'core.php';
   $page = (!empty($_GET['page'])) ? $_GET['page'] : 'index';  // Check For EmptyNess
    $Template->AddFile(htmlspecialchars($page)); // Get Page or throw Error
   $Template->Finish();
Core:
Code:
 Define('I', dirname(__FILE__));
 Define('BASE', I . DIRECTORY_SEPARATOR);
 Define('APPS', I . DIRECTORY_SEPARATOR . 'Application' . DIRECTORY_SEPARATOR);
 Define('ENG', 'Engine'. DIRECTORY_SEPARATOR);
 
 error_reporting(E_ALL ^ E_NOTICE);
 session_start();
 
 Require BASE . 'config.php'; // Get Config
 Require_once APPS . ENG  .'check.php3';
 
 Require APPS . 'database.class.php3';
 Require APPS . 'template.class.php3';
 
 $Template = new Template();

 

Flint

http://Dusk-Hotel.com
Jul 10, 2012
464
48
Hello Devbest!
I am Building a Simple Starter Kit To build a CMS or a Habbo retro CMS your choice because this can be used for other things then habbo its Here under coders paradise.
What the Starter Kit Will Include:
  1. A Comment Area to put your details
  2. Index,Core, Config and config check to see if config has been edited yet or not :]
  3. Template Class And A Database Class.
If You believe There Should Be anything added please comment
[Idea] YOUR IDEA [/idea] thanks :)
If You Think this is stupid and wanna comment?
Just please dont lolz

Current Progress
Database Class Done!​
Template Class 50/50​
Release Date:
2 Hours​
I was thinking of making a cms tbh, but i know i'd fail i'll use this and give it ago Thanks ;o
 

Qodex

Member
Feb 9, 2012
374
36
Cool, is there anything specific you making this for? Habbo, blogging, general website ect
 

GarettM

Posting Freak
Aug 5, 2010
833
136
Hello Devbest!
Version 1.0.3 Is ON its way!
New Features To See:
- Own Sql Database
- Some SQL functions
If You believe There Should Be anything added please comment
[Idea] YOUR IDEA [/idea] thanks :)
If You Think this is stupid and wanna comment?
Just please dont lolz
Was Thinking:
Maybe Turn this into a CMS or NOT :S
Please Comment on where you think this should go
CMS
PHP STARTER KIT
Thanks GarettJoey
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Hello Devbest!
Version 1.0.3 Is ON its way!
New Features To See:
- Own Sql Database
- Some SQL functions
If You believe There Should Be anything added please comment
[Idea] YOUR IDEA [/idea] thanks :)
If You Think this is stupid and wanna comment?
Just please dont lolz
Was Thinking:
Maybe Turn this into a CMS or NOT :S
Please Comment on where you think this should go
CMS
PHP STARTER KIT
Thanks GarettJoey
Yupp, this is now a framework
 
Status
Not open for further replies.

Users who are viewing this thread

Top