aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/usercp_modules.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2003-01-30 19:58:18 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2003-01-30 19:58:18 +0000
commit83e97693a4473e6cefb15bd9127a7ac2dfa2423b (patch)
tree9d9079b87d997f06a7911a2199f5a1a1b6c98b11 /phpBB/includes/ucp/usercp_modules.php
parentda919a3e451267744585a219778a1e541dc85d31 (diff)
downloadforums-83e97693a4473e6cefb15bd9127a7ac2dfa2423b.tar
forums-83e97693a4473e6cefb15bd9127a7ac2dfa2423b.tar.gz
forums-83e97693a4473e6cefb15bd9127a7ac2dfa2423b.tar.bz2
forums-83e97693a4473e6cefb15bd9127a7ac2dfa2423b.tar.xz
forums-83e97693a4473e6cefb15bd9127a7ac2dfa2423b.zip
Visual confirmation, and UCP module handler
git-svn-id: file:///svn/phpbb/trunk@3429 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/usercp_modules.php')
-rwxr-xr-xphpBB/includes/ucp/usercp_modules.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/usercp_modules.php b/phpBB/includes/ucp/usercp_modules.php
new file mode 100755
index 0000000000..0146cb1d4e
--- /dev/null
+++ b/phpBB/includes/ucp/usercp_modules.php
@@ -0,0 +1,58 @@
+<?php
+/***************************************************************************
+ * usercp_modules.php
+ * -------------------
+ * begin : Tuesday, Jan 14, 2003
+ * copyright : (C) 2001 The phpBB Group
+ * email : support@phpbb.com
+ *
+ * $Id$
+ *
+ *
+ ***************************************************************************/
+
+/***************************************************************************
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ ***************************************************************************/
+
+//
+// This file sets up basic module information for the user control panel
+// any files added to the UCP must be added to this file inorder for them to
+// show up in the UCP menu.
+//
+
+$ucp_modules['UCP_Main']['UCP_Main'] = 'ucp.' . $phpEx . "$SID";
+$ucp_modules['UCP_Main']['Default'] = 'ucp.' . $phpEx . "$SID";
+
+$ucp_modules['UCP_Profile']['Default'] = 'ucp/usercp_register.' . $phpEx . "?$SID&amp;mode=editprofile&amp;u=" . $user->data['user_id'];
+$ucp_modules['UCP_Profile']['Registration_information'] = 'ucp/usercp_register.' . $phpEx . "?$SID&amp;mode=editprofilee&amp;u=" . $user->data['user_id'];
+$ucp_modules['UCP_Profile']['Preferances'] = 'ucp/usercp_register.' . $phpEx . "?$SID&amp;mode=preferancese&amp;u=" . $user->data['user_id'];
+$ucp_modules['UCP_Profile']['Avatar_settings'] = 'ucp/usercp_avatar.' . $phpEx . "$SIDe&amp;u=" . $user->data['user_id'];
+$ucp_modules['UCP_Profile']['Signature_settings'] = 'ucp/usercp_register.' . $phpEx . "?$SID&amp;mode=signaturee&amp;u=" . $user->data['user_id'];
+
+$ucp_modules['UCP_Lists']['Default'] = 'ucp/usercp_lists.' . $phpEx . "?$SID&amp;mode=settings";
+$ucp_modules['UCP_Lists']['Lists_settings'] = 'ucp/usercp_lists.' . $phpEx . "?$SID&amp;mode=settings";
+$ucp_modules['UCP_Lists']['While_list'] = 'ucp/usercp_lists.' . $phpEx . "?$SID&amp;mode=white";
+$ucp_modules['UCP_Lists']['Black_list'] = 'ucp/usercp_lists.' . $phpEx . "?$SID&amp;mode=black";
+
+$ucp_modules['UCP_Priv_messages']['Default'] = "privmsg.php?$SID&amp;folder=inbox";
+$ucp_modules['UCP_Priv_messages']['Private_messages'] = "privmsg.php?$SID&amp;folder=inbox";
+
+
+//
+// This bit of code prints out the module tabs on the UCP pages, each UCP page
+// must call this file to print out the tabs.
+//
+// Also note that each user cp file handles it own sub-section displays.
+//
+
+foreach($ucp_modules as $section_title => $sections)
+{
+ $template->assign_block_vars('ucp_sections', array('U_SECTION' => $sections['Default'] ,
+ 'SECTION' => $user->lang[$section_title]));
+}