Jump to content

lastkarrde

Members
  • Posts

    165
  • Joined

  • Last visited

    Never

Posts posted by lastkarrde

  1. And indeed you're right that the creators could indeed made backdoors. That's why I rather learn how to strip the text myself instead of just dumb installing

     

    I highly doubt the creators made a back door. It is open source code and is used/trusted by many PHP frameworks such as Kohana. The risk that you miss cleaning/filtering something in your own code far outweighs the risk/possibility that HTMLPurifier has a backdoor.

  2. <?
    $subject="from ".$_GET['fName'];
    $headers= "From: ".$_GET['fEmail']."\n";
    $headers.='Content-type: text/html; charset=UTF-8' . "\r\n";
    mail("mymail@example.com", $subject,  "
    <html>
    <head>
    <title> My Title </title>
    </head>
    <body>
    
    <br>
      ".$_GET['fName']. " <br>
      ".$_GET['fPhone']." <br>
      ".$_GET['fEmail']."  <br><br>
      ".$_GET['pBody']." 
    
    </body>
    </html>" , $headers);
    
    header("Location: http://avrikim123.co.cc/sent.html");
    ?>

  3. One solution (probably not the most efficient as I have no experience in the field) would be to..

     

    • Record what pages containing content the user visits.
    • Tag/tokenize the pages to give you a list of 10-15 keywords about the page. You could either do this manually or with a simple word search (ignoring words such as a,and,then,the etc..)
    • Record the tags of pages the user visits
    • Serve up recommendations based on the tags of pages the user has visited in the past

  4. Twig is the best example of a proper PHP templating engine, you would learn alot from it's source code. It has it's own lexer and parser that goes through the template and extracts all information. It then compiles and caches the template into straight PHP (so it doesn't need to lex and parser every request). Leaving you with super fast templates :-)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.