$vars= new Getvars(); $vars->requireVar('catname'); $vars->requireVar('category'); $vars->requireVar('platform'); $vars->requireVar('content'); $vars->assignVar('url_upload'); $vars->assignVar('pc_upload'); $vars->assignVar('verified'); /*benutzereingaben auswerten*/ if($vars->validateVars()){ $e= new pExploit(); $e->autor('anonymous'); $e->title($vars->catname()); $e->category($vars->category()); $e->platform($vars->platform()); $e->content($vars->content()); $e->codeLanguage($vars->language()); $verified=false; if ($vars->verified()=='on') $verified=true; $e->verified($verified); $e->dbh($dbh); $upload=new Upload($vars->url_upload(),$_FILES['pc_upload']); $upload->uploaddir('upload'); $e->file($upload->upload()); $e->mysqlInsert();
$vars->assignVar('verified'); $vars->requireVar('id'); $vars->requireVar('edit'); /*benutzereingaben auswerten*/ if($vars->validateVars()){ $fileSet=false; $e= new pExploit(); $e->dbh($dbh); $e->mysqlSelect($vars->id()); if ($e->file()!=='') $fileSet=true; $e->autor('anonymous'); $e->title($vars->catname()); $e->category($vars->category()); $e->platform($vars->platform()); $e->content($vars->content()); $e->codeLanguage($vars->language()); if ($vars->verified()=='on'){ $verified=true; }else { $verified='false'; } $e->verified($verified); $e->dbh($dbh);