[Phpida-cvs] ida ida.php,1.21,1.22
Status: Alpha
Brought to you by:
xqus
From: Audun L. <xq...@us...> - 2007-08-21 18:39:34
|
Update of /cvsroot/phpida/ida In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22877 Modified Files: ida.php Log Message: Added versio number to the report summary. Index: ida.php =================================================================== RCS file: /cvsroot/phpida/ida/ida.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ida.php 21 Aug 2007 17:38:58 -0000 1.21 --- ida.php 21 Aug 2007 18:39:36 -0000 1.22 *************** *** 8,39 **** * https://sourceforge.net/projects/phpida/ * ! */ ! ! ! class plugin { ! ! static $res = array(); ! ! static public function getResult() { ! return self::$res; ! } ! ! static public function checkRequest($request) { ! $requestInfo['info'] = ''; ! $requestInfo['risk'] = ''; ! $requestInfo['break'] = 0; ! $requestInfo['type'] = ''; ! $requestInfo[0] = 0; ! ! self::$res = $requestInfo; ! } ! ! } - class ida{ - /** - * Do not edit :) - */ var $tmpDir = "/tmp"; var $idaDir = ""; --- 8,15 ---- * https://sourceforge.net/projects/phpida/ * ! */ define('_VERSION', '0.0.3'); + class ida{ var $tmpDir = "/tmp"; var $idaDir = ""; *************** *** 60,65 **** * Initiate ida */ ! function ida() { ! /** * Sets up CLI environment based on SAPI and PHP version */ --- 36,41 ---- * Initiate ida */ ! function ida() { ! /** * Sets up CLI environment based on SAPI and PHP version */ *************** *** 406,410 **** function genReport() { if($this->hasOutput==1 || $this->optShowSummary == true) { ! fwrite(STDOUT, "-- Ida summary -----------------------------------------------------\n"); fwrite(STDOUT, " Finish date: ".date("l F j H:i Y")."\n"); fwrite(STDOUT, " Lines analyzed: ".$this->statsProcLines."\n"); --- 382,386 ---- function genReport() { if($this->hasOutput==1 || $this->optShowSummary == true) { ! fwrite(STDOUT, "-- Ida (v " . _VERSION . ") summary -------------------------------------------\n"); fwrite(STDOUT, " Finish date: ".date("l F j H:i Y")."\n"); fwrite(STDOUT, " Lines analyzed: ".$this->statsProcLines."\n"); *************** *** 418,421 **** --- 394,419 ---- } + + class plugin { + + static $res = array(); + + static public function getResult() { + return self::$res; + } + + static public function checkRequest($request) { + $requestInfo['info'] = ''; + $requestInfo['risk'] = ''; + $requestInfo['break'] = 0; + $requestInfo['type'] = ''; + $requestInfo[0] = 0; + + self::$res = $requestInfo; + } + + } + + class plugins { /** |