404 page #152
@@ -1,7 +1,7 @@
|
|||||||
Options +FollowSymLinks
|
Options +FollowSymLinks
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
ErrorDocument 404 /error404.jpg
|
ErrorDocument 404 /error/404.php
|
||||||
|
|
||||||
RewriteCond %{SCRIPT_FILENAME} !-d
|
RewriteCond %{SCRIPT_FILENAME} !-d
|
||||||
RewriteCond %{SCRIPT_FILENAME} !-f
|
RewriteCond %{SCRIPT_FILENAME} !-f
|
||||||
|
|||||||
9
website/public/error/404.php
Normal file
9
website/public/error/404.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
require_once "../../views/messagepage.php";
|
||||||
|
|
||||||
|
messagePage("
|
||||||
|
<div class='error-page'>
|
||||||
|
<h1>404</h1>
|
||||||
|
<h4>Wrong link...</h4><br />
|
||||||
|
<img height='486' width='204' src='../img/zelda.png'>
|
||||||
|
</div>");
|
||||||
BIN
website/public/img/zelda.png
Normal file
BIN
website/public/img/zelda.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 147 KiB |
@@ -1,6 +1,9 @@
|
|||||||
|
body {
|
||||||
|
background-color: #FBC02D;
|
||||||
|
}
|
||||||
|
|
||||||
.password-change {
|
.password-change {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #FBC02D;
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -12,6 +15,14 @@
|
|||||||
margin: 30px auto auto;
|
margin: 30px auto auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.password-change img {
|
.top-logo img {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.error-page {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-page img {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
@@ -5,14 +5,14 @@ function messagePage(string $content) {
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
@import url(styles/main.css);
|
@import url(../styles/main.css);
|
||||||
@import url(styles/settings.css);
|
@import url(../styles/settings.css);
|
||||||
@import url(styles/resetpassword.css);
|
@import url(../styles/message-page.css);
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class='password-change'>
|
<div class='password-change'>
|
||||||
<div class='top-logo'><a href='login.php'><img src='img/top-logo.png' alt='MyHyvesbook+'/></a></div>
|
<div class='top-logo'><a href='../login.php'><img src='../img/top-logo.png' alt='MyHyvesbook+'/></a></div>
|
||||||
<div class='item-box platform'>$content</div>
|
<div class='item-box platform'>$content</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user