예제 #1
0
	$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()!=""){
			$orderBy=$get->order_by();
			$order=$get->order();
		}
		
		
		$get->order()=="asc"?$cursor="↑" :  $cursor="↓";
		$get->order()=="asc"?$order="desc" :  $order="asc";
예제 #2
0
파일: NewExploit.php 프로젝트: rawthang/dbx
</head>
<body>
	<div id="head">
		<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()){
예제 #3
0
파일: pExploit.php 프로젝트: rawthang/dbx
	public function loadCategory(){
		if ($this->dbh){
				$c=new pCategory();
				$c->dbh($this->dbh());
				$c->mysqlSelect($this->category());
				return $c->name();
			
		}						
	}