[DEV] CMS STARTER IN PHP [MYSQL]

Status
Not open for further replies.

brsy

nah mang
May 12, 2011
1,530
272
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
  1. Steal*
  2. Show snippets, I cbf to download shit. Also, don't make the snippet of some bullshit like the config. Show some real shit please.
 

GarettM

Posting Freak
Aug 5, 2010
833
136
  1. Steal*
  2. Show snippets, I cbf to download shit. Also, don't make the snippet of some bullshit like the config. Show some real shit please.
Code:
<?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']);
?>
Code:
<?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");
}
?>
Code:
<?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
}
?>
Code:
 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());
}
Code:
 function disconnect()
 {
  @mysql_close($this->link);
 }
This is from v1.0.1 Its not a cms or framework just a bunch of examples that can and do work together
 
Status
Not open for further replies.

Users who are viewing this thread

Top