annotate channelSetSID.php @ 119:b172a0b1ea48

revoke mb_str_replace for now
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 15 Mar 2010 01:39:14 +0900
parents 49145003e6a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
102
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
1 <?php
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
2 include_once('config.php');
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
3 include_once( INSTALL_PATH . "/DBRecord.class.php" );
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
4 include_once( INSTALL_PATH . "/Settings.class.php" );
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
5
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
6
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
7 if( isset($_POST['sid']) && isset($_POST['channel_disc']) ) {
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
8
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
9 try {
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
10 $crec = new DBRecord( CHANNEL_TBL, "channel_disc", $_POST['channel_disc'] );
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
11 $crec->sid = trim($_POST['sid']);
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
12 }
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
13 catch( Exception $e ) {
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
14 // 無視
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
15 }
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
16 }
49145003e6a3 fix whitespace and new line code
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 78
diff changeset
17 ?>