- Thread starter
- #21
ThanksYou should be proud!
Version 1.0.3 Will be The Last Version Of The Devbest Starter Kit Version 2.0 Will Be A CMS and version 3.0 Will probably be a Frameworkhehe
So Noobs Only Steel v1.0.0 - v1.0.3 Please ;3
ThanksYou should be proud!
Version 1.0.3 Will be The Last Version Of The Devbest Starter Kit Version 2.0 Will Be A CMS and version 3.0 Will probably be a Frameworkhehe
Thanks
Version 1.0.3 Will be The Last Version Of The Devbest Starter Kit Version 2.0 Will Be A CMS and version 3.0 Will probably be a Framework
So Noobs Only Steel v1.0.0 - v1.0.3 Please ;3
- Steal*
- Show snippets, I cbf to download shit. Also, don't make the snippet of some bullshit like the config. Show some real shit please.
<?php
/***********************************************************
* DevBest Starter Kit v1.0.1 2012 Made By `GarettMcCarty` *
***********************************************************/
if(!Defined('H_IN')) die ("Direct Access Denied"); // bobba Check
// Fetch Global variables
Global $_CONFIG; // this Grabs the config.php file variables
// Run Function To Check Config File
Function check_config_variable( $variable)
{
if(($variable == '') or ($variable == 'changeme'))
{
Print ("Please Edit Config File [Dont Use (changeme)]");
exit();
}
}
// Check Configuration //
check_config_variable($_CONFIG['sql']['host']);
check_config_variable($_CONFIG['sql']['user']);
check_config_variable($_CONFIG['sql']['pass']);
check_config_variable($_CONFIG['sql']['db']);
?>
<?php
/***********************************************************
* DevBest Starter Kit v1.0.1 2012 Made By `GarettMcCarty` *
***********************************************************/
if(!Defined('H_IN')) die ("Direct Access Denied"); // bobba Check
function get_date()
{
return date("F j, Y");
}
function get_time_date()
{
return date("d M Y h:i A");
}
?>
<?php
/***********************************************************
* DevBest Starter Kit v1.0.1 2012 Made By `GarettMcCarty` *
***********************************************************/
if(!Defined('H_IN')) die ("Direct Access Denied"); // bobba Check
function chmod_file($file , $permission)
{
return chmod($file, $permission); // 0775 or others
}
?>
function connect($host,$user,$pass,$db)
{
$this->link = @mysql_connect($host,$user,$pass);
if(!$this->link){ die(mysql_error()); }
if(($this->link) and ($db))
{
if(@mysql_select_db($this->db,$this->link)) Return True;
}
return False;
die("<center><b>Mysql Error</b>:".mysq_error());
}
function disconnect()
{
@mysql_close($this->link);
}