install.php.orig
changeset 2 9a485c41cfcf
parent 1 58094faf794d
equal deleted inserted replaced
1:58094faf794d 2:9a485c41cfcf
    58 {
    58 {
    59        	// General function for printing critical errors.
    59        	// General function for printing critical errors.
    60         if ($msg)
    60         if ($msg)
    61 	    {
    61 	    {
    62 		?>
    62 		?>
    63                 <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2>Oops! An error occured!</H2>
    63                 <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2>
    64        	        <BR>
    64        	        <BR>
    65                	<FONT STYLE="font-weight: Bold"><?= nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
    65                	<FONT STYLE="font-weight: Bold"><?= nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
    66                 <?
    66                 <?
    67       	        die();
    67       	        die();
    68         }
    68         }
   166 		}
   166 		}
   167 		else
   167 		else
   168 		{
   168 		{
   169 
   169 
   170 			?>
   170 			?>
   171 <h2>PowerAdmin has succesfully been installed.</h2>
   171 <h2><? echo _('PowerAdmin has succesfully been installed.'); ?></h2>
   172 <br />
   172 <br />
   173 Remove this file (install.php) from your webdir.<br />
   173 <? echo _('Remove this file (install.php) from your webdir.'); ?><br />
   174 <b>WARNING:</b> PowerAdmin will not work until you delete install.php<br />
   174 <b><? echo _('WARNING'); ?>:</b> <? echo _('PowerAdmin will not work until you delete install.php'); ?><br />
   175 <br />
   175 <br />
   176 You can click <a href="index.php">here</a> to start using PowerAdmin
   176 <? echo _('You can click'); ?> <a href="index.php">here</a> <? echo _('to start using PowerAdmin'); ?>
   177 </BODY></HTML>
   177 </BODY></HTML>
   178 <?php
   178 <?php
   179 			die();
   179 			die();
   180 		}
   180 		}
   181 
   181 
   182 	}
   182 	}
   183 	else
   183 	else
   184 	{
   184 	{
   185 		echo "<DIV CLASS=\"warning\">You didnt fill in one of the required fields!</DIV>";
   185 		echo "<DIV CLASS=\"warning\">" . _('You didnt fill in one of the required fields!') . "</DIV>";
   186 	}
   186 	}
   187 }
   187 }
   188 
   188 
   189 else
   189 else
   190 {
   190 {
   191 ?>
   191 ?>
   192 
   192 
   193 <H2>PowerAdmin for PowerDNS</H2>
   193 <H2><? echo _('PowerAdmin for PowerDNS'); ?></H2>
   194 <BR>
   194 <BR>
   195 <B>This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
   195 <B><? echo _('This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
   196 administrator login.<BR>
   196 administrator login.'); ?><BR>
   197 Fields marked with a <FONT COLOR="#FF0000">*</FONT> are required.
   197 <? echo _('Fields marked with a'); ?> <FONT COLOR="#FF0000">*</FONT> <? echo _('are required.'); ?>
   198 </B><BR><BR>
   198 </B><BR><BR>
   199 
   199 
   200 <FORM METHOD="post">
   200 <FORM METHOD="post">
   201 <TABLE BORDER="0" CELLSPACING="4">
   201 <TABLE BORDER="0" CELLSPACING="4">
   202 <TR><TD CLASS="tdbg">Login Name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   202 <TR><TD CLASS="tdbg"><? echo _('Login Name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   203 <TR><TD CLASS="tdbg">Password:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   203 <TR><TD CLASS="tdbg"><? echo _('Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   204 <TR><TD CLASS="tdbg">Full name:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   204 <TR><TD CLASS="tdbg"><? echo _('Full name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   205 <TR><TD CLASS="tdbg">Email:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   205 <TR><TD CLASS="tdbg"><? echo _('Email'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   206 <TR><TD CLASS="tdbg">Description:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
   206 <TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
   207 <TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="Make Account"></TD></TR>
   207 <TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Make Account'); ?>"></TD></TR>
   208 </TABLE>
   208 </TABLE>
   209 </FORM>
   209 </FORM>
   210 
   210 
   211 <BR><BR>
   211 <BR><BR>
   212 <FONT CLASS="footer"><B>PowerAdmin v1.0</B>&nbsp;Copyright &copy;2002 The
   212 <FONT CLASS="footer"><B>PowerAdmin v1.0</B>&nbsp;Copyright &copy;2002 The