SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard triexa's Avatar
    Join Date
    Dec 2002
    Location
    Canada
    Posts
    2,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Prevent variable changes

    My source code is going to be encrypted, so people will be unable to alter important data. HOWEVER, I intend to implement plugins/hooks similar to WordPress/vBulletin... This seems like an open door for someone to just change all my variables - such as various limitations based on their license.

    Is there ANY way I could at least help guard against this sort of violation of my software?
    AskItOnline.com - Need answers? Ask it online.
    Create powerful online surveys with ease in minutes!
    Sign up for your FREE account today!
    Follow us on Twitter

  2. #2
    Worship the Krome kromey's Avatar
    Join Date
    Sep 2006
    Location
    Fairbanks, AK
    Posts
    1,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use define where you can, but anything that you'd need to alter would still be vulnerable. You could do a slew of validation to make sure that no one is altering your variables, or else implement some clever way to grab all their variables, copy them elsewhere, unset the originals, do your thing, then recreate their variables so their scripts will continue running while yours remain unaffected by any variables they use.
    PHP questions? RTFM
    MySQL questions? RTFM


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •