Announcement

Collapse
No announcement yet.

what is this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • what is this?

    i honestly dont know much php, just enough to hack my forums. one of my users who was recently banned came back to post this:


    function gettemplate($templatename,$escape=1) {
    global $templatecache,$DB_site;

    if ($templatecache[$templatename]!="") {
    $template=$templatecache[$templatename];
    } else {
    $gettemp=$DB_site->query_first("SELECT template FROM template WHERE
    title='". addslashes($templatename)."'");
    $template=$gettemp[template];
    $templatecache[$templatename]=$template;
    }

    if ($escape==1) {
    $template=str_replace("\"","\\\"",$template);
    }
    return $template;
    }



    problem is i had html on, so is this a hack...or something i should worry about?

  • #2
    that isn't html, it's php code which can't be executed from within a post. you don't have anything to worry about. that looks like vBulletin php code though.

    Comment


    • #3
      Re: what is this?

      Originally posted by SONOFSAM
      problem is i had html on, so is this a hack...or something i should worry about?
      You should always worry if you have HTML enabled. My suggestion is to disable this.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment


      • #4
        already done, thnx

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X