vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   More Admin Security - Protect Templates, Templatesets and Styles!!! (https://vborg.vbsupport.ru/showthread.php?t=44764)

Chris M 10-18-2002 10:00 PM

More Admin Security - Protect Templates, Templatesets and Styles!!!
 
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

Goldknight 10-19-2002 07:02 PM

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

Chris M 10-19-2002 07:13 PM

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

Goldknight 10-19-2002 07:24 PM

Ah, thanks for answer. I m going to install this one. Thanks

Chris M 10-19-2002 07:26 PM

No problems:)

Satan

Vile 10-19-2002 11:34 PM

Sweet. Thanks for the hack. Installed :)

Chris M 10-20-2002 12:08 AM

Good:)

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

Satan

Roman 01-01-2003 05:54 PM

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.

Dean C 01-01-2003 06:06 PM

Hehe nice hack satan :p

Chris M 01-01-2003 08:40 PM

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


All times are GMT. The time now is 03:16 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.01212 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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