Jump to content

Ripping apart unfinished CMS


efm

Recommended Posts

I am ripping apart a CMS someone started writing for me and never finished.  Trying to figure it all out with very limited knowledge of php.

 

Is there anyone who would be willing to go through some code and help me work on this?  It's a great start, and I'd love to finish it, but I definitely need some help.

 

I know the user / registration system and news system are already mostly finished.

 

 

Link to comment
Share on other sites

This area of the forum is more for issues with code,

 

if you are looking at getting someone to do some work for you you would be better off posting here

http://www.phpfreaks.com/forums/index.php/board,8.0.html

 

if you want to do it yourself, pick i part at a time start googleing it and when your code starts producing some errors post it here and we can take a look.

Link to comment
Share on other sites

Not looking for someone to work with me, more like finish a project with me.  I have zero money, so it would be entirely for experience / fun.

 

I tried googling some of the code and couldn't find anything informative...

 

For starters, what does the following line do:

echo $forms -> textfield("Hostname", "host", "localhost");

I know that it makes a box under the text "Hostname" that has "localhost" inside of it that you can change if your hostname is different.

...

and

echo $forms -> textfield("Username", "user");

creates a box with nothing in it underneath of the text "Username".

 

I guess what I'm asking is what does the '$forms -> textfield' part do?

Link to comment
Share on other sites

Ok so I think I figured out what my code above does...

 

the first value "hostname" is the text that goes above the box... second value is the part you define in the box... third is the text that shows up in the box by default... so later on a variable is defined by the second value with

$host = $_POST['host'];

$user = $_POST['user'];

 

Which makes perfect sense.  What I don't get is what tells the script that value 1 = text above box, value 2 = post data, value 3 = default data in box??

 

The only other code before the boxes is:

	error_reporting(1);
define("VERSION", "Beta 3");
    define("BUILDNUMBER", "999");
include "functions.php";
//query system
define("QUERY", $_SERVER['QUERY_STRING']);
if(QUERY){
	$tmp = explode(".", QUERY);
	$stepid = $tmp[0];
	$sampleinfo = $tmp[1];
}
if(!is_numeric($stepid)){
	$stepid = 0;
}
//forms
$forms = new forms;
$cdb = 0;
//
// Page System
//
if($stepid != 9){
echo pheader();
}
if($stepid != 4){
if($stepid != 9){
	echo tablestart($stepid);
}
}
switch ($stepid) {

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.