Refactoring (Part I)
authorpeter <peter@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 23 Feb 2008 12:28:44 +0000 (12:28 +0000)
committerpeter <peter@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sat, 23 Feb 2008 12:28:44 +0000 (12:28 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@88 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

21 files changed:
www/inc/classes/cart.php [moved from www/inc/cart.php with 100% similarity]
www/inc/classes/config_manager.php [moved from www/inc/config_manager.php with 100% similarity]
www/inc/classes/customer.php [moved from www/inc/customer.php with 100% similarity]
www/inc/classes/error.php [moved from www/inc/error.php with 100% similarity]
www/inc/classes/event.php [moved from www/inc/event.php with 100% similarity]
www/inc/classes/language_manager.php [moved from www/inc/language_manager.php with 100% similarity]
www/inc/classes/order.php [moved from www/inc/order.php with 100% similarity]
www/inc/classes/parser.php [moved from www/inc/parser.php with 100% similarity]
www/inc/classes/random.php [moved from www/inc/random.php with 100% similarity]
www/inc/classes/room.php [moved from www/inc/room.php with 100% similarity]
www/inc/classes/ticket.php [moved from www/inc/ticket.php with 100% similarity]
www/inc/db/db.php [moved from www/inc/db.php with 100% similarity]
www/inc/db/db_mysql.php [moved from www/inc/db_mysql.php with 100% similarity]
www/inc/db/db_scheme.php [moved from www/inc/db_scheme.php with 100% similarity]
www/inc/loader.php
www/inc/loader_nonadmin.php
www/inc/rendering/cart_listing.php [moved from www/inc/cart_listing.php with 100% similarity]
www/inc/rendering/event_listing.php [moved from www/inc/event_listing.php with 100% similarity]
www/inc/rendering/order_listing.php [moved from www/inc/order_listing.php with 100% similarity]
www/inc/rendering/submit.php [moved from www/inc/submit.php with 100% similarity]
www/index.php

similarity index 100%
rename from www/inc/cart.php
rename to www/inc/classes/cart.php
similarity index 100%
rename from www/inc/error.php
rename to www/inc/classes/error.php
similarity index 100%
rename from www/inc/event.php
rename to www/inc/classes/event.php
similarity index 100%
rename from www/inc/order.php
rename to www/inc/classes/order.php
similarity index 100%
rename from www/inc/room.php
rename to www/inc/classes/room.php
similarity index 100%
rename from www/inc/db.php
rename to www/inc/db/db.php
similarity index 100%
rename from www/inc/db_mysql.php
rename to www/inc/db/db_mysql.php
index de7fce0..263cbf4 100644 (file)
@@ -2,10 +2,10 @@
 //internal info: server version
 $MAGICSMOKEVERSION="0.1 alpha";
 //load DB drivers
-include('./inc/db.php');
-include('./inc/db_mysql.php');
+include('./inc/db/db.php');
+include('./inc/db/db_mysql.php');
 include('./config.php');
-include('./inc/db_scheme.php');
+include('./inc/db/db_scheme.php');
 //try to connect
 $db->tryConnect();
 //move on in loader_nonadmin.php (or admin.php)
index fe7b5a0..664579b 100644 (file)
@@ -3,17 +3,17 @@
 if(!$db->canUseDb())
        die("Database is not correctly configured. Giving up.");
 //load class-files
-include('./inc/event.php');
-include('./inc/room.php');
-include("./inc/random.php");
-include("./inc/order.php");
-include("./inc/ticket.php");
-include("./inc/cart.php");
-include('./inc/error.php');
-include('./inc/language_manager.php');
-include('./inc/parser.php');
-include('./inc/config_manager.php');
-include('./inc/customer.php');
+include('./inc/classes/event.php');
+include('./inc/classes/room.php');
+include("./inc/classes/random.php");
+include("./inc/classes/order.php");
+include("./inc/classes/ticket.php");
+include("./inc/classes/cart.php");
+include('./inc/classes/error.php');
+include('./inc/classes/language_manager.php');
+include('./inc/classes/parser.php');
+include('./inc/classes/config_manager.php');
+include('./inc/classes/customer.php');
 //load hash lib
 include("./inc/cauth_".$HashLib.".php");
 
index e51c800..439258b 100644 (file)
@@ -5,12 +5,12 @@ include('inc/loader_nonadmin.php');
 include('inc/global_variables.php');
 
 //include process script
-include('inc/submit.php');
+include('inc/rendering/submit.php');
 
 //include display scripts
-include('inc/event_listing.php');
-include('inc/cart_listing.php');
-include('inc/order_listing.php');
+include('inc/rendering/event_listing.php');
+include('inc/rendering/cart_listing.php');
+include('inc/rendering/order_listing.php');
 
 //set common basics
 $mode="index";