Help - Search - Members - Calendar
Full Version: [CMS]-In the making
Pixel2Life Forum > Member Tutorials and Requests > Forum Tutorial Archives > PHP Tutorials
liveman
Hi, Well I decided to teach you all how to create a CMS such as PHP-nuke, Ok well the first step we will have will be to create 4 folders Admin, Includes, Templates, Pages
After that is finished we will create the index.php page.
CODE
  <?PHP
 // Index.php automaticly obtained from database information unless you
 // Absoultly know what you are doing!

 // ############################################
 // ######            FREE-WARE! NOT TO BE SOLD!                ######
 // ############################################

include 'functions.php';
 connect;
 $cms = 'Liveman Productions CMS ©Copyright 2005';
 $check = mysql_query("SELECT `title`, `logo_url`, `template` FROM `config`");
 $r = mysql_fetch_row($check);
// Start html and head section!
 echo '
 <html>
 <head>
 <title>' . $r[0] . '</title>
 <link rel="stylesheet" type="text/css" href="templates/' . $r[2] . '/style.css" />
 </head>
  ';
 include 'templates/' . $r[2] . '/index.php';
 echo '
 </html>
';
?>

Ok, well this is a very basic page all it really creates is the Title and the style.css page, I need to go now but later I will add the admin section and the includes section.
©Copyright 2005 Liveman Productions
Braunson
Whats this supposto be?
Metameta
QUOTE(Braunson @ Oct 1 2005, 08:43 PM)
Whats this supposto be?

read his post, it says its supposed to be like a CMS website code, but he couldnt finish it so its not much.

Well hope you can finish it soon liveman, I would like to try it tongue.gif
liveman
Ok well what happened was I reformated and forgot to backup my files sad.gif ... well, I am redoing them now, so after I get all of the files complete I will do alot of testing, and then I will release it....to you, but remember you will find some errors!!!! This will be the beta testing, and I figure the best way to do that would be to teach others how to do it..Oh and some files will be changed for security reasons
blinek
that sucks that you lost you files, but ill be waiting for you to release it once your done again:)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.