From 921f5c938b1c3d7bae3ff46d8a9cd02a6bbd852b Mon Sep 17 00:00:00 2001 From: Ben Klang Date: Fri, 15 Jul 2005 04:30:45 +0000 Subject: [PATCH] Reworking minor directory structure to get around stupid web browser pathing bug git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@57 06cd67b6-e706-0410-b29e-9de616bca6e9 --- dialplan.php => main/dialplan.php | 0 moh.php => main/moh.php | 0 system.php => main/system.php | 0 users.php => main/users.php | 0 shout.webprj | 78 ++++++++++++++++++++------------------- users/index.php | 51 ------------------------- 6 files changed, 40 insertions(+), 89 deletions(-) rename dialplan.php => main/dialplan.php (100%) rename moh.php => main/moh.php (100%) rename system.php => main/system.php (100%) rename users.php => main/users.php (100%) delete mode 100644 users/index.php diff --git a/dialplan.php b/main/dialplan.php similarity index 100% rename from dialplan.php rename to main/dialplan.php diff --git a/moh.php b/main/moh.php similarity index 100% rename from moh.php rename to main/moh.php diff --git a/system.php b/main/system.php similarity index 100% rename from system.php rename to main/system.php diff --git a/users.php b/main/users.php similarity index 100% rename from users.php rename to main/users.php diff --git a/shout.webprj b/shout.webprj index ae3c79cfd..8b2793df2 100644 --- a/shout.webprj +++ b/shout.webprj @@ -9,51 +9,51 @@ - - - - + + + + - - + + - + - + - - - + + + - + - + - + - + - + - - + + - + - - + + - - + + @@ -74,20 +74,16 @@ -//w3c//dtd xhtml 1.0 strict//en - - - - + + + - - + - - - + + - - + Ben Klang ben@alkaloid.net Gubed @@ -100,15 +96,21 @@ - - + - - + + + + + + + + + diff --git a/users/index.php b/users/index.php deleted file mode 100644 index 46fb92a0a..000000000 --- a/users/index.php +++ /dev/null @@ -1,51 +0,0 @@ - - * - * See the enclosed file COPYING for license information (GPL). If you - * did not receive this file, see http://www.fsf.org/copyleft/gpl.html. - */ - -@define('SHOUT_BASE', dirname(__FILE__) . "/.."); -$shout_configured = (@is_readable(SHOUT_BASE . '/config/conf.php'));# && - #@is_readable(SHOUT_BASE . '/config/prefs.php')); -if (!$shout_configured) { - require SHOUT_BASE . '/../lib/Test.php'; - Horde_Test::configFilesMissing('Shout', SHOUT_BASE, - array('conf.php', 'prefs.php')); -} - -require_once SHOUT_BASE . '/lib/base.php'; -require_once SHOUT_BASE . '/lib/Shout.php'; - -$context = Util::getFormData("context"); -$section = "users"; -$action = Util::getFormData("action"); - -$contexts = $shout->getContexts(); -$vars = &Variables::getDefaultVariables(); - -if (!isset($context)) {#FIXME || !Shout::checkContext()) { - $url = Horde::applicationUrl("/shout/index.php"); - header("Location: $url"); - exit(0); -} - -require SHOUT_TEMPLATES . '/common-header.inc'; -require SHOUT_TEMPLATES . '/menu.inc'; - -echo "
"; - -$tabs = &Shout::getTabs($context, $vars); -$tabs->preserve('context', $context); -echo $tabs->render($section); - -switch ($action) { - case "add": - case "edit": - case "delete": - require SHOUT_BASE . "/users/$action.php"; - break; -} \ No newline at end of file -- 2.11.0