Link14716 |
08-18-2004 11:46 PM |
Quote:
Originally Posted by Limpkinw
I have modified my Uttstore files is there a way u can tell the changed made on the files or is tehre too many to list?
thanks!
|
I believe these edits are correct.
action.admindonate.php (this one is not important, but I fixed it here as well):
Find:
PHP Code:
global $DB_site, $bbuserinfo, $points, $action;
Replace with:
PHP Code:
global $DB_site, $bbuserinfo, $points, $action, $_FIELDS;
Find: Add Above:
PHP Code:
$nonoarray = array(" ", "'", "\"", ",", "+", "=", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$_FIELDS['points'] = str_replace($nonoarray, "", $_FIELDS['points']);
action.bank.php:
Find:
PHP Code:
function uttstore_deposit_sanity($amount) {
global $points;
Replace with:
PHP Code:
function uttstore_deposit_sanity($amount) {
global $points, $_FIELDS;
Find:
PHP Code:
if ($points < $amount) {
$message = "You cannot deposit more than you have!";
uttstore_print_end_message($message);
}
Replace with:
PHP Code:
$nonoarray = array(" ", "'", "\"", ",", "+", "-", "=", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$_FIELDS['points'] = str_replace($nonoarray, "", $_FIELDS['points']);
if ($points < $_FIELDS['points']) {
$message = "You cannot deposit more than you have!";
uttstore_print_end_message($message);
}
Find:
PHP Code:
function uttstore_withdraw_sanity($bankdata,$mode=2,$amount=0) {
global $vbphrase;
Replace with:
PHP Code:
function uttstore_withdraw_sanity($bankdata,$mode=2,$amount=0) {
global $vbphrase, $_FIELDS;
Find:
PHP Code:
if ($amount <= "0") {
$message = "You may not withdraw a non-positive amount!";
uttstore_print_end_message($message);
}
if ($bankdata['amount'] < $amount) {
$message = "You cannot withdraw more than you have!";
uttstore_print_end_message($message);
}
Replace with:
PHP Code:
$nonoarray = array(" ", "'", "\"", ",", "+", "-", "=", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$_FIELDS['points'] = str_replace($nonoarray, "", $_FIELDS['points']);
if ($_FIELDS['points'] <= "0") {
$message = "You may not withdraw a non-positive amount!";
uttstore_print_end_message($message);
}
if ($bankdata['amount'] < $_FIELDS['points']) {
$message = "You cannot withdraw more than you have!";
uttstore_print_end_message($message);
}
action.donate.php:
Find:
PHP Code:
global $DB_site, $bbuserinfo, $points, $action, $vbphrase;
Replace with:
PHP Code:
global $DB_site, $bbuserinfo, $points, $action, $vbphrase, $_FIELDS;
Find:
PHP Code:
if ($amount <= "0") {
$message = "You may not donate a non-positive amount!";
uttstore_print_end_message($message);
}
Replace with:
PHP Code:
$nonoarray = array(" ", "'", "\"", ",", "+", "-", "=", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$_FIELDS['points'] = str_replace($nonoarray, "", $_FIELDS['points']);
if ($_FIELDS['points'] <= "0") {
$message = "You may not donate a non-positive amount!";
uttstore_print_end_message($message);
}
action.thief.php:
Find:
PHP Code:
$totalcost = calculate_taxed_price($_FIELDS['points'], $action['tax']);
$totalcost = uttpoints_number_format($totalcost);
Add above:
PHP Code:
$nonoarray = array(" ", "'", "\"", ",", "+", "-", "=", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
$_FIELDS['points'] = str_replace($nonoarray, "", $_FIELDS['points']);
|