<?php /* Copyright (©) 2003-2014 Teus Benschop. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ require_once "../bootstrap/bootstrap.php"; page_access_level(Filter_Roles::ADMIN_LEVEL); Assets_Page::header(Locale_Translate::_("Collaboration")); $view = new Assets_View(__FILE__); $object = $_GET['object']; $view->view->object = $object; $database_config_bible = Database_Config_Bible::getInstance(); $url = $database_config_bible->getRemoteRepositoryUrl($object); $directory = Filter_Git::git_directory($object); $view->render("collaboration_repo_data.php"); Assets_Page::footer();
Assets_Page::header(Locale_Translate::_("Bibles")); $view = new Assets_View(__FILE__); $database_bibles = Database_Bibles::getInstance(); $database_users = Database_Users::getInstance(); $session_logic = Session_Logic::getInstance(); // Delete Bible handler. if (isset($_GET['delete'])) { $bible = $_GET['delete']; @($confirm = $_GET['confirm']); if ($confirm != "") { ignore_user_abort(true); set_time_limit(0); // User needs write access for delete operation. if (Access_Bible::write($bible)) { Bible_Logic::deleteBible($bible); $gitdirectory = Filter_Git::git_directory($bible); if (file_exists($gitdirectory)) { Filter_Rmdir::rmdir($gitdirectory); } } else { Assets_Page::error("Insufficient privileges to complete action"); } } else { $dialog_yes = new Dialog_Yes(NULL, Locale_Translate::_("Would you like to delete Bible {$bible}?"), "delete"); die; } } // New Bible handler. if (isset($_GET['new'])) { $dialog_entry = new Dialog_Entry("", Locale_Translate::_("Please enter a name for the new empty Bible"), "", "new", ""); die;