1 |
<?php |
<?php |
2 |
require("Smarty.class.php"); |
|
3 |
|
if ($part == "erec") { |
4 |
|
// fix include path for included code |
5 |
|
$old_inc=ini_get("include_path"); |
6 |
|
$new_inc=ereg_replace( ":[^:]*inc","", $old_inc).":/data/erec/inc"; |
7 |
|
ini_set("include_path",$new_inc); |
8 |
|
|
9 |
|
require("/data/erec/inc/Smarty.class.php"); |
10 |
|
include("DB.php"); // PEAR |
11 |
|
require("/data/erec/erec.class.php"); |
12 |
|
$erec = new ERec; |
13 |
|
$erec->upload_dir = "/data/erec"; |
14 |
|
|
15 |
|
//ini_restore("include_path"); // no work? |
16 |
|
ini_set("include_path",$old_inc); |
17 |
|
} else { |
18 |
|
require("Smarty.class.php"); |
19 |
|
} |
20 |
|
|
21 |
require("conn.inc"); |
require("conn.inc"); |
22 |
|
|
23 |
$smarty = new Smarty; |
$smarty = new Smarty; |
24 |
|
|
25 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
26 |
|
|
|
include("common.inc"); |
|
|
|
|
27 |
include("section.inc"); |
include("section.inc"); |
28 |
$smarty->assign("section",$section); |
|
29 |
|
include("common.inc"); |
30 |
|
|
31 |
$main_file="./html/Careers-"; |
$main_file="./html/Careers-"; |
32 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
101 |
} |
} |
102 |
|
|
103 |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
104 |
|
} elseif ($part == "erec") { |
105 |
|
$main=$erec->page(); |
106 |
} else { |
} else { |
107 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
108 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
109 |
} |
} |
110 |
|
|
|
|
|
111 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
112 |
|
|
113 |
$smarty->assign("MAIN",$main); |
$smarty->assign("MAIN",$main); |