Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mail Admin When fail to login to admincp V2 Details »»
Mail Admin When fail to login to admincp V2
Version: 2.00, by AliMadkour AliMadkour is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.2 Rating:
Released: 11-30-2009 Last Update: 03-02-2010 Installs: 232
Supported Uses Plugins
Translations  

hello

Please remember to Click Mark as Installed if you use this modification.


this simple plugin :
it will send you mail when someone try to login at your AdminCP.

How to Install
  • Import XML file from your AdminCP
  • Click Mark as Installed if you install it !
Control :
  • AdminCP -> vBulletin Options -> Send message to Admin when fail to login to admincp options
Note : Arabic translation also attached

What 's new with version 2 :
  • work any where not only AdminCP
  • custom error message when try to login
  • add HTTP_USER_AGENT !
  • you can input any username when someone try to login you will mailed!
please remember to Mark it as installed if you like and Nominate for MOTM

Download Now

File Type: xml product-madkour_admin_login_fail [English].xml (5.3 KB, 564 views)
File Type: xml product-madkour_admin_login_fail [Arabic].xml (5.3 KB, 38 views)

Screenshots

File Type: jpg sc.jpg (64.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 08-22-2010, 05:53 PM
Sunray Sunray is offline
 
Join Date: Mar 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Great plugin ! Thanks a lot for it.
Installed and tested in vB 4.04, is working well.
Reply With Quote
  #73  
Old 08-23-2010, 03:28 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

nice one but couldn't this be made more real by the "VB_AREA" define something like

PHP Code:
if(defined('VB_AREA') AND (VB_AREA == 'admincp'))
{
    
//****

Reply With Quote
  #74  
Old 08-24-2010, 06:15 PM
OcR Envy's Avatar
OcR Envy OcR Envy is offline
 
Join Date: May 2008
Location: Boston
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is extremely misleading. You aren't checking if they are logging into the AdminCP at all. You're checking to see if they failed to login anywhere on the site. Poorly executed.
Reply With Quote
  #75  
Old 08-25-2010, 05:13 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OcR Envy View Post
This is extremely misleading. You aren't checking if they are logging into the AdminCP at all. You're checking to see if they failed to login anywhere on the site. Poorly executed.
i agree through it doesn't send an email when the "normal login" fails hmm i don't get it...
Reply With Quote
  #76  
Old 09-21-2010, 06:45 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

problem solved for those people that get emailed when there normal login fails open the plugin and the first line

PHP Code:
if($vbulletin->options['madkour_admin_login_fail_onoff'])

above that add

PHP Code:
if(!defined('VB_AREA'))
{
      die(
"error");

underneath the first code snippet code add

PHP Code:
VB_AREA ='AdminCP'
that's it now you only get emailed when the actual admincp login fails for some reason look at /includes/adminfunctions.php if you want more information about the VB_AREA constant
Reply With Quote
  #77  
Old 10-25-2010, 09:17 AM
0verl0rd 0verl0rd is offline
 
Join Date: Oct 2010
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! thanks!
Reply With Quote
  #78  
Old 11-02-2010, 06:48 PM
Ary Braga Ary Braga is offline
 
Join Date: Jun 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Delphiprogrammi View Post
hi,

problem solved for those people that get emailed when there normal login fails open the plugin and the first line

PHP Code:
if($vbulletin->options['madkour_admin_login_fail_onoff'])

above that add

PHP Code:
if(!defined('VB_AREA'))
{
      die(
"error");

underneath the first code snippet code add

PHP Code:
VB_AREA ='AdminCP'
that's it now you only get emailed when the actual admincp login fails for some reason look at /includes/adminfunctions.php if you want more information about the VB_AREA constant
underneath????/

PHP Code:
if($vbulletin->options['madkour_admin_login_fail_onoff'])

Could put the code here ready?

I tried and failed. excuse my ignorance.
Parse error: syntax error, unexpected '=' in /home/clangsm/public_html/vb/login.php(114) : eval()'d code on line 5

Correct me if I'm wrong
PHP Code:
if(!defined('VB_AREA'))
{
die(
"error");
}  
VB_AREA ='AdminCP';
if(
$vbulletin->options['madkour_admin_login_fail_onoff'])

Reply With Quote
  #79  
Old 11-02-2010, 07:45 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

no you did it wrong it must be

PHP Code:
if($vbulletin->options['madkour_admin_login_fail_onoff'])
{
      
VB_AREA =='AdminCP';
      
// the rest of the code here(already there)

the first block is needed because if the VB_AREA constant is not defined PHP will throw error messages
Reply With Quote
  #80  
Old 11-05-2010, 12:51 PM
Ary Braga Ary Braga is offline
 
Join Date: Jun 2009
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow.

Thank you very much.
U save my day.

Regards.
Reply With Quote
  #81  
Old 02-18-2011, 12:22 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

I just noticed the plugin author is using values directly from $_POST[] superglobal array.This is a bad programming attitude certainly without any form of sanitization this could lead to XSS security holes he should use

PHP Code:
$vbulletin->GPC['variablename'
at least this way you're sure the values being submitted are clean
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10316 seconds
  • Memory Usage 2,352KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete