What the heck is this code showing on my site?

Discussion in 'PHP' started by Ckrismoney, May 4, 2010.

  1. #1
    My site has been fine and now out of nowhere this code is showing under every post on the front page and a few other static pages.

    Here's the site http://ckwikpost.com

    Here's the code:

    = '1') { return 'active'; }else { #### ## We know they are not an active member so lets see if they are an inactive member #### $result = mysql_query("SELECT * FROM members WHERE license='$licensekey' and domain='$domain' and active='N'"); if(mysql_num_rows($result) >= '1') { return 'inactive'; }else { #### ## We know they are not an active or inactive member so lets see if there are any domains that match the licensekey but not the domain #### $result = mysql_query("SELECT * FROM members WHERE license='$licensekey' and domain<>'$domain'"); if(mysql_num_rows($result) >= '1') { return 'mismatch'; }#End of mismatch if. }#End of inactive if. }#End of active if. }#End of activate (constructor) function. function active($domain,$licensekey,$currentposts,$admin_email) { }#End of active function. function inactive($domain,$licensekey,$currentposts,$admin_email) { }#End of inactive function. function mismatch($domain,$licensekey,$currentposts,$admin_email) { }#End of mismatch function. function newmember($domain,$licensekey,$currentposts,$admin_email) { }#End of newmember function. }#End of activate class. class dynamictags { var $name = ""; }#End of class ?>

    Thanks in advance!
     
    Ckrismoney, May 4, 2010 IP
  2. Ckrismoney

    Ckrismoney Well-Known Member

    Messages:
    1,550
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    120
    #2
    I fixed it I just had to re-install wordpress. Man, that was scary!!!
     
    Ckrismoney, May 4, 2010 IP
  3. aprillins

    aprillins Greenhorn

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    congratulations.. but i think it is about not started by writing <?php
     
    aprillins, May 6, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    Turn on short_tags within php.ini (ask your hosting provider, if your on shared).
     
    danx10, May 6, 2010 IP