inc/toolkit.inc.php
changeset 71 e1b918eaf69a
parent 65 ce1c4d5e1576
child 74 43c31dc98305
equal deleted inserted replaced
70:47248e2af079 71:e1b918eaf69a
     1 <?
     1 <?php
     2 
     2 
     3 /*  PowerAdmin, a friendly web-based admin tool for PowerDNS.
     3 /*  PowerAdmin, a friendly web-based admin tool for PowerDNS.
     4  *  See <https://rejo.zenger.nl/poweradmin> for more details.
     4  *  See <https://rejo.zenger.nl/poweradmin> for more details.
     5  *
     5  *
     6  *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
     6  *  Copyright 2007, 2008  Rejo Zenger <rejo@zenger.nl>
   194 	// General function for printing critical errors.
   194 	// General function for printing critical errors.
   195 	if ($msg)
   195 	if ($msg)
   196 	{
   196 	{
   197 		include_once("header.inc.php");
   197 		include_once("header.inc.php");
   198 	?>
   198 	?>
   199 	<p><? echo _('Oops! An error occured!'); ?></p>
   199 	<p><?php echo _('Oops! An error occured!'); ?></p>
   200 	<p><? echo nl2br($msg) ?></p>
   200 	<p><?php echo nl2br($msg) ?></p>
   201 	<?
   201 	<?php
   202 		include_once("footer.inc.php");
   202 		include_once("footer.inc.php");
   203 		die();
   203 		die();
   204 	}
   204 	}
   205 	else
   205 	else
   206 	{
   206 	{
   214  */
   214  */
   215 function message($msg)
   215 function message($msg)
   216 {
   216 {
   217     include_once("header.inc.php");
   217     include_once("header.inc.php");
   218     ?>
   218     ?>
   219     <P><TABLE CLASS="messagetable"><TR><TD CLASS="message"><H2><? echo _('Success!'); ?></H2>
   219     <P><TABLE CLASS="messagetable"><TR><TD CLASS="message"><H2><?php echo _('Success!'); ?></H2>
   220     <BR>
   220     <BR>
   221 	<FONT STYLE="font-weight: Bold">
   221 	<FONT STYLE="font-weight: Bold">
   222 	<P>
   222 	<P>
   223 	<?
   223 	<?php
   224     if($msg)
   224     if($msg)
   225     {
   225     {
   226         echo nl2br($msg);
   226         echo nl2br($msg);
   227     }
   227     }
   228     else
   228     else
   231     }
   231     }
   232     ?>
   232     ?>
   233     </P>
   233     </P>
   234     <BR>
   234     <BR>
   235     <P>
   235     <P>
   236     <a href="javascript:history.go(-1)">&lt;&lt; <? echo _('back'); ?></a></FONT>
   236     <a href="javascript:history.go(-1)">&lt;&lt; <?php echo _('back'); ?></a></FONT>
   237     </P>
   237     </P>
   238     </TD></TR></TABLE></P>
   238     </TD></TR></TABLE></P>
   239     <?
   239     <?php
   240     include_once("footer.inc.php");
   240     include_once("footer.inc.php");
   241 }
   241 }
   242 
   242 
   243 
   243 
   244 /*
   244 /*