if ($res == false) { jdialog("データベース名が異なるようです", "step2.php"); exit; } // DBテーブルの作成 try { $rec = new DBRecord(RESERVE_TBL); $rec->createTable(RESERVE_STRUCT); $rec = new DBRecord(PROGRAM_TBL); $rec->createTable(PROGRAM_STRUCT); $rec = new DBRecord(CHANNEL_TBL); $rec->createTable(CHANNEL_STRUCT); $rec = new DBRecord(CATEGORY_TBL); $rec->createTable(CATEGORY_STRUCT); $rec = new DBRecord(KEYWORD_TBL); $rec->createTable(KEYWORD_STRUCT); } catch (Exception $e) { jdialog("テーブルの作成に失敗しました。データベースに権限がない等の理由が考えられます。", "step2.php"); exit; } $smarty = new Smarty(); $smarty->template_dir = "../templates/"; $smarty->compile_dir = "../templates_c/"; $smarty->cache_dir = "../cache/"; $smarty->assign("record_mode", $RECORD_MODE); $smarty->assign("settings", $settings); $smarty->assign("install_path", INSTALL_PATH); $smarty->assign("post_to", "step4.php"); $smarty->assign("sitetitle", "インストールステップ3"); $smarty->assign("message", "環境設定を行います。これらの設定はデフォルトのままでも制限付きながら動作します。"); $smarty->display("envSetting.html");
<?php header("Expires: Thu, 01 Dec 1994 16:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); 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(RESERVE_TBL, "id", $reserve_id); $start_time = toTimestamp($rrec->starttime); $end_time = toTimestamp($rrec->endtime); $duration = $end_time - $start_time; $size = 3 * 1024 * 1024 * $duration; // 1秒あたり3MBと仮定 header('Content-type: video/mpeg'); header('Content-Disposition: inline; filename="' . $rrec->path . '"'); header('Content-Length: ' . $size); ob_clean(); flush(); $fp = @fopen(INSTALL_PATH . $settings->spool . "/" . $rrec->path, "r"); if ($fp !== false) { do {
<?php include_once "config.php"; include_once INSTALL_PATH . "/Settings.class.php"; include_once INSTALL_PATH . "/reclib.php"; $settings = Settings::factory(); $settings->post(); $settings->save(); jdialog("設定が保存されました", "index.php");