vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - vB3.5 Email notification if someone attempts to access your Admin or Mod CP (https://vborg.vbsupport.ru/showthread.php?t=96921)

Ncturnal 08-18-2006 06:41 AM

It works in vB 3.6.0 as well. There was only a minor change in the instructions. In the 3.6.0 code they added ?do=login after login.php. Simply change the instructions for modifying adminfunctions.php as follows:


In incudes/adminfunctions.php

Find:
--------------------------------------

Code:

        <form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">

--------------------------------------
REPLACE it with:
--------------------------------------

Code:

<?php
        if ($logintype=='cplogin' OR $logintype=='modcplogin')
        {
                echo '<form action="../login.php?do=login" method="post" name="loginform" onsubmit="document.forms.loginform.vbpassword.value=document.forms.loginform.vb_login_password.value; md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
        }
        else
        {
                echo '<form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">';
        }
?>

--------------------------------------
Find:
--------------------------------------

Code:

<input type="hidden" name="vb_login_md5password_utf" value="" />
--------------------------------------
BELOW it add:
--------------------------------------

Code:

<input type="hidden" name="vbpassword" value="" />
All of the instructions for the login.php edits did not change. Great hack!

wolfyman 08-18-2006 09:44 AM

thanks for the above information, I was just getting around to editing my previous hacks and that was one of my top questions!

the code to search for in the first edit is wrong, though.

first edit, find this:

Code:

<form action="../login.php?do=login" method="post" name="loginform" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf); js_do_options(this)">

phonexpo 08-18-2006 11:58 AM

Thanks guys I have this working on vB360 now, although I had to put a "," at the end of this code on the login.php on line 83;

Code:


'postvars' => TYPE_STR,


RaceJunkie 08-19-2006 01:04 AM

Working fine in 3.6

AngusMacGyver 08-25-2006 10:58 PM

It works on 3.6.0

blind-eddie 08-27-2006 05:17 PM

Will this work in 3.5.3?

blind-eddie 08-28-2006 04:49 PM

*bump*

Ncturnal 08-28-2006 11:36 PM

Yes. I used it in 3.5.2, 3.5.3, 3.5.4, and now 3.6.0.

blind-eddie 08-29-2006 12:56 AM

rgr,Thank You

brvheart 08-30-2006 01:32 PM

works great in 3.6 without having to make any adjustments to directions :) thanks boofo


All times are GMT. The time now is 06:13 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.01301 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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