Source for file connection.php

Documentation is available at connection.php

  1. <?php
  2. /**
  3. * Connection to database
  4. * <br/><br/>
  5. * Script for editing the database connection, defining connection the first time is done during "First Steps"
  6. * <br/><br/>
  7. * Access restricted to administrators
  8. @author Gabriele Droege, DNA Bank Network <contact@dnabank-network.org>
  9. @version 2.0
  10. @package Configuration
  11. @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org<br>The contents of this file are subject to the Mozilla Public License Version 1.1
  12. @filesource
  13. @license http://www.mozilla.org/MPL/ MPL
  14. */
  15.  
  16. $config true;
  17.     /**
  18.     * calling connection to database
  19.     */
  20.     include ("../config/head.php");
  21.  
  22.     /**
  23.     * calling authorisation script
  24.     */
  25.     include ("../auth.php");
  26.  
  27. ?>
  28. <html>
  29.  
  30. <head>
  31. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  32. <title>DNA Module - Configuration tool</title>
  33. <link rel="stylesheet" type="text/css" href="../format.css">
  34. <link rel="stylesheet" type="text/css" href="../input/XSLT/Styles.css">
  35. <SCRIPT LANGUAGE="JavaScript1.1" src="../Functions.js"></SCRIPT>
  36. <NOSCRIPT>Please enable Javascript!</NOSCRIPT>
  37. </head>
  38.  
  39. <body>
  40. <div align="center">
  41. <?php 
  42.  
  43.     /**
  44.     * including navigation menu
  45.     */
  46.     include("../tablenavi.php")?>
  47.     
  48. <form name="formular" method="POST" action="connection.php">
  49. <table id="tablemain" border="0" class="main">
  50.     <tr>
  51.   <td id="tdLogo"><a href="<?php echo $Path_Wiki."/Installation#First_steps"?>" target="_blank"><img border="0" src="../images/Logo-Wiki.png" width="123"></a></td>
  52.         <td id="tdtitle">
  53.         <h1>Configuration Tool<br />Edit DNA database connection</h1></td>
  54.     <td id="tdLogo2"><?php echo $Path_Logo?></td>
  55.     </tr>
  56.     <tr>
  57.         <td colspan="3" valign="top">
  58.         <table border="0" id="table2">
  59.  
  60. <?php
  61.     /**
  62.     * calling script for editing connection parameters (login as administrator required)
  63.     */
  64.  if (isset($_SESSION['admin']|| $_SESSION['admin']{
  65. include("edit_connection.php")}
  66.  
  67.     /**
  68.     * message permission denied for non administrators or managers
  69.     */
  70.  
  71.  if (!isset($_SESSION['admin']&& !$_SESSION['admin']{
  72. include("../No_permission.php")}
  73. ?> 
  74.    
  75.    <tr>
  76.       <td id="DescriptionBlack" colspan="2"></td>
  77.       <td><input type="button" value="Return to Configuration Tool" name="formSubmitMenu" id="SelectLong" onClick="self.location.href = 'configuration.php';"></td>
  78.     </tr>
  79.             </table>
  80.         </td>
  81.     </tr>
  82. </table>
  83. <?php
  84.     /**
  85.     * including footer
  86.     */
  87.     include ("../footer.php")?>
  88. </div>
  89. </form>
  90. </body>
  91.  
  92. </html>

Documentation generated on Tue, 29 Nov 2011 10:44:48 +0100 by phpDocumentor 1.4.3