phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Source for file system.ctrl.php

Documentation is available at system.ctrl.php

  1. <?php
  2. /**
  3.  * This file implements the UI controller for System configuration and analysis.
  4.  *
  5.  * This file is part of Quam Plures - {@link http://quamplures.net/}
  6.  * See also {@link https://launchpad.net/quam-plures}.
  7.  *
  8.  * @copyright (c) 2009 - 2011 by the Quam Plures developers - {@link http://quamplures.net/}
  9.  * @copyright (c)2003-2009 by Francois PLANQUE - {@link http://fplanque.net/}
  10.  *  Parts of this file are copyright (c)2006 by Daniel HAHLER - {@link http://daniel.hahler.de/}.
  11.  *
  12.  *  {@internal License choice
  13.  *  - If you have received this file as part of a package, please find the license.txt file in
  14.  *    the same folder or the closest folder above for complete license terms.
  15.  *  - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  16.  *    then you must choose one of the following licenses before using the file:
  17.  *    - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  18.  *    - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  19.  *  }}}
  20.  *
  21.  *  {@internal Open Source relicensing agreement:
  22.  *  Daniel HAHLER grants Francois PLANQUE the right to license
  23.  *  Daniel HAHLER's contributions to this file and the b2evolution project
  24.  *  under any OSI approved OSS license (http://www.opensource.org/licenses/).
  25.  *  }}}
  26.  *
  27.  *  {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  28.  * @author fplanque: Francois PLANQUE.
  29.  * @author blueyed
  30.  *
  31.  * @package pond
  32.  */
  33. if!defined('QP_MAIN_INIT') ) die'Please, do not access this page directly.' );
  34.  
  35. load_funcs'tools/model/_system.funcs.php' );
  36.  
  37. // Check minimum permission:
  38. $current_User->check_perm'options''view'true );
  39.  
  40. $AdminUI->set_path'tools''system' );
  41.  
  42. param_action'list' );
  43.  
  44. // Display <html><head>...</head> section! (Note: should be done early if actions do not redirect)
  45. $AdminUI->disp_html_head();
  46.  
  47. // Display title, menu, messages, etc. (Note: messages MUST be displayed AFTER the actions)
  48. $AdminUI->disp_body_top();
  49.  
  50. // Begin payload block:
  51. $AdminUI->disp_payload_begin();
  52.  
  53. switch$action )
  54. {
  55.     case 'info':
  56.         // Display VIEW:
  57.         $AdminUI->disp_view'tools/views/_phpinfo.view.php' )// this space for phpinfo() one day...
  58.         break;
  59.  
  60.     case 'list':
  61.     default:
  62.         // Display VIEW:
  63.         $AdminUI->disp_view'tools/views/_system_list.view.php' );
  64.         break;
  65. }
  66.  
  67. // End payload block:
  68. $AdminUI->disp_payload_end();
  69.  
  70. // Display body bottom, debug info and close </html>:
  71. $AdminUI->disp_global_footer();
  72.  
  73. ?>