-
-
Save xgin/adcff22f9a77f66a12d7 to your computer and use it in GitHub Desktop.
Dropbox Backup restricted for non-admin users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved. | |
$moduleId = basename(dirname(__FILE__)); | |
pm_Context::init($moduleId); | |
Modules_DropboxBackup_Dropbox::init(); | |
if (!pm_Session::getClient()->isAdmin()) { | |
throw new pm_Exception('Permission denied'); | |
} | |
$application = new pm_Application(); | |
$application->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/usr/local/psa/admin/htdocs/modules/dropbox-backup/index.php
/usr/local/psa/admin/plib/modules/dropbox-backup/hooks/CustomButtons.php