OSDN Git Service

mod: チャンネルスキップの大まかな実装終了
authorSushi-k <epgrec@park.mda.or.jp>
Wed, 17 Mar 2010 09:13:01 +0000 (18:13 +0900)
committerSushi-k <epgrec@park.mda.or.jp>
Wed, 17 Mar 2010 09:13:01 +0000 (18:13 +0900)
setChannelInfo.php [new file with mode: 0755]

diff --git a/setChannelInfo.php b/setChannelInfo.php
new file mode 100755 (executable)
index 0000000..459543f
--- /dev/null
@@ -0,0 +1,18 @@
+<?php\r
+include_once('config.php');\r
+include_once( INSTALL_PATH . "/DBRecord.class.php" );\r
+include_once( INSTALL_PATH . "/Settings.class.php" );\r
+\r
+\r
+if( isset($_POST['sid']) && isset($_POST['channel_disc']) && isset($_POST['skip']) ) {\r
+       \r
+       try {\r
+               $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $_POST['channel_disc'] );\r
+               $crec->sid = trim($_POST['sid']);\r
+               $crec->skip = (int)(trim($_POST['skip']));\r
+       }\r
+       catch( Exception $e ) {\r
+               exit("Error: チャンネル情報更新失敗" );\r
+       }\r
+}\r
+?>
\ No newline at end of file