Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Remove hardcoded references to core/classes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 7, 2016
1 parent 484fd30 commit 539497b
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion core/src/core/classes/class.AJXP_Utils.php
Expand Up @@ -965,7 +965,7 @@ public static function extractHooksToDoc()
} else {
$existingHooks = array();
}
$allPhpFiles1 = self::glob_recursive(AJXP_INSTALL_PATH."/core/classes/*.php");
$allPhpFiles1 = self::glob_recursive(AJXP_BIN_FOLDER."/*.php");
$allPhpFiles2= self::glob_recursive(AJXP_INSTALL_PATH."/plugins/*.php");
$allPhpFiles3= self::glob_recursive(AJXP_INSTALL_PATH."/conf/*.php");
$allPhpFiles = array_merge(array_merge($allPhpFiles1, $allPhpFiles2), $allPhpFiles3);
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.AJXPVersion.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* @package AjaXplorer
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.Client.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* @package Pydio
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPCLI.php
Expand Up @@ -24,7 +24,6 @@
use Pydio\Core\UnixProcess;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check current PHP Version
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPDomXML.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that DOMXml is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPErrorLevel.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check current php error level
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPExif.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that Exif extension is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPGDVersion.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check whether GD is installed or not
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPLimits.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Gather various php configurations that will limit the application
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPMCrypt.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check whether mcrypt is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPOS.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check server OS
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPSession.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check php session writeability
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHPVersion.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check current PHP Version
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHP_APC.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that DOMXml is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHP_OB.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that output buffering is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHP_file_uploads.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that file uploads is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.PHP_magic_quotes.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check whether mcrypt is enabled
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.SSLEncryption.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Detect HTTPS protocol
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.ServerEncoding.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Test Server Encoding
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.Upload.php
Expand Up @@ -23,7 +23,6 @@
use Pydio\Conf\Core\ConfService;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Test upload tmp dir
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.UsersConfig.php
Expand Up @@ -24,7 +24,6 @@
use Pydio\Conf\Core\ConfService;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Gather the users configuration
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.Writeability.php
Expand Up @@ -23,7 +23,6 @@
use Pydio\Core\AJXP_VarsFilter;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check the various plugins folders writeability
Expand Down
1 change: 0 additions & 1 deletion core/src/core/tests/test.Zlib.php
Expand Up @@ -21,7 +21,6 @@
namespace Pydio\Tests;

defined('AJXP_EXEC') or die( 'Access not allowed');
require_once('../classes/class.AbstractTest.php');

/**
* Check that Zlib is enabled
Expand Down
2 changes: 1 addition & 1 deletion core/src/dav.php
Expand Up @@ -59,7 +59,7 @@ function AJXP_Sabre_autoload($className)



include 'core/classes/sabredav/lib/Sabre/autoload.php';
include AJXP_BIN_FOLDER.'/sabredav/lib/Sabre/autoload.php';

if (ConfService::getCoreConf("WEBDAV_BASEHOST") != "") {
$baseURL = ConfService::getCoreConf("WEBDAV_BASEHOST");
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/action.share/class.ShareStore.php
Expand Up @@ -77,7 +77,7 @@ private function createGenericLoader(){
if(!is_file($this->downloadFolder."/share.php")){
$loader_content = '<'.'?'.'php
define("AJXP_EXEC", true);
require_once("'.str_replace("\\", "/", AJXP_INSTALL_PATH).'/core/classes/class.AJXP_Utils.php");
require_once("'.str_replace("\\", "/", AJXP_INSTALL_PATH).'/'.AJXP_BIN_FOLDER_REL.'/class.AJXP_Utils.php");
$hash = Pydio\Core\AJXP_Utils::securePath(Pydio\Core\AJXP_Utils::sanitize($_GET["hash"], AJXP_SANITIZE_ALPHANUM));
if(file_exists($hash.".php")){
require_once($hash.".php");
Expand Down

0 comments on commit 539497b

Please sign in to comment.