changeset 126:b491e7136044

mod: チャンネルスキップの大まかな実装終了
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 17 Mar 2010 18:13:01 +0900
parents ef3df87f3c7d
children 134fced37df5
files setChannelInfo.php
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setChannelInfo.php	Wed Mar 17 18:13:01 2010 +0900
@@ -0,0 +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: c潟掩贋医け" );
+	}
+}
+?>
\ No newline at end of file