<?php include "webpanel/" . $_GET['grupo'] . "/include_permiso.php"; $rs = apache_domainread($_GET['dominio']); ?> <form method="POST" action="webpanel/<?php echo $_GET['grupo'] . "/" . $_GET['seccion']; ?> /save.php?id=<?php echo $_GET['id']; ?> "> <input type="hidden" name="frmDominio" value="<?php echo $_GET['dominio']; ?> "> <input type="hidden" name="frmCFG_ESTADO" value="<?php echo $rs["CFG_ESTADO"]; ?> "> <input type="hidden" name="frmCFG_DOCUMENTROOT" value="<?php echo $rs["CFG_DOCUMENTROOT"]; ?> "> <font size="2" face="Arial, Helvetica, sans-serif">Modificar Dominio</font><br> <br> <table width="75%" border="1" bordercolor="#333333" cellspacing="0" cellpadding="0"> <tr> <td valign="top" align="center"> <table width="100%" border="0" cellspacing="0" cellpadding="3" height="121" align="center" bordercolor="#000000"> <tr align="center" bgcolor="#CC3300">
</table> </div> <br> <table width="80%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#000000"> <tr align="center"> <td bgcolor="#CC3300"><b><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Dominio</font></b></td> <td width="6%" bgcolor="#CC3300"><b><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Estado</font></b></td> <td width="28%" bgcolor="#CC3300"><b><font color="#000000" size="2" face="Arial, Helvetica, sans-serif">Acciones</font></b></td> </tr> <?php $bool_celdcolor = false; $x = 1; for ($i = $from; $x <= $numpage_regpage and $x <= $total_registros - $from; $i++) { $rs = $array_listado[$i]; if ($rs) { $variables = apache_domainread($rs); $estado = $variables["CFG_ESTADO"]; ?> <tr align="left" <?php if ($bool_celdcolor) { echo "class=fondocelda1"; } else { echo "class=fondocelda2"; } ?> > <td height="2" align="left"><font face="Arial, Helvetica, sans-serif" size="2"> <a href="http://<?php echo $rs; ?> " target="_blank"> <?php
function apache_domainonoff($dominio, $estado, $subdominio) { $variables = apache_domainread($dominio); if ($estado == 1) { $variables["APACHE_DOCUMENTROOT"] = $variables["CFG_DOCUMENTROOT"]; $variables["CFG_ESTADO"] = 1; } else { $variables["APACHE_DOCUMENTROOT"] = _CFG_APACHE_DESACTIVADO; $variables["CFG_ESTADO"] = 0; } apache_generartemplate($dominio, $variables, $subdominio); }