Source for file profile_management.php

Documentation is available at profile_management.php

  1. <?php
  2. /**
  3. * Profile Management.
  4. *
  5. * Form to request escalation of user permissions
  6. *
  7. * This file is part of CompInaBox.
  8. * @copyright Copyright 2001-2005. Eric D. Nielsen, All rights reserverd.
  9. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10. * @author Eric D. Nielsen <nielsene@alum.mit.edu>
  11. *
  12. * @package WebPages
  13. * @subpackage UserAccounts
  14. */
  15.  
  16. /**
  17. * Include all other needed include files.
  18. */
  19. $authenticationRequired=TRUE;
  20. include("include_others.inc");
  21.  
  22. $display = new CIB_Display($db);
  23. $page = $display->beginPage("CompInaBox",
  24. "Account Profile");
  25. if (!isset($user))
  26. {
  27. localRedirect("Location: $CIB_BASE_URL");
  28. exit;
  29. }
  30. else
  31. {
  32. $page .= "<h3>User Permissions</h3>\n";
  33. $page .= "[<a href=\"$CIB_SECURE_URL\">Return to Main Menu</a>]<br />\n";
  34. $page .= "Your account is currently only used to control which areas of
  35. the site you are allowed to visit. In the future accounts may also allow for
  36. auto-registration for competitions, but that would require us storing more
  37. data about you than just email/username. The following table displays the
  38. permissions aka Keys that you have been granted. There are three types of
  39. keys, Site: Comp, and Team. Site keys are used by the people who run this
  40. server for approving new competitions or adding links to the menus. Comp keys
  41. are used by the organizers of a given competition to configure, update, and
  42. process their competition. Team keys are used by officials of teams or studios
  43. to handle team-related matters across any or all competitions on this server.
  44. If you are only here to register for competitions then you need no keys.";
  45. $page .= $display->displayUserKeys($user);
  46. $form = $display->displayKeyRequest($user);
  47. $page .=<<<END_FORM
  48. If you abuse(send lots of requests that get denied) this, your account may be
  49. revoked. After submitting your request, the "approval" authority for the the
  50. paticular comp/team will review the request and approve/deny at some point.
  51. You should expect a delay of a few hours to days for them to respond. You
  52. will be notified by email when the approval authority has dealt with your
  53. request.
  54. <form action="$CIB_SECURE_URL/accounts/SCRIPTS/request_permissions.php" method="POST">
  55. $form
  56. <input type="submit" value="Request Permission" />
  57. </form>
  58. END_FORM;}
  59. $page .= $display->endPage();
  60. echo $page;
  61. ?>

Documentation generated on Tue, 25 Apr 2006 13:08:25 -0400 by phpDocumentor 1.3.0RC3