const.Options.php

Go to the documentation of this file.
00001 <?php
00012 define("FIRSTPAGE", "main/main.html");
00013 
00019 define("USES_DB", false);
00020 
00026 define("DB_TYPE", "MySQL");
00027 
00033 define("NULL_VALUE", "NULL");
00034 
00041 define("VAR_NOT_FOUND", "{var_name}");
00042 
00048 define("DISPLAY_CGI_VARS", false);
00049 
00054 define("APP_CONFIG_FILE", "books.conf");
00055 
00056 //define the application configuration options
00057 //which are declared in the file APP_CONFIG_FILE
00058 if (file_exists(APP_CONFIG_FILE))
00059   {
00060     $arr_lines = file(APP_CONFIG_FILE);
00061     for ($i=0; $i < sizeof($arr_lines); $i++)
00062       {
00063         $line = trim($arr_lines[$i]);
00064         if ($line=='')      continue;
00065         if ($line[0]=='#')  continue;
00066         list($const, $value) = split('=', $line, 2);
00067         eval("\$val=$value;");
00068         define($const, $val);
00069       }
00070   }
00071 ?>

Generated on Wed Jan 9 08:27:32 2008 for DokBookWiki by  doxygen 1.5.2