Documentation is available at profile_management.php
- <?php
- /**
- * Profile Management.
- *
- * Form to request escalation of user permissions
- *
- * This file is part of CompInaBox.
- * @copyright Copyright 2001-2005. Eric D. Nielsen, All rights reserverd.
- * @license http://opensource.org/licenses/gpl-license.php GNU Public License
- * @author Eric D. Nielsen <nielsene@alum.mit.edu>
- *
- * @package WebPages
- * @subpackage UserAccounts
- */
- /**
- * Include all other needed include files.
- */
- $authenticationRequired=TRUE;
- include("include_others.inc");
- $display = new CIB_Display($db);
- $page = $display->beginPage("CompInaBox",
- "Account Profile");
- if (!isset($user))
- {
- localRedirect("Location: $CIB_BASE_URL");
- exit;
- }
- else
- {
- $page .= "<h3>User Permissions</h3>\n";
- $page .= "[<a href=\"$CIB_SECURE_URL\">Return to Main Menu</a>]<br />\n";
- $page .= "Your account is currently only used to control which areas of
- the site you are allowed to visit. In the future accounts may also allow for
- auto-registration for competitions, but that would require us storing more
- data about you than just email/username. The following table displays the
- permissions aka Keys that you have been granted. There are three types of
- keys, Site: Comp, and Team. Site keys are used by the people who run this
- server for approving new competitions or adding links to the menus. Comp keys
- are used by the organizers of a given competition to configure, update, and
- process their competition. Team keys are used by officials of teams or studios
- to handle team-related matters across any or all competitions on this server.
- If you are only here to register for competitions then you need no keys.";
- $page .= $display->displayUserKeys($user);
- $form = $display->displayKeyRequest($user);
- $page .=<<<END_FORM
- If you abuse(send lots of requests that get denied) this, your account may be
- revoked. After submitting your request, the "approval" authority for the the
- paticular comp/team will review the request and approve/deny at some point.
- You should expect a delay of a few hours to days for them to respond. You
- will be notified by email when the approval authority has dealt with your
- request.
- <form action="$CIB_SECURE_URL/accounts/SCRIPTS/request_permissions.php" method="POST">
- $form
- <input type="submit" value="Request Permission" />
- </form>
- END_FORM;}
- $page .= $display->endPage();
- echo $page;
- ?>
Documentation generated on Tue, 25 Apr 2006 13:08:25 -0400 by phpDocumentor 1.3.0RC3