*/ //require_once('config.inc.php'); //include('config.inc.php'); include 'proxy.inc.php'; include 'header.inc.php'; include 'connection.php'; $id = $_SESSION["Id"]; if (isset($_GET['submitBtn']) && isset($_GET['domain']) && isset($_GET['masterip'])) { $domain = $_GET['domain']; $masterip = $_GET['masterip']; mysqli_query($Conn, "INSERT INTO dnsentries (`domain`,`masterip`,`owner_id`)\n VALUES('{$domain}','{$masterip}','{$id}')") or die($dberror3); echo "DNS entry has been added!"; // mysqli_query( $Conn, "INSERT INTO slaveslist (`Owner_id`) // VALUES('$id')") or die($dberror3); // echo "Owner id updated"; $data = simple_get('domains.slaves.add', $domain, $masterip); if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { echo '<h1>'; echo htmlentities($domain); echo '</h1>'; echo '<div class="well">'; echo htmlentities($data->action); echo '</div>'; } } else { ?> <form class="form-horizontal"> <fieldset>
include 'proxy.inc.php'; include 'header.inc.php'; include 'connection.php'; //include ('users_1.php'); //session_start(); // this NEEDS TO BE AT THE TOP of the page before any output etc //echo $id; ?> <div class="jumbotron"> <p>Welcome to the</p> <h1>SA NREN DNS Secondary Anycast Service</h1> <p>This software provides a client for the Esgob webservice and is not afiliated with Esgob Ltd.</p> </div> <?php //echo function_exists('curl_version')?'Yes':'No'; $data = simple_get('accounts.get'); //echo $data; if (is_object($data)) { echo '<div class="well">Account '; echo "SA NREN"; //echo(htmlentities($data->name)); echo ' ('; echo htmlentities($data->id); echo ') has '; echo htmlentities($data->credits); echo ' credits.'; echo '</div>'; echo '</br>'; } else { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response. Please try again.</div>'; }
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/> */ //require_once('config.inc.php'); require_once 'proxy.inc.php'; include 'header.inc.php'; $domain = ''; if (isset($_GET['domain'])) { $domain = $_GET['domain']; } if ($domain != '') { $data = simple_get('domains.tools.soacheck', $domain); } if ($domain == '') { echo '<div class="alert alert-danger" role="alert">No domain name set</div>'; } else { if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { echo '<h1>'; echo htmlentities($data->domain); echo '</h1>'; echo '<div class="well">Information was '; if ($data->cached) { echo 'cached'; echo ' for '; echo htmlentities($data->cachefor);
along with this program. If not, see <http://www.gnu.org/licenses/> */ //require_once('config.inc.php'); require_once 'proxy.inc.php'; include 'connection.php'; include 'header.inc.php'; $domain = ''; $masterip = ''; if (isset($_GET['domain'])) { $domain = $_GET['domain']; } if (isset($_GET['masterip'])) { $masterip = $_GET['masterip']; } if (isset($_GET['submitBtn']) && $domain != '' && $masterip != '') { $data = simple_get('domains.slaves.updatemasterip', $domain, $masterip); mysqli_query($Conn, "UPDATE `dnsentries` SET `masterip` = '{$masterip}' WHERE `dnsentries`.`domain` = '{$domain}'"); if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { echo '<h1>'; echo htmlentities($domain); echo '</h1>'; echo '<div class="well">'; echo htmlentities($data->action); echo '</div>'; } } else { ?> <form class="form-horizontal"> <fieldset>
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/> */ //require_once('config.inc.php'); require_once 'proxy.inc.php'; include 'header.inc.php'; $domain = ''; if (isset($_GET['domain'])) { $domain = $_GET['domain']; } if ($domain != '') { $data = simple_get('domains.slaves.forcetransfer', $domain); } if ($domain == '') { echo '<div class="alert alert-danger" role="alert">No domain name set</div>'; } else { if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { echo '<h1>'; echo htmlentities($domain); echo '</h1>'; echo '<div class="well">'; echo htmlentities($data->action); echo '</div>'; } }
$domain = ''; $force = 0; if (isset($_POST['submit'])) { $domain = $_POST['inputDomain']; } if (isset($_GET['domain'])) { $domain = $_GET['domain']; } if (isset($_GET['force'])) { $force = intval($_GET['force']); } if ($domain == '') { echo '<div class="alert alert-danger" role="alert">No domain name set</div>'; } else { if ($force) { $data = simple_get('domains.slaves.delete', $domain); if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { echo '<div class="well">'; mysqli_query($Conn, "DELETE FROM `dnsentries` WHERE `dnsentries`.`domain` = '{$domain}'"); echo htmlentities($data->action); //domain deleted //header ("Location: del_slave.php"); //Refresh page here echo '</div>'; } } else { ?>
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/> */ //require_once('config.inc.php'); require_once 'proxy.inc.php'; include 'connection.php'; include 'header.inc.php'; //session_start(); $id = $_SESSION["Id"]; //echo "You are logged as " . $_SESSION["Name"] . ".<br>"; $data = simple_get('domains.slaves.list'); if (!is_object($data)) { echo '<div class="alert alert-danger" role="alert">Webservice call did not return response</div>'; } else { if (!$data->domains || count($data->domains) < 1) { echo '<div class="alert alert-warning" role="alert">No slave zones found</div>'; } else { //echo('Please see slavelists table'); echo '<table class="table table-striped">'; echo '<thead>'; echo '<tr>'; echo '<th>Domain</th>'; echo '<th>Type</th>'; echo '<th>Master IP</th>'; echo '<th>Action</th>'; echo '</tr>';