[DEV] ProjectET [PHP/HTML/SQL]

Status
Not open for further replies.

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
ProjectET Is Just a simple blogging system,
This is my 1st NON-HABBO Project. and its all on scratch :]
Features:
  • Clean & Fast Code.
  • Simple MYSQL & Small Database.
  • Simple PHP Tags Along the way :]
Soon to Come:
  • User system
Progress:
0-59% Complete: [x]
60-84% Complete: [x]
85-100% Complete: [x]
  • _Configuration/config.php [x]
  • _Configuration/core.php [x]
  • _Configuration/func.php [x]
  • _System/userlogin.php [x]
  • _System/blogger.php [x]
  • _UserSystem/login.php [x]
  • _UserSystem/logout.php [x]
  • index.php [x]
  • news.php [x]
  • admincp.php [x]
  • .htaccess [x]
  • notfound.html
  • global.php
Its just a simple 3 Folders, with a total of 14 Pages :]
Code Snippets:
_Configuration/config.php
Code:
<?php
$CONFIG['host'] = 'localhost';
$CONFIG['db'] = '';
$CONFIG['user'] = 'root';
$CONFIG['pass'] = '';
$CONFIG['title'] = 'ProjectET';
$CONFIG['description'] = 'For Awesomeness :]';
?>

_Configuration/core.php
Code:
<?php
 
// Get system files
 
    @require_once "./_Configuration/func.php";    // Delete This? Well Good Bye, You Need this For Your Site To Run!
    @require_once "./_Configuration/config.php"; // Edit This to get blogging :]
 
    if(file_exists("./_Configuration/config.php") == false)
    {
        sError("YOUR CONFIG BRAH, ITS NOT THERE :O");
    }
 
// Start sessions
 
    session_start();
 
// Define variables
 
    define("USERID", $_SESSION['userid']);
    define("USERNAME", $_SESSION['username']);
 
// Connect to MySQL
 
    $connection = @mysql_connect($mysql['host'] . ":" . $mysql['port'], $mysql['user'], $mysql['pass']);
 
    if(!$connection)
    {
        sError("mysql server issue: cannot connect");
    }
    else
    {
        $database = mysql_select_db($mysql['db']) or sError("Database " . $mysql['db'] . " does not exist.");
    }
?>

More To Come :],
i need graphics designer PM Me if you would like to help :D
[I Know Codes Sloppy -.-]
Its My First Project.
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Do you pplan on giving multi-database type support? (MySQL, PDO)
 

brsy

nah mang
May 12, 2011
1,530
272
Thanks for copying my thread layout? Exactly the same as mine, including the percents and shit. If you can't make a simple thread, how the fuck you gonna make a CMS?

Anyways, good luck I guess.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Thanks for copying my thread layout? Exactly the same as mine, including the percents and shit. If you can't make a simple thread, how the fuck you gonna make a CMS?

Anyways, good luck I guess.
woah. Back away everyone.
i coppied your sub-heading.

and thanks, i guess 
Configuration Update:
it seemes, shit when you cant change title ;l
so i added it onto configuration so you dun have to :]
Code:
<?php
$CONFIG['host'] = 'localhost';
$CONFIG['db'] = 'test';
$CONFIG['user'] = 'root';
$CONFIG['pass'] = 'ethan2277';
 
## Theme Chooser ##
$CONFIG['theme'] = 'Default';
 
## Title Chooser ##
$CONFIG['title'] = 'ProjectET';
$CONFIG['description'] = 'For Awesomeness :]';
?>

(Sorry For Double post)
 

brsy

nah mang
May 12, 2011
1,530
272
vs.

hmm....

BUT IDC. GO AHEAD AND RIP FTW. You're coding unnesccary things. Like in your core you have:
PHP:
if(file_exists("./_Configuration/config.php") == false)
    {
        sError("YOUR CONFIG BRAH, ITS NOT THERE :O");
    }
when you can simply have...
PHP:
if(!file_exists("./_Configuration/config.php")) {
    sError("YOUR CONFIG BRAH, ITS NOT THERE :O");
}
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
woah. Back away everyone.
i coppied your sub-heading.

and thanks, i guess 
Configuration Update:
it seemes, shit when you cant change title ;l
so i added it onto configuration so you dun have to :]
Code:
<?php
$CONFIG['host'] = 'localhost';
$CONFIG['db'] = 'test';
$CONFIG['user'] = 'root';
$CONFIG['pass'] = 'ethan2277';
 
## Theme Chooser ##
$CONFIG['theme'] = 'Default';
 
## Title Chooser ##
$CONFIG['title'] = 'ProjectET';
$CONFIG['description'] = 'For Awesomeness :]';
?>

(Sorry For Double post)
Fast development ;)
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Fast development ;)
Thanks, although this wont be quick, the cp will have like 124 pages in it or something.
just for a blog, haha :]

vs.

hmm....

BUT IDC. GO AHEAD AND RIP FTW. You're coding unnesccary things. Like in your core you have:
PHP:
if(file_exists("./_Configuration/config.php") == false)
    {
        sError("YOUR CONFIG BRAH, ITS NOT THERE :O");
    }
when you can simply have...
PHP:
if(!file_exists("./_Configuration/config.php")) {
    sError("YOUR CONFIG BRAH, ITS NOT THERE :O");
}

Eh? do i care. they all work :p
so really?
 

brsy

nah mang
May 12, 2011
1,530
272
Fast development ;)
Not hard to set variables, lol.

You should organze your config better, but doing something like this:
PHP:
# Instead of having... #
 
$CONFIG['title'] = '';
$CONFIG['motto'] = '';
 
# You can do... #
 
$CONFIG['Site']['Title'] = '';
$CONFIG[''][''] = '';
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Not hard to set variables, lol.

You should organze your config better, but doing something like this:
PHP:
# Instead of having... #
 
$CONFIG['title'] = '';
$CONFIG['motto'] = '';
 
# You can do... #
 
$CONFIG['Site']['Title'] = '';
$CONFIG[''][''] = '';
I'm only trying to make him feel good lol.
But yeah, vars are a bit messy.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Not hard to set variables, lol.

You should organze your config better, but doing something like this:
PHP:
# Instead of having... #
 
$CONFIG['title'] = '';
$CONFIG['motto'] = '';
 
# You can do... #
 
$CONFIG['Site']['Title'] = '';
$CONFIG[''][''] = '';
like i said, it all works
 

brsy

nah mang
May 12, 2011
1,530
272
Also about you saying "They all work", if you keep that attitude up your CMS will be super slow. You're adding un-needed bytes to your file sizes, which will eventually make your CMS slower, than if you do your methods in a more... efficient way.

What's the point in making a dev thread if you aren't going to take criticism.
 

ProLegitZ

Jacob is here bitch !
May 11, 2012
606
56
Also about you saying "They all work", if you keep that attitude up your CMS will be super slow. You're adding un-needed bytes to your file sizes, which will eventually make your CMS slower, than if you do your methods in a more... efficient way.

What's the point in making a dev thread if you aren't going to take criticism.
i think the whole point is to not?
appreciate the developers work.
 

Livar

Now 35% cooler!
Oct 15, 2010
846
86
Oh my god, so not your work roflmao, this is Jonteh's old CMS, the code is the exact same.
 
Status
Not open for further replies.

Users who are viewing this thread

Top