Index: send.php
===================================================================
--- send.php	(revision 3866)
+++ send.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.email_response.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("send.tpl.html");
Index: self_assign.php
===================================================================
--- self_assign.php	(revision 3866)
+++ self_assign.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("self_assign.tpl.html");
Index: confirm.php
===================================================================
--- confirm.php	(revision 3866)
+++ confirm.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("confirm.tpl.html");
Index: clock_status.php
===================================================================
--- clock_status.php	(revision 3866)
+++ clock_status.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("clock_status.tpl.html");
Index: view_note.php
===================================================================
--- view_note.php	(revision 3866)
+++ view_note.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("view_note.tpl.html");
Index: adv_search.php
===================================================================
--- adv_search.php	(revision 3866)
+++ adv_search.php	(working copy)
@@ -29,17 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.user.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("adv_search.tpl.html");
Index: scm_ping.php
===================================================================
--- scm_ping.php	(revision 3866)
+++ scm_ping.php	(working copy)
@@ -36,10 +36,6 @@
 }
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.scm.php");
-require_once(APP_INC_PATH . "class.workflow.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 foreach ($_GET['issue'] as $issue_id) {
     $files = array();
Index: custom_fields.php
===================================================================
--- custom_fields.php	(revision 3866)
+++ custom_fields.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("custom_fields_form.tpl.html");
Index: view_headers.php
===================================================================
--- view_headers.php	(revision 3866)
+++ view_headers.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("view_headers.tpl.html");
Index: faq.php
===================================================================
--- faq.php	(revision 3866)
+++ faq.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.faq.php");
-require_once(APP_INC_PATH . "class.customer.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("faq.tpl.html");
Index: download.php
===================================================================
--- download.php	(revision 3866)
+++ download.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.attachment.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 
Index: view.php
===================================================================
--- view.php	(revision 3866)
+++ view.php	(working copy)
@@ -29,20 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.impact_analysis.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.attachment.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "class.scm.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("view.tpl.html");
Index: list.php
===================================================================
--- list.php	(revision 3866)
+++ list.php	(working copy)
@@ -29,21 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "class.display_column.php");
-require_once(APP_INC_PATH . "class.search_profile.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("list.tpl.html");
Index: time_tracking.php
===================================================================
--- time_tracking.php	(revision 3866)
+++ time_tracking.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("add_time_tracking.tpl.html");
Index: update.php
===================================================================
--- update.php	(revision 3866)
+++ update.php	(working copy)
@@ -29,18 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $prj_id = Auth::getCurrentProject();
 $usr_id = Auth::getUserID();
Index: forgot_password.php
===================================================================
--- forgot_password.php	(revision 3866)
+++ forgot_password.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("forgot_password.tpl.html");
Index: offline.php
===================================================================
--- offline.php	(revision 3866)
+++ offline.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
 
 $tpl = new Template_Helper();
 if (php_sapi_name() == 'cli') {
Index: main.php
===================================================================
--- main.php	(revision 3866)
+++ main.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.stats.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.news.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.search_profile.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("main.tpl.html");
Index: post.php
===================================================================
--- post.php	(revision 3866)
+++ post.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("post.tpl.html");
Index: js/dynamic_custom_field.js.php
===================================================================
--- js/dynamic_custom_field.js.php	(revision 3866)
+++ js/dynamic_custom_field.js.php	(working copy)
@@ -1,8 +1,5 @@
 <?php
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 
Index: help.php
===================================================================
--- help.php	(revision 3866)
+++ help.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.help.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("help/index.tpl.html");
Index: new.php
===================================================================
--- new.php	(revision 3866)
+++ new.php	(working copy)
@@ -29,18 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("new.tpl.html");
Index: csv.php
===================================================================
--- csv.php	(revision 3866)
+++ csv.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . '/init.php');
-require_once(APP_INC_PATH . 'class.auth.php');
-require_once(APP_INC_PATH . 'db_access.php');
 
 Auth::checkAuthentication(APP_COOKIE);
 
Index: removed_emails.php
===================================================================
--- removed_emails.php	(revision 3866)
+++ removed_emails.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("removed_emails.tpl.html");
Index: include/class.mime_helper.php
===================================================================
--- include/class.mime_helper.php	(revision 3866)
+++ include/class.mime_helper.php	(working copy)
@@ -40,7 +40,6 @@
 */
 
 require_once(APP_PEAR_PATH . "Mail/mimeDecode.php");
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 /**
  * Class to handle the business logic related to the MIME email
Index: include/class.issue.php
===================================================================
--- include/class.issue.php	(revision 3866)
+++ include/class.issue.php	(working copy)
@@ -27,33 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.attachment.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.pager.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.resolution.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.scm.php");
-require_once(APP_INC_PATH . "class.impact_analysis.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.round_robin.php");
-require_once(APP_INC_PATH . "class.authorized_replier.php");
-require_once(APP_INC_PATH . "class.workflow.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.reminder_action.php");
-require_once(APP_INC_PATH . "class.search_profile.php");
-require_once(APP_INC_PATH . "class.session.php");
 
 /**
  * Class designed to handle all business logic related to the issues in the
Index: include/class.misc.php
===================================================================
--- include/class.misc.php	(revision 3866)
+++ include/class.misc.php	(working copy)
@@ -27,8 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.setup.php");
 
 /**
  * Class to hold methods and algorythms that woudln't fit in other classes, such
Index: include/class.authorized_replier.php
===================================================================
--- include/class.authorized_replier.php	(revision 3866)
+++ include/class.authorized_replier.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.user.php");
 
 /**
  * Class designed to handle adding, removing and viewing authorized repliers for an issue.
Index: include/class.customer.php
===================================================================
--- include/class.customer.php	(revision 3866)
+++ include/class.customer.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . 'class.misc.php');
 
 // Constants used by customer class.
 define("CUSTOMER_EXCLUDE_EXPIRED", 1);
Index: include/class.history.php
===================================================================
--- include/class.history.php	(revision 3866)
+++ include/class.history.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle the business logic related to the history information for
Index: include/autoload.php
===================================================================
--- include/autoload.php	(revision 0)
+++ include/autoload.php	(revision 0)
@@ -0,0 +1,84 @@
+<?php
+/**
+ * Autoload class for Eventum.
+ *
+ * @author Tarmo Lehtpuu <tarmo.lehtpuu@delfi.ee>
+ * @author Tanel Suurhans <tanel.suurhans@delfi.ee>
+ * @author Elan Ruusamäe <glen@delfi.ee>
+ *
+ * @package Eventum
+ */
+class Eventum_Autoload {
+
+	private static $excludes = array('.', '..', '.svn', 'CVS');
+	private static $classes;
+
+	public static function autoload($className) {
+		if (class_exists($className, false) || interface_exists($className, false)) {
+			return true;
+		}
+
+		// Zend framework
+		if (strpos($className, 'Zend') === 0){
+			require_once str_replace('_', '/', $className) . '.php';
+			return true;
+		}
+
+		// Smarty
+		if ($className === 'Smarty') {
+			require_once 'Smarty/Smarty.class.php';
+			return true;
+		}
+
+		if (!is_array(self::$classes)) {
+			self::$classes = array();
+			self::scan(dirname(__FILE__));
+		}
+
+		$className = strtolower($className);
+		if (array_key_exists($className, self::$classes)) {
+			require_once self::$classes[$className];
+			return true;
+		}
+
+		return false;
+	}
+
+	private static function scan($path) {
+
+		$dh = opendir($path);
+		while (($file = readdir($dh)) !== false) {
+			// omit exclusions
+			if (array_search($file, self::$excludes) !== false) {
+				continue;
+			}
+
+			// exclude hidden paths
+			if ($file[0] == '.') {
+				continue;
+			}
+
+			// recurse
+			if (is_dir($path . DIRECTORY_SEPARATOR . $file)) {
+				self::scan($path . DIRECTORY_SEPARATOR . $file);
+				continue;
+			}
+
+			// skip without .php extension
+			if (substr($file, -4) != '.php') {
+				continue;
+			}
+			$class = substr($file, 0, -4);
+
+			// rewrite from class.CLASSNAME.php
+			if (substr($class, 0, 6) === 'class.') {
+				$class = strtolower(substr($class, 6));
+
+				self::$classes[$class] = $path . DIRECTORY_SEPARATOR . $file;
+			}
+		}
+		closedir($dh);
+	}
+}
+
+spl_autoload_register(array('Eventum_Autoload', 'autoload'));
Index: include/class.note.php
===================================================================
--- include/class.note.php	(revision 3866)
+++ include/class.note.php	(working copy)
@@ -27,16 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "class.authorized_replier.php");
 
 /**
  * Class to handle the business logic related to adding, updating or
Index: include/class.template_helper.php
===================================================================
--- include/class.template_helper.php	(revision 3866)
+++ include/class.template_helper.php	(working copy)
@@ -31,12 +31,6 @@
 
 require_once(APP_PEAR_PATH . "Net/UserAgent/Detect.php");
 require_once(APP_SMARTY_PATH . "Smarty.class.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.link_filter.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
 
 /**
  * Class used to abstract the backend template system used by the site. This
Index: include/class.mail_helper.php
===================================================================
--- include/class.mail_helper.php	(revision 3866)
+++ include/class.mail_helper.php	(working copy)
@@ -27,12 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.mail_queue.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.reminder.php");
 require_once(APP_PEAR_PATH . "Mail/RFC822.php");
 
 /**
Index: include/custom_field/class.reporter_list.php
===================================================================
--- include/custom_field/class.reporter_list.php	(revision 3866)
+++ include/custom_field/class.reporter_list.php	(working copy)
@@ -27,8 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 
 /**
Index: include/custom_field/class.developer_list.php
===================================================================
--- include/custom_field/class.developer_list.php	(revision 3866)
+++ include/custom_field/class.developer_list.php	(working copy)
@@ -27,8 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 
 /**
Index: include/custom_field/class.dynamic.php
===================================================================
--- include/custom_field/class.dynamic.php	(revision 3866)
+++ include/custom_field/class.dynamic.php	(working copy)
@@ -27,8 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 
 /**
Index: include/class.db_helper.php
===================================================================
--- include/class.db_helper.php	(revision 3866)
+++ include/class.db_helper.php	(working copy)
@@ -30,7 +30,6 @@
 //
 
 require_once("DB.php");
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 /**
  * Class to manage all tasks related to the DB abstraction module. This is only
Index: include/class.search_profile.php
===================================================================
--- include/class.search_profile.php	(revision 3866)
+++ include/class.search_profile.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
 
 class Search_Profile
 {
Index: include/class.mail_queue.php
===================================================================
--- include/class.mail_queue.php	(revision 3866)
+++ include/class.mail_queue.php	(working copy)
@@ -28,12 +28,6 @@
 //
 
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.lock.php");
-require_once(APP_INC_PATH . "class.user.php");
 require_once(APP_PEAR_PATH . 'Mail.php');
 
 class Mail_Queue
Index: include/class.attachment.php
===================================================================
--- include/class.attachment.php	(revision 3866)
+++ include/class.attachment.php	(working copy)
@@ -28,15 +28,6 @@
 //
 
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.workflow.php");
 
 /**
  * Class designed to handle all business logic related to attachments being
Index: include/class.issue_field.php
===================================================================
--- include/class.issue_field.php	(revision 3866)
+++ include/class.issue_field.php	(working copy)
@@ -27,7 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.priority.php");
 
 /**
  * Manages fields that are associated with an issue but can be displayed in many different places.
Index: include/class.group.php
===================================================================
--- include/class.group.php	(revision 3866)
+++ include/class.group.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.project.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.pager.php
===================================================================
--- include/class.pager.php	(revision 3866)
+++ include/class.pager.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 /**
  * Class to manage paginated links on the frontend pages.
Index: include/class.draft.php
===================================================================
--- include/class.draft.php	(revision 3866)
+++ include/class.draft.php	(working copy)
@@ -27,7 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.email_account.php");
 
 class Draft
 {
Index: include/class.auth.php
===================================================================
--- include/class.auth.php	(revision 3866)
+++ include/class.auth.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle authentication issues.
Index: include/class.reminder.php
===================================================================
--- include/class.reminder.php	(revision 3866)
+++ include/class.reminder.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.reminder_action.php");
-require_once(APP_INC_PATH . "class.priority.php");
 
 /**
  * Class to handle the business logic related to the reminder emails
Index: include/customer/class.example.php
===================================================================
--- include/customer/class.example.php	(revision 3866)
+++ include/customer/class.example.php	(working copy)
@@ -27,8 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "customer/class.abstract_customer_backend.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Example customer backend. This does not cover all functionality, but should provide an idea
Index: include/class.customer_stats_report.php
===================================================================
--- include/class.customer_stats_report.php	(revision 3866)
+++ include/class.customer_stats_report.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
 require_once(APP_PEAR_PATH . "Math/Stats.php");
 
 /**
Index: include/class.report.php
===================================================================
--- include/class.report.php	(revision 3866)
+++ include/class.report.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "class.prefs.php");
 require_once(APP_PEAR_PATH . "Math/Stats.php");
 
 /**
Index: include/class.date_helper.php
===================================================================
--- include/class.date_helper.php	(revision 3866)
+++ include/class.date_helper.php	(working copy)
@@ -32,8 +32,6 @@
 // this line needed to make sure PEAR knows all eventum dates are stored as UTC (GMT).
 $_DATE_TIMEZONE_DEFAULT = 'UTC';
 
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.prefs.php");
 require_once(APP_PEAR_PATH . "Date.php");
 
 if (!defined('APP_DEFAULT_TIMEZONE')) {
Index: include/class.category.php
===================================================================
--- include/class.category.php	(revision 3866)
+++ include/class.category.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.validation.php");
 
 /**
  * Class to handle project category related issues.
Index: include/class.prefs.php
===================================================================
--- include/class.prefs.php	(revision 3866)
+++ include/class.prefs.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle the business logic related to the user preferences
Index: include/workflow/class.example.php
===================================================================
--- include/workflow/class.example.php	(revision 3866)
+++ include/workflow/class.example.php	(working copy)
@@ -27,7 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "workflow/class.abstract_workflow_backend.php");
 
 /**
  * Example workflow backend class. For example purposes it will print what
Index: include/class.time_tracking.php
===================================================================
--- include/class.time_tracking.php	(revision 3866)
+++ include/class.time_tracking.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.history.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.round_robin.php
===================================================================
--- include/class.round_robin.php	(revision 3866)
+++ include/class.round_robin.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . 'class.date_helper.php');
-require_once(APP_INC_PATH . 'class.error_handler.php');
 
 class Round_Robin
 {
Index: include/class.scm.php
===================================================================
--- include/class.scm.php	(revision 3866)
+++ include/class.scm.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.setup.php");
 
 /**
  * Class to handle the business logic related to the source control management
Index: include/class.filter.php
===================================================================
--- include/class.filter.php	(revision 3866)
+++ include/class.filter.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle the business logic related to the custom filters.
Index: include/class.error_handler.php
===================================================================
--- include/class.error_handler.php	(revision 3866)
+++ include/class.error_handler.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.setup.php");
 
 /**
  * Class to manage all tasks related to error conditions of the site, such as
Index: include/class.routing.php
===================================================================
--- include/class.routing.php	(revision 3866)
+++ include/class.routing.php	(working copy)
@@ -27,19 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.history.php");
 
 /**
  * Class to handle all routing functionality
Index: include/class.help.php
===================================================================
--- include/class.help.php	(revision 3866)
+++ include/class.help.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 /**
  * Class to handle the business logic related to the help
Index: include/class.stats.php
===================================================================
--- include/class.stats.php	(revision 3866)
+++ include/class.stats.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.status.php");
 
 /**
  * Class to handle the business logic related to the generation of the
Index: include/class.reminder_action.php
===================================================================
--- include/class.reminder_action.php	(revision 3866)
+++ include/class.reminder_action.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.reminder_condition.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.validation.php");
 
 /**
  * Class to handle the business logic related to the reminder emails
Index: include/class.link_filter.php
===================================================================
--- include/class.link_filter.php	(revision 3866)
+++ include/class.link_filter.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.user.php");
 
 /**
  * Class to handle parsing content for links.
@@ -348,7 +347,6 @@
      */
     function callbackIssueLinks($matches)
     {
-        require_once(APP_INC_PATH . "class.issue.php");
         // check if the issue is still open
         if (Issue::isClosed($matches[5])) {
             $class = 'closed_link';
Index: include/class.email_account.php
===================================================================
--- include/class.email_account.php	(revision 3866)
+++ include/class.email_account.php	(working copy)
@@ -30,7 +30,6 @@
 //
 
 
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 class Email_Account
 {
Index: include/class.email_response.php
===================================================================
--- include/class.email_response.php	(revision 3866)
+++ include/class.email_response.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.support.php
===================================================================
--- include/class.support.php	(revision 3866)
+++ include/class.support.php	(working copy)
@@ -27,20 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.pager.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.email_account.php");
-require_once(APP_INC_PATH . "class.search_profile.php");
-require_once(APP_INC_PATH . "class.routing.php");
 
 /**
  * Class to handle the business logic related to the email feature of
Index: include/class.user.php
===================================================================
--- include/class.user.php	(revision 3866)
+++ include/class.user.php	(working copy)
@@ -29,16 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.setup.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.release.php
===================================================================
--- include/class.release.php	(revision 3866)
+++ include/class.release.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.validation.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.impact_analysis.php
===================================================================
--- include/class.impact_analysis.php	(revision 3866)
+++ include/class.impact_analysis.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle the business logic related to the impact analysis section
Index: include/class.status.php
===================================================================
--- include/class.status.php	(revision 3866)
+++ include/class.status.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
 
 /**
  * Class to handle all business logic related to the way statuses
Index: include/class.notification.php
===================================================================
--- include/class.notification.php	(revision 3866)
+++ include/class.notification.php	(working copy)
@@ -36,20 +36,6 @@
  * @author João Prado Maia <jpm@mysql.com>
  */
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.priority.php");
 
 class Notification
 {
Index: include/class.resolution.php
===================================================================
--- include/class.resolution.php	(revision 3866)
+++ include/class.resolution.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.phone_support.php
===================================================================
--- include/class.phone_support.php	(revision 3866)
+++ include/class.phone_support.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
 
 /**
  * Class to handle the business logic related to the phone support
Index: include/class.project.php
===================================================================
--- include/class.project.php	(revision 3866)
+++ include/class.project.php	(working copy)
@@ -29,18 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.display_column.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.reminder_condition.php
===================================================================
--- include/class.reminder_condition.php	(revision 3866)
+++ include/class.reminder_condition.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.status.php");
 
 /**
  * Class to handle the business logic related to the reminder emails
Index: include/class.custom_field.php
===================================================================
--- include/class.custom_field.php	(revision 3866)
+++ include/class.custom_field.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.history.php");
 
 /**
  * Class to handle the business logic related to the administration
Index: include/class.priority.php
===================================================================
--- include/class.priority.php	(revision 3866)
+++ include/class.priority.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.validation.php");
 
 /**
  * Class to handle project priority related issues.
Index: include/class.session.php
===================================================================
--- include/class.session.php	(revision 3866)
+++ include/class.session.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 
-require_once(APP_INC_PATH . "class.error_handler.php");
-require_once(APP_INC_PATH . "class.setup.php");
 
 /**
  * Wrapper class for sessions. This is an initial bare bones implementation.
Index: popup.php
===================================================================
--- popup.php	(revision 3866)
+++ popup.php	(working copy)
@@ -29,24 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.impact_analysis.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.attachment.php");
-require_once(APP_INC_PATH . "class.scm.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.authorized_replier.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("popup.tpl.html");
Index: index.php
===================================================================
--- index.php	(revision 3866)
+++ index.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . '/init.php');
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 // check if templates_c is writable by the web server user
 if (!Misc::isWritableDirectory(APP_TPL_COMPILE_PATH)) {
Index: duplicate.php
===================================================================
--- duplicate.php	(revision 3866)
+++ duplicate.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("duplicate.tpl.html");
Index: customer/example/customer_lookup.php
===================================================================
--- customer/example/customer_lookup.php	(revision 3866)
+++ customer/example/customer_lookup.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("customer/example/customer_lookup.tpl.html");
Index: customer/example/create_customers.php
===================================================================
--- customer/example/create_customers.php	(revision 3866)
+++ customer/example/create_customers.php	(working copy)
@@ -28,9 +28,6 @@
 //
 //
 require_once(dirname(__FILE__) . "/../../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "class.user.php");
 
 // creates user accounts for all the customers
 $prj_id = 1;
Index: stats_chart.php
===================================================================
--- stats_chart.php	(revision 3866)
+++ stats_chart.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.stats.php");
 
 ini_set('memory_limit', '64M');
 error_reporting(0);
Index: notification.php
===================================================================
--- notification.php	(revision 3866)
+++ notification.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("notification.tpl.html");
Index: get_attachment.php
===================================================================
--- get_attachment.php	(revision 3866)
+++ get_attachment.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 
Index: validate.php
===================================================================
--- validate.php	(revision 3866)
+++ validate.php	(working copy)
@@ -30,9 +30,6 @@
 //
 
 require_once(dirname(__FILE__) . '/init.php');
-include_once(APP_INC_PATH . "class.auth.php");
-include_once(APP_INC_PATH . "class.issue.php");
-include_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 

Property changes on: validate.php
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Index: rpc/xmlrpc.php
===================================================================
--- rpc/xmlrpc.php	(revision 3866)
+++ rpc/xmlrpc.php	(working copy)
@@ -29,18 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.authorized_replier.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.customer.php");
 error_reporting(0);
 require_once(APP_PEAR_PATH . "XML/RPC/Server.php");
 
Index: requirement.php
===================================================================
--- requirement.php	(revision 3866)
+++ requirement.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.impact_analysis.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("requirement.tpl.html");
Index: select_project.php
===================================================================
--- select_project.php	(revision 3866)
+++ select_project.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("select_project.tpl.html");
Index: convert_note.php
===================================================================
--- convert_note.php	(revision 3866)
+++ convert_note.php	(working copy)
@@ -29,17 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.mime_helper.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.notification.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("convert_note.tpl.html");
Index: reports/workload_date_range.php
===================================================================
--- reports/workload_date_range.php	(revision 3866)
+++ reports/workload_date_range.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.session.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/workload_date_range.tpl.html");
Index: reports/estimated_dev_time.php
===================================================================
--- reports/estimated_dev_time.php	(revision 3866)
+++ reports/estimated_dev_time.php	(working copy)
@@ -27,14 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "class.customer_stats_report.php");
-require_once(APP_INC_PATH . "class.session.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/estimated_dev_time.tpl.html");
Index: reports/recent_activity.php
===================================================================
--- reports/recent_activity.php	(revision 3866)
+++ reports/recent_activity.php	(working copy)
@@ -28,9 +28,6 @@
 //
 // This report shows a list of activity performed in recent history.
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/recent_activity.tpl.html");
Index: reports/open_issues.php
===================================================================
--- reports/open_issues.php	(revision 3866)
+++ reports/open_issues.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/open_issues.tpl.html");
Index: reports/tree.php
===================================================================
--- reports/tree.php	(revision 3866)
+++ reports/tree.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/tree.tpl.html");
Index: reports/weekly.php
===================================================================
--- reports/weekly.php	(revision 3866)
+++ reports/weekly.php	(working copy)
@@ -27,11 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/weekly.tpl.html");
Index: reports/customer_stats_graph.php
===================================================================
--- reports/customer_stats_graph.php	(revision 3866)
+++ reports/customer_stats_graph.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.customer_stats_report.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "class.session.php");
-require_once(APP_INC_PATH . "db_access.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_bar.php");
 
Index: reports/custom_fields.php
===================================================================
--- reports/custom_fields.php	(revision 3866)
+++ reports/custom_fields.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/custom_fields.tpl.html");
Index: reports/top.php
===================================================================
--- reports/top.php	(revision 3866)
+++ reports/top.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/top.tpl.html");
Index: reports/workload_time_period.php
===================================================================
--- reports/workload_time_period.php	(revision 3866)
+++ reports/workload_time_period.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/workload_time_period.tpl.html");
Index: reports/index.php
===================================================================
--- reports/index.php	(revision 3866)
+++ reports/index.php	(working copy)
@@ -29,8 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 if (Auth::getCurrentRole() <= User::getRoleID("Customer")) {
Index: reports/category_statuses.php
===================================================================
--- reports/category_statuses.php	(revision 3866)
+++ reports/category_statuses.php	(working copy)
@@ -27,10 +27,6 @@
 // +----------------------------------------------------------------------+
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/category_statuses.tpl.html");
Index: reports/workload_date_range_graph.php
===================================================================
--- reports/workload_date_range_graph.php	(revision 3866)
+++ reports/workload_date_range_graph.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.session.php");
-require_once(APP_INC_PATH . "db_access.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_bar.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_pie.php");
Index: reports/customer_stats.php
===================================================================
--- reports/customer_stats.php	(revision 3866)
+++ reports/customer_stats.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "class.customer_stats_report.php");
-require_once(APP_INC_PATH . "class.session.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/customer_stats.tpl.html");
Index: reports/custom_fields_graph.php
===================================================================
--- reports/custom_fields_graph.php	(revision 3866)
+++ reports/custom_fields_graph.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "db_access.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_bar.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_pie.php");
Index: reports/stalled_issues.php
===================================================================
--- reports/stalled_issues.php	(revision 3866)
+++ reports/stalled_issues.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/stalled_issues.tpl.html");
Index: reports/workload_time_period_graph.php
===================================================================
--- reports/workload_time_period_graph.php	(revision 3866)
+++ reports/workload_time_period_graph.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph.php");
 require_once(APP_JPGRAPH_PATH . "jpgraph_bar.php");
 
Index: reports/issue.php
===================================================================
--- reports/issue.php	(revision 3866)
+++ reports/issue.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.report.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("reports/issue_user.tpl.html");
Index: login.php
===================================================================
--- login.php	(revision 3866)
+++ login.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.validation.php");
 
 if (Validation::isWhitespace($_POST["email"])) {
     Auth::redirect(APP_RELATIVE_URL . "index.php?err=1");
Index: logout.php
===================================================================
--- logout.php	(revision 3866)
+++ logout.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.auth.php");
 
 Auth::removeCookie(APP_COOKIE);
 
Index: associate.php
===================================================================
--- associate.php	(revision 3866)
+++ associate.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "class.mail_helper.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("associate.tpl.html");
Index: news.php
===================================================================
--- news.php	(revision 3866)
+++ news.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.news.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate('news.tpl.html');
Index: view_email.php
===================================================================
--- view_email.php	(revision 3866)
+++ view_email.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("view_email.tpl.html");
Index: searchbar.php
===================================================================
--- searchbar.php	(revision 3866)
+++ searchbar.php	(working copy)
@@ -29,16 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.status.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("searchbar.tpl.html");
Index: authorized_replier.php
===================================================================
--- authorized_replier.php	(revision 3866)
+++ authorized_replier.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.authorized_replier.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("authorized_replier.tpl.html");
Index: history.php
===================================================================
--- history.php	(revision 3866)
+++ history.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.history.php");
-require_once(APP_INC_PATH . "class.reminder.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("history.tpl.html");
Index: switch.php
===================================================================
--- switch.php	(revision 3866)
+++ switch.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("switch.tpl.html");
Index: preferences.php
===================================================================
--- preferences.php	(revision 3866)
+++ preferences.php	(working copy)
@@ -33,12 +33,6 @@
     define('SKIP_LANGUAGE_INIT', true);
 }
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.prefs.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.date_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 // must do Language::setPreference before template is initialized
 if (@$_POST["cat"] == "update_account") {
Index: manage/priorities.php
===================================================================
--- manage/priorities.php	(revision 3866)
+++ manage/priorities.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/reminder_conditions.php
===================================================================
--- manage/reminder_conditions.php	(revision 3866)
+++ manage/reminder_conditions.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.reminder.php");
-require_once(APP_INC_PATH . "class.reminder_action.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/custom_fields.php
===================================================================
--- manage/custom_fields.php	(revision 3866)
+++ manage/custom_fields.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.custom_field.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/users.php
===================================================================
--- manage/users.php	(revision 3866)
+++ manage/users.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/releases.php
===================================================================
--- manage/releases.php	(revision 3866)
+++ manage/releases.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.release.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/resolution.php
===================================================================
--- manage/resolution.php	(revision 3866)
+++ manage/resolution.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.resolution.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/faq.php
===================================================================
--- manage/faq.php	(revision 3866)
+++ manage/faq.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.faq.php");
-require_once(APP_INC_PATH . "class.customer.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/field_display.php
===================================================================
--- manage/field_display.php	(revision 3866)
+++ manage/field_display.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.workflow.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/customer_notes.php
===================================================================
--- manage/customer_notes.php	(revision 3866)
+++ manage/customer_notes.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/news.php
===================================================================
--- manage/news.php	(revision 3866)
+++ manage/news.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.news.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/groups.php
===================================================================
--- manage/groups.php	(revision 3866)
+++ manage/groups.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.group.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/time_tracking.php
===================================================================
--- manage/time_tracking.php	(revision 3866)
+++ manage/time_tracking.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/round_robin.php
===================================================================
--- manage/round_robin.php	(revision 3866)
+++ manage/round_robin.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.round_robin.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/reminder_review.php
===================================================================
--- manage/reminder_review.php	(revision 3866)
+++ manage/reminder_review.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.reminder.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("get_emails.tpl.html");
Index: manage/email_accounts.php
===================================================================
--- manage/email_accounts.php	(revision 3866)
+++ manage/email_accounts.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/email_responses.php
===================================================================
--- manage/email_responses.php	(revision 3866)
+++ manage/email_responses.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.email_response.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/anonymous.php
===================================================================
--- manage/anonymous.php	(revision 3866)
+++ manage/anonymous.php	(working copy)
@@ -29,15 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/projects.php
===================================================================
--- manage/projects.php	(revision 3866)
+++ manage/projects.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.workflow.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/email_alias.php
===================================================================
--- manage/email_alias.php	(revision 3866)
+++ manage/email_alias.php	(working copy)
@@ -29,7 +29,6 @@
 // @(#) $Id: email_alias.php 3797 2009-01-28 20:14:39Z anderson $
 
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/email_alias.tpl.html");
Index: manage/check_email_settings.php
===================================================================
--- manage/check_email_settings.php	(revision 3866)
+++ manage/check_email_settings.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 error_reporting(0);
 @set_time_limit(0);
 
Index: manage/issue_auto_creation.php
===================================================================
--- manage/issue_auto_creation.php	(revision 3866)
+++ manage/issue_auto_creation.php	(working copy)
@@ -29,16 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.email_account.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/account_managers.php
===================================================================
--- manage/account_managers.php	(revision 3866)
+++ manage/account_managers.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/customize_listing.php
===================================================================
--- manage/customize_listing.php	(revision 3866)
+++ manage/customize_listing.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/statuses.php
===================================================================
--- manage/statuses.php	(revision 3866)
+++ manage/statuses.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/general.php
===================================================================
--- manage/general.php	(revision 3866)
+++ manage/general.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/phone_categories.php
===================================================================
--- manage/phone_categories.php	(revision 3866)
+++ manage/phone_categories.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/column_display.php
===================================================================
--- manage/column_display.php	(revision 3866)
+++ manage/column_display.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.display_column.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $prj_id = $_REQUEST['prj_id'];
 
Index: manage/categories.php
===================================================================
--- manage/categories.php	(revision 3866)
+++ manage/categories.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.category.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/link_filters.php
===================================================================
--- manage/link_filters.php	(revision 3866)
+++ manage/link_filters.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.link_filter.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/reminder_actions.php
===================================================================
--- manage/reminder_actions.php	(revision 3866)
+++ manage/reminder_actions.php	(working copy)
@@ -29,12 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.reminder.php");
-require_once(APP_INC_PATH . "class.reminder_action.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: manage/reminders.php
===================================================================
--- manage/reminders.php	(revision 3866)
+++ manage/reminders.php	(working copy)
@@ -29,14 +29,6 @@
 // @(#) $Id$
 //
 require_once(dirname(__FILE__) . "/../init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.project.php");
-require_once(APP_INC_PATH . "class.priority.php");
-require_once(APP_INC_PATH . "class.reminder.php");
-require_once(APP_INC_PATH . "class.issue.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("manage/index.tpl.html");
Index: init.php
===================================================================
--- init.php	(revision 3866)
+++ init.php	(working copy)
@@ -159,10 +159,7 @@
     define('APP_MAINTENANCE', false);
 }
 
-include_once(APP_INC_PATH . 'class.language.php');
-include_once(APP_INC_PATH . 'db_access.php');
-include_once(APP_INC_PATH . 'class.auth.php');
-include_once(APP_INC_PATH . 'class.misc.php');
+require_once APP_INC_PATH . '/autoload.php';
 
 // fix magic_quote_gpc'ed values
 if (get_magic_quotes_gpc()) {
Index: close.php
===================================================================
--- close.php	(revision 3866)
+++ close.php	(working copy)
@@ -29,15 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "class.resolution.php");
-require_once(APP_INC_PATH . "class.time_tracking.php");
-require_once(APP_INC_PATH . "class.status.php");
-require_once(APP_INC_PATH . "class.notification.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("close.tpl.html");
Index: signup.php
===================================================================
--- signup.php	(revision 3866)
+++ signup.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("signup.tpl.html");
Index: rss.php
===================================================================
--- rss.php	(revision 3866)
+++ rss.php	(working copy)
@@ -29,13 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.setup.php");
-require_once(APP_INC_PATH . "class.filter.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.validation.php");
-require_once(APP_INC_PATH . "class.project.php");
 
 $setup = Setup::load();
 if (empty($setup['tool_caption'])) {
Index: post_note.php
===================================================================
--- post_note.php	(revision 3866)
+++ post_note.php	(working copy)
@@ -25,12 +25,6 @@
 // +----------------------------------------------------------------------+
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.user.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.issue_field.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("post_note.tpl.html");
Index: emails.php
===================================================================
--- emails.php	(revision 3866)
+++ emails.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.issue.php");
-require_once(APP_INC_PATH . "class.support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("emails.tpl.html");
Index: spell_check.php
===================================================================
--- spell_check.php	(revision 3866)
+++ spell_check.php	(working copy)
@@ -29,9 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.misc.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("spell_check.tpl.html");
Index: redeem_incident.php
===================================================================
--- redeem_incident.php	(revision 3866)
+++ redeem_incident.php	(working copy)
@@ -28,9 +28,6 @@
 
 // This page handles marking an issue as 'redeeming' an incident.
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.customer.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 Auth::checkAuthentication(APP_COOKIE, 'index.php?err=5', true);
 
Index: file_upload.php
===================================================================
--- file_upload.php	(revision 3866)
+++ file_upload.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.attachment.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("file_upload.tpl.html");
Index: get_remote_data.php
===================================================================
--- get_remote_data.php	(revision 3866)
+++ get_remote_data.php	(working copy)
@@ -29,11 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "db_access.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.note.php");
-require_once(APP_INC_PATH . "class.draft.php");
-require_once(APP_INC_PATH . "class.mail_queue.php");
 
 Auth::checkAuthentication(APP_COOKIE);
 
Index: mail_queue.php
===================================================================
--- mail_queue.php	(revision 3866)
+++ mail_queue.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.mail_queue.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("mail_queue.tpl.html");
Index: phone_calls.php
===================================================================
--- phone_calls.php	(revision 3866)
+++ phone_calls.php	(working copy)
@@ -29,10 +29,6 @@
 // @(#) $Id$
 
 require_once(dirname(__FILE__) . "/init.php");
-require_once(APP_INC_PATH . "class.template_helper.php");
-require_once(APP_INC_PATH . "class.auth.php");
-require_once(APP_INC_PATH . "class.phone_support.php");
-require_once(APP_INC_PATH . "db_access.php");
 
 $tpl = new Template_Helper();
 $tpl->setTemplate("add_phone_entry.tpl.html");
