Example #1
0
}
//Crea copia seguridad antes de modificar
xmlconfig_backup(_CFG_XML_DOMINIOS);
$conf = new patConfiguration();
$conf->setConfigDir(_CFG_XML_CONFIG_DIR);
$conf->parseConfigFile(_CFG_XML_DOMINIOS, a);
$datos = $conf->getConfigValue(xmlconfig_buscaid($_GET['id'], _CFG_XML_DOMINIOS));
if ($_POST['borrar'] == "true") {
    if (function_exists("apache_info")) {
        if ($datos['DOMINIO'] != "") {
            apache_domaindel($datos['DOMINIO']);
        }
    }
    if (function_exists("awstats_info")) {
        if ($datos['DOMINIO'] != "") {
            awstats_domaindel($datos['DOMINIO']);
        }
    }
    if (function_exists("bind_info")) {
        if ($datos['DOMINIO'] != "") {
            bind_domaindel($datos['DOMINIO']);
        }
    }
    if (function_exists("mysql_info")) {
        if ($datos['DOMINIO'] != "") {
            db_mysql_dbasedelall($datos['DOMINIO']);
        }
    }
    if (function_exists("logrotate_info")) {
        if ($datos['DOMINIO'] != "") {
            logrotate_domaindel($datos['DOMINIO']);
Example #2
0
<?php

include "../../../config/main_config.php";
require _CFG_INTERFACE_LIBRERIA;
include "../include_permiso.php";
require_once _CFG_INTERFACE_DIRMODULES . "mod_awstats/include_funciones.php";
awstats_domaindel($_GET['dominio']);
header("Location: ../../../index.php?grupo=servicios&seccion=awstats&pag=index\n\n");
exit;