Aleksander Machniak
2014-10-13 0ea079d604ef1f34cc47646ab23176a3c66f16ee
dirname(__FILE__) -> __DIR__
56 files modified
126 ■■■■ changed files
bin/cleandb.sh 2 ●●● patch | view | raw | blame | history
bin/decrypt.sh 2 ●●● patch | view | raw | blame | history
bin/deluser.sh 2 ●●● patch | view | raw | blame | history
bin/dumpschema.sh 2 ●●● patch | view | raw | blame | history
bin/exportgettext.sh 2 ●●● patch | view | raw | blame | history
bin/gc.sh 2 ●●● patch | view | raw | blame | history
bin/importgettext.sh 2 ●●● patch | view | raw | blame | history
bin/indexcontacts.sh 2 ●●● patch | view | raw | blame | history
bin/installto.sh 2 ●●● patch | view | raw | blame | history
bin/moduserprefs.sh 2 ●●● patch | view | raw | blame | history
bin/msgexport.sh 2 ●●● patch | view | raw | blame | history
bin/msgimport.sh 2 ●●● patch | view | raw | blame | history
bin/update.sh 2 ●●● patch | view | raw | blame | history
bin/updatecss.sh 2 ●●● patch | view | raw | blame | history
bin/updatedb.sh 2 ●●● patch | view | raw | blame | history
installer/index.php 2 ●●● patch | view | raw | blame | history
plugins/acl/tests/Acl.php 2 ●●● patch | view | raw | blame | history
plugins/additional_message_headers/tests/AdditionalMessageHeaders.php 2 ●●● patch | view | raw | blame | history
plugins/archive/tests/Archive.php 2 ●●● patch | view | raw | blame | history
plugins/autologon/tests/Autologon.php 2 ●●● patch | view | raw | blame | history
plugins/database_attachments/tests/DatabaseAttachments.php 2 ●●● patch | view | raw | blame | history
plugins/debug_logger/debug_logger.php 8 ●●●● patch | view | raw | blame | history
plugins/debug_logger/tests/DebugLogger.php 2 ●●● patch | view | raw | blame | history
plugins/emoticons/tests/Emoticons.php 2 ●●● patch | view | raw | blame | history
plugins/enigma/tests/Enigma.php 2 ●●● patch | view | raw | blame | history
plugins/example_addressbook/example_addressbook.php 2 ●●● patch | view | raw | blame | history
plugins/example_addressbook/tests/ExampleAddressbook.php 2 ●●● patch | view | raw | blame | history
plugins/filesystem_attachments/tests/FilesystemAttachments.php 2 ●●● patch | view | raw | blame | history
plugins/help/tests/Help.php 2 ●●● patch | view | raw | blame | history
plugins/hide_blockquote/tests/HideBlockquote.php 2 ●●● patch | view | raw | blame | history
plugins/http_authentication/tests/HttpAuthentication.php 2 ●●● patch | view | raw | blame | history
plugins/identity_select/tests/IdentitySelect.php 2 ●●● patch | view | raw | blame | history
plugins/jqueryui/tests/Jqueryui.php 2 ●●● patch | view | raw | blame | history
plugins/legacy_browser/tests/LegacyBrowser.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/tests/Managesieve.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/tests/Parser.php 4 ●●●● patch | view | raw | blame | history
plugins/managesieve/tests/Tokenizer.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/tests/Vacation.php 4 ●●●● patch | view | raw | blame | history
plugins/markasjunk/tests/Markasjunk.php 2 ●●● patch | view | raw | blame | history
plugins/new_user_dialog/tests/NewUserDialog.php 2 ●●● patch | view | raw | blame | history
plugins/new_user_identity/tests/NewUserIdentity.php 2 ●●● patch | view | raw | blame | history
plugins/newmail_notifier/tests/NewmailNotifier.php 2 ●●● patch | view | raw | blame | history
plugins/password/tests/Password.php 2 ●●● patch | view | raw | blame | history
plugins/redundant_attachments/tests/RedundantAttachments.php 2 ●●● patch | view | raw | blame | history
plugins/show_additional_headers/tests/ShowAdditionalHeaders.php 2 ●●● patch | view | raw | blame | history
plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php 2 ●●● patch | view | raw | blame | history
plugins/subscriptions_option/tests/SubscriptionsOption.php 2 ●●● patch | view | raw | blame | history
plugins/userinfo/tests/Userinfo.php 2 ●●● patch | view | raw | blame | history
plugins/vcard_attachments/tests/VcardAttachments.php 2 ●●● patch | view | raw | blame | history
plugins/virtuser_file/tests/VirtuserFile.php 2 ●●● patch | view | raw | blame | history
plugins/virtuser_query/tests/VirtuserQuery.php 2 ●●● patch | view | raw | blame | history
plugins/zipdownload/tests/Zipdownload.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/bootstrap.php 2 ●●● patch | view | raw | blame | history
tests/Framework/VCard.php 2 ●●● patch | view | raw | blame | history
tests/Selenium/bootstrap.php 4 ●●●● patch | view | raw | blame | history
tests/bootstrap.php 4 ●●●● patch | view | raw | blame | history
bin/cleandb.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require INSTALL_PATH.'program/include/clisetup.php';
bin/decrypt.sh
@@ -52,7 +52,7 @@
 *  - 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';
