Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: cdd04e3d11
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 0.975 kb
<?php
/***********************************************
DAVE PHP API
https://github.com/evantahler/PHP-DAVE-API
Evan Tahler | 2011
I load in the enviorment.
***********************************************/
ini_set("display_errors","1");
error_reporting (E_ALL ^ E_NOTICE);
// $parts = explode("/",__FILE__);
// $ThisFile = $parts[count($parts) - 1];
// chdir(substr(__FILE__,0,(strlen(__FILE__) - strlen($ThisFile))));
if (file_exists("CONFIG.php"))
{
require_once("CONFIG.php");
require_once("CACHE.php");
require_once("CommonFunctions.php");
require_once("GetPostVars.php");
require_once("Actions.php");
date_default_timezone_set($CONFIG['SystemTimeZone']);
if(!file_exists($CONFIG['App_dir']."DB/SCHEMA.php"))
{
echo "The Database Schema (DB/SCHEMA.php) cannot be found. If you are using a non-relational DB, you probably need to create it manually\r\n";
exit;
}
}
else
{
echo "Please create CONFIG.php from CONFIG.php.example\r\n";
exit;
}
?>
Jump to Line
Something went wrong with that request. Please try again.