/[corp_html]/careers.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /careers.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by dpavlin, Thu Apr 11 12:56:40 2002 UTC revision 1.18 by dpavlin, Thu Apr 25 12:16:41 2002 UTC
# Line 2  Line 2 
2    
3  if ($part == "erec") {  if ($part == "erec") {
4          // fix include path for included code          // fix include path for included code
5          $old_inc=ini_get("include_path");          $old_inc = ini_get("include_path");
6          $new_inc=ereg_replace( ":[^:]*inc","", $old_inc).":/data/erec/inc";          $new_inc = ereg_replace( ":[^:]*inc","", $old_inc).":/data/erec/inc";
7          ini_set("include_path",$new_inc);          ini_set("include_path", $new_inc);
   
8          require("/data/erec/inc/Smarty.class.php");          require("/data/erec/inc/Smarty.class.php");
9          include("DB.php");      // PEAR          include("DB.php");      // PEAR
10          require("/data/erec/erec.class.php");          require("/data/erec/erec.class.php");
11          $erec = new ERec;          // ini_restore("include_path"); // no work?
12          $erec->upload_dir = "/data/erec";          ini_set("include_path", $old_inc);
13            } else require("Smarty.class.php");
         //ini_restore("include_path");  // no work?  
         ini_set("include_path",$old_inc);  
 } else {  
         require("Smarty.class.php");  
 }  
14    
15  require("conn.inc");  require("conn.inc");
16    
17  $smarty = new Smarty;  $smarty = new Smarty();
18    
19  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
20    
# Line 101  Resume: $resume_name ($resume_size bytes Line 95  Resume: $resume_name ($resume_size bytes
95          }          }
96    
97          $main=$smarty->fetch("Careers-".$part.".tpl");          $main=$smarty->fetch("Careers-".$part.".tpl");
98  } elseif ($part == "erec") {  } elseif ($part != "erec") {
         $main=$erec->page();  
 } else {  
99          $main_file.="Main.htm";          $main_file.="Main.htm";
100          $main=join('',file($main_file));          $main=join('',file($main_file));
101  }  }
102    
103  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
104    
 $smarty->assign("MAIN",$main);  
   
105  $smarty->assign("contact_url","careers.php?part=ContactUs");  $smarty->assign("contact_url","careers.php?part=ContactUs");
106    
107    if ($part == "erec") {
108            $erec = new ERec();
109            $erec->upload_dir = "/data/erec";
110            $main = $erec->page();
111    }
112    
113    $smarty->assign("MAIN", $main);
114    
115  $smarty->display("index.tpl");  $smarty->display("index.tpl");
116  ?>  ?>
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.26