comparison upgrade_db.php @ 135:9c5e597ef6c6

mod: ログ機能を追加
author epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
date Sat, 20 Mar 2010 23:59:01 +0900
parents 3bed74eca373
children 481e789605e3
comparison
equal deleted inserted replaced
134:58791b90221b 135:9c5e597ef6c6
2 <?php 2 <?php
3 $script_path = dirname( __FILE__ ); 3 $script_path = dirname( __FILE__ );
4 chdir( $script_path ); 4 chdir( $script_path );
5 include_once($script_path . '/config.php'); 5 include_once($script_path . '/config.php');
6 include_once(INSTALL_PATH . '/Settings.class.php' ); 6 include_once(INSTALL_PATH . '/Settings.class.php' );
7 7 include_once(INSTALL_PATH . '/DBRecord.class.php' );
8 include_once(INSTALL_PATH . '/tableStruct.inc.php' );
8 9
9 // mysqli::multi_query篏障<т戎 10 // mysqli::multi_query篏障<т戎
10 11
11 function multi_query( $sqlstrs, $dbh ) { 12 function multi_query( $sqlstrs, $dbh ) {
12 $error = false; 13 $error = false;
191 } 192 }
192 193
193 if( multi_query( $sqlstrs, $dbh ) ) { 194 if( multi_query( $sqlstrs, $dbh ) ) {
194 echo "若若若≪若紊掩\n"; 195 echo "若若若≪若紊掩\n";
195 } 196 }
197
198 // 違若
199
200 try {
201 $log = new DBRecord( LOG_TBL );
202 $log->createTable( LOG_STRUCT );
203 }
204 catch( Exception $e ) {
205 echo $e->message;
206 echo "\n";
207 }
208
196 } 209 }
197 else 210 else
198 exit( "DB・膓紊掩\n" ); 211 exit( "DB・膓紊掩\n" );
199 ?> 212 ?>