Example #1
0
    exit;
}
if (isset($_GET["hostname"])) {
    hostname();
    exit;
}
if (isset($_GET["ChangeHostName"])) {
    ChangeHostName();
    exit;
}
if (isset($_GET["AddDNSServer"])) {
    AddDNSServer();
    exit;
}
if (isset($_GET["DeleteDNS"])) {
    DeleteDNS();
    exit;
}
if (isset($_GET["DNSServers"])) {
    DNS_SERVERS_POPUP();
}
if (isset($_GET["DNSServers-list"])) {
    DNS_SERVERS_POPUP_LIST();
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
Example #2
0
if(isset($_POST["CheckIpV4ToIp26"])){CheckIpV4ToIp26();exit;}
if(isset($_GET["virtuals-list"])){virtuals_list();exit;}
if(isset($_GET["virt-ipaddr"])){virtuals_add();exit;}
if(isset($_POST["virt-ipv6"])){virtuals_addv6();exit;}
if(isset($_GET["virt-del"])){virtuals_del();exit;}

if(isset($_GET["script"])){switch_script();exit;}

if(isset($_GET["netconfig"])){netconfig_popup();exit;}

if(isset($_GET["change-hostname-js"])){ChangeHostName_js();exit;}
if(isset($_GET["hostname"])){hostname();exit;}
if(isset($_GET["ChangeHostName"])){ChangeHostName();exit;}

if(isset($_GET["AddDNSServer"])){AddDNSServer();exit;}
if(isset($_GET["DeleteDNS"])){DeleteDNS();exit;}
if(isset($_GET["DNSServers"])){DNS_SERVERS_POPUP();}
if(isset($_GET["DNSServers-list"])){DNS_SERVERS_POPUP_LIST();}



if(isset($_GET["js"])){js();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["popup2"])){popup2();exit;}
if(isset($_GET["popup-tabs"])){tabs();exit;}
if(isset($_GET["popup-hostname"])){tabs_hostname();exit;}

if(isset($_GET["virtual-popup-add"])){virtual_add_form();exit;}
if(isset($_GET["virtual-popup-addv6"])){virtual_add_formv6();exit;}

Example #3
0
 // ---------------- end check ---------------
 if ($md5str != $ds->GetMD5($ip, $baseindex)) {
     myError($w, $p, my_("Another user modified the information before you saved - restart"));
 }
 $ds->DbfTransactionStart();
 // additional information will arrive as assoc array called template
 // this is serialized into the info blob field of the database
 // need to start class and verify data before inserting
 if ($action == "delete") {
     // loop through array returned from modifyipmulform.php
     foreach ((array) $ip as $iptemp) {
         // cast to array if not array already
         // remove all attached files
         RemoveAllFiles($ds, $baseindex, $iptemp);
         // are there auto A records to delete?
         $formerror .= DeleteDNS($ds, $w, $cust, $iptemp);
         $ds->DeleteIP($iptemp, $baseindex);
     }
     $ds->DbfTransactionEnd();
     insert($w, text(my_("IP address records deleted")));
 } else {
     $err = FALSE;
     $email = "";
     // if a specific network template exists, use that, else use generic template
     $template = new IPplanIPTemplate("iptemplate", $cust, !TestBaseAddr($ip, $maxcnt));
     // info field passed to ModifyIP must be "" if record is
     // to be deleted from ipaddradd table automatically to
     // conserve space - NB!
     $info = "";
     if ($template->is_error() == FALSE) {
         // PROBLEM HERE: if template create suddenly returns error (template file