install.php
changeset 71 e1b918eaf69a
parent 61 d015f5c9b308
child 72 a5cf0384e9b4
equal deleted inserted replaced
70:47248e2af079 71:e1b918eaf69a
    56 {
    56 {
    57        	// General function for printing critical errors.
    57        	// General function for printing critical errors.
    58         if ($msg)
    58         if ($msg)
    59 	    {
    59 	    {
    60 		?>
    60 		?>
    61                 <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><? echo _('Oops! An error occured!'); ?></H2>
    61                 <P><TABLE CLASS="error"><TR><TD CLASS="error"><H2><?php echo _('Oops! An error occured!'); ?></H2>
    62        	        <BR>
    62        	        <BR>
    63                	<FONT STYLE="font-weight: Bold"><?= nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
    63                	<FONT STYLE="font-weight: Bold"><?php nl2br($msg) ?><BR><BR><a href="javascript:history.go(-1)">&lt;&lt; back</a></FONT><BR></TABLE>
    64                 <?
    64                 <?php
    65       	        die();
    65       	        die();
    66         }
    66         }
    67 	    else
    67 	    else
    68 	    {
    68 	    {
    69        	        die("No error specified!");
    69        	        die("No error specified!");
   178 		}
   178 		}
   179 		else
   179 		else
   180 		{
   180 		{
   181 
   181 
   182 			?>
   182 			?>
   183 <h2><? echo _('PowerAdmin has succesfully been installed.'); ?></h2>
   183 <h2><?php echo _('PowerAdmin has succesfully been installed.'); ?></h2>
   184 <br />
   184 <br />
   185 <? echo _('Remove this file (install.php) from your webdir.'); ?><br />
   185 <?php echo _('Remove this file (install.php) from your webdir.'); ?><br />
   186 <b><? echo _('WARNING'); ?>:</b> <? echo _('PowerAdmin will not work until you delete install.php'); ?><br />
   186 <b><?php echo _('WARNING'); ?>:</b> <?php echo _('PowerAdmin will not work until you delete install.php'); ?><br />
   187 <br />
   187 <br />
   188 <? echo _('You can click'); ?> <a href="index.php">here</a> <? echo _('to start using PowerAdmin'); ?>
   188 <?php echo _('You can click'); ?> <a href="index.php">here</a> <?php echo _('to start using PowerAdmin'); ?>
   189 </BODY></HTML>
   189 </BODY></HTML>
   190 <?php
   190 <?php
   191 			die();
   191 			die();
   192 		}
   192 		}
   193 
   193 
   200 
   200 
   201 else
   201 else
   202 {
   202 {
   203 ?>
   203 ?>
   204 
   204 
   205 <H2><? echo _('PowerAdmin for PowerDNS'); ?></H2>
   205 <H2><?php echo _('PowerAdmin for PowerDNS'); ?></H2>
   206 <BR>
   206 <BR>
   207 <B><? echo _('This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
   207 <B><?php echo _('This config file will setup your database to be ready for PowerAdmin. Please fill in the next fields which will create an
   208 administrator login.'); ?><BR>
   208 administrator login.'); ?><BR>
   209 <? echo _('Fields marked with a'); ?> <FONT COLOR="#FF0000">*</FONT> <? echo _('are required.'); ?>
   209 <?php echo _('Fields marked with a'); ?> <FONT COLOR="#FF0000">*</FONT> <?php echo _('are required.'); ?>
   210 </B><BR><BR>
   210 </B><BR><BR>
   211 
   211 
   212 <FORM METHOD="post">
   212 <FORM METHOD="post">
   213 <TABLE BORDER="0" CELLSPACING="4">
   213 <TABLE BORDER="0" CELLSPACING="4">
   214 <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>
   214 <TR><TD CLASS="tdbg"><?php echo _('Login Name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="login" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   215 <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>
   215 <TR><TD CLASS="tdbg"><?php echo _('Password'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="password" CLASS="input" NAME="password" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   216 <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>
   216 <TR><TD CLASS="tdbg"><?php echo _('Full name'); ?>:</TD><TD WIDTH="510" CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="fullname" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   217 <TR><TD CLASS="tdbg"><? echo _('Email'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   217 <TR><TD CLASS="tdbg"><?php echo _('Email'); ?>:</TD><TD CLASS="tdbg"><INPUT TYPE="text" CLASS="input" NAME="email" VALUE=""> <FONT COLOR="#FF0000">*</FONT> </TD></TR>
   218 <TR><TD CLASS="tdbg"><? echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
   218 <TR><TD CLASS="tdbg"><?php echo _('Description'); ?>:</TD><TD CLASS="tdbg"><TEXTAREA ROWS="6" COLS="30" CLASS="inputarea" NAME="description"></TEXTAREA></TD></TR>
   219 <TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<? echo _('Make Account'); ?>"></TD></TR>
   219 <TR><TD CLASS="tdbg">&nbsp;</TD><TD CLASS="tdbg"><INPUT TYPE="submit" CLASS="button" NAME="submit" VALUE="<?php echo _('Make Account'); ?>"></TD></TR>
   220 </TABLE>
   220 </TABLE>
   221 </FORM>
   221 </FORM>
   222 
   222 
   223 <BR><BR>
   223 <BR><BR>
   224 <FONT CLASS="footer"><B>PowerAdmin v1.0</B>&nbsp;Copyright &copy;2002 The
   224 <FONT CLASS="footer"><B>PowerAdmin v1.0</B>&nbsp;Copyright &copy;2002 The
   225 PowerAdmin Team</FONT></BODY></HTML><? } ?>
   225 PowerAdmin Team</FONT></BODY></HTML><?php } ?>