summaryrefslogtreecommitdiffstats
path: root/shout.php
diff options
context:
space:
mode:
Diffstat (limited to 'shout.php')
-rw-r--r--shout.php64
1 files changed, 32 insertions, 32 deletions
diff --git a/shout.php b/shout.php
index 2acb88ed..91f10bab 100644
--- a/shout.php
+++ b/shout.php
@@ -1,5 +1,5 @@
<?php
-/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
+/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
/**
*
* LICENSE: GNU General Public License, version 2 (GPLv2)
@@ -26,37 +26,37 @@ UI::show_header();
// Switch on the incomming action
switch ($_REQUEST['action']) {
- case 'add_shout':
- // Must be at least a user to do this
- if (!Access::check('interface','25')) {
- UI::access_denied();
- exit;
- }
-
- if (!Core::form_verify('add_shout','post')) {
- UI::access_denied();
- exit;
- }
-
- $shout_id = Shoutbox::create($_POST);
- header("Location:" . Config::get('web_path'));
- break;
- case 'show_add_shout':
- // Get our object first
- $object = Shoutbox::get_object($_REQUEST['type'],$_REQUEST['id']);
-
- if (!$object->id) {
- Error::add('general', T_('Invalid Object Selected'));
- Error::display('general');
- break;
- }
-
- // Now go ahead and display the page where we let them add a comment etc
- require_once Config::get('prefix') . '/templates/show_add_shout.inc.php';
- break;
- default:
- header("Location:" . Config::get('web_path'));
- break;
+ case 'add_shout':
+ // Must be at least a user to do this
+ if (!Access::check('interface','25')) {
+ UI::access_denied();
+ exit;
+ }
+
+ if (!Core::form_verify('add_shout','post')) {
+ UI::access_denied();
+ exit;
+ }
+
+ $shout_id = Shoutbox::create($_POST);
+ header("Location:" . Config::get('web_path'));
+ break;
+ case 'show_add_shout':
+ // Get our object first
+ $object = Shoutbox::get_object($_REQUEST['type'],$_REQUEST['id']);
+
+ if (!$object->id) {
+ Error::add('general', T_('Invalid Object Selected'));
+ Error::display('general');
+ break;
+ }
+
+ // Now go ahead and display the page where we let them add a comment etc
+ require_once Config::get('prefix') . '/templates/show_add_shout.inc.php';
+ break;
+ default:
+ header("Location:" . Config::get('web_path'));
+ break;
} // end switch on action
UI::show_footer();