0
0

Moved library files.

This commit is contained in:
Bryan Pedini
2019-03-18 10:34:17 +01:00
parent a37b863eb7
commit 81134c90e6
4 changed files with 18 additions and 2 deletions

16
lib/LICENSE Normal file
View File

@@ -0,0 +1,16 @@
Copyright © 2019 - Bryan Pedini
Every file within this folder and it's subfolders is provided
with the website for the correct work of the website itself,
is provided AS IS, comes with NO WARRANTY of scope or
working purposes, and is proprietary software.
Such this code may not be copied without explicit permission from
myself only, this code may not be modified within the website,
you may not copy, edit, share, clone or do anything else but
use the code as is without explicit permission to do so.
Such permissions can be requested at copyright@bryanpedini.it
No permissions to do anything against this license is given
without an explicit and valid motivation to do so, so please
don't email me asking to do so or so without providing why.

26
lib/php/insert.php Normal file
View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>BJPHoster URL Shortener | Control Panel</title>
</head>
<body>
<button onclick="logout()">Logout</button>
<div id="urllist">
<?php
if ( ! $row ) {
echo ( "You have not created any URL yet.<br>" );
}
else {
do {
echo ( "\t\t\t" . '<div>' . $row [ 'ID' ] . " | " . $row [ 'URL' ] . "</div>\n" );
} while ( $row = $result->fetch_assoc ( ) );
}
?>
</div>
<input type="text" id="form-url" placeholder="URL:">
<button onclick="urlinsert()">Insert new URL</button><br>
<div id="responsetext"></div>
<script src="js/insertnew.js"></script>
<script>var script_name = "<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>";</script>
</body>
</html>

15
lib/php/login.php Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>BJPHoster URL Shortener | Login</title>
</head>
<body>
<input type="text" id="form-username"><br>
<input type="password" id="form-password"><br>
<button onclick="login()">Login</button><br>
<div id="responsetext"></div>
<script src="js/sha512.min.js"></script>
<script src="js/login.js"></script>
<script>var script_name = "<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>";</script>
</body>
</html>