Mam pewien problem. Mianowicie posiadam z kolegą forum na którym mamy sklepik, lecz mamy pewien problem. Wiadomość z informacją o kupinym lvl/adminie/itp. wysyłają się tylko do założyciela forum. Czy dałoby rrade przerobić jakoś ten plik, tak żeby wysyłało do dwóch osób?
Spoiler
<?php /*************************************************************************** * sklepcs.php * ------------------- * begin : 28.Marzec.2010 * copyright : www.My-eSerwis.pl * email : [email protected] * * ***************************************************************************/ define('IN_PHPBB', true); $phpbb_root_path = './'; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // if (isset($HTTP_GET_VARS['regulamin'])) { $template->set_filenames(array( 'body' => 'sklepcs_reg_body.tpl') ); } else if (isset($HTTP_GET_VARS['informacje'])) { $template->set_filenames(array( 'body' => 'sklepcs_info_body.tpl') ); } else if (isset($HTTP_GET_VARS['kontakt'])) { $template->set_filenames(array( 'body' => 'sklepcs_kontakt_body.tpl') ); } else if (isset($HTTP_GET_VARS['slot'])) { if(isset($_POST['wyslij'])) { $ile = stripslashes(htmlspecialchars($_POST['ile'])); $rodzaj_serwera = stripslashes(htmlspecialchars($_POST['rodzaj_serwera'])); $rodz_srv = stripslashes(htmlspecialchars($_POST['rodz_srv'])); $sid = stripslashes(htmlspecialchars($_POST['sid'])); $nick = stripslashes(htmlspecialchars($_POST['nick'])); $haslo = stripslashes(htmlspecialchars($_POST['haslo'])); $kod_sms = stripslashes(htmlspecialchars($_POST['kod_sms'])); $gg = stripslashes(htmlspecialchars($_POST['gg'])); $email = stripslashes(htmlspecialchars($_POST['email'])); $uwagi = stripslashes(htmlspecialchars($_POST['uwagi'])); if ($ile == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($email == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodzaj_serwera == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodz_srv == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($kod_sms == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($gg == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } $bbcode_uid = ''; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $blink = $server_name . $script_name . '/'; $privmsg_subject = 'Kupiono slota na serwerze!'; $privmsg_message = 'Użytkownik <b>' . $userdata['username'] . '</b> kupił slot\n\n<b><u>Dane:</u></b>\n\n Miesięcy: <b>' . $ile . '</b> miesiecy\nRodzaj serwera: <b>' . $rodzaj_serwera . '</b>\nRodzaj STEAM: <b>' . $rodz_srv . '</b>\nSID: <b>' . $sid . '</b>\nNick: <b>' . $nick . '</b>\nHaslo: <b>' . $haslo . '</b>\nKOD SMS: <b>' . $kod_sms . '</b>\nGG: <b>' . $gg . '</b>\nEmail: <b>' . $email . '</b>\n\nUwagi: <b>' . $uwagi . '</b>'; $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', '" . $userdata['user_id'] . "', '2', '" . CR_TIME . "', '" . $userdata['user_ip'] . "', '0', '1', '0', '0')"; if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $privmsg_sent_id = $db->sql_nextid(); $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1 WHERE user_id = 2"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } message_die(GENERAL_MESSAGE, 'Kupiłes slota na serwerze<br /><br />Do 6 godzin otrzymasz powiadomienie na PW <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />'); } $template->assign_vars(array( 'IP' => $_SERVER['REMOTE_ADDR'], 'USER_EMAIL' => $userdata['user_email'] )); $template->set_filenames(array( 'body' => 'sklepcs_slot_body.tpl') ); } else if (isset($HTTP_GET_VARS['admin'])) { if(isset($_POST['wyslij'])) { $ile = stripslashes(htmlspecialchars($_POST['ile'])); $rodzaj_serwera = stripslashes(htmlspecialchars($_POST['rodzaj_serwera'])); $rodz_srv = stripslashes(htmlspecialchars($_POST['rodz_srv'])); $sid = stripslashes(htmlspecialchars($_POST['sid'])); $nick = stripslashes(htmlspecialchars($_POST['nick'])); $haslo = stripslashes(htmlspecialchars($_POST['haslo'])); $kod_sms = stripslashes(htmlspecialchars($_POST['kod_sms'])); $gg = stripslashes(htmlspecialchars($_POST['gg'])); $email = stripslashes(htmlspecialchars($_POST['email'])); $uwagi = stripslashes(htmlspecialchars($_POST['uwagi'])); if ($ile == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($email == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodzaj_serwera == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodz_srv == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($kod_sms == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($gg == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } $bbcode_uid = ''; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $blink = $server_name . $script_name . '/'; $privmsg_subject = 'Kupiono admina na serwerze!'; $privmsg_message = 'Użytkownik <b>' . $userdata['username'] . '</b> kupił admina\n\n<b><u>Dane:</u></b>\n\n Miesiecy: <b>' . $ile . '</b> Miesiecy\nRodzaj serwera: <b>' . $rodzaj_serwera . '</b>\nRodzaj STEAM: <b>' . $rodz_srv . '</b>\nSID: <b>' . $sid . '</b>\nNick: <b>' . $nick . '</b>\nHaslo: <b>' . $haslo . '</b>\nKOD SMS: <b>' . $kod_sms . '</b>\nGG: <b>' . $gg . '</b>\nEmail: <b>' . $email . '</b>\n\nUwagi: <b>' . $uwagi . '</b>'; $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', '" . $userdata['user_id'] . "', '2', '" . CR_TIME . "', '" . $userdata['user_ip'] . "', '0', '1', '0', '0')"; if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $privmsg_sent_id = $db->sql_nextid(); $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1 WHERE user_id = 2"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } message_die(GENERAL_MESSAGE, 'Kupiłes admina na serwerze<br /><br />Do 6 godzin otrzymasz powiadomienie na PW <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />'); } $template->assign_vars(array( 'IP' => $_SERVER['REMOTE_ADDR'], 'USER_EMAIL' => $userdata['user_email'] )); $template->set_filenames(array( 'body' => 'sklepcs_admin_body.tpl') ); } else if (isset($HTTP_GET_VARS['vip'])) { if(isset($_POST['wyslij'])) { $ile = stripslashes(htmlspecialchars($_POST['ile'])); $rodzaj_serwera = stripslashes(htmlspecialchars($_POST['rodzaj_serwera'])); $rodz_srv = stripslashes(htmlspecialchars($_POST['rodz_srv'])); $sid = stripslashes(htmlspecialchars($_POST['sid'])); $nick = stripslashes(htmlspecialchars($_POST['nick'])); $haslo = stripslashes(htmlspecialchars($_POST['haslo'])); $kod_sms = stripslashes(htmlspecialchars($_POST['kod_sms'])); $gg = stripslashes(htmlspecialchars($_POST['gg'])); $email = stripslashes(htmlspecialchars($_POST['email'])); $uwagi = stripslashes(htmlspecialchars($_POST['uwagi'])); if ($ile == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($email == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodzaj_serwera == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodz_srv == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($kod_sms == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($gg == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } $bbcode_uid = ''; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $blink = $server_name . $script_name . '/'; $privmsg_subject = 'Kupiono VIP na serwerze!'; $privmsg_message = 'Użytkownik <b>' . $userdata['username'] . '</b> kupił VIP\n\n<b><u>Dane:</u></b>\n\n Miesiecy: <b>' . $ile . '</b> Miesiecy\nRodzaj serwera: <b>' . $rodzaj_serwera . '</b>\nRodzaj STEAM: <b>' . $rodz_srv . '</b>\nSID: <b>' . $sid . '</b>\nNick: <b>' . $nick . '</b>\nHaslo: <b>' . $haslo . '</b>\nKOD SMS: <b>' . $kod_sms . '</b>\nGG: <b>' . $gg . '</b>\nEmail: <b>' . $email . '</b>\n\nUwagi: <b>' . $uwagi . '</b>'; $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', '" . $userdata['user_id'] . "', '2', '" . CR_TIME . "', '" . $userdata['user_ip'] . "', '0', '1', '0', '0')"; if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $privmsg_sent_id = $db->sql_nextid(); $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1 WHERE user_id = 2"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } message_die(GENERAL_MESSAGE, 'Kupiłes VIP na serwerze<br /><br />Do 6 godzin otrzymasz powiadomienie na PW <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />'); } $template->assign_vars(array( 'IP' => $_SERVER['REMOTE_ADDR'], 'USER_EMAIL' => $userdata['user_email'] )); $template->set_filenames(array( 'body' => 'sklepcs_vip_body.tpl') ); } else if (isset($HTTP_GET_VARS['premium'])) { if(isset($_POST['wyslij'])) { $nazwa = stripslashes(htmlspecialchars($_POST['nazwa'])); $rodzaj_serwera = stripslashes(htmlspecialchars($_POST['rodzaj_serwera'])); $rodz_srv = stripslashes(htmlspecialchars($_POST['rodz_srv'])); $sid = stripslashes(htmlspecialchars($_POST['sid'])); $nick = stripslashes(htmlspecialchars($_POST['nick'])); $haslo = stripslashes(htmlspecialchars($_POST['haslo'])); $kod_sms = stripslashes(htmlspecialchars($_POST['kod_sms'])); $gg = stripslashes(htmlspecialchars($_POST['gg'])); $email = stripslashes(htmlspecialchars($_POST['email'])); $uwagi = stripslashes(htmlspecialchars($_POST['uwagi'])); if ($nazwa == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($email == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodzaj_serwera == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodz_srv == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($kod_sms == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($gg == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } $bbcode_uid = ''; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $blink = $server_name . $script_name . '/'; $privmsg_subject = 'Kupiono klase premium na serwerze!'; $privmsg_message = 'Użytkownik <b>' . $userdata['username'] . '</b> kupił klase premium\n\n<b><u>Dane:</u></b>\n\n Nazwa klasy: <b>' . $nazwa . '</b>\nRodzaj serwera: <b>' . $rodzaj_serwera . '</b>\nRodzaj STEAM: <b>' . $rodz_srv . '</b>\nSID: <b>' . $sid . '</b>\nNick: <b>' . $nick . '</b>\nHaslo: <b>' . $haslo . '</b>\nKOD SMS: <b>' . $kod_sms . '</b>\nGG: <b>' . $gg . '</b>\nEmail: <b>' . $email . '</b>\n\nUwagi: <b>' . $uwagi . '</b>'; $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', '" . $userdata['user_id'] . "', '2', '" . CR_TIME . "', '" . $userdata['user_ip'] . "', '0', '1', '0', '0')"; if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $privmsg_sent_id = $db->sql_nextid(); $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1 WHERE user_id = 2"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } message_die(GENERAL_MESSAGE, 'Kupiłes klase premium na serwerze<br /><br />Do 6 godzin otrzymasz powiadomienie na PW <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />'); } $template->assign_vars(array( 'IP' => $_SERVER['REMOTE_ADDR'], 'USER_EMAIL' => $userdata['user_email'] )); $template->set_filenames(array( 'body' => 'sklepcs_premium_body.tpl') ); } else if (isset($HTTP_GET_VARS['lvl'])) { if(isset($_POST['wyslij'])) { $ile = stripslashes(htmlspecialchars($_POST['ile'])); $rodzaj_serwera = stripslashes(htmlspecialchars($_POST['rodzaj_serwera'])); $rodz_srv = stripslashes(htmlspecialchars($_POST['rodz_srv'])); $klasa = stripslashes(htmlspecialchars($_POST['klasa'])); $sid = stripslashes(htmlspecialchars($_POST['sid'])); $nick = stripslashes(htmlspecialchars($_POST['nick'])); $haslo = stripslashes(htmlspecialchars($_POST['haslo'])); $kod_sms = stripslashes(htmlspecialchars($_POST['kod_sms'])); $gg = stripslashes(htmlspecialchars($_POST['gg'])); $email = stripslashes(htmlspecialchars($_POST['email'])); $uwagi = stripslashes(htmlspecialchars($_POST['uwagi'])); $nicklvl = stripslashes(htmlspecialchars($_POST['nicklvl'])); if ($ile == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($email == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($rodzaj_serwera == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($kod_sms == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } if ($gg == '') { message_die(GENERAL_MESSAGE, 'Wypełnij wszyskie pola ;('); } $bbcode_uid = ''; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $blink = $server_name . $script_name . '/'; $privmsg_subject = 'Kupiono lvl na serwerze!'; $privmsg_message = 'Użytkownik <b>' . $userdata['username'] . '</b> kupił lvl\n\n<b><u>Dane:</u></b>\n\n Liczba lvla: <b>' . $ile . '</b> lvl\nRodzaj serwera: <b>' . $rodzaj_serwera . '</b>\nNick: <b>' . $nicklvl . '</b>\nKlasa: <b>' . $klasa . '</b>\nKOD SMS: <b>' . $kod_sms . '</b>\nGG: <b>' . $gg . '</b>\nEmail: <b>' . $email . '</b>\n\nUwagi: <b>' . $uwagi . '</b>'; $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', '" . $userdata['user_id'] . "', '2', '" . CR_TIME . "', '" . $userdata['user_ip'] . "', '0', '1', '0', '0')"; if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $privmsg_sent_id = $db->sql_nextid(); $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } $sql = "UPDATE " . USERS_TABLE . " SET user_new_privmsg = user_new_privmsg + 1 WHERE user_id = 2"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); } message_die(GENERAL_MESSAGE, 'Kupiłes lvl na serwerze<br /><br />Do 6 godzin otrzymasz powiadomienie na PW <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/smile.png' class='bbc_emoticon' alt=':)' />'); } $template->assign_vars(array( 'IP' => $_SERVER['REMOTE_ADDR'], 'USER_EMAIL' => $userdata['user_email'] )); $template->set_filenames(array( 'body' => 'sklepcs_lvl_body.tpl') ); } else { $template->set_filenames(array( 'body' => 'sklepcs_body.tpl') ); } include($phpbb_root_path . 'includes/page_header.'.$phpEx); $template->pparse('body'); include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?>