Smarty - Forcing Copyright Link

Discussion in 'PHP' started by Agent_Smith, Jul 24, 2008.

  1. #1
    Hey,

    For a commercial project, the PHP files will be encoded with Ioncube. However, i want to place a copyright link back to my site using the smarty template engine which is where all the templates run off.

    The footer.tpl, i have placed {$copyright} which shows my link back. However, the admin can just remove that variable in the .tpl file. Ive tried using a file get contents at the start of each file and preg match it to find copyright, if not, die. It didn't manage to work for me. Can anyone suggest a solution to my problem?

    Thanks.
     
    Agent_Smith, Jul 24, 2008 IP
  2. Chris Blood

    Chris Blood Peon

    Messages:
    1,487
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would just do $smarty->display in the php file then after it in the php use an if statement to see if the license key allows copyright removal, if it does remove it else make it show.
     
    Chris Blood, Jul 31, 2008 IP