Article View: rocksolid.nodes.announce
Article #528account_manager script in rslight
From: Retro Guy
Date: Tue, 02 Jul 2024 07:04
Date: Tue, 02 Jul 2024 07:04
23 lines
2085 bytes
2085 bytes
I've created a new script for rslight in
$config_dir/scripts/account_manager.php
$php ./account_manager.php
-help: This help page
-version: Display version
-create: Create user account '-create username password email'
-newpass: Change user password '-newpass username newpassword'
-delete: Delete user account '-delete username'
Be careful with this. You will not be asked to confirm
Account files will be placed in a dir named 'deleted'
This should make it easier for an admin to manage accounts. I know I
find it a nuisance to need to change a user's password, create an
account manually, etc., so this script should be quite helpful.
Also, for this script, and maintenance.php, it is no longer necessary to
switch to the $webdir/spoolnews dir. This is handled automatically. You
still need to run as your web server user so files are created with
correct permissions.
--
Retro Guy
Technical Details
Message-ID:
<044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <044d0cdf183ce68cff58f6dddc66e60d@www.novabbs.org>
Subject: account_manager script in rslight
Date: Tue, 2 Jul 2024 07:04:18 +0000
From: Retro Guy <retroguy@novabbs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail
Content-Type: text/plain; charset=utf-8; format=flowed
X-Rslight-Posting-User: a93aefeeff923def71455caae2dbfb277a59e046
Newsgroups: rocksolid.nodes.announce
User-Agent: Rocksolid Light
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf ?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0
Organization: Rocksolid Light
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; logging-data="1880262"; mail-complaints-to="usenet@i2pn2.org"; posting-account="gg+dDWHMzVrdxGO9Gmt8aqyeWDXqlxfqiuS0jX/WMXY";
X-Rslight-Site: $2y$10$aQDj3wXHcOgUItTQU8QkJ.84W3XcP.QJPrVEOoJ9M8Dri7xfE/nw2