Пример #1
0
	<?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);
		$nav->currentSite($get->site());
		$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();
Пример #2
0
	$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
		


		//-----lsExploits--------------------------------------------------------------------------------------------------------------------------------------------------------------
		$e= new pExploit();
		$e->dbh($dbh);
		$c=new pCategory();
		$c->dbh($dbh);
		$c->mysqlSelect($get->view());
		/*******order*******************/
		$currentVars=array("view"=>$get->view());
		$order="asc";		//asc||desc
		$orderBy="date";	//order by column field
		
		if ($get->order_by()!="" && $get->order()!=""){
Пример #3
0
</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());
		
		
		
		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>';