Viewing File: /people/testlab/www/testlab.com.pl/_old/init.php

<?php
	if (!ini_get(register_globals))  // If register_globals is enabled
	{ // set $_GET keys
  		foreach ($_GET as $key => $value) eval('$'.$key.'=$_GET["'.$key.'"];');
  		foreach ($_POST as $key => $value) eval('$'.$key.'=$_POST["'.$key.'"];');
  		foreach ($_REQUEST as $key => $value) eval('$'.$key.'=$_REQUEST["'.$key.'"];');
  		foreach ($_COOKIE as $key => $value) eval('$'.$key.'=$_COOKIE["'.$key.'"];');
  		foreach ($_SESSION as $key => $value) eval('$'.$key.'=$_SESSION["'.$key.'"];');
	}

	/* inicjalicja  */
	$DIR['main']=dirname(ereg_replace("\\\\","/",__FILE__));
	$DIR['produkty']=$DIR['main']."/Produkty/";
	$DIR['smarty']=$DIR['main']."/lib/smarty/";
	$DIR['smarty_templates']=$DIR['main']."/_templates";	

	require_once("lib/MySmarty.class.inc.php");
	$sm = new MySmarty($DIR);
?>
Back to Directory File Manager