Page MenuHomeDevCentral

No OneTemporary

diff --git a/workspaces/.gitignore b/workspaces/.gitignore
new file mode 100644
index 0000000..65f0e32
--- /dev/null
+++ b/workspaces/.gitignore
@@ -0,0 +1,3 @@
+# Composer
+vendor/
+composer.lock
diff --git a/workspaces/composer.json b/workspaces/composer.json
new file mode 100644
index 0000000..b4443ef
--- /dev/null
+++ b/workspaces/composer.json
@@ -0,0 +1,25 @@
+{
+ "name": "waystone/workspaces",
+ "description": "Core interfaces for Obsidian Workspaces",
+ "type": "project",
+ "require": {
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^12.4",
+ "nasqueron/codestyle": "^0.1.2",
+ "squizlabs/php_codesniffer": "^4.0"
+ },
+ "license": "BSD-2-Clause",
+ "autoload": {
+ "psr-4": {
+ "Waystone\\Workspaces\\": "src/",
+ "Waystone\\Workspaces\\Tests\\": "tests/"
+ }
+ },
+ "authors": [
+ {
+ "name": "Sébastien Santoro",
+ "email": "dereckson@espace-win.org"
+ }
+ ]
+}
diff --git a/workspaces/src/includes/core.php b/workspaces/src/includes/core.php
index e17964a..44fbd77 100755
--- a/workspaces/src/includes/core.php
+++ b/workspaces/src/includes/core.php
@@ -1,50 +1,52 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Core global functions
*
* @package ObsidianWorkspaces
* @subpackage Keruald
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
+require_once(__DIR__ . "/../../vendor/autoload.php");
+
////////////////////////////////////////////////////////////////////////////////
/// ///
/// Configures PHP and loads site-wide used libraries ///
/// ///
////////////////////////////////////////////////////////////////////////////////
//Errors management
include_once("error.php");
error_reporting(E_ALL);
$minorRecoverableErrors = E_NOTICE | E_USER_NOTICE | E_DEPRECATED | E_USER_DEPRECATED;
set_error_handler('throwExceptionErrorHandler', E_ALL ^ $minorRecoverableErrors);
//Loads global functions
include_once("GlobalFunctions.php"); //Global functions
//Loads configuration
if (isset($_SERVER) && array_key_exists('OBSIDIAN_CONFIG', $_SERVER)) {
$configFile = $_SERVER['OBSIDIAN_CONFIG'];
if (file_exists($configFile)) {
include_once($configFile);
unset($configFile);
} else {
die("You've specified a custom configuration file path in the environment, but this file doesn't exist: $configFile");
}
} else {
include_once("config.php");
}
//Loads libraries
include_once("session.php"); //Sessions handler
include_once("autoload.php"); //Autoloader for needed classes

File Metadata

Mime Type
text/x-diff
Expires
Wed, Mar 18, 12:30 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3539648
Default Alt Text
(2 KB)

Event Timeline