Mercurial > epgrec.yaz
view install/step3.php @ 125:ef3df87f3c7d
mod: チャンネルスキップの大まかな実装終了
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 17 Mar 2010 18:12:01 +0900 |
parents | f854f6606fa5 |
children | 9c5e597ef6c6 |
line wrap: on
line source
<?php include_once("../config.php"); include_once("../Smarty/Smarty.class.php"); include_once("../DBRecord.class.php"); include_once("../Settings.class.php"); include_once("../reclib.php" ); include_once("../tableStruct.inc.php"); $settings = Settings::factory(); $settings->post(); // c篆絖 $settings->save(); // 若帥若号・膓с $dbh = @mysql_connect( $settings->db_host, $settings->db_user, $settings->db_pass ); if( $dbh == false ) { jdialog( "MySQL・膓с障鴻/若吟弱/鴻若с", "step2.php" ); exit(); } $sqlstr = "use ".$settings->db_name; $res = @mysql_query( $sqlstr ); 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"); ?>