nextcloud/settings/ajax/enableapp.php

14 lines
230 B
PHP
Raw Normal View History

<?php
// Init owncloud
require_once('../../lib/base.php');
2011-10-01 01:10:08 +04:00
OC_JSON::checkAdminUser();
2012-07-20 22:39:20 +04:00
OCP\JSON::callCheck();
OC_JSON::setContentTypeHeader();
if(OC_App::enable($_POST['appid'])){
OC_JSON::success();
}else{
OC_JSON::error();
}