Moficiation de la lecture du repertoire pour exclure les fichiers
archives *~
This commit is contained in:
parent
bb3fa2a43a
commit
cf8adb4a43
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -34,6 +35,7 @@
|
|||||||
|
|
||||||
class Interfaces
|
class Interfaces
|
||||||
{
|
{
|
||||||
|
//! Repertoire contenant les definitions des triggers
|
||||||
var $dir;
|
var $dir;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,7 +67,7 @@ class Interfaces
|
|||||||
|
|
||||||
while (($file = readdir($handle))!==false)
|
while (($file = readdir($handle))!==false)
|
||||||
{
|
{
|
||||||
if (is_readable($this->dir."/".$file) && eregi('interface_(.*).class.php',$file,$reg))
|
if (is_readable($this->dir."/".$file) && eregi('interface_(.*).class.php$',$file,$reg))
|
||||||
{
|
{
|
||||||
$modName = "Interface".ucfirst($reg[1]);
|
$modName = "Interface".ucfirst($reg[1]);
|
||||||
//print "file=$file"; print "modName=$modName"; exit;
|
//print "file=$file"; print "modName=$modName"; exit;
|
||||||
@ -90,6 +92,5 @@ class Interfaces
|
|||||||
if ($nbko) return $nbko;
|
if ($nbko) return $nbko;
|
||||||
return $nbok;
|
return $nbok;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user