
05-20-2002, 05:07 PM
|
 |
|
|
Join Date: May 2002
Location: on vb.org
Posts: 526
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
This is what I have:
Quote:
// ###################### Start steal Lookup ###########
if ($action=="steal") {
if ($bbuserinfo[posts]<50) { // victim should have more than $50
eval("standarderror(\"".gettemplate('store_steal_c annot')."\");");
}
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
$storeid=$contest[id];
$title=$contest[title];
$cost=$contest[costs];
eval("dooutput(\"".gettemplate("store_steal_lookup ")."\");");
}
// ###################### Start steal How Much? #######################
if ($action=="stealmoney") {
if ($bbuserinfo[posts]<5) { // don't allow new users to steal -- they need to have more than $100!
eval("standarderror(\"".gettemplate('store_steal_c annot')."\");");
}
$getduser=$DB_site->query_first("SELECT userid,usertitle,username,storep,usergroupid FROM user WHERE username='".addslashes(htmlspecialchars($stealuser name))."'");
if ($getduser[storep]<50) { // victim should have more than $100
eval("standarderror(\"".gettemplate('store_steal_p oor')."\");");
}
if ($getduser[usergroupid]=="6") { // don't steal from admin
eval("standarderror(\"".gettemplate('store_givetit le_noadmin')."\");");
}
if (empty($getduser[username])) {
eval("standarderror(\"".gettemplate('store_donate_ dontexist')."\");");
}
else {
$storeadmin = $DB_site->query_first("SELECT * FROM storeadmin");
$storename=$storeadmin[storename];
$pointname=$storeadmin[pointname];
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='steal'");
eval("dooutput(\"".gettemplate("store_steal_money" )."\");");
}
}
|
|