You've already forked OpenShorte.old
Website refactoring
Moved PHP files to "lib" folder Moved Javascript files to "lib" folder Moved login page inline CSS to "login.css" Moved database functions to class "Database" Removed the html template, compensated with a direct HTML code inside PHP "else" statement
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
header ( "Location: " . substr ( $_SERVER [ 'SCRIPT_NAME' ], 0, -10 ) . "/insert" );
|
||||
exit;
|
||||
}
|
||||
if ( isset ( $session [ 1 ] ) && $session [ 1 ] == "forgot" ) {
|
||||
include ( $config [ 'installation_path ' ] . '/lib/php/forgotpassword.php' );
|
||||
if ( isset ( $request [ 1 ] ) && $request [ 1 ] == "forgot" ) {
|
||||
include ( $config [ 'installation_path' ] . '/lib/php/forgot.php' );
|
||||
exit;
|
||||
}
|
||||
if ( isset ( $_POST [ 'username' ] ) && isset ( $_POST [ 'password' ] ) ) {
|
||||
@@ -49,7 +49,7 @@
|
||||
<title>BJPHoster URL Shortener | Login</title>
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>/lib/css/login.css" rel="stylesheet">
|
||||
<link href="favicon.ico" rel="icon" type="image/x-icon">
|
||||
<link href="<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>/favicon.ico" rel="icon" type="image/x-icon">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container login-container">
|
||||
@@ -74,8 +74,8 @@
|
||||
</div>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||
<script src="js/sha512.min.js"></script>
|
||||
<script src="js/login.js"></script>
|
||||
<script src="<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>/lib/js/sha512.min.js"></script>
|
||||
<script src="<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>/lib/js/login.js"></script>
|
||||
<script>var script_name = "<?=substr($_SERVER['SCRIPT_NAME'],0,-10)?>";</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user