本文整理匯總了PHP中Install::vxSetupBoard方法的典型用法代碼示例。如果您正苦於以下問題:PHP Install::vxSetupBoard方法的具體用法?PHP Install::vxSetupBoard怎麽用?PHP Install::vxSetupBoard使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Install
的用法示例。
在下文中一共展示了Install::vxSetupBoard方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: time
$board_description = mysql_real_escape_string($board_description);
$board_created = time();
$board_lastupdated = time();
$sql = "INSERT INTO babel_node(nod_name, nod_title, nod_pid, nod_sid, nod_uid, nod_level, nod_header, nod_footer, nod_description, nod_created, nod_lastupdated) VALUES('{$board_name}', '{$board_title}', {$board_pid}, {$board_sid}, {$board_uid}, {$board_level}, '{$board_header}', '{$board_footer}', '{$board_description}', {$board_created}, {$board_lastupdated})";
$sql_exist = "SELECT nod_id FROM babel_node WHERE nod_name = '{$board_name}'";
$rs = mysql_query($sql_exist);
if (mysql_num_rows($rs) > 0) {
$Node = mysql_fetch_object($rs);
mysql_free_result($rs);
$sql_update = "UPDATE babel_node SET nod_title = '{$board_title}', nod_pid = {$board_pid}, nod_sid = {$board_sid}, nod_uid = {$board_uid}, nod_level = {$board_level}, nod_header = '{$board_header}', nod_footer = '{$board_footer}', nod_description = '{$board_description}' WHERE nod_id = {$Node->nod_id}";
mysql_query($sql_update);
if (mysql_affected_rows() == 1) {
echo 'UD: ' . $sql_update . '<br />';
} else {
echo 'EX: ' . $sql_update . '<br />';
}
} else {
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->vxSetupWeight();
// You can set up your own world from here:
$i->vxSetupBoard('board', 'Board', 2, 2, 1, 2, 'Hello World!', 'This is an example board in Limbo.');
$i->vxSetupChannelByName('board', 'http://feeds.feedburner.com/livid');
示例2:
$i->vxSetupBoard('shenzhen', '深圳', 2, 2, 1, 2);
$i->vxSetupBoard('shijiazhuang', '石家莊', 2, 2, 1, 2);
$i->vxSetupBoard('suzhou', '蘇州', 2, 2, 1, 2);
$i->vxSetupBoard('taiyuan', '太原', 2, 2, 1, 2);
$i->vxSetupBoard('handan', '邯鄲', 2, 2, 1, 2);
$i->vxSetupBoard('tianjin', '天津', 2, 2, 1, 2);
$i->vxSetupBoard('wuhan', '武漢', 2, 2, 1, 2);
$i->vxSetupBoard('xiamen', '廈門', 2, 2, 1, 2);
$i->vxSetupBoard('xian', '西安', 2, 2, 1, 2);
$i->vxSetupBoard('yantai', '煙台', 2, 2, 1, 2);
$i->vxSetupBoard('zhengzhou', '鄭州', 2, 2, 1, 2);
$i->vxSetupBoard('haikou', '海口', 2, 2, 1, 2);
$i->vxSetupBoard('wuxi', '無錫', 2, 2, 1, 2);
$i->vxSetupBoard('anshan', '鞍山', 2, 2, 1, 2);
*/
$i->vxSetupBoard('kijijipetactivity', '愛心客,齊集! 活動發布區', 2, 2, 1, 2);
/*
$i->vxSetupBoard('kactivity', '客齊集中央情報局', 2, 2, 1, 2, '你租房子,我補貼。來客齊集多快好省!', '我的活動,我做主');
// ent
$i->vxSetupBoard('supergirl', '超級女聲 / 想唱就唱', 3, 3, 1, 2);
$i->vxSetupBoard('sglyc', '李宇春', 3, 3, 1, 2);
$i->vxSetupBoard('sgzly', '張靚穎', 3, 3, 1, 2);
$i->vxSetupBoard('sghj', '何潔', 3, 3, 1, 2);
$i->vxSetupBoard('sgzbc', '周筆暢', 3, 3, 1, 2);
$i->vxSetupBoard('sgjmj', '紀敏佳', 3, 3, 1, 2);
$i->vxSetupBoard('sgyyq', '葉一茜', 3, 3, 1, 2);
$i->vxSetupBoard('sghyl', '黃雅莉', 3, 3, 1, 2);
$i->vxSetupBoard('sgyh', '易惠', 3, 3, 1, 2);
$i->vxSetupBoard('sgzy', '朱妍', 3, 3, 1, 2);
$i->vxSetupBoard('sgzjy', '趙靜怡', 3, 3, 1, 2);
示例3: die
}
} else {
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, '', '');