index.php
changeset 8 47dd15d8bb8c
parent 6 9fcac40c1b0e
child 13 2ff220cfde13
equal deleted inserted replaced
7:ac0ca51809b1 8:47dd15d8bb8c
    18 // $Id: index.php,v 1.13 2003/05/10 20:20:05 azurazu Exp $
    18 // $Id: index.php,v 1.13 2003/05/10 20:20:05 azurazu Exp $
    19 //
    19 //
    20 
    20 
    21 require_once("inc/i18n.inc.php");
    21 require_once("inc/i18n.inc.php");
    22 require_once("inc/toolkit.inc.php");
    22 require_once("inc/toolkit.inc.php");
    23 
       
    24 /*
       
    25 // Checks if the user migrated his database, can be deprecated in the future
       
    26 function check_updated()
       
    27 {
       
    28 	global $db;
       
    29 	$checkzone = $db->query("select * from zones");
       
    30 	$zonetables = $checkzone->tableInfo();
       
    31 	//var_dump($zonetables[1]);
       
    32 	if(strcmp($zonetables[1]["name"], "name") == 0)
       
    33 	{
       
    34 		include_once("inc/header.inc.php");
       
    35 		error("You have to migrate your database first! 
       
    36 		
       
    37 		The reason for this migration is that PowerAdmin wasnt supporting the gmysql backend yet. Now it fully does we have to support it aswell. 
       
    38 		The gmysql users another table and other fields though, therefore we had to change the layout of the zones table. In this version thats fully done, but before this we have to migrate it. 
       
    39 		
       
    40 		Please be sure you have a working backup of your data! 
       
    41 		we assume it all works but can't guarantuee it for 100% because we dont have 
       
    42 		too many betatesters.<BR>
       
    43 		
       
    44 		Do the following to migrate: 
       
    45 		- rename the file migrator.php-pa in your webdir to migrator.php.
       
    46 	 	- Go <A HREF='migrator.php'>here</A> to migrate it.
       
    47 		
       
    48 		It is recommended to synchronize your database aswell after the update");
       
    49 		die();
       
    50 	}
       
    51 }
       
    52 
       
    53 // Call above function
       
    54 check_updated();
       
    55 */
       
    56 
    23 
    57 if ($_POST["submit"])
    24 if ($_POST["submit"])
    58 {
    25 {
    59 	$domain = trim($_POST["domain"]);
    26 	$domain = trim($_POST["domain"]);
    60 	$owner = $_POST["owner"];
    27 	$owner = $_POST["owner"];
   107 
    74 
   108 <P FONT CLASS="nav">
    75 <P FONT CLASS="nav">
   109 <?
    76 <?
   110 if (level(10))
    77 if (level(10))
   111 {
    78 {
   112 	?><A HREF="users.php"><? echo _('User admin'); ?></A> <A HREF="seq_update.php"><? echo _('Synchronize database'); ?></A><?
    79 	?><A HREF="users.php"><? echo _('User admin'); ?></A> <?
   113 }
    80 }
   114 ?>
    81 ?>
   115  <A HREF="search.php"><? echo _('Search records'); ?></A>
    82  <A HREF="search.php"><? echo _('Search records'); ?></A>
   116 </P>
    83 </P>
   117 
    84