mysql_query($sql) or die(mysql_error()); if (mysql_affected_rows() == 1) { echo 'OK: ' . $sql . '<br />'; } else { echo 'FD: ' . $sql . '<br />'; } } } } $i = new Install(); $i->vxSetupWeightV2EX(); // The River Oceanus //$i->vxSetupSectionExtra('theriveroceanus', '海神之河'); $i->vxSetupBoard('creditcard', '信用卡', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('stock', '股票', 452, 452, 1, 2, '', '股票 | 证券 | Stock'); $i->vxSetupRelatedByName('stock', 'http://www.stockstar.com/', '证券之星'); $i->vxSetupRelatedByName('stock', 'http://www.gf.com.cn/', '广发证券'); $i->vxSetupRelatedByName('stock', 'http://www.jrj.com/', '金融界'); $i->vxSetupRelatedByName('stock', 'http://www.hexun.com/', '和讯'); $i->vxSetupBoard('stockindexfutures', '股指期货', 452, 452, 1, 2, '', '股指期货 | Stock Index Futures'); $i->vxSetupBoard('nyse', 'New York Stock Exchange', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('amex', 'American Stock and Options Exchange', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('nasdaq', 'NASDAQ', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('forex', '外汇', 452, 452, 1, 2, '', '外汇 | Forex'); $i->vxSetupRelatedByName('forex', 'http://www.forex.com/', 'FOREX'); $i->vxSetupRelatedByName('forex', 'http://www.dailyfx.com.hk/', 'DailyFX'); $i->vxSetupBoard('usdjpy', 'USD/JPY', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('gbpusd', 'GBP/USD', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('eurusd', 'EUR/USD', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('usdcad', 'USD/CAD', 452, 452, 1, 2, '', ''); $i->vxSetupBoard('eurjpy', 'EUR/JPY', 452, 452, 1, 2, '', '');