Exemple #1
0
		<h1>add exploit</h1>
		<!-- <img src="img/logo.png" alt="logo" /> -->
	</div>
	<div>
		<h2>new exploit</h2>
		<?php
		$exploit =new pExploit();
		$exploit->dbh($dbh);
		//$exploit->mysqlSelect();
		$platform=new pPlatform();
		$platform->dbh($dbh);
		$category=new pCategory();
		$category->dbh($dbh);


		$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());
Exemple #2
0
<body>
	<div id="head">
		<h1>
			<a href="index.php">ue-cr3w exploits</a>
		</h1>
		<img src="img/logo.png" alt="logo" />
	</div>
	<div>

	<?php

	$sitename=pathinfo(__FILE__);
	$sitename=$sitename['basename'];
	
	$f=new Formgen();
	$get=new Getvars();
	$get->requireVar('view');
	$get->assignVar('back');
	$get->assignVar('forward');
	$get->assignVar('site');	
	$get->assignVar('type');
	/**sortieren ***/
	$get->assignVar('order');
	$get->assignVar('order_by');
	/**sortieren ***/
	
	if($get->validateVars()){
		$e= new pExploit();
		$e->dbh($dbh);
		$n=$e->mysqlCountByCategory($get->view());															//anpassen
		
Exemple #3
0
			$upload=new Upload($vars->url_upload(),$_FILES['pc_upload']);
			$upload->uploaddir('upload');		
			$newfile=$upload->upload();
			if($newfile!="" && $fileSet){					
				unlink($e->file());
			}
			$e->file($upload->upload());
			$e->mysqlUpdate();
			echo "<h4>{$vars->catname()} ge&auml;ndert :)</h4>";
		}else {
		;
		}
		/**Formular erzeugen***/


		$edit=new Getvars();
		$edit->requireVar('edit');
		
		if ($edit->validateVars()){
			$e=new pExploit();
			$e->dbh($dbh);
			$e->mysqlSelect($edit->edit());					
			
			$categories = array($e->category() =>$e->loadCategory()) + $category->mysqlSelect();
			$platforms=array($e->platform() =>$e->loadPlatform()) + $platform->mysqlSelect();
			$languages=array_merge(array($e->codeLanguage()), $languages);
			$path=pathinfo(__FILE__);
			
		
			$form=new Formgen("post", $path['filename'].'.'.$path['extension']);
			$form->addTextField("Name", "catname", $e->title());
Exemple #4
0
</head>
<body>
	<div id="head">
		<h1>list exploits</h1>
		 <img src="img/logo.png" alt="logo" /> 
	</div>
	<div>
	
	
	<div class="list">
	<table class="exploits-list">
	<?php
	
	
//LOESCHEN
$getDelete=new Getvars();
$getDelete->requireVar('delete');
if ($getDelete->validateVars()){
	$exploit=new pExploit();
	$exploit->dbh($dbh);
	$exploit->id($getDelete->delete());
	$exploit->mysqlDelete();
	
}

	

foreach ($exploits as  $e){
		$view=$fgen->getLink($e->title(), 'ShowExploit.php', array("view" =>$e->id()));
		$edit=$fgen->getLink('edit', 'EditExploit.php', array("edit" =>$e->id()));	
		$delete=$fgen->getLink('delete', 'ListExploit.php',array('delete'=>$e->id()),true, "{$e->title()} löschen?");
Exemple #5
0
<body>
	<div id="head">
		<h1>
			<a href="index.php">ue-cr3w exploits</a>
		</h1>
		<img src="img/logo.png" alt="logo" />
	</div>
	<div>

	<?php

	$sitename=pathinfo(__FILE__);
	$sitename=$sitename['basename'];
	
	$f=new Formgen();
	$get=new Getvars();
	$get->requireVar('view');
	$get->assignVar('back');
	$get->assignVar('forward');
	$get->assignVar('site');
	$get->assignVar('type');
	if($get->validateVars()){
		$e= new pExploit();
		$e->dbh($dbh);
		$n=$e->mysqlCountByPlatform($get->view());															//anpassen
		

		/***************
		 * navigation *
		 **************/
		$nav=new Navigation($f);
Exemple #6
0
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>show exploit</title>
<link rel="stylesheet" media="all" href="layout.css">
</head>
<body>
	<div id="head">
			<h1><a href="index.php">ue-cr3w exploits</a></h1>
		<img src="img/logo.png" alt="logo" />
	</div>
	<div>
	<?php 
	$varExploit=new Getvars();
	$varExploit->requireVar('view');
	
	if ($varExploit->validateVars()){
		//load 
		$e=new pExploit();
		$e->dbh($dbh);
		$e->mysqlSelect($varExploit->view());			
		$f=new Formgen();

		
		//output		
		$link= $f->getLink("download", $e->file());