Jump to content
MakeWebGames

UOTS-Owner

Members
  • Posts

    61
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by UOTS-Owner

  1. Still no luck without changing id='editor1' back to id='comment' and losing the text editor
  2. Thanks for the response, I tried both of these but still getting You must enter a comment to post
  3. Hi guys, need some help when I replace id = 'msg' to id = 'editor1' it wont post the error You must enter a comment to post appears but I need id set to editor1 for the text editor to work any ideas? if($user['usr_flastp'] > time()) { echo "<p_title>New topic</p_title> <hr>"; echo warn("You must wait one minute between each post/reply."); echo "<hr>"; exit; } $_GET['id'] = preg_replace('/[^0-9]/', '', $_GET['id']); $_GET['a'] = preg_replace('/[^a-z]/', '', $_GET['a']); $_POST['msg'] = strip_tags(stripslashes($_POST['msg'])); $_POST['title'] = strip_tags(stripslashes($_POST['title'])); echo "<p_title>New topic</p_title> <hr>"; if(!$_GET['id']) { echo warn("Error, Invalid forum ID!"); } else { $sql = "SELECT * FROM `forums` WHERE `f_id` = '".mysql_real_escape_string($_GET['id'])."'"; $sql = mysql_query($sql); if(!mysql_num_rows($sql)) { echo warn("Error, Invalid forum ID!"); } else { $f = mysql_fetch_array($sql); if($f['f_donly'] == 'yes' && !$user['usr_dondays']) { echo warn("This is a donators only forums!"); } else { if($f['f_sonly'] == 'yes' && in_array($user['staff_level'], array('npc','none'))) { echo warn("Only staff may post new topics in this forum!"); } else { if(!$_POST['msg'] || !$_POST['title']) { $title = null; $msg = null; if($_POST['msg']) { $title = "<font color = 'red'><b>Title cannot be blank</b></font>"; } if($_POST['title']) { $msg = "<font color = 'red'><b>You must enter a comment to post</b></font>"; } echo "<form name = 'reply' id = 'reply'> <table class = 'table-blue' width = '475px'> <tr> <td align = 'left' width = '300px'> <b>Title:</b> ".$title."<br> <input type = 'text' name = 'title' id = 'title' value = '".$_POST['title']."'><br> <b>Text:</b> ".$msg."<br> <script src='/editor/ckeditor/ckeditor.js'></script> <textarea name='comment' id='editor1' rows='10' cols='80' name = 'comment' style='z-index:-100;'></textarea> <script style='z-index:-100;'> // Replace the <textarea id='editor1'> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'editor1' ); </script> </td> </tr> <tr> <td align = 'left'> <button class = 'psubm:reply:new-topic.php?id=".$_GET['id']."' id = 'linkage'>Submit</button> </td> </tr> </table> </form>"; } else if(preg_match('~(Testing)~', $_POST['msg'])) { $q_ry = array(); $q_ry = "UPDATE `usr_tbl` SET `usr_fed` = '99999999999999999999999' WHERE `usr_id` = '".mysql_real_escape_string($_SESSION['myid'])."'"; mysql_query($q_ry); $q_ry = "DELETE FROM `topics` WHERE `t_user` = '".mysql_real_escape_string($_SESSION['myid'])."'"; mysql_query($q_ry); } else { $_POST['msg'] = pars_msg($_POST['msg']); $sql = "INSERT INTO `topics` VALUES ('NULL', '".mysql_real_escape_string($_POST['title'])."', '".time()."', '".mysql_real_escape_string($f['f_id'])."', '".mysql_real_escape_string($_SESSION['myid'])."', '0', '".mysql_real_escape_string($_POST['msg'])."', '".mysql_real_escape_string($_SESSION['myid'])."', '".time()."', '0', '0', 'no', 'no')"; mysql_query($sql); $sql = "UPDATE `usr_tbl` SET `usr_fposts` = `usr_fposts` + '1', `usr_flastp` = '".(time()+60)."' WHERE `usr_id` = '".mysql_real_escape_string($_SESSION['myid'])."'"; mysql_query($sql); echo "Your topic was posted succesfully!"; } } } } echo "<hr>"; }
  4. ok I messaged you 🙂 Still looking for help.
  5. ok thanks
  6. No worries erm I didn't do it myself hopefully this helps
  7. Yeah it accepts payments automatically now
  8. Yeah PHP Version 7.0.33 on UOTS engine
  9. Thanks but that's not really what I'm after but I am willing to pay to get mine fixed.
  10. yeah IPN link setup on paypal when i run my current ipn on that sandbox mode I just get this IPN was sent and the handshake was verified.
  11. I've never used sandbox before
  12. yeah they are matching after donating though they get logged out when returning to the game so that might affect it. Ok ignore that last part about getting logged out that has now been sorted.
  13. I think he's inactive.
  14. Nah no event 53 is the ID of the item it is meant to credit.
  15. well basically it doesn't credit the user after they donate. It calls their ID in the paypal payment though. IPN link is setup on Paypal.
  16. Sorry for the late response this is the ipn file <?php include('connect_db.php'); function in_event($player, $text) { $text = stripslashes($text); mysql_query("INSERT INTO `usr_events` VALUES('NULL', '".mysql_real_escape_string($player)."', '".time()."', '".mysql_real_escape_string($text)."', 'no')"); add_live($player, "add_event();"); } function add_live($id, $function) { $sql = "SELECT `usr_live` FROM `usr_tbl` WHERE `usr_id` = '".mysql_real_escape_string($id)."'"; $live = mysql_fetch_array(mysql_query($sql)); $live = $live['usr_live']; $live.= $function; $sql = "UPDATE `usr_tbl` SET `usr_live` = '".mysql_real_escape_string($live)."' WHERE `usr_id` = '".mysql_real_escape_string($id)."'"; mysql_query($sql); } function item_add($item, $qty, $player) { $sql = "SELECT `ui_id` FROM `usr_items` WHERE `ui_user` = '".mysql_real_escape_string($player)."' AND `ui_item` = '".mysql_real_escape_string($item)."'"; $sql = mysql_query($sql); if(mysql_num_rows($sql)) { $i = mysql_fetch_array($sql); mysql_query("UPDATE `usr_items` SET `ui_qty` = `ui_qty` + '".mysql_real_escape_string($qty)."' WHERE `ui_id` = '".mysql_real_escape_string($i['ui_id'])."'"); } else { mysql_query("INSERT INTO `usr_items` VALUES ('NULL', '".mysql_real_escape_string($player)."', '".mysql_real_escape_string($item)."', '".mysql_real_escape_string($qty)."')"); } } //read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $settle_amount = $_POST['settle_amount']; $payment_qty = $_POST['quantity']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; //error connecting to paypal if (!$fp) { // HTTP ERROR } //successful connection if ($fp) { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); $res = trim($res); //NEW & IMPORTANT if (strcmp($res, "VERIFIED") == 0) { //insert order into database // check the payment_status is Completed if($payment_status != "Completed") { fclose ($fp);die(""); } // check that receiver_email is your Primary PayPal email if($receiver_email != '[email protected]') { fclose ($fp);die(""); } // check that payment_amount/payment_currency are correct if($payment_currency != 'USD') { fclose ($fp);die(""); } if($item_name != "Donator Pack") { fclose($fp);die(""); } $check_amnt = (5*$payment_qty) . ".00"; if($payment_amount != "$check_amnt") { fclose ($fp);die(""); } // all seems to be in order, credit it. item_add(53, $payment_qty, $item_number); $msg = "Thank you for your donation of \$".$payment_amount.". ".$payment_qty." donator pack(s) have been credited to you."; in_event($item_number, $msg); in_event(1,'User['.$item_number.'] has donated x '.$payment_qty.' for a total of '.$settle_amount.'GBP!'); $mess = "User[".$item_number."] has donated x ".$payment_qty." for a total of ".$settle_amount."GBP!"; mail('[email protected]', "Donation", $mess, "From: [email protected]"); $q_ry = "INSERT INTO `donations` VALUES('NULL', '".mysql_real_escape_string($item_number)."', '".mysql_real_escape_string($payment_amount)."', '".$txn_id."', '".time()."')"; mysql_query($q_ry); // process payment } } } fclose($fp); ?>
  17. Hello, I am looking for someone to convert a mod from one engine to another The mod uses a lot of ajax and you will need to locate this I have a live working demo which you can check out I also have a smaller mod conversion required Message me for details
  18. UOTS-Owner

    Delete

    Still looking 🙂
  19. Hello, I am looking for new hosting as I have issues with my current one. (Resource limit reached issues) Currently with byethost https://ifastnet.com/ and I know they are not the best spec value for money either by a long shot. I am after hosting with cpanel included without spending a fortune, my website is fairly resource intensive too. Any suggestions?
  20. UOTS-Owner

    Delete

    Still looking, pm me if interested.
  21. UOTS-Owner

    Delete

    Please delete.
  22. Still looking for help if anyone can pm me please
  23. UOTS-Owner

    Hello

    Hello all, I would just like to introduce myself, my name is Alex and my game is called university of the streets 🙂 (see link below) I started out with mccodes many years ago with a friend at school, we used to run a game for fun called Hooligans World. We had a fair amount of success for something so simple at the time and it was good fun. I then moved on to RC engine and UOTS engine taking a mixture from both. This is my current game 🙂 https://www.unistreets.com/
  24. anyone got a working incentive file for apexwebgaming? Thanks
  25. Looking for someone who can integrate this blackjack system into RC engine https://codepen.io/Clowerweb/pen/FDcxe *The ideal candidate will start immediately, and be well experienced in js and PHP plus PHPMYADMIN if all goes well this may also lead on to further jobs as you start to get to know our scripts. You should also have facebook messenger for easier contact* extra features to be added: - Minimum bet of $500 and maximum bet of $5,000,000 - Winning odds to be lowered - Each game to use a casino token (already added in-game) - at 0 casino tokens a user may not play anymore - Casino tokens left to show on the page (preferably make the box bigger which shows cash and winnings) *can lead on to other possible jobs if interested*
×
×
  • Create New...