trashbin/include/config.inc.php.dist

29 lines
681 B
Plaintext
Raw Permalink Normal View History

2014-07-07 08:54:45 +00:00
<?php
require_once($BASE_DIR."include/functions.inc.php");
require_once($BASE_DIR."include/mysql.class.php");
$db = new MySQL();
$db->set("SERVER", "USER", "PASSWORD", "DATABASE");
$db->connect();
/* Keine aenderungen ab hier notwendig */
header("Pragma: no-cache");
header("Expires: 0");
header("Cache-control: no-cache,must-revalidate,no-store");
$uploaddir = "files/";
$com_path = dirname($_SERVER['SCRIPT_NAME']);
if($com_path == "/") $com_path = "";
if(strlen($_SERVER['HTTPS']) > 0) {
$base_url = "https://{$_SERVER['SERVER_NAME']}{$com_path}/";
}
else {
$base_url = "http://{$_SERVER['SERVER_NAME']}{$com_path}/";
}
?>