* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
+OC_Util::checkAdminUser();
OC_Util::checkAppEnabled('admin_export');
if (isset($_POST['admin_export'])) {
$root = OC::$SERVERROOT . "/";
// Init owncloud
require_once('../../lib/base.php');
+OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('contacts');
$id = $_GET['id'];
$l10n = new OC_L10N('contacts');
-// Check if we are a user
-if( !OC_User::isLoggedIn()){
- echo $l10n->t('You need to log in.');
- exit();
-}
-
-
$card = OC_Contacts_VCard::find( $id );
if( $card === false ){
echo $l10n->t('Contact could not be found.');
<?php
// Init owncloud
require_once('../../lib/base.php');
+OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();
OC_App::disable($_POST['appid']);
// Init owncloud
require_once('../../lib/base.php');
+OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();
OC_App::enable($_POST['appid']);
*/
$RUNTIME_NOSETUPFS=true;
require_once('../lib/base.php');
+OC_Util::checkAdminUser();
$testCases=loadFiles(__DIR__,array('index.php','templates'));
ob_end_clean();
}
return $results;
}
-?>
\ No newline at end of file
+?>