Location: PHPKode > projects > Ads Exchange Server > estigi_0.1.1_RC2/inc/common.inc.php
<?php

/***************************************************************************
 *                             common.inc.php
 *                            -------------------
 *   begin                : mier, mayo 2, 2007
 *   copyright            : (C)
 *   email                : hide@address.com
 *   Desc                 : Includes all necesary files, plus cookie and db connection
 *
 ***************************************************************************/

if ( !defined('IN_ADSERVER') ) {
		die("Hacking attempt");
	}

/*****

 DO NOT TOUCH ANYTHING BEYOND THIS POINT

*****/

include_once("config.inc.php");
include_once("bdconn.inc.php");

//Opens db connetion
bdConnect($db_Host, $db_User, $db_Pwd, $db_Db);  //Opens the database connection

include_once("ips/config.php"); //Ips
include_once("funcs.inc.php");
include_once("template.inc.php");
include_once("locale/".$s_lang."_lang.inc.php");

/* Stop errors from showing */
ini_set("display_startup_errors", "Off"); /* If you get any warnings or error reports let me know, it shouldn't happen */
ini_set("display_errors", "Off");

$divisor = ":-:";
$divisor_per = "::";

//Installation path
//$path_main = "/var/www/ads"; //dirname(__FILE__);

//Directories, without trailing slash
$web_address = "http://" . $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']);

$path_main = str_replace("/inc", "", dirname((__FILE__)));
$s_dir_upload = "/files";  //Most be relative to the $path_main
$s_path_upload = $path_main . $s_dir_upload;

$s_path_Tpl = "tpl/".$s_tpl;

//Global settings, each group can restrict this more
$allowed_File_Types = "flash-jgp-gif-jpeg-png";// NOT NEEDED I THINK
$flash_Mime = "application/x-shockwave-flash";

$app_version = "0.1_RC2 ";

//Start by reading the cookie if it exists
if(isset($_COOKIE[$cookieName])){
	$session       = readGalleta();
	$user_Settings = get_All_User_Settings($session['id_User']);

}
	else{
		$session = array("id_User" => -1);
	}

?>
Return current item: Ads Exchange Server