コード例 #1
0
ファイル: ViewByCategory.php プロジェクト: rawthang/dbx
</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

	$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
コード例 #2
0
ファイル: NewExploit.php プロジェクト: rawthang/dbx
			$upload=new Upload($vars->url_upload(),$_FILES['pc_upload']);
			$upload->uploaddir('upload');
			$e->file($upload->upload());

			$e->mysqlInsert();
			echo "<h4>{$vars->catname()} hinzugef&uuml;gt</h4>";
		}else {
			//nicht alle erforderlichen Variablen dabei
			echo "<h5>missing stuff:</h5>";
			foreach ($vars->missingVars()as $missing){
				echo $missing. ", ";
			}
		}
		/**Formular erzeugen***/
		$path=pathinfo(__FILE__);
		$form=new Formgen("post", $path['filename'].'.'.$path['extension']);
		$form->addTextField("Name", "catname");
		$form->addSelect("kategorie", "category",$category->mysqlSelect());
		$form->addSelect("platform", "platform",$platform->mysqlSelect());
		$form->addSelect("Spache", "language", $languages);
		$form->addTextArea("beschreibung", "content","Beschreibung eingeben", 30,65);
		$form->addTextField("upload from url", "url_upload");
		$form->addUpload("upload from pc", "pc_upload");
		$form->addCheckBox("verified", "verified");
		echo $form->getForm();
		?>

	</div>
</body>
</html>
コード例 #3
0
ファイル: EditExploit.php プロジェクト: rawthang/dbx
		$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());
			$form->addSelect("kategorie", "category",$categories);
			$form->addSelect("platform", "platform",$platforms);
			$form->addSelect("Spache", "language", $languages);
			$form->addTextArea("beschreibung", "content",$e->content(), 30,65);
			$form->addTextField("upload from url", "url_upload");
			$form->addUpload("upload from pc", "pc_upload");
			$check=$e->verified()?true:false;
			
			$form->addCheckBox("verified", "verified",$e->verified());
			$form->addHidden("id", $e->id());
			$form->addHidden("edit", $e->id());
			echo $form->getForm();
		}
		?>
コード例 #4
0
ファイル: ListExploit.php プロジェクト: rawthang/dbx
/**Passwörter*/
require_once 'classes/other/phpass-0.3/PasswordHash.php';
require_once 'classes/helper/Login.php';
require_once 'classes/helper/Session.php';
require_once 'classes/helper/Upload.php';
require_once 'classes/helper/Getvars.php';
require_once 'classes/helper/Formgen.php';

$dbh=new PDO(DB_DSN, DB_USR, DB_PASS);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);		//@todo das steht nur zum üben hier

$e=new pExploit();

$e->dbh($dbh);
$exploits=$e->mysqlSelect();
$fgen=new Formgen();
?>

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>list exploit</title>
<link rel="stylesheet" media="all" href="layout.css">
<script>function confirmGo(m,u) {
	if ( confirm(m) ) {
		window.location = u;
		}
		}
		
</script>
コード例 #5
0
ファイル: ViewByPlatform.php プロジェクト: rawthang/dbx
</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

	$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 *
		 **************/
コード例 #6
0
ファイル: index.php プロジェクト: rawthang/dbx
		<h1><a href="index.php">ue-cr3w exploits</a></h1>
		<img src="img/logo.png" alt="logo" />
	</div>
	<div>
		<!-- 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));
コード例 #7
0
ファイル: ViewExploit.php プロジェクト: rawthang/dbx
<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>';
		echo "<div class=\"exploit-download\">$link</div>";