Exemple #1
0
		
		$get->order()=="asc"?$cursor="↑" :  $cursor="↓";
		$get->order()=="asc"?$order="desc" :  $order="asc";

		$values=array(	'hits'=>'hits'
						,'platform'=>'platform'
						,'autor'=>'author'
						,'date' =>'date'
						,'verified' =>'V'
					);
		if ($get->order_by()!=''){
		$values[$get->order_by()]=$cursor.' ' . $values[$get->order_by()];
		}
		
		
		$hitlink=$f->getLink($values['hits'], "",array('order_by'=>'hits',  'order'=>$order) +  $currentVars);
		$platformlink=$f->getLink($values['platform'], "",array('order_by'=>'platform',  'order'=>$order) +  $currentVars);
		$authorlink=$f->getLink($values['autor'], "",array('order_by'=>'autor',  'order'=>$order) +  $currentVars);
		$datelink=$f->getLink($values['date'], "",array('order_by'=>'date',  'order'=>$order) +  $currentVars);
		$verified=$f->getLink($values['verified'], "",array('order_by'=>'verified',  'order'=>$order) +  $currentVars);
			
		/***************
		 * navigation *
		 **************/
		$nav=new Navigation($f);
		$nav->currentSite($get->site());
		$nav->nElements($n);
		$nav->itemsPerSite(NUMBERS_PER_SIDE);
		$nav->targetUrl($sitename);									
		$nav->additionalUrlParams(array('view'=>$get->view(), 'order_by' =>$get->order_by(), 'order'=>$get->order()));			
		
Exemple #2
0
	<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?");
	echo "<tr><td>$view</td><td>$edit</td><td>$delete</td></tr>\n";
}

?>
</table>
</div>
	</div>
</body>
</html>
Exemple #3
0
		<!-- aus jeder kategorie 7-8 ausgeben. div drum, werte in table -->
	<?php
	$c=new pCategory();
	$c->dbh($dbh);
	$categories=$c->mysqlSelect();


	foreach ($categories as $c){


		//-----lsExploits--------------------------------------------------------------------------------------------------------------------------------------------------------------
		$f=new Formgen();
		$e= new pExploit();
		$e->dbh($dbh);
		$exploits=$e->mySqlSelectByCategory($c->id(),0, 8);
		$viewByCategory=$f->getLink($c->name(), "ViewByCategory.php", array("view"=> $c->id()));
		
		echo "<div class=\"exploit-category\">\n";
		echo "<h4 class=\"category-title\">$viewByCategory</h4><table>\n";
		echo "<tr><th>Date</th><th>DL</th><th>V</th><th>Description</th><th>DL's</th><th>Platform</th><th>Author</th></tr>";
		$ctr=0;
		foreach ($exploits as $e){			
			$ctr%2==0 ? $modulo="table-gerade" : $modulo="table-ungerade";
			

			$viewExploit=$f->getLink($e->title(), "ViewExploit.php", array("view"=> $e->id()));
			$viewByAuthor=$f->getLink($e->autor(), "ViewByAuthor.php", array("view"=>1));
			$viewByPlatform=$f->getLink($e->loadPlatform(), "ViewByPlatform.php", array("view"=>$e->platform()));

			$download="";
			if ($e->file()!='')
Exemple #4
0
		$nav->nElements($n);
		$nav->itemsPerSite(15);
		$nav->targetUrl($sitename);									
		$nav->additionalUrlParams(array('view'=>$get->view()));
		//-----lsExploits--------------------------------------------------------------------------------------------------------------------------------------------------------------
		$e= new pExploit();
		$e->dbh($dbh);
		//$c=new pCategory();
		$p=new pPlatform();
		$p->dbh($dbh);
		$p->mysqlSelect($get->view());
		$exploits=$e->mySqlSelectByPlatform($get->view(),$nav->mysqlStart(), $nav->itemsPerSite());			//anpassen
		
		
		
		$viewByCategory=$f->getLink($p->name(), $sitename, array("view"=> $p->id()));	
		echo "<div class=\"exploit-category\">\n";
		echo "<h4 class=\"category-title\">$viewByCategory</h4><table>\n";
		echo "<tr><th>Date</th><th>DL</th><th>V</th><th>Description</th><th>DL's</th><th>Category</th><th>Author</th></tr>";
		$ctr=0;
		foreach ($exploits as $e){
			$ctr%2==0 ? $modulo="table-gerade" : $modulo="table-ungerade";


			$viewExploit=$f->getLink($e->title(), "ViewExploit.php", array("view"=> $e->id()));
			$viewByAuthor=$f->getLink($e->autor(), "ViewByAuthor.php", array("view"=>1));
		
			$viewByCategory=$f->getLink($e->loadCategory(), "ViewByCategory.php", array("view"=>$e->category()));
			$download="";
			if ($e->file()!='')
			$download=$f->getLink('&#9112;', $e->file());
Exemple #5
0
	</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());
		
		
		
		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