[feladat @ 94]
Second half of previous commit. :)
--- a/add_record.php Tue Dec 25 14:37:42 2007 +0000
+++ b/add_record.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
$xsid = (isset($_GET['id'])) ? $_GET['id'] : $_POST['zoneid'];
--- a/add_supermaster.php Tue Dec 25 14:37:42 2007 +0000
+++ b/add_supermaster.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
--- a/add_zone_master.php Tue Dec 25 14:37:42 2007 +0000
+++ b/add_zone_master.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
--- a/add_zone_slave.php Tue Dec 25 14:37:42 2007 +0000
+++ b/add_zone_slave.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
--- a/change_password.php Tue Dec 25 14:37:42 2007 +0000
+++ b/change_password.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
--- a/credits.php Tue Dec 25 14:37:42 2007 +0000
+++ b/credits.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
include_once("inc/config.inc.php");
include_once("inc/header.inc.php");
?>
--- a/delete_domain.php Tue Dec 25 14:37:42 2007 +0000
+++ b/delete_domain.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if (!level(5))
--- a/delete_record.php Tue Dec 25 14:37:42 2007 +0000
+++ b/delete_record.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if ($_GET["id"]) {
--- a/delete_supermaster.php Tue Dec 25 14:37:42 2007 +0000
+++ b/delete_supermaster.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if (!level(5))
--- a/delete_user.php Tue Dec 25 14:37:42 2007 +0000
+++ b/delete_user.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
$id = ($_POST["id"]) ? $_POST["id"] : $_GET["id"];
--- a/edit.php Tue Dec 25 14:37:42 2007 +0000
+++ b/edit.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
// Assigning records to user: Check for records owned by user
--- a/edit_record.php Tue Dec 25 14:37:42 2007 +0000
+++ b/edit_record.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if (isset($_GET["delid"])) {
--- a/edit_user.php Tue Dec 25 14:37:42 2007 +0000
+++ b/edit_user.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if($_POST["commit"])
--- a/inc/auth.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/auth.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
session_start();
if (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] == "logout")
--- a/inc/config-me.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/config-me.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
/* Edit all fields below here to your information */
/* MySQL Configuration */
--- a/inc/database.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/database.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("MDB2.php");
function dbError($msg)
--- a/inc/dns.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/dns.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
/*
* Validates an IPv4 IP.
* returns true if valid.
--- a/inc/error.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/error.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
// Added next line to enable i18n on following definitions. Not sure
// if this is the best (or at least a proper) location for this. /RZ.
require_once("inc/i18n.inc.php");
--- a/inc/footer.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/footer.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
global $db;
if(is_object($db))
{
--- a/inc/header.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/header.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
global $STYLE;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
--- a/inc/i18n.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/i18n.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
include_once("inc/config.inc.php");
$language = $LANG;
--- a/inc/record.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/record.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,18 +1,23 @@
<?
-
-// Filename: record.inc.php
-// Startdate: 26-10-2002
-// This file is ought to edit the records in the database.
-// Records are domains aswell, they also belong here.
-// All database functions are associative.
-// use nextID first to get a new id. Then insert it into the database.
-// do not rely on auto_increment (see above).
-// use dns.inc.php for validation functions.
-//
-// $Id: record.inc.php,v 1.21 2003/05/10 20:21:01 azurazu Exp $
-//
-
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
function update_soa_serial($domain_id)
{
--- a/inc/toolkit.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/toolkit.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
session_start();
/*************
--- a/inc/users.inc.php Tue Dec 25 14:37:42 2007 +0000
+++ b/inc/users.inc.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,25 +1,23 @@
<?
-// +--------------------------------------------------------------------+
-// | PowerAdmin |
-// +--------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PowerAdmin Team |
-// +--------------------------------------------------------------------+
-// | This source file is subject to the license carried by the overal |
-// | program PowerAdmin as found on http://poweradmin.sf.net |
-// | The PowerAdmin program falls under the QPL License: |
-// | http://www.trolltech.com/developer/licensing/qpl.html |
-// +--------------------------------------------------------------------+
-// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl> |
-// | Sjeemz <sjeemz <AT> sjeemz <DOT> nl> |
-// +--------------------------------------------------------------------+
-
-// Filename: users.inc.php
-// Startdate: 26-10-2002
-// Description: all user modifications etc. are done here
-//
-// $Id: users.inc.php,v 1.8 2003/01/01 22:33:47 azurazu Exp $
-//
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
// Added next line to enable i18n on following definitions. Don't know
// if this is the best (or at least a proper) location for this. /RZ.
--- a/index.php Tue Dec 25 14:37:42 2007 +0000
+++ b/index.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
session_start();
require_once("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
--- a/install.php Tue Dec 25 14:37:42 2007 +0000
+++ b/install.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
+
// addslashes to vars if magic_quotes_gpc is off
function slash_input_data(&$data)
{
--- a/list_supermasters.php Tue Dec 25 14:37:42 2007 +0000
+++ b/list_supermasters.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
include_once("inc/header.inc.php");
--- a/list_zones.php Tue Dec 25 14:37:42 2007 +0000
+++ b/list_zones.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,4 +1,24 @@
<?php
+
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once("inc/toolkit.inc.php");
include_once("inc/header.inc.php");
--- a/search.php Tue Dec 25 14:37:42 2007 +0000
+++ b/search.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/i18n.inc.php");
require_once('inc/toolkit.inc.php');
--- a/style/style.css.php Tue Dec 25 14:37:42 2007 +0000
+++ b/style/style.css.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,25 +1,26 @@
<?php
-// +--------------------------------------------------------------------+
-// | PowerAdmin |
-// +--------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PowerAdmin Team |
-// +--------------------------------------------------------------------+
-// | This source file is subject to the license carried by the overal |
-// | program PowerAdmin as found on http://poweradmin.sf.net |
-// | The PowerAdmin program falls under the QPL License: |
-// | http://www.trolltech.com/developer/licensing/qpl.html |
-// +--------------------------------------------------------------------+
-// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl> |
-// | Sjeemz <sjeemz <AT> sjeemz <DOT> nl> |
-// +--------------------------------------------------------------------+
-//
-// $Id: style.css.php,v 1.4 2003/01/12 20:20:24 azurazu Exp $
-//
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
include_once("../inc/config.inc.php");
$bgcolor = "#FCC229"; //Original style
-//$bgcolor = "#B5C6D2"; //Greenish style
?>
--- a/test_setup.php Tue Dec 25 14:37:42 2007 +0000
+++ b/test_setup.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,27 +1,23 @@
<?php
-// +--------------------------------------------------------------------+
-// | PowerAdmin |
-// +--------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PowerAdmin Team |
-// +--------------------------------------------------------------------+
-// | This source file is subject to the license carried by the overal |
-// | program PowerAdmin as found on http://poweradmin.sf.net |
-// | The PowerAdmin program falls under the QPL License: |
-// | http://www.trolltech.com/developer/licensing/qpl.html |
-// +--------------------------------------------------------------------+
-// | Authors: Roeland Nieuwenhuis <trancer <AT> trancer <DOT> nl> |
-// | Sjeemz <sjeemz <AT> sjeemz <DOT> nl> |
-// +--------------------------------------------------------------------+
-
-// Filename: test_setup.php
-// Description: tests your PowerAdmin install.
-// Adding tables? Increase the total count to (2^numberoftables)-1
-// Substract its binary value and put it in the last failure close.
-// Yes this is binary, why? Because thats cool! Squeeky geeky stuff!
-//
-// $Id: test_setup.php,v 1.4 2003/01/08 00:40:08 azurazu Exp $
-//
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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/>.
+ */
include_once("inc/header.inc.php");
require_once("inc/config.inc.php");
--- a/users.php Tue Dec 25 14:37:42 2007 +0000
+++ b/users.php Tue Dec 25 14:40:03 2007 +0000
@@ -1,5 +1,24 @@
<?php
+/* PowerAdmin, a friendly web-based admin tool for PowerDNS.
+ * See <https://rejo.zenger.nl/poweradmin> for more details.
+ *
+ * Copyright 2007, 2008 Rejo Zenger <rejo@zenger.nl>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * 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("inc/toolkit.inc.php");
if($_POST["submit"]