Ejemplo n.º 1
0
      <div id="addbutton"><input type="submit" value="Add" /></div>
    </div>
  </form>
  <hr />
  <div id="content">
    <div id="header">
      <div id="host">Host</div>
      <div id="type">Type</div>
      <div id="prio">Priority</div>
      <div id="dest">Destination</div>
      <div id="dele">Delete</div>
    </div>
    <form action="panel.php?action=mx&do=edit" method="post">
      <div id="entries">
<?php 
    $records = $zone->GetRecords('MX');
    foreach ($records as $key => $entry) {
        ?>
        <div id="entry">
          <div id="host"><span><?php 
        if ($entry[0] == '@') {
            echo $domain['name'];
        } else {
            echo $entry[0] . '.' . $domain['name'];
        }
        ?>
</span></div>
          <div id="type">MX</div>
          <div id="prio"><input type="text" name="prio_<?php 
        echo $key;
        ?>
Ejemplo n.º 2
0
if (!isset($domain['id'])) {
    exit;
}
require_once 'zoneparser.php';
require_once 'config.php';
$zone = new ZoneParser($config['zones_path'] . '/' . $domain['name'] . '.zone');
if (isset($_POST['ttl']) && isset($_POST['ns']) && isset($_POST['email']) && isset($_POST['refresh']) && isset($_POST['retry']) && isset($_POST['expiry']) && isset($_POST['min'])) {
    $zone->SetTTL($_POST['ttl']);
    $zone->SetSOA($_POST['ns'], $_POST['email'], $_POST['refresh'], $_POST['retry'], $_POST['expiry'], $_POST['min']);
    $zone->ApplyChanges();
    ?>
  <div id="confirmation_message">SOA register changed successfuly</div>
<?php 
}
$ttl = $zone->GetRecords('TTL');
$soa = $zone->GetRecords('SOA');
?>
<div id="soa">
  <div id="header">
    <h1>Domain SOA values</h1>
    <p>Here you can change the SOA values for your domain. This is the most important register of each domain, allowing to set the main nameserver, root email address and time values for each option.</p>
    <hr />
  </div>
  <div id="content">
    <form name="soa" action="panel.php?action=soa" method="post" onsubmit="return checkSOA();">
      <div id="ttl"><span>Default domain TTL</span><input type="text" name="ttl" value="<?php 
echo $ttl;
?>
" /></div>
      <div id="ns"><span>Default nameserver</span><input type="text" name="ns" value="<?php 
Ejemplo n.º 3
0
        </div>
      </form>
      <hr />
      <div id="header">
        <div id="host"><span>Host</span></div>
        <div id="type"><span>Type</span></div>
        <div id="dest"><span>Destination</span></div>
        <div id="dele"><span>Delete</span></div>
      </div>
      <form action="panel.php?action=reg&t=<?php 
    echo $type;
    ?>
&do=edit" method="post">
        <div id="entries">
<?php 
    $records = $zone->GetRecords($type);
    foreach ($records as $key => $entry) {
        ?>
          <div id="entry">
            <div id="host"><span><?php 
        if ($entry[0] == '@') {
            echo $domain['name'];
        } else {
            echo $entry[0] . '.' . $domain['name'];
        }
        ?>
</span></div>
            <div id="type"><?php 
        echo $type;
        ?>
</div>