diff setChannelInfo.php @ 137:a18df712fc7e

merged with upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 21 Mar 2010 03:15:00 +0900
parents 134fced37df5
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/setChannelInfo.php	Sun Mar 21 03:15:00 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: チャンネル情報更新失敗" );
+	}
+}
+?>
\ No newline at end of file