Source for file help.php

Documentation is available at help.php

  1. <?php //-*-php-*-
  2. /* ******************************************************************** **
  3. ** Copyright notice **
  4. ** **
  5. ** (c) 1995-2003 PHPOpenChat Development Team **
  6. ** http://phpopenchat.sourceforge.net/ **
  7. ** **
  8. ** All rights reserved **
  9. ** **
  10. ** This script is part of the PHPOpenChat project. The PHPOpenChat **
  11. ** project is free software; you can redistribute it and/or modify **
  12. ** it under the terms of the GNU General Public License as published by **
  13. ** the Free Software Foundation; either version 2 of the License, or **
  14. ** (at your option) any later version. **
  15. ** **
  16. ** The GNU General Public License can be found at **
  17. ** http://www.gnu.org/copyleft/gpl.html. **
  18. ** A copy is found in the textfile GPL and important notices to the **
  19. ** license from the team is found in the textfile LICENSE distributed **
  20. ** with these scripts. **
  21. ** **
  22. ** This script is distributed in the hope that it will be useful, **
  23. ** but WITHOUT ANY WARRANTY; without even the implied warranty of **
  24. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the **
  25. ** GNU General Public License for more details. **
  26. ** **
  27. ** This copyright notice MUST APPEAR in all copies of the script! **
  28. ** ******************************************************************** */
  29.  
  30. /*
  31. $Author: letreo $
  32. $Date: 2003/10/10 16:45:14 $
  33. $Source: /cvsroot/phpopenchat/chat3/help.php,v $
  34. $Revision: 1.13 $
  35. */
  36.  
  37. require_once('config.inc.php');
  38.  
  39. require_once(POC_INCLUDE_PATH.'/adodb/adodb.inc.php');
  40. require_once(POC_INCLUDE_PATH.'/class.Chat.inc');
  41. require_once(POC_INCLUDE_PATH.'/class.Translator.inc');
  42. require_once(POC_INCLUDE_PATH.'/class.Template.inc');
  43.  
  44. session_start();
  45.  
  46. if( !isset($_SESSION['chat']) ) {
  47. if(function_exists('session_register')) {
  48. session_register('translator');
  49. }
  50. $chat = &new Chat( strval(CHAT_NAME), $supported_languages );
  51. $translator = &new Translator( $chat->get_language() );
  52. $_SESSION['translator'] = $translator;
  53. unset($chat);
  54. }
  55. if( !isset($_SESSION['template']) ) {
  56. $template = &new Template();
  57. $_SESSION['template'] = $template;
  58. }
  59. header('Content-type: text/html; charset='.$_SESSION['translator']->out('CHARACTER_ENCODING'));
  60. $_SESSION['template']->get_cached_content( 60*60*24*30 );//get cached content with a max age of one month
  61. $_SESSION['template']->get_template('help');
  62. ?>

Documentation generated on Tue, 29 Jun 2004 14:42:27 +0200 by phpDocumentor 1.3.0RC3