process_form.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. <?php
  2. if ( ! isset( $dns_db ) ) {
  3. $dns_db = $default->dns_db->Load(); 
  4. }
  5. $temp_obj               = new DnsDomain;
  6. $temp_obj->name         = $new_domain;
  7. $temp_obj->contact      = 'hostmaser.' . $new_domain ;
  8. $temp_obj->serial       = '1';
  9. $temp_obj->refresh      = '172800';   /* 2 Days */
  10. $temp_obj->retry        = '3600';     /* Every Hour */
  11. $temp_obj->expire       = '1728000';  /* Exipre every 20 days */
  12. $temp_obj->min_ttl      = '43200';    /* Minimum 12 Hours */
  13. $ret_vals = $dns_db->Add( $temp_obj );
  14. if( $ret_vals[ 0 ] == true ) {
  15.    $action_success = 'Domain sucessfully added.';
  16. } else {
  17.    $action_success = 'ERROR in adding domain check, for existent domain with that name.';
  18. }
  19. include( './templates/main.inc' );
  20. ?>