Changeset 1660 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
08/21/08 16:07:21 (4 years ago)
Author:
hverton
Message:

updated the members list with better filters, and a sort option on username, email, last visit date and country.
Rewritten the setup procedure to make it more fail-safe
Fixed getmxxrr() function, to return the lowest MX record first
Added the compiled locale files for Dutch (setup/global)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1648 r1660  
    100100define("INIT_CMS_OK", TRUE); 
    101101 
    102 // load the config file 
     102// get the full filename of the config file 
    103103@include_once PATH_ROOT."configpath.php"; 
    104104if (substr(CONFIG_PATH,0,1) == "/") { 
    105     if(is_file(CONFIG_PATH."/config.php")) { 
    106         @include_once CONFIG_PATH."/config.php"; 
    107     } 
     105    define('CONFIG_FILE', str_replace("//", "/", CONFIG_PATH."/config.php")); 
    108106} else { 
    109     if(is_file(PATH_ROOT.CONFIG_PATH."/config.php")) { 
    110         @include_once PATH_ROOT.CONFIG_PATH."/config.php"; 
    111     } 
     107    define('CONFIG_FILE', str_replace("//", "/", PATH_ROOT.CONFIG_PATH."/config.php")); 
     108} 
     109if(is_file(CONFIG_FILE)) { 
     110    @include_once CONFIG_FILE; 
    112111} 
    113112 
    114113// if config.php is absent or empty, bail out with an error 
    115 if (!isset($db_name)) terminate('FATAL ERROR: config file is missing. Check our Wiki at http://exitecms.exite.eu on how to run the setup'); 
     114if (!isset($db_name)) { 
     115    terminate('FATAL ERROR: config file is missing. Did you run the setup?<br />Check our Wiki at http://exitecms.exite.eu on how to run the setup'); 
     116} 
    116117 
    117118// load the database functions, and establish a database connection 
Note: See TracChangeset for help on using the changeset viewer.