Mercurial > epgrec.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
38:2bc96d657ba1 | 39:8965ef108821 |
---|---|
7 | 7 |
8 | 8 |
9 include_once("config.php"); | 9 include_once("config.php"); |
10 include_once(INSTALL_PATH . "/DBRecord.class.php" ); | 10 include_once(INSTALL_PATH . "/DBRecord.class.php" ); |
11 include_once(INSTALL_PATH . "/reclib.php" ); | 11 include_once(INSTALL_PATH . "/reclib.php" ); |
12 include_once(INSTALL_PATH . "/Settings.class.php" ); | |
13 | |
14 $settings = Settings::factory(); | |
12 | 15 |
13 if( ! isset( $_GET['reserve_id'] )) jdialog("予約番号が指定されていません", "recordedTable.php"); | 16 if( ! isset( $_GET['reserve_id'] )) jdialog("予約番号が指定されていません", "recordedTable.php"); |
14 $reserve_id = $_GET['reserve_id']; | 17 $reserve_id = $_GET['reserve_id']; |
15 | 18 |
16 | 19 |
17 try{ | 20 try{ |
18 $rrec = new DBRecord( TBL_PREFIX.RESERVE_TBL, "id", $reserve_id ); | 21 $rrec = new DBRecord( RESERVE_TBL, "id", $reserve_id ); |
19 | 22 |
20 $start_time = toTimestamp($rrec->starttime); | 23 $start_time = toTimestamp($rrec->starttime); |
21 $end_time = toTimestamp($rrec->endtime ); | 24 $end_time = toTimestamp($rrec->endtime ); |
22 $duration = $end_time - $start_time; | 25 $duration = $end_time - $start_time; |
23 | 26 |
28 header('Content-Length: ' . $size ); | 31 header('Content-Length: ' . $size ); |
29 | 32 |
30 ob_clean(); | 33 ob_clean(); |
31 flush(); | 34 flush(); |
32 | 35 |
33 $fp = @fopen( INSTALL_PATH.SPOOL."/".$rrec->path, "r" ); | 36 $fp = @fopen( INSTALL_PATH.$settings->spool."/".$rrec->path, "r" ); |
34 if( $fp !== false ) { | 37 if( $fp !== false ) { |
35 ob_start(null,4096); | 38 ob_start(null,4096); |
36 $status = array(); | 39 $status = array(); |
37 do { | 40 do { |
38 echo fread( $fp, 4096 ); | 41 echo fread( $fp, 4096 ); |