--- careers.php 2001/10/01 14:05:16 1.15 +++ careers.php 2002/04/11 12:56:40 1.17 @@ -1,15 +1,32 @@ upload_dir = "/data/erec"; + + //ini_restore("include_path"); // no work? + ini_set("include_path",$old_inc); +} else { + require("Smarty.class.php"); +} + require("conn.inc"); $smarty = new Smarty; $smarty->assign( array ( Title=>"Pliva d.d." ) ); -include("common.inc"); - include("section.inc"); -$smarty->assign("section",$section); + +include("common.inc"); $main_file="./html/Careers-"; if (file_exists($main_file.$part.".htm")) { @@ -84,12 +101,13 @@ } $main=$smarty->fetch("Careers-".$part.".tpl"); +} elseif ($part == "erec") { + $main=$erec->page(); } else { $main_file.="Main.htm"; $main=join('',file($main_file)); } - $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); $smarty->assign("MAIN",$main);