@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once ("../../lib/base.php"); | |||
OC_JSON::checkLoggedIn(); | |||
$action=isset($_POST['action'])?$_POST['action']:$_GET['action']; | |||
$result=false; |
@@ -22,7 +22,7 @@ | |||
*/ | |||
$RUNTIME_NOAPPS = TRUE; //no apps, yet | |||
require_once('../../lib/base.php'); | |||
if(!OC_User::isLoggedIn()){ | |||
if(!isset($_SERVER['PHP_AUTH_USER'])){ |
@@ -22,7 +22,7 @@ | |||
*/ | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
$app = $_POST["app"]; | |||
@@ -22,7 +22,7 @@ | |||
*/ | |||
$RUNTIME_NOAPPS = TRUE; //no apps, yet | |||
require_once('../../lib/base.php'); | |||
if(!OC_User::isLoggedIn()){ | |||
if(!isset($_SERVER['PHP_AUTH_USER'])){ |
@@ -22,7 +22,7 @@ | |||
*/ | |||
$RUNTIME_NOAPPS = TRUE; //no apps, yet | |||
require_once('../../lib/base.php'); | |||
if(!isset($_SERVER['PHP_AUTH_USER'])){ | |||
header('WWW-Authenticate: Basic realm="ownCloud Server"'); |
@@ -14,7 +14,7 @@ function debug($msg) { | |||
OC_Log::write('core','ajax/vcategories/add.php: '.$msg, OC_Log::DEBUG); | |||
} | |||
require_once('../../../lib/base.php'); | |||
OC_JSON::checkLoggedIn(); | |||
$category = isset($_GET['category'])?strip_tags($_GET['category']):null; | |||
$app = isset($_GET['app'])?$_GET['app']:null; |
@@ -15,7 +15,7 @@ function debug($msg) { | |||
OC_Log::write('core','ajax/vcategories/delete.php: '.$msg, OC_Log::DEBUG); | |||
} | |||
require_once('../../../lib/base.php'); | |||
OC_JSON::checkLoggedIn(); | |||
$app = isset($_POST['app'])?$_POST['app']:null; | |||
$categories = isset($_POST['categories'])?$_POST['categories']:null; |
@@ -15,7 +15,7 @@ function debug($msg) { | |||
OC_Log::write('core','ajax/vcategories/edit.php: '.$msg, OC_Log::DEBUG); | |||
} | |||
require_once('../../../lib/base.php'); | |||
OC_JSON::checkLoggedIn(); | |||
$app = isset($_GET['app'])?$_GET['app']:null; | |||
@@ -7,7 +7,7 @@ | |||
*/ | |||
$RUNTIME_NOAPPS = TRUE; //no apps | |||
require_once('../../lib/base.php'); | |||
// Someone lost their password: | |||
if (isset($_POST['user'])) { |
@@ -7,7 +7,7 @@ | |||
*/ | |||
$RUNTIME_NOAPPS = TRUE; //no apps | |||
require_once('../../lib/base.php'); | |||
// Someone wants to reset their password: | |||
if(isset($_GET['token']) && isset($_GET['user']) && OC_Preferences::getValue($_GET['user'], 'owncloud', 'lostpassword') === $_GET['token']) { |
@@ -21,7 +21,7 @@ | |||
* | |||
*/ | |||
require_once('../lib/base.php'); | |||
$url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/'; | |||
@@ -21,7 +21,7 @@ | |||
* | |||
*/ | |||
require_once('../lib/base.php'); | |||
@ob_clean(); | |||
OC_OCS::handle(); | |||
@@ -23,7 +23,7 @@ | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
// Check if we are a user | |||
OC_JSON::checkLoggedIn(); |
@@ -23,7 +23,7 @@ | |||
// Init owncloud | |||
require_once('../lib/base.php'); | |||
// Check if we are a user | |||
OC_Util::checkLoggedIn(); |
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkAdminUser(); | |||
OC_Util::addStyle( "settings", "settings" ); |
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser(); | |||
$password = $_POST["password"]; |
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
// Check if we are a user | |||
if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ |
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
// Check if we are a user | |||
if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ |
@@ -1,6 +1,6 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
OC_JSON::setContentTypeHeader(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
OC_JSON::setContentTypeHeader(); | |||
@@ -6,7 +6,7 @@ | |||
*/ | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkLoggedIn(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
$l=OC_L10N::get('settings'); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
$l=OC_L10N::get('settings'); | |||
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../../lib/base.php'); | |||
OC_Util::checkAdminUser(); | |||
OC_Config::setValue( 'loglevel', $_POST['level'] ); |
@@ -6,7 +6,7 @@ | |||
*/ | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
@@ -1,7 +1,7 @@ | |||
<?php | |||
// Init owncloud | |||
require_once('../../lib/base.php'); | |||
OC_JSON::checkAdminUser(); | |||
@@ -21,7 +21,7 @@ | |||
* | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkAdminUser(); | |||
// Load the files we need |
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkLoggedIn(); | |||
@@ -20,7 +20,7 @@ | |||
* | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkAdminUser(); | |||
// Load the files we need |
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkLoggedIn(); | |||
// Highlight navigation entry |
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkLoggedIn(); | |||
OC_Util::addStyle( 'settings', 'settings' ); |
@@ -5,7 +5,7 @@ | |||
* See the COPYING-README file. | |||
*/ | |||
require_once('../lib/base.php'); | |||
OC_Util::checkAdminUser(); | |||
// We have some javascript foo! |