* @copyright (C) 2005-2016 University of Sydney * @author Ian Johnson <*****@*****.**> * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0 * @version 3.0 */ /* * Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied * See the License for the specific language governing permissions and limitations under the License. */ require_once dirname(__FILE__) . '/../../../common/connect/applyCredentials.php'; require_once dirname(__FILE__) . '/../../../records/index/elasticSearchFunctions.php'; require_once dirname(__FILE__) . '/../../../common/php/dbUtils.php'; if (isForOwnerOnly("to delete a database")) { return; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Delete Current Heurist Database</title> <link rel='stylesheet' type='text/css' href='../../../common/css/global.css'> <link rel='stylesheet' type='text/css' href='../../../common/css/edit.css'> <link rel='stylesheet' type='text/css' href='../../../common/css/admin.css'> </head> <body class='popup'> <div class='banner'><h2>Delete Current Heurist Database</h2></div> <div id='page-inner' style='overflow:auto'> <?php
* @author Ian Johnson <*****@*****.**> * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0 * @version 3.1.0 */ /* * Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied * See the License for the specific language governing permissions and limitations under the License. */ ini_set('max_execution_time', 0); require_once dirname(__FILE__) . '/../../common/connect/applyCredentials.php'; require_once dirname(__FILE__) . '/../../common/php/dbMySqlWrappers.php'; require_once dirname(__FILE__) . '/../../records/files/uploadFile.php'; if (isForOwnerOnly()) { exit; } ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="../../common/css/global.css"> <link rel="stylesheet" type="text/css" href="../../common/css/admin.css"> <style type="text/css"> h3, h3 span { display: inline-block; padding:0 0 10px 0; }
* @copyright (C) 2005-2016 University of Sydney * @author Ian Johnson <*****@*****.**> * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0 * @version 3.0 */ /* * Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied * See the License for the specific language governing permissions and limitations under the License. */ require_once dirname(__FILE__) . '/../../../common/connect/applyCredentials.php'; require_once dirname(__FILE__) . '/../../../records/index/elasticSearchFunctions.php'; require_once dirname(__FILE__) . '/../../../common/php/dbUtils.php'; if (isForOwnerOnly("to clear a database")) { return; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Clear Records from Current Heurist Database</title> <link rel='stylesheet' type='text/css' href='../../../common/css/global.css'> <link rel='stylesheet' type='text/css' href='../../../common/css/edit.css'> <link rel='stylesheet' type='text/css' href='../../../common/css/admin.css'> </head> <body class='popup'> <div class='banner'><h2>Clear Records from Current Heurist database</h2></div> <div id='page-inner' style='overflow:auto'> <?php
* @author Ian Johnson <*****@*****.**> * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU License 3.0 * @version 3.0 */ /* * Licensed under the GNU License, Version 3.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at http://www.gnu.org/licenses/gpl-3.0.txt * Unless required by applicable law or agreed to in writing, software distributed under the License is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied * See the License for the specific language governing permissions and limitations under the License. */ require_once dirname(__FILE__) . '/../../../common/connect/applyCredentials.php'; require_once dirname(__FILE__) . '/../../../common/php/dbMySqlWrappers.php'; require_once dirname(__FILE__) . '/../../../records/files/fileUtils.php'; require_once dirname(__FILE__) . '/../../../common/php/dbUtils.php'; if (isForOwnerOnly("to register a database with the Heurist master index")) { return; } $sError = null; $user_id = get_user_id(); /* WHY HAS THIS BEEN COMMENTED OUT ?????? - // User must be system administrator or admin of the owners group for this database if (!is_admin()) { $sError = "You must be logged in as system administrator to register a database"; } else if (get_user_id() != 2) { $sError = "Only the owner/creator of the database (user #2) may register the database. ". "<br/><br/>This user will also own (and be able to edit) the registration record in the Heurist master index database"; return; } */ mysql_connection_insert(DATABASE);