Raised This Month: $12 Target: $400
 3% 

[PHP] Modify users.ini from the browser


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 09-27-2021 , 14:14   [PHP] Modify users.ini from the browser
Reply With Quote #1

This helps you manage users.ini file in the browser.
auto-reloadadmins is featured, requires php-ssh2 & server launched with the "screen" command.
You can set it up to work on tmux if that's what you use.

Once the webpage is loaded, users.ini file is saved inside the 'randomgenword' file which is then displayed on screen and cleared to protect the data transfered. Same strat goes on submiting the changes. File modified, uploaded and cleared. Doesn't leaves you 100% secure that's why I recommend using a random word. Same goes for the user and password for the server. You can use enviroment variables instead.

I recommend using a login system. A basic one is directy from apache, tweaking the .htaccess settings.
.htaccess>
AuthType Basic
AuthName "restricted area"
AuthUserFile /var/www/my.domain.com/public_html/folder/.htpasswd
require valid-user

.htpasswd> you can create you user here
user@EncryptedPassword
Attached Files
File Type: zip users.zip (991 Bytes, 100 views)
__________________
Relaxing is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode