tbrehm
2007-07-30 18dc9971fa3c8d111a547fac0d372679431a7762
Rename of old dns module
2 files modified
37 files renamed
34 ■■■■ changed files
interface/lib/classes/tform_actions.inc.php 16 ●●●●● patch | view | raw | blame | history
interface/web/dns_old/form/rr.tform.php patch | view | raw | blame | history
interface/web/dns_old/form/soa.tform.php patch | view | raw | blame | history
interface/web/dns_old/lib/admin.conf.php patch | view | raw | blame | history
interface/web/dns_old/lib/lang/de.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/de_rr.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/de_rr_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/de_soa.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/de_soa_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/en.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/en_rr.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/en_rr_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/en_soa.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/en_soa_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/fr.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/fr_rr.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/fr_rr_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/fr_soa.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/fr_soa_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/se.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/se_rr.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/se_rr_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/se_soa.lng patch | view | raw | blame | history
interface/web/dns_old/lib/lang/se_soa_list.lng patch | view | raw | blame | history
interface/web/dns_old/lib/module.conf.php patch | view | raw | blame | history
interface/web/dns_old/list/rr.list.php patch | view | raw | blame | history
interface/web/dns_old/list/soa.list.php patch | view | raw | blame | history
interface/web/dns_old/rr_del.php patch | view | raw | blame | history
interface/web/dns_old/rr_edit.php patch | view | raw | blame | history
interface/web/dns_old/rr_list.php patch | view | raw | blame | history
interface/web/dns_old/soa_del.php patch | view | raw | blame | history
interface/web/dns_old/soa_edit.php patch | view | raw | blame | history
interface/web/dns_old/soa_list.php patch | view | raw | blame | history
interface/web/dns_old/templates/rr_edit.htm patch | view | raw | blame | history
interface/web/dns_old/templates/rr_list.htm patch | view | raw | blame | history
interface/web/dns_old/templates/soa_edit.htm patch | view | raw | blame | history
interface/web/dns_old/templates/soa_edit_rr.htm patch | view | raw | blame | history
interface/web/dns_old/templates/soa_list.htm patch | view | raw | blame | history
interface/web/sites/web_domain_edit.php 18 ●●●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -276,16 +276,16 @@
                                if($app->tform->checkPerm($this->id,'d') == false) $app->error($app->lng('error_no_delete_permission'));
                        }
                        $record_old = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id);
                        //$this->dataRecord = $app->db->queryOneRecord("SELECT * FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id);
                        $this->dataRecord = $app->tform->getDataRecord($this->id);
                        // Saving record to datalog when db_history enabled
                        if($app->tform->formDef["db_history"] == 'yes') {
                            $old_data_record = $app->tform->getDataRecord($this->id);
                            $app->tform->datalogSave('DELETE',$this->id,$old_data_record,array());
                            unset($old_data_record);
                            //$old_data_record = $app->tform->getDataRecord($this->id);
                            $app->tform->datalogSave('DELETE',$this->id,$this->dataRecord,array());
                        }
                        $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id);
                        $app->db->query("DELETE FROM ".$liste["table"]." WHERE ".$liste["table_idx"]." = ".$this->id." LIMIT 0,1");
                        
                        // loading plugins
                        $next_tab = $app->tform->getCurrentTab();
@@ -296,6 +296,8 @@
                        foreach($this->plugins as $plugin) {
                                $plugin->onDelete();
                        }
                        $this->onAfterDelete();
                }
                        //header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
@@ -312,6 +314,10 @@
        }
        
        function onAfterDelete() {
            global $app, $conf;
        }
        /**
        * Function to print the form content
        */
interface/web/dns_old/form/rr.tform.php
interface/web/dns_old/form/soa.tform.php
interface/web/dns_old/lib/admin.conf.php
interface/web/dns_old/lib/lang/de.lng
interface/web/dns_old/lib/lang/de_rr.lng
interface/web/dns_old/lib/lang/de_rr_list.lng
interface/web/dns_old/lib/lang/de_soa.lng
interface/web/dns_old/lib/lang/de_soa_list.lng
interface/web/dns_old/lib/lang/en.lng
interface/web/dns_old/lib/lang/en_rr.lng
interface/web/dns_old/lib/lang/en_rr_list.lng
interface/web/dns_old/lib/lang/en_soa.lng
interface/web/dns_old/lib/lang/en_soa_list.lng
interface/web/dns_old/lib/lang/fr.lng
interface/web/dns_old/lib/lang/fr_rr.lng
interface/web/dns_old/lib/lang/fr_rr_list.lng
interface/web/dns_old/lib/lang/fr_soa.lng
interface/web/dns_old/lib/lang/fr_soa_list.lng
interface/web/dns_old/lib/lang/se.lng
interface/web/dns_old/lib/lang/se_rr.lng
interface/web/dns_old/lib/lang/se_rr_list.lng
interface/web/dns_old/lib/lang/se_soa.lng
interface/web/dns_old/lib/lang/se_soa_list.lng
interface/web/dns_old/lib/module.conf.php
interface/web/dns_old/list/rr.list.php
interface/web/dns_old/list/soa.list.php
interface/web/dns_old/rr_del.php
interface/web/dns_old/rr_edit.php
interface/web/dns_old/rr_list.php
interface/web/dns_old/soa_del.php
interface/web/dns_old/soa_edit.php
interface/web/dns_old/soa_list.php
interface/web/dns_old/templates/rr_edit.htm
interface/web/dns_old/templates/rr_list.htm
interface/web/dns_old/templates/soa_edit.htm
interface/web/dns_old/templates/soa_edit_rr.htm
interface/web/dns_old/templates/soa_list.htm
interface/web/sites/web_domain_edit.php
@@ -250,6 +250,24 @@
        
    }
    
    function onAfterDelete() {
        global $app, $conf;
        // Delete the sub and alias domains
        $child_domains = $app->db->queryAllRecords("SELECT * FROM web_domain WHERE parent_domain_id = ".$this->id);
        foreach($child_domains as $d) {
            // Saving record to datalog when db_history enabled
            if($app->tform->formDef["db_history"] == 'yes') {
                $app->tform->datalogSave('DELETE',$d["domain_id"],$d,array());
            }
            $app->db->query("DELETE FROM web_domain WHERE domain_id = ".$d["domain_id"]." LIMIT 0,1");
        }
        unset($child_domains);
        unset($d);
    }
}
$page = new page_action;