[ PHPXref.com ] [ Generated: Sun Jul 20 16:29:18 2008 ] [ allocPSA 1.2.245 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/util/templates/ -> alloc.inc.tpl (source)

   1  <?php
   2  ini_set("error_reporting", E_ALL & ~E_NOTICE);
   3  
   4  define("ALLOC_DB_NAME","CONFIG_VAR_ALLOC_DB_NAME"); // Database name

   5  define("ALLOC_DB_USER","CONFIG_VAR_ALLOC_DB_USER"); // Database username

   6  define("ALLOC_DB_PASS","CONFIG_VAR_ALLOC_DB_PASS"); // Database password

   7  define("ALLOC_DB_HOST","CONFIG_VAR_ALLOC_DB_HOST"); // Database hostname (can be left blank or set to localhost)

   8  
   9  define("ALLOC_TITLE", "allocPSA");
  10  define("ALLOC_SHOOER","");
  11  define("ALLOC_GD_IMAGE_TYPE","PNG");
  12  
  13  define("ATTACHMENTS_DIR","CONFIG_VAR_ALLOC_DOCS_DIR");
  14  define("ALLOC_LOG_DIR","CONFIG_VAR_ALLOC_LOG_DIR");
  15  
  16  if (preg_match("/^(.*alloc[^\/]*)/",$_SERVER["SCRIPT_FILENAME"],$m)) {
  17    define("ALLOC_MOD_DIR",$m[1]);
  18  } else {
  19    die("Fatal Error: No MOD_DIR defined.");
  20  }
  21  
  22  $modules = array("home"         => true
  23                  ,"project"      => true
  24                  ,"time"         => true
  25                  ,"finance"      => true
  26                  ,"client"       => true
  27                  ,"item"         => true
  28                  ,"person"       => true
  29                  ,"announcement" => true
  30                  ,"notification" => true
  31                  ,"security"     => true
  32                  ,"config"       => true
  33                  ,"help"         => true
  34                  ,"search"       => true
  35                  ,"tools"        => true
  36                  ,"report"       => true
  37                  );
  38  
  39  define("ALLOC_MODULES",serialize($modules));
  40  unset($modules);
  41  
  42  include (ALLOC_MOD_DIR . "/shared/local.inc.php");
  43  
  44  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]