Mercurial > epgrec.yaz
changeset 127:134fced37df5
mod: ԥ
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 17 Mar 2010 18:14:19 +0900 |
parents | b491e7136044 |
children | d6a932ac8d8e |
files | setChannelInfo.php |
diffstat | 1 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/setChannelInfo.php Wed Mar 17 18:13:01 2010 +0900 +++ b/setChannelInfo.php Wed Mar 17 18:14:19 2010 +0900 @@ -1,18 +1,18 @@ -<?php -include_once('config.php'); -include_once( INSTALL_PATH . "/DBRecord.class.php" ); -include_once( INSTALL_PATH . "/Settings.class.php" ); - - -if( isset($_POST['sid']) && isset($_POST['channel_disc']) && isset($_POST['skip']) ) { - - try { - $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $_POST['channel_disc'] ); - $crec->sid = trim($_POST['sid']); - $crec->skip = (int)(trim($_POST['skip'])); - } - catch( Exception $e ) { - exit("Error: チャンネル情報更新失敗" ); - } -} +<?php +include_once('config.php'); +include_once( INSTALL_PATH . "/DBRecord.class.php" ); +include_once( INSTALL_PATH . "/Settings.class.php" ); + + +if( isset($_POST['sid']) && isset($_POST['channel_disc']) && isset($_POST['skip']) ) { + + try { + $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $_POST['channel_disc'] ); + $crec->sid = trim($_POST['sid']); + $crec->skip = (int)(trim($_POST['skip'])); + } + catch( Exception $e ) { + exit("Error: チャンネル情報更新失敗" ); + } +} ?> \ No newline at end of file