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

Reply
 
Thread Tools
More Admin Security - Protect Templates, Templatesets and Styles!!! Details »»
More Admin Security - Protect Templates, Templatesets and Styles!!!
Version: 1.00, by Chris M Chris M is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-18-2002 Last Update: Never Installs: 25
 
No support by the author.

In conjunction with the request of others, I have released this add-on, which can be used in conjunction with my Total Admin Security hack...

So...

There is an easy way to ensure that they cannot change your templates, templatesets, or delete your templates, templatesets and styles...

Just use this hack below, and then they cant!!!

Just remember to follow any instructions in brackets ( ) that follows some PHP Code...

I have this used on DarkBlazes (my forums) - I cannot provide any screenshots at this time, but if anyone would, that would be good

Other Related Hacks:

Total Admin Security

Satan

Show Your Support

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

Comments
  #2  
Old 10-19-2002, 07:02 PM
Goldknight's Avatar
Goldknight Goldknight is offline
 
Join Date: Aug 2002
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol other admin hack but good one.

(change X to the templatesetid, change Y to your userid) I wonder can I add more than one templatesetid like (1,2,3,etc..) if I have more than one set? And userid for who? for other admin?

Thanks
Reply With Quote
  #3  
Old 10-19-2002, 07:13 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To add another templateset, just copy the code again... (making sure you change the X and Y)

The userid is for you - I made it, by default, that nobody can delete the templatesets you dont want them to...

Then I made it so that they can delete individual templates (custom templates), but only the user(s) you specify...

Satan
Reply With Quote
  #4  
Old 10-19-2002, 07:24 PM
Goldknight's Avatar
Goldknight Goldknight is offline
 
Join Date: Aug 2002
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, thanks for answer. I m going to install this one. Thanks
Reply With Quote
  #5  
Old 10-19-2002, 07:26 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problems

Satan
Reply With Quote
  #6  
Old 10-19-2002, 11:34 PM
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Location: Arizona, USA
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet. Thanks for the hack. Installed
Reply With Quote
  #7  
Old 10-20-2002, 12:08 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good

There shouldnt be any install problems, but if there are, just ask

Satan
Reply With Quote
  #8  
Old 01-01-2003, 05:54 PM
Roman Roman is offline
 
Join Date: Nov 2001
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack looks sweet, but while reading your instructions / hack i got few questions...

why is there no check for userid on the remove and the kill template set? This way even the main admin (me) can't delete that template, right?

and for the style... will this hack only protect the deletion of the style, and not the modification of styles? Cause i want the other admin to be able to do anything but touch my templetes and styles.
Reply With Quote
  #9  
Old 01-01-2003, 06:06 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hehe nice hack satan
Reply With Quote
  #10  
Old 01-01-2003, 08:40 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The reason for the specified templateset is purely because, if that is your main Template Set, I am presuming you don't want it to be able to be deleted by anyone, including yourself

To protect styles from being modified, Find:
Code:
// ###################### Start Update #######################
if ($HTTP_POST_VARS['action']=="doupdate") {
Add below:
Code:
if(($styleid==X) and ($bbuserinfo[userid]!=Y)) {
    echo "<p>You cannot edit this Style!</p>";
    exit;
  }
(change X to the styleid, change Y to your userid)

@Mist - Thanks

Satan
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 09:31 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.06377 seconds
  • Memory Usage 2,285KB
  • 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
  • (2)bbcode_code
  • (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