http://www.2233.idv.tw/viewtopic.php?p=3915285#3915285
修改方式 寫:開啟 wog.js 寫:尋找
- 代碼: 選擇全部
function black_shop()
{
...
}
該function裡 適當位置加入
- 代碼: 選擇全部
f.write('<form action="wog_act.php" name="f3" method="post" target="mission">');
f.write(temp_table1);
f.write('<tr><td>變更推薦網址</td></tr>');
f.write('<tr><td>輸入網頁名稱 <input type="text" name="site" size="20"></td></tr>');
f.write('<tr><td>輸入網址連結 <input type="text" name="siteurl" value="http://" size="40" maxlength="150"></td></tr>');
f.write('<tr><td><input type="button" value="改變推薦網址" onclick="parent.act_click(\'store\',\'url\',document.f3.site.value+\',\'+document.f3.siteurl.value)"></td></tr>');
f.write('<tr><td>變推薦網需花100萬</td></tr>');
f.write(temp_table2);
f.write('</form>');開啟 wog_act_store.php 寫:尋找
- 代碼: 選擇全部
}
?>
上面加上
- 代碼: 選擇全部
function p_url($user_id)
{
global $DB_site,$_POST,$wog_arry,$lang;
list($site,$siteurl)=explode(',',$_POST['temp_id']);
if(empty($site))
{
alertWindowMsg($lang['wog_act_url_noname']);
}
if(empty($siteurl) || $siteurl=="http://")
{
alertWindowMsg($lang['wog_act_url_nourl']);
}
$have_price=$DB_site->query_first("select p_money from wog_player where p_id=".$user_id."");
if($wog_arry["chang_url"]>$have_price['p_money'])
{
alertWindowMsg($lang['wog_act_nomoney']);
}
$DB_site->query("update wog_player set p_url='".$siteurl."',p_homename='".$site."',p_money=p_money-".$wog_arry["chang_url"]." where p_id=".$user_id."");
showscript("parent.d_p_url='".$siteurl."';parent.d_p_homename='".$site."';parent.job_end(11)");
unset($have_price);
}
儲存檔案(完)