Changeset 61 for trunk/global.php


Ignore:
Timestamp:
Dec 31, 2015, 11:02:23 PM (9 years ago)
Author:
chronos
Message:
  • Added: Used ErrorHandler class Common package.
  • Removed: Unused files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/global.php

    r56 r61  
    33session_start();
    44$FileName = dirname(__FILE__).'/config.php';
    5 if(file_exists($FileName)) include($FileName);
     5if(file_exists($FileName)) include_once($FileName);
    66else {
    77  die('Configuration file "'.$FileName.'" not found.');
    88}
    9 include_once('config.php');
    109include_once('Version.php');
    1110include_once('types.php');
    1211include_once('classes.php');
    13 include_once('Packages/Common/Package.php');
     12include_once('Packages/Common/Common.php');
    1413$PrefixMultiplier = new PrefixMultiplier();
     14$ErrorHandler = new ErrorHandler();
     15$ErrorHandler->Start();
     16$ErrorHandler->ShowError = $Config['Web']['ShowError'];
    1517include_once('stat_functions.php');
    1618$Database = new Database();
     
    5557function MakeLink($Target, $Title)
    5658{
    57   return('<a href="'.$Target.'">'.$Title.'</a>'); 
     59  return('<a href="'.$Target.'">'.$Title.'</a>');
    5860}
    5961
     
    8789  foreach($Class as $Index => $Item)
    8890  {
    89     if(!array_key_exists($Index, $Values)) $Values[$Index] = $Item['Default']; 
     91    if(!array_key_exists($Index, $Values)) $Values[$Index] = $Item['Default'];
    9092    switch($Item['Type'])
    9193    {
Note: See TracChangeset for help on using the changeset viewer.