process_form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
- <?php
- if ( ! isset( $dns_db ) ) {
- $dns_db = $default->dns_db->Load();
- }
- $temp_obj = new DnsDomain;
- $temp_obj->name = $new_domain;
- $temp_obj->contact = 'hostmaser.' . $new_domain ;
- $temp_obj->serial = '1';
- $temp_obj->refresh = '172800'; /* 2 Days */
- $temp_obj->retry = '3600'; /* Every Hour */
- $temp_obj->expire = '1728000'; /* Exipre every 20 days */
- $temp_obj->min_ttl = '43200'; /* Minimum 12 Hours */
- $ret_vals = $dns_db->Add( $temp_obj );
- if( $ret_vals[ 0 ] == true ) {
- $action_success = 'Domain sucessfully added.';
- } else {
- $action_success = 'ERROR in adding domain check, for existent domain with that name.';
- }
- include( './templates/main.inc' );
- ?>