OSDN Git Service

modified: mediatomb.php
authoryoneda <yoneda@debian.localnet.mda.or.jp>
Mon, 13 Jul 2009 15:19:55 +0000 (00:19 +0900)
committeryoneda <yoneda@debian.localnet.mda.or.jp>
Mon, 13 Jul 2009 15:19:55 +0000 (00:19 +0900)
modified:   recomplete.php

mediatomb.php
recomplete.php

index 2658ead..0ed85d0 100755 (executable)
@@ -3,6 +3,7 @@
 
 include_once('config.php');
 include_once(INSTALL_PATH.'/DBRecord.class.php');
+include_once(INSTALL_PATH.'/reclib.php');
 
 try {
 
@@ -17,9 +18,10 @@ try {
   mysql_query( $sqlstr );
 
   foreach( $recs as $rec ) {
+         $title = $rec->title."(".date("Y/m/d", toTimestamp($rec->starttime)).")";
       $sqlstr = "update mt_cds_object set metadata='dc:description=".$rec->description."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );
-      $sqlstr = "update mt_cds_object set dc_title='".$rec->title."' where dc_title='".$rec->path."'";
+      $sqlstr = "update mt_cds_object set dc_title='".$title."' where dc_title='".$rec->path."'";
       mysql_query( $sqlstr );
   }
 }
index d60e319..7a10925 100755 (executable)
@@ -21,7 +21,7 @@ try{
                                mysql_query( $sqlstr );
                                $sqlstr = "update mt_cds_object set metadata='dc:description=".$rrec->description."' where dc_title='".$rrec->path."'";
                                mysql_query( $sqlstr );
-                               $sqlstr = "update mt_cds_object set dc_title='".$rrec->title."' where dc_title='".$rrec->path."'";
+                               $sqlstr = "update mt_cds_object set dc_title='".$rrec->title."(".date("Y/m/d").")' where dc_title='".$rrec->path."'";
                                mysql_query( $sqlstr );
                        }
                }