home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
SYSOP
/
MODS1.ZIP
/
APOLLO07.423
< prev
next >
Wrap
Text File
|
1993-12-23
|
4KB
|
92 lines
Apollo07.423
``/┤PΘ££Θ`` WWIVnet #1 AT 2938
Sat Dec 18 08:06:06 1993
0R: net33: @4136 (via @1) [11:44 12/23/93]
0R: net33: @1 (via @4120) [07:02 12/23/93]
0R: net33: @4120 [06:19 12/23/93]
0R: net33: @4062 (via @4064) [05:11 12/23/93]
0R: net33: @4064 (via @1040) [01:18 12/23/93]
0R: net33: @1040 (via @2050) [00:38 12/23/93]
0R: net34: @2050 [22:46 12/22/93]
0R: net34: @2050 (via @1040) [03:58 12/20/93]
0R: net34: @2050 (via @1040) [14:41 12/19/93]
0R: net33: @1040 (via @1042) [15:27 12/19/93]
0R: net33: @1042 (via @2914) [13:06 12/19/93]
0R: net33: @2914 (via @2938) [22:47 12/18/93]
0R: net33: @2938 [08:19 12/18/93]
┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
│ Mod Name: Apollo07.423 Mod Authors: Apollo 1@92938 WWIVNet & BRNet │
│ Difficulty: ████▒▒▒▒▒▒ 1@2939 TARDIS,TERRA,Ice & Mas Nets │
│ WWIV Version: v4.23 Date: 12/11/93 │
│ Files Affected: UEDIT.C │
│ Adds the ability for the SysOp to edit the Users password in Uedit. │
└─────────────────────────────────────────────────────────────────────────┘
Special Thanks to the writer of PASSWORD.MOD
His mod worked great, but needed a complete rewrite for 4.23, I also
use the strings available in BBS.STR instead of hardcoding them into
the mod and taking up valuable D-Group space.
Updated to work with 4.23.
LEGEND:
= old code, Search for this
+ new code
- Remove or comment out this line
> Modified From Virgin Code
#include <witty disclaimer>
BACKUP your Source
Load up: UEDIT.C
Find: void uedit(int usern, int other)
= prt(2,get_string(266));
= if ((thisuser.sl==255) || (wfc))
- ch=onek("ACDEGILMNOPQRSTUXYZ0123456789[]{}/,.?~%:");
+ /* Removed for Apollo07.423 */
+ ch=onek("ABCDEGILMNOPQRSTUXYZ0123456789[]{}/,.?~%:");
+ /* Apollo07.423 */
= else
= ch=onek("ACDEGILMNOPQRSTUYZ0123456789[]{}/,.?%");
.
.
.
= case 'A':
= nl();
= prt(2,get_string(280));
= ch1=onek("\rABCDEFGHIJKLMNOP");
= if (ch1!=13) {
= ch1-='A';
= if ((wfc) || (thisuser.ar & (1 << ch1))) {
= u.ar ^= (1 << ch1);
= write_user(un,&u);
= }
= }
= break;
+ case 'B': /* Apollo07.423 */
+ nl(); /* Apollo07.423 */
+ prt(5,get_string(453)); /* Apollo07.423 */
+ if (yn()) { /* Apollo07.423 */
+ nl(); /* Apollo07.423 */
+ prt(5,get_string(552)); /* Apollo07.423 */
+ input(s,sizeof(u.pw)-1); /* Apollo07.423 */
+ if (s[0]) { /* Apollo07.423 */
+ strcpy(u.pw,s); /* Apollo07.423 */
+ write_user(un,&u); /* Apollo07.423 */
+ prt(5,get_string(460)); /* Apollo07.423 */
+ } else { /* Apollo07.423 */
+ prt(5,get_string(463)); /* Apollo07.423 */
+ } /* Apollo07.423 */
+ } /* Apollo07.423 */
+ break; /* Apollo07.423 */
= case 'C':
= nl();
done.
Save, Recompile and run.
As you can see, It's Not so Hard, just a long compile!
---- /┤PΘ££Θ (8{[} <-- Bald Vampire W/Glasses & Facial Hair (me)