diff sendstream.php @ 39:8965ef108821

change: modify all scripts for web base setting.
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 28 Jul 2009 11:50:04 +0900
parents f5a9f0eb4858
children f40b6cc4c587
line wrap: on
line diff
--- a/sendstream.php	Tue Jul 28 10:49:55 2009 +0900
+++ b/sendstream.php	Tue Jul 28 11:50:04 2009 +0900
@@ -9,13 +9,16 @@
 include_once("config.php");
 include_once(INSTALL_PATH . "/DBRecord.class.php" );
 include_once(INSTALL_PATH . "/reclib.php" );
+include_once(INSTALL_PATH . "/Settings.class.php" );
+
+$settings = Settings::factory();
 
 if( ! isset( $_GET['reserve_id'] )) jdialog("予約番号が指定されていません", "recordedTable.php");
 $reserve_id = $_GET['reserve_id'];
 
 
 try{
-	$rrec = new DBRecord( TBL_PREFIX.RESERVE_TBL, "id", $reserve_id );
+	$rrec = new DBRecord( RESERVE_TBL, "id", $reserve_id );
 
 	$start_time = toTimestamp($rrec->starttime);
 	$end_time = toTimestamp($rrec->endtime );
@@ -30,7 +33,7 @@
 	ob_clean();
 	flush();
 	
-	$fp = @fopen( INSTALL_PATH.SPOOL."/".$rrec->path, "r" );
+	$fp = @fopen( INSTALL_PATH.$settings->spool."/".$rrec->path, "r" );
 	if( $fp !== false ) {
 		ob_start(null,4096);
 		$status = array();