Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

clisetup.php 1.5KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. +-----------------------------------------------------------------------+
  4. | program/include/clisetup.php |
  5. | |
  6. | This file is part of the Roundcube Webmail client |
  7. | Copyright (C) 2010-2014, The Roundcube Dev Team |
  8. | |
  9. | Licensed under the GNU General Public License version 3 or |
  10. | any later version with exceptions for skins & plugins. |
  11. | See the README file for a full license statement. |
  12. | |
  13. | PURPOSE: |
  14. | Setup the command line environment and provide some utitlity |
  15. | functions. |
  16. +-----------------------------------------------------------------------+
  17. | Author: Thomas Bruederli <roundcube@gmail.com> |
  18. +-----------------------------------------------------------------------+
  19. */
  20. if (php_sapi_name() != 'cli') {
  21. die('Not on the "shell" (php-cli).');
  22. }
  23. require_once INSTALL_PATH . 'program/include/iniset.php';
  24. // Unset max. execution time limit, set to 120 seconds in iniset.php
  25. @set_time_limit(0);
  26. $rcmail = rcmail::get_instance();
  27. $rcmail->output = new rcmail_output_cli();