install/index.php
changeset 180 e17c8536d718
parent 178 4f7540d1c07d
child 189 b918c891f81d
equal deleted inserted replaced
179:5a2d4418385d 180:e17c8536d718
   198 		$db_pass = $_POST['db_pass'];
   198 		$db_pass = $_POST['db_pass'];
   199 		$db_host = $_POST['db_host'];
   199 		$db_host = $_POST['db_host'];
   200 		$db_name = $_POST['db_name'];
   200 		$db_name = $_POST['db_name'];
   201 		$db_type = $_POST['db_type'];
   201 		$db_type = $_POST['db_type'];
   202 		$pa_pass = $_POST['pa_pass'];
   202 		$pa_pass = $_POST['pa_pass'];
       
   203 		$pa_srvr = getenv('SERVER_NAME');
   203 		$dns_hostmaster = $_POST['dns_hostmaster'];
   204 		$dns_hostmaster = $_POST['dns_hostmaster'];
   204 		$dns_ns1 = $_POST['dns_ns1'];
   205 		$dns_ns1 = $_POST['dns_ns1'];
   205 		$dns_ns2 = $_POST['dns_ns2'];
   206 		$dns_ns2 = $_POST['dns_ns2'];
   206 
   207 
   207 		echo "<p>" . _('You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database.') . " ";
   208 		echo "<p>" . _('You now want to give limited rights to Poweradmin so it can update the data in the tables. To do this, you should create a new user and give it rights to select, delete, insert and update records in the PowerDNS database.') . " ";
   208 		if ($db_type == 'mysql') {
   209 		if ($db_type == 'mysql') {
   209 			echo _('In MySQL you should now perform the following command:') . "</p>";
   210 			echo _('In MySQL you should now perform the following command:') . "</p>";
   210 			echo "<p><tt>GRANT SELECT, INSERT, UPDATE, DELETE<BR>ON " . $db_name . ".*<br>TO '" . $db_user . "'@'" . $db_host . "'<br>IDENTIFIED BY '" . $db_pass . "';</tt></p>";
   211 			echo "<p><tt>GRANT SELECT, INSERT, UPDATE, DELETE<BR>ON " . $db_name . ".*<br>TO '" . $db_user . "'@'" . $pa_srvr . "'<br>IDENTIFIED BY '" . $db_pass . "';</tt></p>";
   211 		} elseif ($db_type == 'pgsql') {
   212 		} elseif ($db_type == 'pgsql') {
   212 			echo _('On PgSQL you would use:') . "</p>";
   213 			echo _('On PgSQL you would use:') . "</p>";
   213 			echo "<p><tt>$ createuser -E -P " . $db_user . "<br>" .
   214 			echo "<p><tt>$ createuser -E -P " . $db_user . "<br>" .
   214 				"Enter password for new role: " . $db_pass . "<br>" .
   215 				"Enter password for new role: " . $db_pass . "<br>" .
   215 				"Enter it again: " . $db_pass . "<br>" . 
   216 				"Enter it again: " . $db_pass . "<br>" .