[Wiki] changed: CreatingYourFirstModule

Wiki Guest <[email protected]>
Newsgroups gmane.comp.horde.cvs
Message-ID <[email protected]>
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);


--
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.