Ignore:
Timestamp:
02/27/2006 12:50:42 AM (6 years ago)
Author:
cirrus
Message:

Change: $root_path variable was changed to a constant due to possible security issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/globals/common.php

    r141 r143  
    2020 */ 
    2121 
    22 if (!file_exists($root_path."config/config.php")) { 
     22if (!file_exists(ROOT_PATH."config/config.php")) { 
    2323        die("WiND error: Please make config/config.php file ..."); 
    2424} 
    25 include_once($root_path."globals/vars.php"); 
    26 include_once($root_path."config/config.php"); 
     25include_once(ROOT_PATH."globals/vars.php"); 
     26include_once(ROOT_PATH."config/config.php"); 
    2727$vars = array_merge($vars, $config); 
    2828include_once($vars['templates']['path'].$vars['templates']['default'].'/config.php'); 
    2929$vars = array_merge($vars, $template_config); 
    30 include_once($root_path."globals/functions.php"); 
     30include_once(ROOT_PATH."globals/functions.php"); 
    3131 
    3232$php_start = getmicrotime(); 
    3333 
    34 include_once($root_path."globals/classes/mysql.php"); 
    35 include_once($root_path."globals/classes/construct.php"); 
    36 include_once($root_path."globals/classes/form.php"); 
    37 include_once($root_path."globals/classes/table.php"); 
     34include_once(ROOT_PATH."globals/classes/mysql.php"); 
     35include_once(ROOT_PATH."globals/classes/construct.php"); 
     36include_once(ROOT_PATH."globals/classes/form.php"); 
     37include_once(ROOT_PATH."globals/classes/table.php"); 
    3838 
    3939if (!file_exists($vars['smarty']['class'])) { 
     
    6969        $tl = $vars['language']['default']; 
    7070} 
    71 include_once($root_path."globals/language/".$tl.".php"); 
    72 if (file_exists($root_path."config/language/".$tl."_overwrite.php")) { 
    73         include_once($root_path."config/language/".$tl."_overwrite.php"); 
     71include_once(ROOT_PATH."globals/language/".$tl.".php"); 
     72if (file_exists(ROOT_PATH."config/language/".$tl."_overwrite.php")) { 
     73        include_once(ROOT_PATH."config/language/".$tl."_overwrite.php"); 
    7474        $lang = array_multimerge($lang, $lang_overwrite); 
    7575} 
Note: See TracChangeset for help on using the changeset viewer.