dirname(__FILE__) -> __DIR__
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | |
| | | * - you are dealing with counterfeit header data. |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__).'/..') . '/'); |
| | | define('INSTALL_PATH', realpath(__DIR__ .'/..') . '/'); |
| | | |
| | | require INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | | if ($argc < 2) { |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | | if ($argc < 2) { |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH.'program/include/clisetup.php'; |
| | | ini_set('memory_limit', -1); |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | |
| | | #!/usr/bin/env php |
| | | <?php |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | ini_set('memory_limit', -1); |
| | | |
| | | require_once INSTALL_PATH.'program/include/clisetup.php'; |
| | |
| | | #!/usr/bin/env php |
| | | <?php |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | ini_set('memory_limit', -1); |
| | | |
| | | require_once INSTALL_PATH.'program/include/clisetup.php'; |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | |
| | | ini_set('error_reporting', E_ALL &~ (E_NOTICE | E_STRICT)); |
| | | ini_set('display_errors', 1); |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../').'/'); |
| | | define('INSTALL_PATH', realpath(__DIR__ . '/../').'/'); |
| | | define('RCUBE_INSTALL_PATH', INSTALL_PATH); |
| | | define('RCUBE_CONFIG_DIR', INSTALL_PATH . 'config/'); |
| | | |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../acl.php'; |
| | | include_once __DIR__ . '/../acl.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../additional_message_headers.php'; |
| | | include_once __DIR__ . '/../additional_message_headers.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../archive.php'; |
| | | include_once __DIR__ . '/../archive.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../autologon.php'; |
| | | include_once __DIR__ . '/../autologon.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../database_attachments.php'; |
| | | include_once __DIR__ . '/../database_attachments.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | { |
| | | function init() |
| | | { |
| | | require_once(dirname(__FILE__).'/runlog/runlog.php'); |
| | | $this->runlog = new runlog(); |
| | | require_once(__DIR__ . '/runlog/runlog.php'); |
| | | $this->runlog = new runlog(); |
| | | |
| | | if(!rcmail::get_instance()->config->get('log_dir')){ |
| | | rcmail::get_instance()->config->set('log_dir',INSTALL_PATH.'logs'); |
| | |
| | | $action = rcmail::get_instance()->action; |
| | | $task = rcmail::get_instance()->task; |
| | | if($action){ |
| | | $start_string .= "Action: ".$action.". "; |
| | | $start_string .= "Action: ".$action.". "; |
| | | } |
| | | if($task){ |
| | | $start_string .= "Task: ".$task.". "; |
| | | $start_string .= "Task: ".$task.". "; |
| | | } |
| | | $this->runlog->start($start_string); |
| | | |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../debug_logger.php'; |
| | | include_once __DIR__ . '/../debug_logger.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../emoticons.php'; |
| | | include_once __DIR__ . '/../emoticons.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../enigma.php'; |
| | | include_once __DIR__ . '/../enigma.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | <?php |
| | | |
| | | require_once(dirname(__FILE__) . '/example_addressbook_backend.php'); |
| | | require_once(__DIR__ . '/example_addressbook_backend.php'); |
| | | |
| | | /** |
| | | * Sample plugin to add a new address book |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../example_addressbook.php'; |
| | | include_once __DIR__ . '/../example_addressbook.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../filesystem_attachments.php'; |
| | | include_once __DIR__ . '/../filesystem_attachments.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../help.php'; |
| | | include_once __DIR__ . '/../help.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../hide_blockquote.php'; |
| | | include_once __DIR__ . '/../hide_blockquote.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../http_authentication.php'; |
| | | include_once __DIR__ . '/../http_authentication.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../identity_select.php'; |
| | | include_once __DIR__ . '/../identity_select.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../jqueryui.php'; |
| | | include_once __DIR__ . '/../jqueryui.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../legacy_browser.php'; |
| | | include_once __DIR__ . '/../legacy_browser.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../managesieve.php'; |
| | | include_once __DIR__ . '/../managesieve.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_script.php'; |
| | | include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_script.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | function data_parser() |
| | | { |
| | | $dir_path = realpath(dirname(__FILE__) . '/src'); |
| | | $dir_path = realpath(__DIR__ . '/src'); |
| | | $dir = opendir($dir_path); |
| | | $result = array(); |
| | | |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_script.php'; |
| | | include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_script.php'; |
| | | } |
| | | |
| | | function data_tokenizer() |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_engine.php'; |
| | | include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_vacation.php'; |
| | | include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_engine.php'; |
| | | include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_vacation.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../markasjunk.php'; |
| | | include_once __DIR__ . '/../markasjunk.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../new_user_dialog.php'; |
| | | include_once __DIR__ . '/../new_user_dialog.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../new_user_identity.php'; |
| | | include_once __DIR__ . '/../new_user_identity.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../newmail_notifier.php'; |
| | | include_once __DIR__ . '/../newmail_notifier.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../password.php'; |
| | | include_once __DIR__ . '/../password.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../redundant_attachments.php'; |
| | | include_once __DIR__ . '/../redundant_attachments.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../show_additional_headers.php'; |
| | | include_once __DIR__ . '/../show_additional_headers.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../squirrelmail_usercopy.php'; |
| | | include_once __DIR__ . '/../squirrelmail_usercopy.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../subscriptions_option.php'; |
| | | include_once __DIR__ . '/../subscriptions_option.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../userinfo.php'; |
| | | include_once __DIR__ . '/../userinfo.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../vcard_attachments.php'; |
| | | include_once __DIR__ . '/../vcard_attachments.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../virtuser_file.php'; |
| | | include_once __DIR__ . '/../virtuser_file.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../virtuser_query.php'; |
| | | include_once __DIR__ . '/../virtuser_query.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | function setUp() |
| | | { |
| | | include_once dirname(__FILE__) . '/../zipdownload.php'; |
| | | include_once __DIR__ . '/../zipdownload.php'; |
| | | } |
| | | |
| | | /** |
| | |
| | | define('RCUBE_CHARSET', 'UTF-8'); |
| | | |
| | | if (!defined('RCUBE_LIB_DIR')) { |
| | | define('RCUBE_LIB_DIR', dirname(__FILE__) . '/'); |
| | | define('RCUBE_LIB_DIR', __DIR__ . '/'); |
| | | } |
| | | |
| | | if (!defined('RCUBE_INSTALL_PATH')) { |
| | |
| | | |
| | | function _srcpath($fn) |
| | | { |
| | | return realpath(dirname(__FILE__) . '/../src/' . $fn); |
| | | return realpath(__DIR__ . '/../src/' . $fn); |
| | | } |
| | | |
| | | function test_parse_one() |
| | |
| | | if (php_sapi_name() != 'cli') |
| | | die("Not in shell mode (php-cli)"); |
| | | |
| | | if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../../') . '/' ); |
| | | if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(__DIR__ . '/../../') . '/' ); |
| | | |
| | | define('TESTS_DIR', dirname(__FILE__) . '/'); |
| | | define('TESTS_DIR', __DIR__ . '/'); |
| | | |
| | | if (@is_dir(TESTS_DIR . 'config')) { |
| | | define('RCUBE_CONFIG_DIR', TESTS_DIR . 'config'); |
| | |
| | | if (php_sapi_name() != 'cli') |
| | | die("Not in shell mode (php-cli)"); |
| | | |
| | | if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); |
| | | |
| | | define('TESTS_DIR', dirname(__FILE__) . '/'); |
| | | define('TESTS_DIR', __DIR__ . '/'); |
| | | |
| | | if (@is_dir(TESTS_DIR . 'config')) { |
| | | define('RCUBE_CONFIG_DIR', TESTS_DIR . 'config'); |