Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Remove View PHP Info from adminCP Details »»
Remove View PHP Info from adminCP
Version: 1.00, by Mr. HillBilly Mr. HillBilly is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-13-2004 Last Update: Never Installs: 4
 
No support by the author.

In adminCP/index.php find and remove
(Both instances)
PHP Code:
 construct_nav_option($vbphrase['view_php_info'], 'index.php?do=phpinfo'); 
Find and Remove (Still in adminCP/index.php)
PHP Code:
// ################################ SHOW PHP INFO #############################
if ($_REQUEST['do'] == 'phpinfo')
{
phpinfo();
exit;

Save and upload.

Please click install if you use this little hack. Thanks!

Show Your Support

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

Comments
  #12  
Old 01-14-2004, 04:09 AM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Isn't that also a setting you can turn off in the board settings?
No, that setting makes it publicly viewable. However, you can control this with Administrator permissions so you don't need an IF statement or to remove it unless there is some other reason behind the original author's thinking.
Reply With Quote
  #13  
Old 01-14-2004, 04:47 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke
No, that setting makes it publicly viewable. However, you can control this with Administrator permissions so you don't need an IF statement or to remove it unless there is some other reason behind the original author's thinking.
Oh, ok, I see. But I'm curious now. What permission would you set so other Admins can't view it (if that is what you meant)?
Reply With Quote
  #14  
Old 01-14-2004, 09:36 AM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Oh, ok, I see. But I'm curious now. What permission would you set so other Admins can't view it (if that is what you meant)?
In your AdminCP under Usergroups, select Administrator Permissions. Then, set Can Run Maintenance Tools to No (see attached screenshot). However, this will also prevent the selected Administrator from doing: Database Backup, Repair/Optimize Tables, Update Counters, Diagnostics and Execute SQL Query as well. You can use the provided if statement above to selectively restrict access if you so desire.


Quote:
Originally Posted by Mr. HillBilly
Why dont you go bug someone elses hack thread?
Wow, nice attitude.. you're going to go far here.

Please forgive me for my previous posts in your thread, I assure you, it will never happen again.

Thank you for your contribution, and keep up the great work!
Reply With Quote
  #15  
Old 01-14-2004, 09:39 PM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, since Magnus has been chased off, I have to ask:

How exactly is this useful?

This isn't really a code modification. Its a code deletion. It doesn't add any new functionality to the site, so it *seems* that this is just a code "modification" for the sake of creating a hack.
Reply With Quote
  #16  
Old 01-15-2004, 01:57 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpeedStreet
<snip> so it *seems* that this is just a code "modification" for the sake of creating a hack.
Spot on. All I can derive from Hillbilly's posts is that he's trying to get a hack on his name, no matter how unnecessary, and gets pissed when someone points that out to him.

This really should be moved out of the Code Mods for vB3 category. And maybe placed in a new section "Guide for new hackers: what NOT to do"
Reply With Quote
  #17  
Old 01-15-2004, 03:28 PM
Rusche's Avatar
Rusche Rusche is offline
 
Join Date: Feb 2003
Location: Dublin
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
Spot on. All I can derive from Hillbilly's posts is that he's trying to get a hack on his name, no matter how unnecessary, and gets pissed when someone points that out to him.

This really should be moved out of the Code Mods for vB3 category. And maybe placed in a new section "Guide for new hackers: what NOT to do"
Well at least his hack is here, I released a hack a week ago and it was removed without any notice or anything
Reply With Quote
  #18  
Old 01-15-2004, 03:42 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a difference bettween Template Mods and Hacks. Technically this is a hack as it changes code, yours was a template mod which doesn't belong here.

How about we keep this on topic now?
Reply With Quote
  #19  
Old 01-15-2004, 06:22 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NTLDR
There is a difference bettween Template Mods and Hacks. Technically this is a hack as it changes code, yours was a template mod which doesn't belong here.

How about we keep this on topic now?
Yes, let us indeed keep this on topic. The topic of how much this 'hack' is unnecessary and can be done without file modifications and thus should be removed from this particular category.
Reply With Quote
  #20  
Old 01-15-2004, 07:12 PM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KuraFire
Yes, let us indeed keep this on topic. The topic of how much this 'hack' is unnecessary and can be done without file modifications and thus should be removed from this particular category.
Agreed.

This type of hack should be moderated save you will see an influx of coders that will remove an option from the AdminCP just to become Adv. Coders.
Reply With Quote
  #21  
Old 01-15-2004, 09:29 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpeedStreet
Agreed.

This type of hack should be moderated save you will see an influx of coders that will remove an option from the AdminCP just to become Adv. Coders.
Well, it won't make them Advanced Coders. It's highly unlikely that a lot of people will install these sort of hacks, and you need a very high People Installed vs. Amount of Hacks Released ratio before you'll become Adv. Coder.

So the new titles by Stefan have some good effects, but I don't think that that's what people like Hillbilly are after. Having a few very good hacks doesn't necessarily get you as much 'fame' as having a ton of hacks that do little more than just work.
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 02:46 PM.


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.05115 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete