Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Help...No moderation abilities
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help...No moderation abilities

 Post Reply Post Reply Page  <12
Author
awen View Drop Down
Newbie
Newbie
Avatar

Joined: 01 August 2005
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote awen Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2005 at 1:57pm
I had the same problem, Mandrakes fix took care of it for me too.  Thanks!
Back to Top
minigallery View Drop Down
Newbie
Newbie


Joined: 28 July 2005
Location: United Kingdom
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote minigallery Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2005 at 8:16am

In post_message.asp I see the line:

 
If strMode = "editTopic" OR strMode = "edit" AND (blnAdmin = false AND blnModerator = false) Then
 
I was never too good understanding the differences between how VBScript processes ANDs and ORs without the brackets so I made a change in my version to make it this:
 
If (strMode = "editTopic" OR strMode = "edit") AND (blnAdmin = false OR blnModerator = false) Then
 
(I also changed the AND to an OR to test for a moderator or admin.
 
I didn't change the line of code Mandrakes mentioned.
 
I'm just wondering if my code is now vulnerable to attack - I've tested from the point of view of an admin and normal member it seems to be OK.
 
I am using the following logic:
If message is to be edited and I am NOT an admin or moderator then test to see if I actually posted the message.
 
Can anyone confirm if my logic is correct and if it will break anything?
 
Thanks Big smile
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.