Index: trunk/install/php/showplaylist.php
===================================================================
--- trunk/install/php/showplaylist.php (リビジョン 106)
+++ trunk/install/php/showplaylist.php (リビジョン 114)
@@ -101,12 +101,14 @@
foreach($m2pfiles as $pathfName) {
+
$fNametmp = split("/",$pathfName);
$fName = array_pop($fNametmp);
//print "FILENAME:$fName
\n";
- if(($fName == ".") or ($fName == "..") ){ continue; }
- if ((ereg(".m2.+", $fName))|| (ereg(".aac", $fName))){
- $filesplit = split("-",$fName);
-
+if(($fName == ".") or ($fName == "..") ){ continue; }
+if ((ereg(".m2.+", $fName))|| (ereg(".aac", $fName))){
+ $filesplit = split("-",$fName);
+
+if (preg_match("/^\d+$/", $filesplit[0])) {// print "File is looks like good:preg
\n";
if ($filesplit[1] == ""){
$query = "
@@ -125,4 +127,5 @@
$subtitle = "";
$count = "";
+
}else{
@@ -165,4 +168,8 @@
print "\n
";
+}else{
+ //print "File is looks like BAD:preg
\n";
+}//
+
}//ereg
}//foreach