vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Force New Password (https://vborg.vbsupport.ru/showthread.php?t=51556)

Floris 04-12-2003 10:00 PM

Force New Password
 
/*================================================= =====================*\
|| # Force New Password (en masse) - Requested by Cary from vBulletin # ||
|| # Author: xiphoid (info@vbulletin.nl) - version 1.10 for vB 2.3.0 # ||
|| # All PHP code in these files are ?2003 by their respected owners. # ||
|| # None of the files may be redistributed outside of vBulletin.org! # ||
|| # No (real) animals have been hurt during the making of this hack! # ||
\*================================================ ======================*/


##### Information

This hack integrates with the admin/email.php file from which you are then able to choose to mass email your users a new password, which it randomly generates (automaticly).
This hack is written on request by Cary (vBulletin.com Team Member) who needed it for a web site that converted from snitz forum to a vBulletin powered forum.
This hack will ONLY work if you have Sparkz hack installed 'Email users regardless of 'no mail from admin' hack' (http://www.vbulletin.org/hacks/index...ack&hackid=323)


##### Features

(version 1.00)
* You can keep using 'email to users' admin/email.php file as normal, this is just an extra feature
* You can 'test' without actually changing any password
* You can 'echo' the generated passwords for debugging or reference purposes
* The new features are restrickted to the userid that you set, to prevent abuse by other users with access to the admin control panel
* And ofcourse, you can now use 'email to users' mail form to inform your users they have a new password, by including $newpassword in the email and selecting the option
* All through the admin control panel !
(version 1.10)
After testing this on a 2000+ user site, we found out there were a few bugs, so we fixed those.
Fixed: Sparkz hack - now really disregards users, not just the ones on the first x on a page.
Fixed: Will now actually set md5 hashes in the mysql and plaintext in the email.
Fixed: Parses the options you selected on next page, and not just the first one.


##### Credits

Jelsoft - for comming up with the great plan to code something up like vBulletin ! :)
Cary - for thinking up this hack (and testing it on 2000+ user board)
Scott - for helping debugging and fixing the next-page issue
Erwin - for providing the line of code for the random generator and other advice
Sparkz - for the hack that lets us email everybody, regardless of their ignore-admin-emails setting
xiphoid - (me) for taking the time and effort to think up more code and integrate it and the new options into email.php [lol]


##### Extra (copyrights/disclaimer/policy)

I do NOT give permission to distribute any file, or any part of a file, from this hack outside of vBulletin.org!
If I do find this being released on any other web site, I will hunt you down and kill you.
I do not give permission to translate this hack into any other language then english, and re-release it. If I wanted it to be in german or french, I would have released it as such.
You ofcourse, are free to modify any part of the hack to your liking, just don't distribute or re-release it.
This hack requires you to have a valid license, and intented to be applied to unhacked vBulletin email.php file from version 2.3.0 - older versions should maybe apply some little changes, but I only support this version.
My support is limited, my knowledge and time restrickt me to what I can do for you. I owe you nothing. I released this after testing on 3 different 2.3.0 powered sites without any issues. This tells me it works. If you can't get it to work, you made a mistake.
I ofcourse, am not responsible for your database changes, failure of working or any other damage to your data, files, users, dog or car.
You apply the changes, I assume you therefor know what you are doing. My only advice: make a backup before you make any changes or run the new feature.
Support goes through this thread on vBulletin.org only. If you email, icq, PM, irc me about it. I will give you code that will destroy your database. [lol]
Enjoy :)


##### Installation instructions

In the .zip file


##### Upgrade instructions

To upgrade from 1.00 to 1.10 apply Step 3 F (just that one)


##### Screenshots

In the .zip file




Enjoy!


xiphoid

empreur76 04-13-2003 10:15 AM

thx !! i'm test

DRR 04-13-2003 10:17 AM

NICE :D *installing*

assassingod 04-13-2003 11:17 AM

Quote:

Today at 11:58 AM xiphoid said this in Post #1
If you email, icq, PM, irc me about it. I will give you code that will destroy your database. [lol]


Lol!!!! :D;)


Great hack, will be of some use to me - Thanks Xiphoid

[high]* assassingod takes a bite out of the install button[/high]

Floris 04-13-2003 11:32 AM

Quote:

Today at 01:09 PM empreur76 said this in Post #2
thx !! i'm test
You are test ? :speechless:

Quote:

Today at 01:11 PM DRR said this in Post #3
NICE :D *installing*
Glad you seem to like it, hope installation goes smoothly.

Quote:

Today at 02:11 PM assassingod said this in Post #5
Lol!!!! :D;)


Great hack, will be of some use to me - Thanks Xiphoid

* assassingod takes a bite out of the install button

Good! :bunny: Happy to hear it doens't only give Cary pleassure

Zelda-King 04-13-2003 11:49 AM

Tested and working without a hitch! One thing though, you have the last two steps in reverse order. One has to scroll up from the previous step to do the last one. No problem really, just potentially a little confusing.

Floris 04-13-2003 11:52 AM

Glad to hear it works like a charm!

The instructions don't read 'further below, you will find ...' but just 'find this code'. The order shouldn't matter.

Zelda-King 04-13-2003 12:29 PM

Actually I've had a report of 'a few' empty emails. Mine was ok and so were others.

Floris 04-13-2003 12:34 PM

Ask those members to forward their emails to you, and you forward it to info@vBulletin.nl and I will go and check it out.

Zelda-King 04-13-2003 12:55 PM

I just sent you one there.


All times are GMT. The time now is 07:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01448 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete