Update of /cvsroot/phpida/ida
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24097
Modified Files:
ida.php
Log Message:
Removed some old useless code.
Index: ida.php
===================================================================
RCS file: /cvsroot/phpida/ida/ida.php,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** ida.php 21 Aug 2007 18:39:36 -0000 1.22
--- ida.php 21 Aug 2007 18:42:32 -0000 1.23
***************
*** 416,449 ****
- class plugins {
- /**
- * Return a integer telling somthing about the user-agent
- */
- function getUaType($userAgent) {
- global $ida;
- /**
- * The value returned says something about the type of the user-agent
- * 0 - Unknown
- * 1 - Search engine robot
- * 2 - Bad robot, should be blocked
- * 3 - Other, nice robot
- */
- $robots = @file($ida->idaDir."/useragents.ida");
- if(sizeof($robots)>1) {
- foreach($robots as $robot) {
- $robotDetails = explode("|", $robot);
- if(trim($robotDetails[2])==trim($userAgent)) {
- return $robotDetails[1];
- }
- }
- } else {
- return 0;
- }
- }
-
- }
- $pluginLib = new plugins;
-
-
/**
* Do stuff to make the program work.. :P
--- 416,419 ----
|