Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #16  
Old 02 Sep 2014, 14:13
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
I can't see anything wrong now, and I don't have time right now to test it
Maybe this code could make a difference


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

[/PHP]
Reply With Quote
  #17  
Old 02 Sep 2014, 14:16
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
There is a $vbulletin->GPC_exists[] array, so you could try this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Another thing you could do is just make 'siterules' the default 'else':

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


BTW, I'm not a php expert so I'm not going to argue with what's correct and what's "evil", but I would say that there was nothing actually wrong with what you originally had (as far as introducing vulnerabilities), and in fact the vb scripts do it that way (just for the 'do' variable).
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Templates: Dynamic Templates Changing according to different conditions Logician vBulletin 2.x Full Releases 312 24 Apr 2005 19:20



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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


New To Site? Need Help?

All times are GMT. The time now is 09:49.

Layout Options | Width: Wide Color: