Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #2  
Old 01-13-2004, 10:42 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or you could just add a conditional which allows only you to see it..

HTML Code:
<if condition="$bbuserinfo[userid] == 1">
<!-- HTML -->
</if>
.. off course, it's weird you'll trust a person with the ability to use every administrative aspect of your board, but don't deem them trustworthy enough to see what PHP options your server is compiled with (which really is no secret, anyway).
Reply With Quote
  #3  
Old 01-13-2004, 10:55 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
Or you could just add a conditional which allows only you to see it..

HTML Code:
<if condition="$bbuserinfo[userid] == 1">
<!-- HTML -->
</if>
.. off course, it's weird you'll trust a person with the ability to use every administrative aspect of your board, but don't deem them trustworthy enough to see what PHP options your server is compiled with (which really is no secret, anyway).
i dont think that will work in vB's php pages as if conditions get parsed by the template manager
Reply With Quote
  #4  
Old 01-13-2004, 11:23 PM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
Or you could just add a conditional which allows only you to see it..

HTML Code:
<if condition="$bbuserinfo[userid] == 1">
<!-- HTML -->
</if>
.. off course, it's weird you'll trust a person with the ability to use every administrative aspect of your board, but don't deem them trustworthy enough to see what PHP options your server is compiled with (which really is no secret, anyway).
Funny how when I try to contribute people always give me crap.
Reply With Quote
  #5  
Old 01-13-2004, 11:27 PM
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 Faranth
i dont think that will work in vB's php pages as if conditions get parsed by the template manager
Good point, so, insted use:

PHP Code:
if ($bbuserinfo['userid'] == "1")
{

<!-- 
PHP -->


Reply With Quote
  #6  
Old 01-13-2004, 11:28 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr. HillBilly
Funny how when I try to contribute people always give me crap.
i dont think its bad personally i dont care but i dont have a dedicated server

Nice work
Reply With Quote
  #7  
Old 01-13-2004, 11:31 PM
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 Mr. HillBilly
Funny how when I try to contribute people always give me crap.
Hrm, I don't really see how my above statements constituted "giving you crap". I was merely offering a solution which didn't remove a default vB3 ability from the main Administrator in order to limit others.

I apologize if it was construed that way, however, if you're going to release something you need to be open to creative critisism. I offered a less-destructive alternative to your idea. Nowhere did I say anything derogatory about your idea or it's concept, I simply inquired as to why you would need this.
Reply With Quote
  #8  
Old 01-14-2004, 01:26 AM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by magnus
why you would need this.
Why dont you go bug someone elses hack thread?
Reply With Quote
  #9  
Old 01-14-2004, 01:50 AM
BillaBongUSA BillaBongUSA is offline
 
Join Date: Mar 2002
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, come on, it's not like he just blatantly insulted your work. Maybe instead of being so edgy about it, you could explain why this hack might be useful to someone.
Reply With Quote
  #10  
Old 01-14-2004, 03:02 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't that also a setting you can turn off in the board settings?
Reply With Quote
Reply

Thread Tools

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 11:55 AM.


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.05010 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_html
  • (3)bbcode_php
  • (6)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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