X7ROOT File Manager
Current Path:
/var/softaculous/litecart
var
/
softaculous
/
litecart
/
??
..
??
admin
??
changelog.txt
(10.87 KB)
??
clone.php
(5.39 KB)
??
edit.php
(7.09 KB)
??
edit.xml
(433 B)
??
extend.php
(8.79 KB)
??
fileindex.php
(101 B)
??
images
??
import.php
(3.27 KB)
??
info.xml
(3.09 KB)
??
install.js
(1.02 KB)
??
install.php
(10.62 KB)
??
install.xml
(27.94 KB)
??
litecart.zip
(1.33 MB)
??
md5
(2.41 KB)
??
notes.txt
(1.14 KB)
??
php53
??
php56
??
php71
??
php81
??
php82
??
robots.txt
(118 B)
??
update_pass.php
(497 B)
??
upgrade.php
(60.4 KB)
??
upgrade.xml
(990 B)
??
write_htpass.php
(615 B)
Editing: write_htpass.php
<?php $username = '[[admin_username]]'; $enc_password = '[[encrypted_pass]]'; $htpasswd_file = '[[softpath]]/[[admin_folder]]/.htpasswd'; $htpasswd = file_get_contents($htpasswd_file); if(preg_match('#(?<=^|\r\n|\r|\n)\#*('. preg_quote($username, '#') .'):.*?#', $htpasswd)){ $htpasswd = preg_replace('#(?<=^|\r\n|\r|\n)(\#*'. preg_quote($username, '#') .'):[^\r|\n]+(\r\n?|\n)*#', '$1:{SHA}'. $enc_password . PHP_EOL, $htpasswd); echo '<htpasswd>'.$htpasswd.'</htpasswd>'; } if(is_writable($htpasswd_file)){ $htpasswd = file_put_contents($htpasswd_file, $htpasswd); } @unlink('write_htpass.php'); ?>
Upload File
Create Folder