Moved headers to the top to fix #29

This commit is contained in:
Maurice Meyer 2017-07-20 16:33:20 +02:00
parent b1a06a8684
commit f238b7edaa
10 changed files with 49 additions and 49 deletions

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Domains</title> <title>PDNS Manager - Domains</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Domains</title> <title>PDNS Manager - Domains</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Domains</title> <title>PDNS Manager - Domains</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Remotes</title> <title>PDNS Manager - Remotes</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Users</title> <title>PDNS Manager - Users</title>

View file

@ -1,3 +1,9 @@
<?php
require_once 'lib/headers.php';
if(file_exists("config/config-user.php")) {
Header("Location: index.php");
}
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,12 +17,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
if(file_exists("config/config-user.php")) {
Header("Location: index.php");
}
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Domains</title> <title>PDNS Manager - Domains</title>

View file

@ -1,3 +1,9 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
session_destroy();
setcookie("authSecret", "", 1, "/", "", false, true);
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,12 +17,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
session_destroy();
setcookie("authSecret", "", 1, "/", "", false, true);
?>
<html> <html>
<head> <head>
<title>PDNS Manager</title> <title>PDNS Manager</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Password</title> <title>PDNS Manager - Password</title>

View file

@ -1,3 +1,12 @@
<?php
require_once 'lib/headers.php';
require_once 'config/config-default.php';
require_once 'lib/database.php';
require_once 'lib/checkversion.php';
if(checkVersion($db)) {
Header("Location: index.php");
}
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,15 +20,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'config/config-default.php';
require_once 'lib/database.php';
require_once 'lib/checkversion.php';
if(checkVersion($db)) {
Header("Location: index.php");
}
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Upgrade</title> <title>PDNS Manager - Upgrade</title>

View file

@ -1,3 +1,7 @@
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<!DOCTYPE html> <!DOCTYPE html>
<!-- <!--
Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>. Copyright 2016 Lukas Metzger <developer@lukas-metzger.com>.
@ -11,10 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<?php
require_once 'lib/headers.php';
require_once 'lib/session.php';
?>
<html> <html>
<head> <head>
<title>PDNS Manager - Users</title> <title>PDNS Manager - Users</title>