2006-04-26 12:28:53 +00:00
< ? php
/*
$Id : adm_doms . php , v 1.1 2003 / 09 / 20 19 : 41 : 06 root Exp $
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright ( C ) 2002 by the AlternC Development Team .
http :// alternc . org /
----------------------------------------------------------------------
Based on :
Valentin Lacambre ' s web hosting softwares : http :// altern . org /
----------------------------------------------------------------------
LICENSE
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License ( GPL )
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
To read the license please visit http :// www . gnu . org / copyleft / gpl . html
----------------------------------------------------------------------
Original Author of file : Benjamin Sonntag
Purpose of file : Manage allowed TLD on the server
----------------------------------------------------------------------
*/
require_once ( " ../class/config.php " );
if ( ! $admin -> enabled ) {
__ ( " This page is restricted to authorized staff " );
exit ();
}
include ( " head.php " );
?>
</ head >
< body >
< h3 >< ? php __ ( " Manage installed domains " ); ?> </h3>
< ? php
if ( $error ) {
echo " <p class= \" error \" > $error </p> " ;
}
$c = $admin -> dom_list ();
?>
< p >
< ? php __ ( " Here is the list of the domains installed on this server. You can remove a domain if it does not exist or does not point to our server anymore. You can also set the 'Lock' flag on a domain so that the user will not be able to change any DNS parameter or delete this domain from his account. " ); ?>
</ p >
2006-05-25 13:36:17 +00:00
< p >< a href = " <?php echo $_SERVER["SCRIPT_NAME"] ; ?> " >< ? php __ ( " Update this page " ); ?> </a></p>
2006-04-26 12:28:53 +00:00
< form method = " post " action = " adm_dodom.php " >
< table border = " 0 " cellpadding = " 4 " cellspacing = " 0 " >
< tr >< th >< ? php __ ( " Action " ); ?> </th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr>
< ? php
$col = 1 ;
for ( $i = 0 ; $i < count ( $c ); $i ++ ) {
$col = 3 - $col ;
?>
< tr class = " lst<?php echo $col ; ?> " >
< td >< a href = " adm_domlock.php?domain=<?php echo urlencode( $c[$i] [domaine]); ?> " >< ? php
if ( $c [ $i ][ noerase ]) __ ( " Unlock " ); else __ ( " Lock " ); ?> </a></td>
2008-04-10 20:05:19 +00:00
< td >< a href = " http://<?php echo $c[$i] [domaine]; ?> " target = " _blank " >< ? php echo $c [ $i ][ domaine ]; ?> </a></td>
2006-04-26 12:28:53 +00:00
< td >< ? php echo $c [ $i ][ login ]; ?> </td>
< td >< ? php if ( $c [ $i ][ noerase ]) {
echo " <img src= \" icon/encrypted.png \" width= \" 16 \" height= \" 16 \" alt= \" " . _ ( " Locked Domain " ) . " \" /> " ;
} ?> </td>
</ tr >
< ? php
}
?>
</ table >
</ form >
</ body >
</ html >