Ejemplo n.º 1
0
//Session::initSession();
if (Auth::checkAuth()) {
        Session::refreshSession();
}

global $conf;
global $applications;

// look for actions
if ( $_POST['DELETE_ARecord'] ) {
  //Delete an ARecord
  $dn = LDAP_functions::get_domain_attr_dn($_GET['domain'], $_POST['RDN']);
   LDAP_functions::modify_attribute($_POST['ARecord'], $dn, 'del', 'ARecord');
}
if ( $_POST['SAVE_ARecord'] ) {
    $dn = LDAP_functions::get_domain_attr_dn($_GET['domain'], $_POST['RDN']);
    if ( $dn ) {
      //Object exists in LDAP, only an attribute has to be edited
      LDAP_functions::modify_attribute($_POST['ARecord'], $dn, 'add', 'ARecord');
    } else {
      // Need to create an complete object a la ldap_add
      $domain_dn = LDAP_functions::get_domain_dn($_GET['domain']);
      LDAP_functions::add_rdn_arecord($_GET['domain'], $domain_dn, $_POST['RDN'],$_POST['ARecord'] );
    }
}
?>
<span class="menuheader">A Records of Domain: <?php 
echo $_GET['domain'];
?>
</span>
Ejemplo n.º 2
0
//Session::initSession();
if (Auth::checkAuth()) {
        Session::refreshSession();
}

if ( $conf['debug'] == 1 ) {
  print "UserID:".$_SESSION['__auth']['userID']."<BR>";
  print "APP_BASE: ".APP_BASE."<BR>";
  print "FRAMEWORK_BASE: ".FRAMEWORK_BASE."<BR>";
}

global $conf;
global $applications;

// Get DN for Domaininformation (Save, Add and Delete below)
$dn = LDAP_functions::get_domain_attr_dn($_GET['domain'], '@'); 

// Look for Additional $_POST Parameters

// Save SOA Record
if ( $_POST['SAVE_SOA'] ) {
  // First look for the Serial and try to increment them
  $New_Serial = DNSMGR::increase_serial($_POST['SERIAL']);
  
  // Put all SOA Fields in one String:
  $soa = $_POST['MNAME']." ".
  	 $_POST['RNAME']." ".
	 $New_Serial." ".
	 $_POST['REFRESH']." ".
	 $_POST['RETRY']." ".
	 $_POST['EXPIRE']." ".