if ($varExploit->validateVars()){ //load $e=new pExploit(); $e->dbh($dbh); $e->mysqlSelect($varExploit->view()); $f=new Formgen(); //output $link= $f->getLink("download", $e->file()); echo $f->getHeading($e->title(), 4); echo "<div class=\"exploit-autor\">author:{$e->autor()}</div>"; echo "<div class=\"exploit-date\">date:{$e->date()}</div>"; echo "<div class=\"exploit-hits\">hits:{$e->hits()}</div>"; echo "<div class=\"exploit-verified\">verified:{$e->verified()}</div>"; echo '<div class="exploit-category">'.$e->loadCategory().'</div>'; echo '<div class="exploit-platform">'.$e->loadPlatform().'</div>'; echo "<div class=\"exploit-download\">$link</div>"; echo '<div class="exploit-content">'.$e->getFormatedCode().'</div>'; $e->mysqlUpdate(); }//if show exploit ?> </div> </body> </html>