В itemadder.php
Code
if ($_POST['ex1']){
$HH+=1;
$ops++;
$rqcredit+=$webshop['credits']['itemexl1'];
}
if ($_POST['ex2']){
$HH+=2;
$ops++;
$rqcredit+=$webshop['credits']['itemexl2'];
}
if ($_POST['ex3']){
$HH+=4;
$ops++;
$rqcredit+=$webshop['credits']['itemexl3'];
}
if ($_POST['ex4']){
$HH+=8;
$ops++;
$rqcredit+=$webshop['credits']['itemexl4'];
}
if ($_POST['ex5']){
$HH+=16;
$ops++;
$rqcredit+=$webshop['credits']['itemexl5'];
}
if ($_POST['ex6']){
$HH+=32;
$ops++;
$rqcredit+=$webshop['credits']['itemexl6'];
}
В wshconf.php
Code
$webshop['credits']['itemexl1'] = 10;
$webshop['credits']['itemexl2'] = 20;
$webshop['credits']['itemexl3'] = 30;
$webshop['credits']['itemexl4'] = 40;
$webshop['credits']['itemexl5'] = 50;
$webshop['credits']['itemexl6'] = 60;