fixes to surpress errors and avoid IP bans

This commit is contained in:
2015-12-07 15:32:25 +01:00
parent 6d342f3941
commit 4adfdb3339
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ require valid-user
Allow from all Allow from all
</FilesMatch> </FilesMatch>
<FilesMatch "\.(css|js|php|html)$"> <FilesMatch "\.(css|js|php|html|htm|var)$">
Order Allow,Deny Order Allow,Deny
Allow from all Allow from all
</FilesMatch> </FilesMatch>

View File

@@ -17,8 +17,8 @@
<?php <?php
// Reads variables of HTML form in index.php // Reads variables of HTML form in index.php
$ACTION = $_POST['action']; $ACTION = $_POST['action'];
$USER = $_POST['user']; $USER = isset($_POST['user']) ? $_POST['user'] : ''; // surpress empty variable errors
$PASS = $_POST['pass']; $PASS = isset($_POST['pass']) ? $_POST['pass'] : '';
$SURE = $_POST['sure']; $SURE = $_POST['sure'];
// Sanitize variables // Sanitize variables