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
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
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
[I Know Codes Sloppy -.-]
Its My First Project.