summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-11-11 15:52:23 +0100
committerThomas Tanghus <thomas@tanghus.net>2012-11-11 23:09:54 +0100
commit7f0c69eb0ed2c4074aedb73d16eb675c08042354 (patch)
treebf63a2513b3764f3c86c3ac381b6ddbea41467da /lib/base.php
parent3be21cf6656342c4ef7713ee9b111b809122a709 (diff)
downloadnextcloud-server-7f0c69eb0ed2c4074aedb73d16eb675c08042354.tar.gz
nextcloud-server-7f0c69eb0ed2c4074aedb73d16eb675c08042354.zip
Added CRUDS permissions to the OCP namespace. Implements issue #345
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index bed50c904c7..50617081b1f 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -20,6 +20,8 @@
*
*/
+require_once 'public/constants.php';
+
/**
* Class that is a namespace for all global OC variables
* No, we can not put this class in its own file because it is used by
@@ -230,7 +232,7 @@ class OC{
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/.htaccess', $content);
}
}
- }
+ }
OC_Log::write('core', 'starting upgrade from '.$installedVersion.' to '.$currentVersion, OC_Log::DEBUG);
$result=OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
if(!$result) {
@@ -288,7 +290,7 @@ class OC{
// (re)-initialize session
session_start();
-
+
// regenerate session id periodically to avoid session fixation
if (!isset($_SESSION['SID_CREATED'])) {
$_SESSION['SID_CREATED'] = time();