Guest User

Untitled

a guest
Apr 24th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. function send_mail($realm, $character, $item = 0, $order="0") {
  2.  
  3. global $ra, $db, $cms;
  4.  
  5.  
  6.  
  7. if ($this->send_ra_command($ra[$realm]['user'],
  8.  
  9. $ra[$realm]['pass'],
  10.  
  11. $db[$realm]['host'],
  12.  
  13. $ra[$realm]['port'],
  14.  
  15. ".send items ".$this->guid_to_name($character, $realm)." \"".itemshop_subject."\" \"".itemshop_body."\" ".$item."\n")) {
  16.  
  17. } else {
  18.  
  19. mysql_query("INSERT INTO ".$cms->db.".shop_ra_failed(`order`, `realm`, `item`, `character`) VALUES('".$order."', '".$realm."', '".$item."', '".$character."')", $cms->c) or die(mysql_error());
  20.  
  21. echo "<br /><br /><span style='color:red;font-weight:bold;'>An error occured. Please contact an admin with your order id!</span><br /><br />";
  22.  
  23. }
  24.  
  25. }
Add Comment
Please, Sign In to add comment