[cvs] [Wiki] changed: CreatingYourFirstModule
Wiki Guest
wikiguest at horde.org
Fri Feb 6 19:56:02 UTC 2009
guest [129.187.43.121] Fri, 06 Feb 2009 14:56:01 -0500
Modified page: http://wiki.horde.org/CreatingYourFirstModule
New Revision: 1.2
Change log: Rename-Script update corrected
@@ -15,35 +15,32 @@
#!/usr/bin/php -q
<?
function analysedir( $path_, $list_ )
{
- // Verzeichnis lesen
- //echo "Path: $path_nn";
+ // Read dir
$handle = opendir($path_);
while (false !== ($file = readdir($handle)))
{
if( $file!='.' && $file!='..')
{
$file = $path_ . DIRECTORY_SEPARATOR . $file;
//echo "$filen";
- if( !is_dir( $file ) ) // Wenn Datei: Anhängen
+ if( !is_dir( $file ) ) // If File: Append
{
$list_[count($list_)]=$file;
}
- else // Wenn Ordner: Rekursiv untersuchen
+ else // If Folder: scan recursively
{
$list_ += analysedir($file, $list_ );
}
}
- } // While ENDE
+ } // While END
return $list_;
}
function substitute_skeleton( $filename, $modulname )
{
-
-
$prjUC=strtoupper(trim($modulname));
$prjLC=strtolower($prjUC);
$prjMC=substr($prjUC, 0, 1) . substr($prjLC, 1, strlen($prjLC)-1);
More information about the cvs
mailing list