1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

port checkAppEnabled

This commit is contained in:
Frank Karlitschek 2012-05-02 19:08:37 +02:00
parent ed0d7b837d
commit 9d7b02c9dc
8 changed files with 8 additions and 8 deletions

View File

@ -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
View 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
View 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();

View File

@ -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";

View File

@ -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/')){

View File

@ -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());

View File

@ -11,7 +11,7 @@
// Init owncloud
OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('contacts');
OCP\App::checkAppEnabled('contacts');
function getStandardImage(){
OC_Response::setExpiresHeader('P10D');

View File

@ -24,7 +24,7 @@
OC_JSON::checkLoggedIn();
//OCP\User::checkLoggedIn();
OC_Util::checkAppEnabled('contacts');
OCP\App::checkAppEnabled('contacts');
function getStandardImage(){
OC_Response::setExpiresHeader('P10D');