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