summaryrefslogtreecommitdiff
path: root/webmail/program/include/clisetup.php
diff options
context:
space:
mode:
Diffstat (limited to 'webmail/program/include/clisetup.php')
-rw-r--r--webmail/program/include/clisetup.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/webmail/program/include/clisetup.php b/webmail/program/include/clisetup.php
new file mode 100644
index 0000000..07e3185
--- /dev/null
+++ b/webmail/program/include/clisetup.php
@@ -0,0 +1,29 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | program/include/clisetup.php |
+ | |
+ | This file is part of the Roundcube Webmail client |
+ | Copyright (C) 2010-2012, The Roundcube Dev Team |
+ | |
+ | Licensed under the GNU General Public License version 3 or |
+ | any later version with exceptions for skins & plugins. |
+ | See the README file for a full license statement. |
+ | |
+ | PURPOSE: |
+ | Setup the command line environment and provide some utitlity |
+ | functions. |
+ +-----------------------------------------------------------------------+
+ | Author: Thomas Bruederli <roundcube@gmail.com> |
+ +-----------------------------------------------------------------------+
+*/
+
+if (php_sapi_name() != 'cli') {
+ die('Not on the "shell" (php-cli).');
+}
+
+require_once INSTALL_PATH . 'program/include/iniset.php';
+
+// Unset max. execution time limit, set to 120 seconds in iniset.php
+@set_time_limit(0);