mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-02-12 06:54:28 +01:00
port checkAppEnabled
This commit is contained in:
parent
ed0d7b837d
commit
9d7b02c9dc
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
require_once('../../../lib/base.php');
|
require_once('../../../lib/base.php');
|
||||||
OC_JSON::checkLoggedIn();
|
OC_JSON::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
|
$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
|
||||||
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
|
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
|
||||||
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
|
||||||
|
2
ajax/importdialog.php
Normal file → Executable file
2
ajax/importdialog.php
Normal file → Executable file
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
OC_JSON::checkLoggedIn();
|
OC_JSON::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
$tmpl = new OC_Template('contacts', 'part.import');
|
$tmpl = new OC_Template('contacts', 'part.import');
|
||||||
$tmpl->assign('path', $_POST['path']);
|
$tmpl->assign('path', $_POST['path']);
|
||||||
$tmpl->assign('filename', $_POST['filename']);
|
$tmpl->assign('filename', $_POST['filename']);
|
||||||
|
2
appinfo/remote.php
Normal file → Executable file
2
appinfo/remote.php
Normal file → Executable file
@ -23,7 +23,7 @@
|
|||||||
$RUNTIME_NOSETUPFS = true;
|
$RUNTIME_NOSETUPFS = true;
|
||||||
require_once('../lib/base.php');
|
require_once('../lib/base.php');
|
||||||
|
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
|
|
||||||
// Backends
|
// Backends
|
||||||
$authBackend = new OC_Connector_Sabre_Auth();
|
$authBackend = new OC_Connector_Sabre_Auth();
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
|
|
||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
$bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;
|
$bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;
|
||||||
$contactid = isset($_GET['contactid']) ? $_GET['contactid'] : NULL;
|
$contactid = isset($_GET['contactid']) ? $_GET['contactid'] : NULL;
|
||||||
$nl = "\n";
|
$nl = "\n";
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
OC_JSON::checkLoggedIn();
|
OC_JSON::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
$nl = "\n";
|
$nl = "\n";
|
||||||
$progressfile = 'import_tmp/' . md5(session_id()) . '.txt';
|
$progressfile = 'import_tmp/' . md5(session_id()) . '.txt';
|
||||||
if(is_writable('import_tmp/')){
|
if(is_writable('import_tmp/')){
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
// Check if we are a user
|
// Check if we are a user
|
||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
|
|
||||||
// Get active address books. This creates a default one if none exists.
|
// Get active address books. This creates a default one if none exists.
|
||||||
$ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser());
|
$ids = OC_Contacts_Addressbook::activeIds(OCP\USER::getUser());
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
// Init owncloud
|
// Init owncloud
|
||||||
|
|
||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
|
|
||||||
function getStandardImage(){
|
function getStandardImage(){
|
||||||
OC_Response::setExpiresHeader('P10D');
|
OC_Response::setExpiresHeader('P10D');
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
OC_JSON::checkLoggedIn();
|
OC_JSON::checkLoggedIn();
|
||||||
//OCP\User::checkLoggedIn();
|
//OCP\User::checkLoggedIn();
|
||||||
OC_Util::checkAppEnabled('contacts');
|
OCP\App::checkAppEnabled('contacts');
|
||||||
|
|
||||||
function getStandardImage(){
|
function getStandardImage(){
|
||||||
OC_Response::setExpiresHeader('P10D');
|
OC_Response::setExpiresHeader('P10D');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user