changeset 13:b0fc647167f5

modified: mediatomb.php modified: recomplete.php
author yoneda <yoneda@debian.localnet.mda.or.jp>
date Tue, 14 Jul 2009 00:19:55 +0900
parents c4cb171f9453
children bbbc4f1ecf1d
files mediatomb.php recomplete.php
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mediatomb.php	Mon Jul 13 23:47:19 2009 +0900
+++ b/mediatomb.php	Tue Jul 14 00:19:55 2009 +0900
@@ -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 @@
   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 );
   }
 }
--- a/recomplete.php	Mon Jul 13 23:47:19 2009 +0900
+++ b/recomplete.php	Tue Jul 14 00:19:55 2009 +0900
@@ -21,7 +21,7 @@
 				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 );
 			}
 		}