Bez zmian, to samo.
if( $this->request['step'] == 3 )
{
$itemID = $this->request['item'];;
$lengthoftime = $this->request['lengthoftime'];
$buynow = $this->request['buynow'];
$bidprice = $this->request['bidprice'];
$descc = $this->request['testowanazwazmiennej'];
$charID = $this->request['charid'];
$itemType = $this->request['itemtype'];
if( empty( $itemID ) || empty( $lengthoftime ) ) die("nopermission"); //gdy nie wybrał czasu i przedmiotu
if( empty( $buynow ) || empty( $bidprice ) ) die("nopermission"); //gdy kup teraz i wywoławcza są puste
$db = ipsRegistry::DB();
if( $itemType == 1 ) //pojazdy
{
$db->query("SELECT nickname FROM samp_chars WHERE uid='".$charID."' LIMIT 1");
$row = $db->fetch();
$charName = explode("_", $row['nickname']);
$db->query("SELECT vehName FROM samp_vehicles WHERE id='".$itemID."' LIMIT 1");
$row = $db->fetch();
$itemName = $row['vehName'];
$db->query("INSERT INTO samp_marketplace (`globalacc`, `global_name`, `char_uid`, `char_name`, `price`, `bid_price`, `type`, `item_id`, `item_name`,
`start_data`, `end_data`, `description`)
VALUES ('".$this->memberData['member_id']."',
'".$this->memberData['name']."',
'".$charID."',
'".$charName[0]." ".$charName[1]."',
'".$buynow."',
'".$bidprice."',
'".$itemType."',
'".$itemID."',
'".$itemName."',
'0',
'0',
'".$descc."')");
}
}
Co za różnica czy czysty php czy funkcje z IPB? Z resztą to chyba normalne, że jak się zaczyna pracę z nowym silnikiem to nie odrazu zna się wszystkie funkcje.