Theme support, clean up, code formating and improvement
This commit is contained in:
parent
17b76633c0
commit
bdfd878b58
17 changed files with 722 additions and 403 deletions
|
@ -2,7 +2,7 @@
|
|||
<!--
|
||||
The MIT License
|
||||
|
||||
Copyright 2015 mmk.
|
||||
Copyright 2015 mmk2410.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -37,7 +37,8 @@ THE SOFTWARE.
|
|||
<section class="card">
|
||||
<div class="headline">Password Generator</div>
|
||||
<?php
|
||||
if ($_POST['passwd'] == "") {
|
||||
$passwd = filter_input(INPUT_POST, "passwd");
|
||||
if (passwd == "") {
|
||||
?>
|
||||
<form action="./" method="post">
|
||||
<p>New password:<br><br><input type="password" class="itextfield" name="passwd"/></p>
|
||||
|
@ -45,7 +46,7 @@ THE SOFTWARE.
|
|||
</form>
|
||||
<?php
|
||||
} else {
|
||||
echo "<p style='word-wrap: break-word;'>" . password_hash($_POST['passwd'], PASSWORD_DEFAULT) . "</p>";
|
||||
echo "<p style='word-wrap: break-word;'>" . password_hash($passwd, PASSWORD_DEFAULT) . "</p>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!--
|
||||
The MIT License
|
||||
|
||||
Copyright 2015 mmk.
|
||||
Copyright 2015 mmk2410.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -36,8 +36,9 @@ THE SOFTWARE.
|
|||
<div class="main">
|
||||
<?php
|
||||
include '../config.php';
|
||||
$passwd = filter_input(INPUT_POST, "passwd");
|
||||
if ($rcc == "yes") {
|
||||
if ($_POST['passwd'] == "") {
|
||||
if ($passwd == "") {
|
||||
?>
|
||||
<section class="card">
|
||||
<div class="headline">Log In</div>
|
||||
|
@ -51,7 +52,7 @@ THE SOFTWARE.
|
|||
chmod("passwd.txt", 0644);
|
||||
$hash = file_get_contents("passwd.txt");
|
||||
chmod("passwd.txt", 0000);
|
||||
if (password_verify($_POST['passwd'], $hash)) {
|
||||
if (password_verify($passwd, $hash)) {
|
||||
?>
|
||||
<section class="card">
|
||||
<div class="headline">File Upload</div>
|
||||
|
|
|
@ -115,45 +115,45 @@ body{
|
|||
/* BUTTON */
|
||||
|
||||
.button {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #ff4415;
|
||||
line-height: 36px;
|
||||
min-width: 64px;
|
||||
text-align: center;
|
||||
height: 36px;
|
||||
padding: 8px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ff4415;
|
||||
box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
-moz-box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
-webkit-box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
border-radius: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 5px;
|
||||
letter-spacing: 0.4px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
transition-property: box-shadow;
|
||||
transition-delay: 50ms;
|
||||
transition-duration: 125ms;
|
||||
transition-timing-function: ease;
|
||||
-moz-transition-property: box-shadow;
|
||||
-moz-transition-delay: 50ms;
|
||||
-moz-transition-duration: 125ms;
|
||||
-moz-transition-timing-function: ease;
|
||||
-webkit-transition-property: box-shadow;
|
||||
-webkit-transition-delay: 50ms;
|
||||
-webkit-transition-duration: 125ms;
|
||||
-webkit-transition-timing-function: ease;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
background-color: #ff4415;
|
||||
line-height: 36px;
|
||||
min-width: 64px;
|
||||
text-align: center;
|
||||
height: 36px;
|
||||
padding: 8px;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ff4415;
|
||||
box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
-moz-box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
-webkit-box-shadow: 0.4px 1px 1.5px 1px #aaa;
|
||||
border-radius: 2px;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 5px;
|
||||
letter-spacing: 0.4px;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
transition-property: box-shadow;
|
||||
transition-delay: 50ms;
|
||||
transition-duration: 125ms;
|
||||
transition-timing-function: ease;
|
||||
-moz-transition-property: box-shadow;
|
||||
-moz-transition-delay: 50ms;
|
||||
-moz-transition-duration: 125ms;
|
||||
-moz-transition-timing-function: ease;
|
||||
-webkit-transition-property: box-shadow;
|
||||
-webkit-transition-delay: 50ms;
|
||||
-webkit-transition-duration: 125ms;
|
||||
-webkit-transition-timing-function: ease;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.button:hover, .button:hover {
|
||||
box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa;
|
||||
-moz-box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa;
|
||||
-webkit-box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa; }
|
||||
box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa;
|
||||
-moz-box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa;
|
||||
-webkit-box-shadow: 0.5px 1.8px 2.1px 1.4px #aaa; }
|
||||
|
||||
input.button{
|
||||
padding: 0px 8px;
|
||||
|
@ -191,23 +191,23 @@ input.button{
|
|||
form{
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (min-width: 1440px) {
|
||||
|
||||
|
||||
.card{
|
||||
width: 1160px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 720px){
|
||||
|
||||
|
||||
.card{
|
||||
width: 82%;
|
||||
}
|
||||
|
||||
|
||||
.title{
|
||||
left: 25px;
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
<!--
|
||||
The MIT License
|
||||
|
||||
Copyright 2015 mmk.
|
||||
Copyright 2015 mmk2410.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -40,7 +40,7 @@ THE SOFTWARE.
|
|||
if ($_FILES['userfile']['name'] == "") {
|
||||
echo "<p>You have to choose a file!</p>";
|
||||
} else {
|
||||
$blog = $_POST['blog'];
|
||||
$blog = filter_input(INPUT_POST, "blog");
|
||||
$uploaddir = "../..//articles/$blog/";
|
||||
$uploadfile = $uploaddir . basename($_FILES['userfile']['name']);
|
||||
|
||||
|
|
Reference in a new issue