bin/deluser.sh
@@ -20,7 +20,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
bin/dumpschema.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require INSTALL_PATH.'program/include/clisetup.php';
bin/exportgettext.sh
@@ -15,7 +15,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require INSTALL_PATH.'program/include/clisetup.php';
if ($argc < 2) {
bin/gc.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require INSTALL_PATH.'program/include/clisetup.php';
bin/importgettext.sh
@@ -15,7 +15,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require INSTALL_PATH.'program/include/clisetup.php';
if ($argc < 2) {
bin/indexcontacts.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH.'program/include/clisetup.php';
ini_set('memory_limit', -1);
bin/installto.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
bin/moduserprefs.sh
@@ -18,7 +18,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH.'program/include/clisetup.php';
bin/msgexport.sh
@@ -1,7 +1,7 @@
#!/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';
bin/msgimport.sh
@@ -1,7 +1,7 @@
#!/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';
bin/update.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
bin/updatecss.sh
@@ -18,7 +18,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
bin/updatedb.sh
@@ -19,7 +19,7 @@
 +-----------------------------------------------------------------------+
*/
define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' );
define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' );
require_once INSTALL_PATH . 'program/include/clisetup.php';
installer/index.php
@@ -39,7 +39,7 @@
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/');
plugins/acl/tests/Acl.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../acl.php';
        include_once __DIR__ . '/../acl.php';
    }
    /**
plugins/additional_message_headers/tests/AdditionalMessageHeaders.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../additional_message_headers.php';
        include_once __DIR__ . '/../additional_message_headers.php';
    }
    /**
plugins/archive/tests/Archive.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../archive.php';
        include_once __DIR__ . '/../archive.php';
    }
    /**
plugins/autologon/tests/Autologon.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../autologon.php';
        include_once __DIR__ . '/../autologon.php';
    }
    /**
plugins/database_attachments/tests/DatabaseAttachments.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../database_attachments.php';
        include_once __DIR__ . '/../database_attachments.php';
    }
    /**
plugins/debug_logger/debug_logger.php
@@ -66,8 +66,8 @@
{
    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');
@@ -83,10 +83,10 @@
        $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);
plugins/debug_logger/tests/DebugLogger.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../debug_logger.php';
        include_once __DIR__ . '/../debug_logger.php';
    }
    /**
plugins/emoticons/tests/Emoticons.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../emoticons.php';
        include_once __DIR__ . '/../emoticons.php';
    }
    /**
plugins/enigma/tests/Enigma.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../enigma.php';
        include_once __DIR__ . '/../enigma.php';
    }
    /**
plugins/example_addressbook/example_addressbook.php
@@ -1,6 +1,6 @@
<?php
require_once(dirname(__FILE__) . '/example_addressbook_backend.php');
require_once(__DIR__ . '/example_addressbook_backend.php');
/**
 * Sample plugin to add a new address book
plugins/example_addressbook/tests/ExampleAddressbook.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../example_addressbook.php';
        include_once __DIR__ . '/../example_addressbook.php';
    }
    /**
plugins/filesystem_attachments/tests/FilesystemAttachments.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../filesystem_attachments.php';
        include_once __DIR__ . '/../filesystem_attachments.php';
    }
    /**
plugins/help/tests/Help.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../help.php';
        include_once __DIR__ . '/../help.php';
    }
    /**
plugins/hide_blockquote/tests/HideBlockquote.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../hide_blockquote.php';
        include_once __DIR__ . '/../hide_blockquote.php';
    }
    /**
plugins/http_authentication/tests/HttpAuthentication.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../http_authentication.php';
        include_once __DIR__ . '/../http_authentication.php';
    }
    /**
plugins/identity_select/tests/IdentitySelect.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../identity_select.php';
        include_once __DIR__ . '/../identity_select.php';
    }
    /**
plugins/jqueryui/tests/Jqueryui.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../jqueryui.php';
        include_once __DIR__ . '/../jqueryui.php';
    }
    /**
plugins/legacy_browser/tests/LegacyBrowser.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../legacy_browser.php';
        include_once __DIR__ . '/../legacy_browser.php';
    }
    /**
plugins/managesieve/tests/Managesieve.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../managesieve.php';
        include_once __DIR__ . '/../managesieve.php';
    }
    /**
plugins/managesieve/tests/Parser.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_script.php';
        include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_script.php';
    }
    /**
@@ -34,7 +34,7 @@
     */
    function data_parser()
    {
        $dir_path = realpath(dirname(__FILE__) . '/src');
        $dir_path = realpath(__DIR__ . '/src');
        $dir      = opendir($dir_path);
        $result   = array();
plugins/managesieve/tests/Tokenizer.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../lib/Roundcube/rcube_sieve_script.php';
        include_once __DIR__ . '/../lib/Roundcube/rcube_sieve_script.php';
    }
    function data_tokenizer()
plugins/managesieve/tests/Vacation.php
@@ -5,8 +5,8 @@
    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';
    }
    /**
plugins/markasjunk/tests/Markasjunk.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../markasjunk.php';
        include_once __DIR__ . '/../markasjunk.php';
    }
    /**
plugins/new_user_dialog/tests/NewUserDialog.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../new_user_dialog.php';
        include_once __DIR__ . '/../new_user_dialog.php';
    }
    /**
plugins/new_user_identity/tests/NewUserIdentity.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../new_user_identity.php';
        include_once __DIR__ . '/../new_user_identity.php';
    }
    /**
plugins/newmail_notifier/tests/NewmailNotifier.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../newmail_notifier.php';
        include_once __DIR__ . '/../newmail_notifier.php';
    }
    /**
plugins/password/tests/Password.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../password.php';
        include_once __DIR__ . '/../password.php';
    }
    /**
plugins/redundant_attachments/tests/RedundantAttachments.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../redundant_attachments.php';
        include_once __DIR__ . '/../redundant_attachments.php';
    }
    /**
plugins/show_additional_headers/tests/ShowAdditionalHeaders.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../show_additional_headers.php';
        include_once __DIR__ . '/../show_additional_headers.php';
    }
    /**
plugins/squirrelmail_usercopy/tests/SquirrelmailUsercopy.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../squirrelmail_usercopy.php';
        include_once __DIR__ . '/../squirrelmail_usercopy.php';
    }
    /**
plugins/subscriptions_option/tests/SubscriptionsOption.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../subscriptions_option.php';
        include_once __DIR__ . '/../subscriptions_option.php';
    }
    /**
plugins/userinfo/tests/Userinfo.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../userinfo.php';
        include_once __DIR__ . '/../userinfo.php';
    }
    /**
plugins/vcard_attachments/tests/VcardAttachments.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../vcard_attachments.php';
        include_once __DIR__ . '/../vcard_attachments.php';
    }
    /**
plugins/virtuser_file/tests/VirtuserFile.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../virtuser_file.php';
        include_once __DIR__ . '/../virtuser_file.php';
    }
    /**
plugins/virtuser_query/tests/VirtuserQuery.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../virtuser_query.php';
        include_once __DIR__ . '/../virtuser_query.php';
    }
    /**
plugins/zipdownload/tests/Zipdownload.php
@@ -5,7 +5,7 @@
    function setUp()
    {
        include_once dirname(__FILE__) . '/../zipdownload.php';
        include_once __DIR__ . '/../zipdownload.php';
    }
    /**
program/lib/Roundcube/bootstrap.php
@@ -58,7 +58,7 @@
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')) {
tests/Framework/VCard.php
@@ -10,7 +10,7 @@
    function _srcpath($fn)
    {
        return realpath(dirname(__FILE__) . '/../src/' . $fn);
        return realpath(__DIR__ . '/../src/' . $fn);
    }
    function test_parse_one()
tests/Selenium/bootstrap.php
@@ -22,9 +22,9 @@
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');
tests/bootstrap.php
@@ -22,9 +22,9 @@
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');