Skip to content

Commit a8abdae

Browse files
authored
Merge pull request #5 from XHiddenProjects/main
XML added
2 parents 094023c + 3c2e0ed commit a8abdae

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<Files "credentals.xml">
2+
Order Allow,Deny
3+
Deny from all
4+
</Files>

auth/credentials.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0"?>
2+
<psw>{Your password}</psw>

cms-t-editor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function backurl($url, $seprator){
123123

124124
$loginError = "";
125125
if(isset($_POST['submitPassword'])){
126-
if(md5($_POST['password']) == '5f4dcc3b5aa765d61d8327deb882cf99'){
126+
if(md5($_POST['password']) == md5(simplexml_load_file('auth/credentials.xml')->psw)){
127127
$_SESSION["login"] = "true";
128128
}else{
129129
$loginError = "Password is not correct - smoke a little less weed.";
@@ -1812,4 +1812,4 @@ function snackBar() {
18121812
</html>
18131813
<?php
18141814
}
1815-
?>
1815+
?>

0 commit comments

Comments
 (0)