<?xml version="1.0"?>
<rss version="2.0"><channel><title>GRPG Support Latest Topics</title><link>https://makewebgames.io/forum/64-grpg-support/</link><description>GRPG Support Latest Topics</description><language>en</language><item><title>gRPG v2 paginator error</title><link>https://makewebgames.io/topic/38302-grpg-v2-paginator-error/</link><description><![CDATA[<p>
	im not familiar with PDO  but im getting this error on the tickets page as well as every other page that uses the paginator
</p>

<p>
	<b style="color:#ffffff;font-size:medium;">Fatal error</b><span style="background-color:#1e1e1e;color:#ffffff;font-size:medium;">: Uncaught Error: Typed property Paginator::$querystring must not be accessed before initializatio</span>
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted"><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">$_GET</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
            $args </span><span class="pun">=</span><span class="pln"> explode</span><span class="pun">(</span><span class="str">'&amp;'</span><span class="pun">,</span><span class="pln"> $_SERVER</span><span class="pun">[</span><span class="str">'QUERY_STRING'</span><span class="pun">]);</span><span class="pln">
            </span><span class="kwd">foreach</span><span class="pln"> </span><span class="pun">(</span><span class="pln">$args </span><span class="kwd">as</span><span class="pln"> $arg</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
                $keyval </span><span class="pun">=</span><span class="pln"> </span><span class="pun">(</span><span class="pln">array</span><span class="pun">)</span><span class="pln">explode</span><span class="pun">(</span><span class="str">'='</span><span class="pun">,</span><span class="pln"> $arg</span><span class="pun">);</span><span class="pln">
                </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">$keyval</span><span class="pun">[</span><span class="lit">0</span><span class="pun">]</span><span class="pln"> </span><span class="pun">!==</span><span class="pln"> </span><span class="str">'page'</span><span class="pln"> </span><span class="kwd">and</span><span class="pln"> $keyval</span><span class="pun">[</span><span class="lit">0</span><span class="pun">]</span><span class="pln"> </span><span class="pun">!==</span><span class="pln"> </span><span class="str">'ipp'</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
                    $this</span><span class="pun">-&gt;</span><span class="pln">querystring </span><span class="pun">.=</span><span class="pln"> </span><span class="str">'&amp;'</span><span class="pun">.</span><span class="pln">$arg</span><span class="pun">;</span><span class="pln">
                </span><span class="pun">}</span><span class="pln">
            </span><span class="pun">}</span><span class="pln">
        </span><span class="pun">}</span></pre>

<p>
	its on line 71 which read as  $this-&gt;querystring .= '&amp;'.$arg;
</p>

<p>
	 
</p>

<p>
	any help would be fab
</p>
]]></description><guid isPermaLink="false">38302</guid><pubDate>Mon, 31 Mar 2025 09:00:51 +0000</pubDate></item><item><title>install ?</title><link>https://makewebgames.io/topic/38276-install/</link><description><![CDATA[<p>
	How do you install this engine i've uploaded all gRPG files to host downloaded something called composer what do i do with the composer part ???
</p>
]]></description><guid isPermaLink="false">38276</guid><pubDate>Fri, 21 Mar 2025 09:53:38 +0000</pubDate></item><item><title>Nothing happen when register first user</title><link>https://makewebgames.io/topic/27346-nothing-happen-when-register-first-user/</link><description><![CDATA[
<p>
	Hi.
</p>

<p>
	 
</p>

<p>
	I try new install of grpg
</p>

<p>
	When creating the first user, register says it is ok. But when i try to logon sais error.
</p>

<p>
	When i check DB the grpg users table is empty
</p>

<p>
	 
</p>

<p>
	Plz help!!
</p>
]]></description><guid isPermaLink="false">27346</guid><pubDate>Mon, 04 Nov 2019 02:50:18 +0000</pubDate></item><item><title>Looking for support building a site using these codes</title><link>https://makewebgames.io/topic/27914-looking-for-support-building-a-site-using-these-codes/</link><description><![CDATA[<p>
	So i have ran into some trouble trying to set up this site if anyone is good with these codes i would love some assistance on a project i'm running
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">27914</guid><pubDate>Mon, 14 Dec 2020 05:21:15 +0000</pubDate></item><item><title>How to add Icons next to the timers</title><link>https://makewebgames.io/topic/27912-how-to-add-icons-next-to-the-timers/</link><description><![CDATA[<p>
	as the title says, how do I do that? Image shown here.
</p>

<p>
	<a href="https://prnt.sc/w04nfz" rel="external nofollow">https://prnt.sc/w04nfz</a>
</p>
]]></description><guid isPermaLink="false">27912</guid><pubDate>Thu, 10 Dec 2020 23:21:20 +0000</pubDate></item><item><title>Grpg V2 (Issue which needs fixed)</title><link>https://makewebgames.io/topic/27539-grpg-v2-issue-which-needs-fixed/</link><description><![CDATA[<p>
	Right so get to the point there is a slight issue with the grpg v2 engine if you have purchased this engine and are having issues please do the following.
</p>

<p>
	open up your dbcon.php located in "inc/dbcon.php" and look for 
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="kwd">if</span><span class="pln"> </span><span class="pun">(!</span><span class="pln">file_exists</span><span class="pun">(</span><span class="pln">__DIR__</span><span class="pun">.</span><span class="str">'/config.php'</span><span class="pun">)</span><span class="pln"> </span><span class="pun">&amp;&amp;</span><span class="pln"> </span><span class="pun">!</span><span class="kwd">defined</span><span class="pun">(</span><span class="str">'INSTALLER'</span><span class="pun">))</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
    </span><span class="kwd">exit</span><span class="pun">(</span><span class="pln">header</span><span class="pun">(</span><span class="str">'Location: /install'</span><span class="pun">));</span><span class="pln">
</span><span class="pun">}</span></pre>

<p>
	change this to 
</p>

<pre class="ipsCode prettyprint lang-php prettyprinted">
<span class="kwd">if</span><span class="pln"> </span><span class="pun">(!</span><span class="pln">file_exists</span><span class="pun">(</span><span class="pln">__DIR__</span><span class="pun">.</span><span class="str">'/config.php'</span><span class="pun">)</span><span class="pln"> </span><span class="pun">&amp;&amp;</span><span class="pln"> </span><span class="pun">!</span><span class="kwd">defined</span><span class="pun">(</span><span class="str">'INSTALLER'</span><span class="pun">))</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
    </span><span class="kwd">exit</span><span class="pun">(</span><span class="pln">header</span><span class="pun">(</span><span class="str">'Location: /install/install.php'</span><span class="pun">));</span><span class="pln">
</span><span class="pun">}</span></pre>

<p>
	 
</p>

<p>
	I do not work for the GRPG Team just this bug has not been patched and people are buying the engine and prob request a refund so figured so save any hassle i have left adam and mtg a message on another topic but i posted the fix here for anyone who purchases it before it gets patched.
</p>
<p>
	<a contenteditable="false" data-ipshover="" data-ipshover-target="https://makewebgames.io/profile/3321-magictallguy/?do=hovercard" data-mentionid="3321" href="https://makewebgames.io/profile/3321-magictallguy/" rel="">@Magictallguy</a> when i tried it just error out saying something like to many redirects i think but once i actually set the location to the file it worked perfectly.
</p>

<p>
	Just thought i would make a thread as i messaged Adam about it but hes most likely busy and plus someone emailed me asking for help to fix it get it fixed save any problems issues refunds etc.
</p>
]]></description><guid isPermaLink="false">27539</guid><pubDate>Sat, 28 Mar 2020 16:31:28 +0000</pubDate></item><item><title>Script</title><link>https://makewebgames.io/topic/27042-script/</link><description><![CDATA[<p>Can anyone tell me how to get a copy of the script?</p>]]></description><guid isPermaLink="false">27042</guid><pubDate>Fri, 28 Oct 2016 14:16:19 +0000</pubDate></item><item><title>Mailbox</title><link>https://makewebgames.io/topic/25046-mailbox/</link><description><![CDATA[

<pre class="ipsCode">
$_POST['user1'] = (isset($_POST['user1']) &amp;&amp; preg_match("/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['user1']) 
       	&amp;&amp; ((strlen($_POST['user1']) &lt; 32) &amp;&amp; (strlen($_POST['user1']) &gt;= 3))) ? $_POST['user1'] : '';
       $_POST['user2'] = (isset($_POST['user2']) &amp;&amp; preg_match("/^[a-z0-9_]+([\\s]{1}[a-z0-9_]|[a-z0-9_])+$/i", $_POST['user2']) 
       	&amp;&amp; ((strlen($_POST['user2']) &lt; 32) &amp;&amp; (strlen($_POST['user2']) &gt;= 3))) ? $_POST['user2'] : '';</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
Anyway I can change this to allow symbols but not allow apostrophes?</p>
]]></description><guid isPermaLink="false">25046</guid><pubDate>Mon, 02 Mar 2015 15:39:40 +0000</pubDate></item><item><title>index.php redirect</title><link>https://makewebgames.io/topic/24756-indexphp-redirect/</link><description><![CDATA[<p>I am looking to redirect a domain to another domain  can anybody help me</p>]]></description><guid isPermaLink="false">24756</guid><pubDate>Fri, 14 Nov 2014 16:16:52 +0000</pubDate></item><item><title>Session issue after salting?</title><link>https://makewebgames.io/topic/24762-session-issue-after-salting/</link><description><![CDATA[
<p>Ok i decided to setup the reg to be salted.</p>
<p>
Here is what i have done.</p>

<p>
Created a column in grpgusers called salt which on registration puts a random string in that column.</p>
<p>
Then changed the main login code to this.</p>
<p data-double>&nbsp;</p>
<pre class="ipsCode">
&lt;?
  if(isset($_POST['submit'])){
 $username = mysql_real_escape_string($_POST['username']); 
 $password = $_POST['password']; 
 $sql= "SELECT * FROM grpgusers WHERE username='$username'";  
 $result=mysql_query($sql);    
 $row=mysql_fetch_array($result);  
 $salt = $row["salt"];  
 $auth_user = hash('sha256', $salt.$password);  
 $user_class = new User($row['id']);

if($row["password"] == $auth_user){ 


   echo "Your now logged in and being redirected thankyou"; 
include ('foot.php');
echo '&lt;meta http-equiv="refresh" content="3;url=main.php"&gt;'; 
$_SESSION["id"] = $row['id']; 
die();
} else {  
   echo "Username and/or password are incorrect";  
}
}
?&gt;
</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
That seems to work ok. The salt works and hashes the password nicely. Also it checks to make sure its correct.</p>
<p data-double>&nbsp;</p>
<p>
** UPDATE **</p>
<p>
Ended up fixing the session issue :)</p>
<p>
Just made some silly mistakes but still would like to know if its an acceptable way to do it or if its even safe to use this method?</p>
]]></description><guid isPermaLink="false">24762</guid><pubDate>Tue, 18 Nov 2014 01:47:54 +0000</pubDate></item><item><title>code help !!</title><link>https://makewebgames.io/topic/24760-code-help/</link><description><![CDATA[
<p>$checkjail = mysql_query("SELECT jail FROM `grpgusers` WHERE `jail` &gt; '0'");  $nummsgs = mysql_num_rows($checkjail);  $jail = "[".$nummsgs."]";  if (mysql_num_rows($checkjail) != 0){		$jail = "[".$nummsgs."]";	}This is in html section <span style="color:#ff0000;"><strong><span style="text-decoration:underline;">&lt;?= ($jail &gt;= 1) ? '  "&lt;----error is here $jail"</span></strong></span>&lt;li&gt;&lt;a href="jail.php"&gt; &lt;!_-jail-_!&gt;&lt;/a&gt;&lt;/li&gt; ' : "" ?&gt;this will not work for some reasonthis does</p>
<p>
&lt;?= ($user_class-&gt;jail == 2) ? '&lt;li&gt;&lt;a href="city1.php"&gt; &lt;!_-cityname-_!&gt;&lt;/a&gt;&lt;/li&gt; ' : "" ?&gt;but i want to pull from jail table which $jail does</p>
]]></description><guid isPermaLink="false">24760</guid><pubDate>Sat, 15 Nov 2014 21:25:51 +0000</pubDate></item><item><title>Email activation.</title><link>https://makewebgames.io/topic/24686-email-activation/</link><description><![CDATA[
<p>I setup email activation on my game. Mostly works hahaha. Anyway my problem is this.....</p>

<p>
My activation email sends just fine but does not show the from address properly. It shows www-data as the From address.</p>
<p>
I can change that to show my from address but when i do that my email gets sent without html.</p>

<p>
Like this will not show the from address but the html works fine.</p>

<pre class="ipsCode">
           $emailSubject = "BLAH";
           $headers = "MIME-Version: 1.0";
           $headers = "Content-Type: text/html; charset=ISO-8859-1";
    $from = "From: MY EMAIL";
           $emailBody = "&lt;html&gt;&lt;body&gt;&lt;h2&gt;BLAH&lt;/h2&gt;&lt;/body&gt;&lt;/html&gt;";

mail($registerEmail, $emailSubject, $emailBody, $headers, $from);

</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
Reading up there is a order i believe i am supposed to do this. From being the 4th? So i tried this.</p>
<p data-double>&nbsp;</p>
<pre class="ipsCode">
           $emailSubject = "BLAH";
           $headers = "MIME-Version: 1.0";
           $headers = "Content-Type: text/html; charset=ISO-8859-1";
    $from = "From: MY EMAIL";
           $emailBody = "&lt;html&gt;&lt;body&gt;&lt;h2&gt;BLAH&lt;/h2&gt;&lt;/body&gt;&lt;/html&gt;";

mail($registerEmail, $emailSubject, $emailBody, $from, $headers);
</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
I also tried addind another header like $header = "From: MY EMAIL" and still no joy hahahaah.</p>
<p>
So if anyone knows what i am doing wrong here i would appreciate the help.</p>

<p>
While i am at it :) Might ask another question sort of related to the email activation.</p>
<p>
Here is the important code that relates to activating the account.</p>

<pre class="ipsCode">
   $activateCode = $_GET["activateCode"];
   $user = $_GET["user"];
$activate = mysql_query("UPDATE `grpgusers` SET `verified` = `1` WHERE `activateCode` = '$activateCode' AND `user` = 'user_class-&gt;username'");</pre>
<div></div>

<p>
Here is a link example supplied in email.</p>
<p>
<a href="http://www.domain.com/activate.php?activateCode=81966357&amp;user=test" rel="external nofollow">http://www.domain.com/activate.php?activateCode=81966357&amp;user=test</a></p>

<p>
I can confirm the code is accurate as is the user however it does not set verified to 1?</p>
]]></description><guid isPermaLink="false">24686</guid><pubDate>Fri, 17 Oct 2014 22:49:36 +0000</pubDate></item><item><title>Timers issue.</title><link>https://makewebgames.io/topic/24685-timers-issue/</link><description><![CDATA[<p>Never mind guys i think i got it sorted out.</p>]]></description><guid isPermaLink="false">24685</guid><pubDate>Fri, 17 Oct 2014 09:59:28 +0000</pubDate></item><item><title>Crons</title><link>https://makewebgames.io/topic/24241-crons/</link><description><![CDATA[
<p>i am having problem implementing crons on my site i have done the command on the cpanel  as below </p>
<p>
[ATTACH=CONFIG]1432[/ATTACH]</p>
<p data-double>&nbsp;</p>
<pre class="ipsCode">&lt;?php
session_start();

if (!isset($_SESSION['id'])){
   include('home.php');
   die();
}

include 'dbcon.php';

if (isset($_POST['clean_sb'])) {

   if (isset($_POST['token']) &amp;&amp; $_POST['token'] == $_SESSION['token']) {
       $soc = mysql_query("SELECT admin FROM grpgusers WHERE id=". mysql_real_escape_string($_SESSION['id']));
$f = mysql_fetch_assoc($soc);
if($f['admin'] != 1)
{
 //Do nothing
}
else
{
 mysql_query("TRUNCATE table shoutbox_kyle");
}
   } else {
       echo 'The request expired.';
   }

}


include 'classes.php';
$profile_class = new User($_GET['id']);

if ($_GET['action'] == "logout"){
session_destroy();
die('&lt;style type="text/css"&gt;
&lt;!--

body {

background-color: #000000;
}
--&gt;
&lt;/style&gt;&lt;meta http-equiv="refresh" content="0;url=index.php"&gt;&lt;center&gt;&lt;img src=logoutpic.gif&gt;&lt;/center&gt;');
}
function microtime_float()

{

$time = microtime();

return (double)substr( $time, 11 ) + (double)substr( $time, 0, 8 );
}
$user_class = new User($_SESSION['id']);

// get style info
$cresult = mysql_query("SELECT `value` FROM `styles` WHERE `style`='". mysql_real_escape_string($user_class-&gt;style) ."'");
$i = 0;
while($line = mysql_fetch_array($cresult, MYSQL_ASSOC)) {
$color[$i] = $line['value'];
$i++;
}
/* Finding items */
$fia=(int) rand(1,1000); /* not sure why this says this item is on rand.satan...Anything that is buyable from id 1 to 105 */
$fib=(int) rand(20,1000); /* not sure why this says this item is on rand.satan...Anything that is buyable from id 1 to 105 */
if($fia == $fib)
{
$iq = mysql_query("SELECT id,itemname FROM `items` WHERE `buyable` = 1 ORDER BY rand() LIMIT 1");
$r = mysql_fetch_array($iq);
$item = $r['id'];
$userid = $user_class-&gt;id;

mysql_query("INSERT INTO inventory VALUES ($userid, $item, 1)");
Send_Event($userid,"While Playing The Game You Found A {$r['itemname']} Think Of It As A Present For Playing The Game.");
}

//get style info
$result = mysql_query("SELECT * FROM `serverconfig`");
$worked = mysql_fetch_array($result);
if($worked['serverdown'] != "" &amp;&amp; $user_class-&gt;admin != 1){
die("&lt;h1&gt;&lt;font color='red'&gt;SERVER DOWN&lt;br&gt;&lt;br&gt;".$worked['serverdown']."&lt;/font&gt;&lt;/h1&gt;");
}
$resultrelation = mysql_query("SELECT * FROM `rel_requests` WHERE `player` = '$user_class-&gt;id'");
$time = date(F." ".d.", ".Y." ".g.":".i.":".sa,time());
$result = mysql_query("UPDATE `grpgusers` SET `lastactive` = '".time()."', `ip` = '".$_SERVER['REMOTE_ADDR']."' WHERE `id`='". mysql_real_escape_string($_SESSION['id']) ."'");

function callback($buffer){ 
 $user_class = new User($_SESSION['id']);

 $checkhosp = mysql_query("SELECT * FROM `grpgusers` WHERE `hospital`!='0'");
 $nummsgs = mysql_num_rows($checkhosp);
 $hospital = "[".$nummsgs."]";

 $checkjail = mysql_query("SELECT * FROM `grpgusers` WHERE `jail`!='0'");
 $nummsgs = mysql_num_rows($checkjail);
 $jail = "[".$nummsgs."]";

 $checknews = mysql_query("SELECT * FROM `news` WHERE `to`='" . mysql_real_escape_string($user_class-&gt;username) . "' and `viewed`='1'");
 $numnews = mysql_num_rows($checknews);
 $news = "[".$numnews."]";

 $checkmail = mysql_query("SELECT * FROM `mail` WHERE `to`='$user_class-&gt;id' and `viewed`='1'");
 $nummsgs = mysql_num_rows($checkmail);
 $mail = "[".$nummsgs."]";

 $checkmail = mysql_query("SELECT * FROM `events` WHERE `to`='$user_class-&gt;id' and `viewed` = '1'");
 $numevents = mysql_num_rows($checkmail);
 $events = "[".$numevents."]";

$result = mysql_query("SELECT * from `effects` WHERE `userid`='".$user_class-&gt;id."'");
if (mysql_num_rows($result) != 0){
 $effects = '&lt;div class="headbox"&gt;Current Effects&lt;/div&gt;';
 while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
         $effects .= '&lt;a class="leftmenu" href="effects?view='.$line['effect'].'"&gt;'.$line['effect']." (".floor($line['timeleft']).")".'&lt;/a&gt;&lt;/ul&gt;&lt;br /&gt;';
 }
}

 $out = $buffer;
 $out = str_replace("&lt;!_-money-_!&gt;", prettynum($user_class-&gt;money,1), $out);
 $out = str_replace("&lt;!_-formhp-_!&gt;", $user_class-&gt;formattedhp, $out);
 $out = str_replace("&lt;!_-hpperc-_!&gt;", $user_class-&gt;hppercent, $out);
 $out = str_replace("&lt;!_-formenergy-_!&gt;", $user_class-&gt;formattedenergy, $out);
 $out = str_replace("&lt;!_-energyperc-_!&gt;", $user_class-&gt;energypercent, $out);
 $out = str_replace("&lt;!_-formawake-_!&gt;", $user_class-&gt;formattedawake, $out);
 $out = str_replace("&lt;!_-awakeperc-_!&gt;", $user_class-&gt;awakepercent, $out);
 $out = str_replace("&lt;!_-formnerve-_!&gt;", $user_class-&gt;formattednerve, $out);
 $out = str_replace("&lt;!_-nerveperc-_!&gt;", $user_class-&gt;nervepercent, $out);
 $out = str_replace("&lt;!_-points-_!&gt;", prettynum($user_class-&gt;points), $out);
 $out = str_replace("&lt;!_-credits-_!&gt;", prettynum($user_class-&gt;credits), $out);
 $out = str_replace("&lt;!_-level-_!&gt;", $user_class-&gt;level, $out);
 $out = str_replace("&lt;!_-hospital-_!&gt;", $hospital, $out);
 $out = str_replace("&lt;!_-jail-_!&gt;", $jail, $out);
 $out = str_replace("&lt;!_-mail-_!&gt;", $mail, $out);
 $out = str_replace("&lt;!_-news-_!&gt;", $news, $out);
 $out = str_replace("&lt;!_-events-_!&gt;", $events, $out);
 $out = str_replace("&lt;!_-effects-_!&gt;", $effects, $out);
 $out = str_replace("&lt;!_-cityname-_!&gt;", $user_class-&gt;cityname, $out);  
 $out = str_replace("&lt;!_-formexp-_!&gt;", $user_class-&gt;formattedexp, $out);
 $out = str_replace("&lt;!_-expperc-_!&gt;", $user_class-&gt;exppercent, $out);
 $out = str_replace("&lt;!_-countryname-_!&gt;", $user_class-&gt;countryname, $out);
 $out = str_replace("&lt;!_-hosp-_!&gt;", $hospital, $out);
 $out = str_replace("&lt;!_-ota;-_!&gt;", $hospital, $out);

 return $out;
}
ob_start("callback");
?&gt;&lt;?php

$stats = new User_Stats("bang");

?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /&gt;
&lt;title&gt;Wiscrime&lt;/title&gt;
&lt;link href="WCCSS/css/style.css" rel="stylesheet" type="text/css" /&gt;


&lt;body&gt;
&lt;table class='container' border='0' cellpadding='0' cellspacing='0'&gt;
 &lt;tr class="header"&gt;
 &lt;td colspan='2' width='100%'&gt;&lt;table width='100%' cellspacing='0' cellpadding='0'&gt;
&lt;td width='50%' border='0' valign='top'&gt;	&lt;table width='100%'&gt;
  &lt;tr&gt;&lt;td&gt;&lt;div class="menu"&gt;

    &lt;ul&gt;
	  &lt;li&gt;&lt;a href="/mail.php"&gt;&lt;img src="../img/mail.PNG"&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a href="/events.php"&gt;&lt;img src="../img/event.PNG"&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a href="/forums.php"&gt;&lt;img src="../img/forum.PNG"&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a href="/help.php"&gt;&lt;img src="../img/help.PNG"&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;&lt;/div&lt;/div&gt;
  &lt;/td&gt;&lt;/tr&gt;


&lt;tr class="menu1"&gt;
&lt;td&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a style="text-decoration:none;" href="/hospital.php"&gt;&lt;img src="../img/hospital.PNG"&gt;&lt;label&gt;&lt;!_-hosp-_!&gt;&lt;/label&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a style="text-decoration:none;" href="/jail.php"&gt;&lt;img src="../img/hospital1.PNG"&gt;&lt;label&gt;&lt;!_-jail-_!&gt;&lt;/label&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a style="text-decoration:none;" href="/news.php"&gt;&lt;label&gt;&lt;img src="../img/hospital2.PNG"&gt;&lt;/label&gt;&lt;span style="color:#FF0000; text-decoration:none;"&gt;  (1)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	  &lt;li&gt;&lt;a style="text-decoration:none;" href="online.php"&gt;&lt;img src="../img/hospital3.PNG"&gt;&lt;span style="color:#009933; text-decoration:none;"&gt;[&lt;?php echo $stats-&gt;playersonlineinlastday; ?&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;

    &lt;/ul&gt;&lt;/td&gt;
  &lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;
&lt;/td&gt;&lt;td width='20%' valign='top'&gt;&lt;img src='WCCSS/img/header_logo.png' /&gt;&lt;/td&gt;

&lt;td width='30%' valign='top' align='right'&gt;&lt;div class="header_c"&gt;
 &lt;div class="top_header_box"&gt;
 &lt;table align="center" border="0" cellpadding="0" cellspacing="2" width="220"&gt;
 &lt;tbody&gt;&lt;tr&gt;
   &lt;td&gt;&lt;img src="../img/f1.PNG" height="18px" width="100%"&gt;&lt;/td&gt;
   &lt;td title="&lt;!_-formenergy-_!&gt;"&gt;&lt;img src="../img/f2.PNG" height="18px" width="80%"&gt;&lt;/td&gt;
    &lt;td&gt;&lt;img src="../img/f5.PNG"&gt;&lt;/td&gt;
   &lt;td title="&lt;!_-formhp-_!&gt;"&gt;&lt;img src="../img/f6.PNG" height="18px" width="80%"&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
  &lt;td&gt;&lt;img src="../img/f3.PNG"&gt;&lt;/td&gt;
   &lt;td title="&lt;!_-formawake-_!&gt;"&gt;&lt;img src="../img/f4.PNG" height="18px" width="80%"&gt;&lt;/td&gt;
     &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;img src="../img/f8.PNG"&gt;&lt;/td&gt;
   &lt;td title="&lt;!_-formnerve-_!&gt;"&gt;&lt;img src="../img/f9.PNG" height="18px" width="80%"&gt;&lt;/td&gt;
     &lt;/tr&gt;



&lt;/tbody&gt;&lt;/table&gt;

 &lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/td&gt;
 &lt;/tr&gt;

&lt;tr class="section"&gt;
&lt;td class="aside"&gt;
&lt;div class="user_box"&gt;
&lt;table width="206" border="0"&gt;
 &lt;tr&gt;
&lt;td width="83"&gt;&lt;table width="83" border="0"&gt;
 &lt;tr&gt;
   &lt;td width="77"&gt;&lt;img src="img/user.PNG" /&gt;&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
   &lt;td&gt;&lt;a href="rmstore.php"&gt;&lt;img src="img/up.PNG" /&gt;&lt;/a&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
   &lt;td width="113"&gt;&lt;table width="106" border="0" cellspacing="0" cellpadding="0"&gt;
 &lt;tr&gt;
   &lt;td&gt; &lt;/td&gt;
&lt;font color=#DDDDDD&gt; &lt;span style="font-size: 10pt;"&gt;[&lt;? echo $user_class-&gt;id; ?&gt;] &lt;a href='profiles.php?id=&lt;? echo $_SESSION['id'] ?&gt;'&gt;&lt;span style="font-size: 10pt;"&gt;&lt;? echo $user_class-&gt;formattedname; ?&gt;&lt;/span&gt;  &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
           &lt;span style="font-size: 10pt;"&gt;&lt;img src="img/star.PNG" /&gt;&lt;/span&gt;  
           &lt;span style="font-size: 10pt;"&gt;&lt;A href="/levelguide.php"&gt;&lt;span class="hotspot" onmouseover="tooltip.show('&lt;B&gt;EXP: &lt;?php echo prettynum($user_class-&gt;formattedexp,1); ?&gt;&lt;/B&gt;');" onmouseout="tooltip.hide();"&gt;&lt;!_-level-_!&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;  
           &lt;br /&gt;
           &lt;span style="font-size: 10pt;"&gt;&lt;a href='bank.php'&gt;&lt;img src="img/dollors.PNG"/&gt;&lt;/span&gt;   
           &lt;span style="font-size: 10pt;"&gt;&lt;?php echo number_format($user_class-&gt;money); ?&gt;&lt;span style="font-size: 8pt;"&gt;&lt;span class="hotspot" onmouseover="tooltip.show('&lt;B&gt;Bank: &lt;?php echo prettynum($user_class-&gt;bank,1); ?&gt;&lt;/B&gt;');" onmouseout="tooltip.hide();"&gt;&lt;/a&gt;&lt;/span&gt; 
&lt;br /&gt;
           &lt;span style="font-size: 10pt;"&gt;&lt;a href='rmstoreoffers.php'&gt;&lt;img src="img/circle.PNG" /&gt;&lt;/span&gt;  
            &lt;span style="font-size: 10pt;"&gt;&lt;?php echo number_format($user_class-&gt;credits); ?&gt;&lt;span style="font-size: 8pt;"&gt;&lt;span class="hotspot" onmouseover="tooltip.show('&lt;B&gt;Bank: &lt;?php echo prettynum($user_class-&gt;bank,1); ?&gt;&lt;/B&gt;');" onmouseout="tooltip.hide();"&gt;&lt;/a&gt;&lt;/span&gt;
           &lt;br /&gt;
           &lt;span style="font-size: 10pt;"&gt;&lt;a href='spendpoints.php'&gt;&lt;img src="img/diamond.PNG" /&gt;&lt;/span&gt;  
           &lt;span style="font-size: 10pt;"&gt;&lt;?php echo number_format($user_class-&gt;points); ?&gt;&lt;span style="font-size: 8pt;"&gt;&lt;span class="hotspot" onmouseover="tooltip.show('&lt;B&gt;Bank: &lt;?php echo prettynum($user_class-&gt;bank,1); ?&gt;&lt;/B&gt;');" onmouseout="tooltip.hide();"&gt;&lt;/a&gt;&lt;/span&gt;
 &lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;div class="main_menu"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="home" href="index.php"&gt;HOME&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="explode" href="city.php"&gt;EXPLORE&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="items" href="inventory.php"&gt;ITEMS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="crimes" href="crime.php"&gt;CRIMES&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="gym" href="gym.php"&gt;GYM&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="yourgang" href="gang.php"&gt;YOUR GANG&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="settings" href="preferences.php"&gt;SETTINGS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a class="logout" href="index.php?action=logout"&gt;LOGOUT&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;

&lt;td valign='top' align='center' class="bside"&gt;

&lt;div class="top_main_area"&gt;
&lt;ul id="ul"&gt;
&lt;li&gt;&lt;a href="cropsrm.php"&gt;&lt;img src="img/1.PNG" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="lottery.php"&gt;&lt;img src="img/2.PNG" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="bank.php"&gt;&lt;img src="img/3.PNG" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="creditmarket.php"&gt;&lt;img src="img/4.PNG" /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div id="content"&gt;
&lt;table&gt;&lt;div id="cpanel"&gt;

&lt;?= ($user_class-&gt;admin == 1) ? '

   &lt;a  href="spheader.php"&gt;-Staff Panel-&lt;/a&gt;

  ' : "" ?&gt;
&lt;?= ($user_class-&gt;admin == 2) ? '

   &lt;a  href="gmheader1001.php"&gt;&lt;center&gt;-Staff Panel-&lt;/center&gt;&lt;/a&gt;

  ' : "" ?&gt;
&lt;?php

	$result252 = mysql_query("SELECT * FROM `ganginvites` WHERE `username` = '$user_class-&gt;username'");
	//$invites_exist = mysql_num_rows($result252);




	if (mysql_num_rows($result252) &gt; 0){
		$invite_class = New Gang($line['gangid']);
                echo "&lt;center&gt;&lt;a href='ganginvites.php'&gt;View Gang Invites&lt;/a&gt;&lt;/center&gt;";

	}

		 	if ($user_class-&gt;jail &gt; 0){
		echo "&lt;marquee scrolldelay=120&gt;&lt;img src=/images/pref_img3.jpg&gt;You are currenty in jail for " . floor($user_class-&gt;jail)/60 . " more minutes.&lt;/marquee&gt;";


	}

	if ($user_class-&gt;hospital &gt; 0){
		echo "&lt;marquee scrolldelay=180&gt;&lt;font color=red&gt;&lt;img src='/image/hossy.gif' width='40' height='30' style='border: 1px solid #333333'&gt;You are in the ward for " . floor($user_class-&gt;hospital)/60 . " more minutes.&lt;/font&gt;&lt;/marquee&gt;";

	}            
               if ($user_class-&gt;votemtl == 0){
		echo "&lt;font color=red&gt;&lt;center&gt;&lt;tr&gt;&lt;td class='contenthead'&gt;&lt;A STYLE='text-decoration:none' HREF='vote.php'&gt;You Have Not Voted Today&lt;/a&gt;&lt;/center&gt;&lt;/font&gt;";
	}
$resultm = mysql_query("SELECT * FROM `effect4` WHERE `userid` = '".$user_class-&gt;id."'");
$worked2m = mysql_fetch_array($resultm);
$etime = $worked2m['timeleft'];

if ($worked2m &gt; 0){
echo "&lt;center&gt;&lt;font color=red&gt;You have Coke effect on you for " . floor($etime) . " more minutes.&lt;img src='/image/cocaine.png' width='30' height='20' style='border: 1px solid #333333'&gt;&lt;/font&gt;&lt;/center&gt;";
}
$result = mysql_query("SELECT * FROM `effects` WHERE `userid` = '".$user_class-&gt;id."'");
$worked2 = mysql_fetch_array($result);
$etime = $worked2['timeleft'];

if ($worked2 &gt; 0){
echo "&lt;center&gt;You have nodoze effect on you for " . floor($etime) . " more minutes.&lt;img src='/images/nodo-1.jpg' width='30' height='20' style='border: 1px solid #333333'&gt;&lt;/center&gt;";
}
$resultbla = mysql_query("SELECT * FROM `effect3` WHERE `userid` = '".$user_class-&gt;id."'");
$worked2212 = mysql_fetch_array($resultbla);
$etime = $worked2212['timeleft'];

if ($worked2212 &gt; 0){
echo "&lt;center&gt;You have LSD effect on you for " . floor($etime) . " more minutes.&lt;img src='/images/lsd1.jpg' width='30' height='20' style='border: 1px solid #333333'&gt;&lt;/center&gt;";
}
$resultbl = mysql_query("SELECT * FROM `effect2` WHERE `userid` = '".$user_class-&gt;id."'");
$worked221 = mysql_fetch_array($resultbl);
$etime = $worked221['timeleft'];

if ($worked221 &gt; 0){
echo "&lt;center&gt;You have METH effect on you for " . floor($etime) . " more minutes.&lt;img src='/images/meth1.jpg' width='30' height='20' style='border: 1px solid #333333'&gt;&lt;/center&gt;";
}
$resultbl14 = mysql_query("SELECT * FROM `effect5` WHERE `userid` = '".$user_class-&gt;id."'");
$worked22165 = mysql_fetch_array($resultbl14);
$etime = $worked22165['timeleft'];
if ($worked22165 &gt; 0){
echo "&lt;center&gt;You have awake boost effect on you for " . floor($etime) . " more minutes.&lt;/center&gt;";
}


               if ($user_class-&gt;timeout &gt; 0){
		echo "&lt;marquee scrolldelay=180&gt;&lt;font color=red&gt;You are on a boat for " . floor($user_class-&gt;timeout) . " more minutes.&lt;/marquee&gt;";

	}
	if ($user_class-&gt;bguard &gt; 0){
		echo "&lt;center&gt;&lt;img src='/image/protector.jpg' width='40' height='30' style='border: 1px solid #333333'&gt;You have " . floor($user_class-&gt;bguard) . " minutes left of hit protection.&lt;a href='spendpoints.php?spend=bguard'&gt;Remove&lt;/a&gt;&lt;/center&gt;";

}
               if ($user_class-&gt;mguard &gt; 0){
		echo "&lt;center&gt;&lt;img src='/image/protector.jpg' width='40' height='30' style='border: 1px solid #333333'&gt;You have " . floor($user_class-&gt;mguard) . " minutes left of mug protection. &lt;a href='spendpoints.php?spend=mguard'&gt;Remove&lt;/a&gt;&lt;/center&gt;";

}
                  if ($user_class-&gt;hguard &gt; 0){
		echo "&lt;center&gt;&lt;img src='/images/pref_img4.jpg' width='40' height='30' style='border: 1px solid #333333'&gt;You have " . floor($user_class-&gt;hguard) . " minutes left of 1 day hit protector. &lt;a href='spendpoints.php?spend=hguard'&gt;Remove&lt;/a&gt;&lt;/center&gt;";

}
                 if ($user_class-&gt;mmguard &gt; 0){
		echo "&lt;center&gt;&lt;img src='/image/protector.jpg' width=40' height='30' style='border: 1px solid #333333'&gt;You have " . floor($user_class-&gt;mmguard) . " minutes left of 1 day mug protector. &lt;a href='spendpoints.php?spend=mmguard'&gt;Remove&lt;/a&gt;&lt;/center&gt;";

}
	if ($user_class-&gt;newnews == 1){
		echo "&lt;center&gt;&lt;a href='news.php'&gt;You have unread news!&lt;/a&gt;&lt;/center&gt;";


	}
	if ($user_class-&gt;banned == 1){
		echo "&lt;center&gt;You Have Been Banned!&lt;/center&gt;";
die();
}
require_once('ajax_chat/chat_globals.php');
?&gt;</pre>
<div></div>

<p>
 header code</p>
<p>
any ideas on why these will not be working?</p>
<p><a class="ipsAttachLink ipsAttachLink_image" href="https://makewebgames.io/uploads/monthly_2014_05/Untitled.png.abaa1752fe4a68d485adbdb9af7c984e.png" data-fileid="1289" data-fileext="png" rel=""><img data-fileid="1289" class="ipsImage ipsImage_thumbnailed" alt="Untitled.thumb.png.74b68ced00b11fddf8e8a48453d93d91.png" data-src="https://makewebgames.io/uploads/monthly_2019_02/Untitled.thumb.png.74b68ced00b11fddf8e8a48453d93d91.png" src="https://makewebgames.io/applications/core/interface/js/spacer.png" /></a></p>
]]></description><guid isPermaLink="false">24241</guid><pubDate>Wed, 07 May 2014 19:09:10 +0000</pubDate></item><item><title>gRPG Testers.</title><link>https://makewebgames.io/topic/23946-grpg-testers/</link><description><![CDATA[
<p>Hey MWG, another thread for all! I have been working on this game for a while now and I know that you guys are aware. Some of you guys signed</p>
<p>
up and never really shared their feedback. I know that the game is similar to other grpg games with a different design. A few of us have been working </p>
<p>
on the game to make it different and were getting there. Please feel free to sign up and try the game out. We've just installed a custom chat to the game </p>
<p>
and are in the process of creating a few custom mods for the game to make it unique. </p>

<p>
I also need hackers to do their thing and give feedback :D</p>
<p>
If you find any bugs or vulnerable points and holes..</p>

<p>
the link to my game is themafiaking.x10.mx</p>
<p>
if you cant sign in or sign up message me on skype</p>

<p>
Live:dopeboygfx</p>
<p>
DopeboyGFX</p>
<p>
Tyson Cruz.</p>

<p>
Thank you MWG for your support!</p>
]]></description><guid isPermaLink="false">23946</guid><pubDate>Fri, 21 Feb 2014 21:37:33 +0000</pubDate></item><item><title>Grpg...</title><link>https://makewebgames.io/topic/23869-grpg/</link><description><![CDATA[<p>Anyone know were i can get a free version from???</p>]]></description><guid isPermaLink="false">23869</guid><pubDate>Sun, 02 Feb 2014 03:00:29 +0000</pubDate></item><item><title>How to Buy out of hosp and jail!</title><link>https://makewebgames.io/topic/23876-how-to-buy-out-of-hosp-and-jail/</link><description><![CDATA[
<p>I want to add a buy out of jail and hospital function, I got no idea how this is done, Please can someone  give me the code I have GRPG</p>

<p>
silentmafia.co.uk</p>
]]></description><guid isPermaLink="false">23876</guid><pubDate>Mon, 03 Feb 2014 11:11:00 +0000</pubDate></item><item><title>Help With Forums</title><link>https://makewebgames.io/topic/23875-help-with-forums/</link><description><![CDATA[
<p>I don't have a forums and I am new to coding so I have no idea how to set a forums up, can someone give me a step by step guide on how to add the forums to my game.</p>

<p>
silentmafia.co.uk</p>

<p>
Thats my game!</p>
]]></description><guid isPermaLink="false">23875</guid><pubDate>Mon, 03 Feb 2014 10:05:06 +0000</pubDate></item><item><title>Help with crons!!</title><link>https://makewebgames.io/topic/23874-help-with-crons/</link><description><![CDATA[
<p>I am seriously needing some help. I am trying to get my Mobster of The hour Script working. I have located the script at /moth.php and I need the script to run. Here is everything on moth.php</p>
<p data-double>&nbsp;</p>

<pre class="ipsCode">&lt;?
$result = mysql_query("SELECT id, hourlyattacks FROM grpgusers WHERE hourlyattacks &gt; 0 DESC LIMIT 1");
$rows = mysql_num_rows($result);
if($rows == 1) {
$fetch = mysql_fetch_array($result);
send_event($fetch['id'], "You won mobster of the hour with ".$fetch['hourlyattacks']."");
$result = mysql_query("UPDATE grpgusers SET points = points + 10 WHERE id = '".$fetch['id']."'");
$reset = mysql_query("UPDATE grpgusers SET hourlyattacks = '0'");
}

?&gt;
</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
Anyhow I am using a cpanel for crons but I got no idea howthis works as I am completly new! Please help me out guys! I want the script to see how many 'hourlyattacks' there are, take the highest, reward points,  and reset hourlyattacks and start over.... someone help please?</p>
]]></description><guid isPermaLink="false">23874</guid><pubDate>Mon, 03 Feb 2014 00:28:19 +0000</pubDate></item><item><title>Site Hacked</title><link>https://makewebgames.io/topic/23803-site-hacked/</link><description><![CDATA[
<p>Not sure if you guys know the person name "MrAshly"</p>
<p>
But this person hasn't did any sql injection from sending points or anything,</p>

<p>
They have a way to access other accounts.</p>

<p>
Do anyone know how to prevent this.</p>

<p>
I could post Header,login and register. If needed but I sort of need help with this ASAP</p>
]]></description><guid isPermaLink="false">23803</guid><pubDate>Sun, 05 Jan 2014 10:11:48 +0000</pubDate></item><item><title>Gang [Help]</title><link>https://makewebgames.io/topic/23764-gang-help/</link><description><![CDATA[
<p>Hey, I have been trying to figure out how to put a limit on the gang creations.</p>
<p>
I want it were only 8 gangs can be created in the game.</p>

<p>
Here is the file</p>

<pre class="ipsCode">&lt;?php
include 'header.php';

if($_POST['create'] != ""){ // if they are wanting to start a new gang
$error .= ($user_class-&gt;money &lt; 25000) ? "&lt;div&gt;You don't have enough money to start a gang. You need at least ".'$25,000&lt;/div&gt;' : $error;
$error .= ($user_class-&gt;gang != 0) ? "&lt;div&gt;You have to leave your gang to start a new gang.&lt;/div&gt;" : "";
$error .= (strlen($_POST['name']) &lt; 3) ? "&lt;div&gt;Your Unit Name has to be at least 3 characters long.&lt;/div&gt;" : "";
$error .= (strlen($_POST['name']) &gt; 21) ? "&lt;div&gt;Your Unit Name can only be a max of 20 characters long.&lt;/div&gt;" : "";
$error .= (strlen($_POST['tag']) &lt; 1) ? "&lt;div&gt;Your Unit Name has to be at least 1 character long.&lt;/div&gt;" : "";
$error .= (strlen($_POST['tag']) &gt; 4) ? "&lt;div&gt;Your Unit Tag can only be a max of 4 characters long.&lt;/div&gt;" : "";
       $error = ($user_class-&gt;rmdays &lt; 0) ? "You need to be a Respected Marine to make a Unit." : $error;
//check if name is taken yet
$check = mysql_query("SELECT * FROM `gangs` WHERE `name`='".$_POST['name']."'");
$exist = mysql_num_rows($check);
$error .= ($exist &gt; 0) ? "&lt;div&gt;The Unit Name you chose is already taken.&lt;/div&gt;" : "";
//check if tag is taken yet
$check = mysql_query("SELECT * FROM `gangs` WHERE `tag`='".$_POST['tag']."'");
$exist = mysql_num_rows($check);
$error .= ($exist &gt; 0) ? "&lt;div&gt;The tag you chose is already taken.&lt;/div&gt;" : "";

if($error == ""){ // if there are no errors, make the gang
	$result= mysql_query("INSERT INTO `gangs` (name, tag, leader, level)"."VALUES ('".$_POST['name']."', '".$_POST['tag']."', '$user_class-&gt;id', '1')");

	$newmoney = $user_class-&gt;money - 25000; //deduct the cost of the money
       $result = mysql_query("SELECT * FROM `gangs` WHERE `leader` = '".$user_class-&gt;id."'");
	$worked = mysql_fetch_array($result);
	$gangid = $worked['id'];

	$result = mysql_query("UPDATE `grpgusers` SET `gangappliedto` = '0', `rankname` = 'Capo Crimini/Capo', `stat` = '1',`edit` = '2', `vault` = '2', `members` = '2', `ghouse` = '2', `ranks` = '2', `invite` = '2', `gang` = '$gangid', `rank` = '1', `money` = '".$newmoney."' WHERE `id`='".$_SESSION['id']."'");
	$user_class = new User($_SESSION['id']);
	echo Message("You have successfully created a unit!");
   } else {
   	echo Message($error);
   }
}

if ($user_class-&gt;gang == 0) {
?&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;Create Unit&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;
	&lt;form method='post'&gt;
	Well, it looks like you haven't join or created a unit yet.&lt;br&gt;&lt;br&gt;
	To create a unit it costs $25,000. If you don't have enough, or would like to join someone elses unit, check out the &lt;a href="gang_list.php"&gt;Unit List&lt;/a&gt; for other gangs to join.&lt;br&gt;&lt;br&gt;
	&lt;table width='100%'&gt;

		&lt;tr&gt;
			&lt;td width='15%'&gt;Unit Name:&lt;/td&gt;
			&lt;td width='35%'&gt;&lt;input type='text' name='name' value='' maxlength='20' size='16'&gt;&lt;/td&gt;
			&lt;td width='15%'&gt;Unit Tag&lt;/td&gt;
			&lt;td width='35%'&gt;&lt;input type='text' name='tag' value='' maxlength='4' size='4'&gt;&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td colspan='4' align='center'&gt;&lt;input type='submit' name='create' value='Create'&gt;&lt;/td&gt;

		&lt;/tr&gt;
	&lt;/table&gt;
	&lt;/form&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;?php
}

include 'footer.php';
?&gt;</pre>
<div></div>

<p>
Thanks to all who help me on this.</p>
]]></description><guid isPermaLink="false">23764</guid><pubDate>Sun, 22 Dec 2013 12:00:16 +0000</pubDate></item><item><title><![CDATA[Question about type column bank &amp; money]]></title><link>https://makewebgames.io/topic/23610-question-about-type-column-bank-amp-money/</link><description><![CDATA[
<p>I'm facing a small problem when I withdraw/deposit money.</p>

<p>
For example, I have $98,007,285,155 money in my bank or on hand, I want to deposit/withdraw it in one time, but it deposits/withdraws only $2,147,483,647 max.</p>

<p>
I have both columns on bigint(250).</p>

<p>
Is there another type I should use in the database for this so players are able to deposit/withdraw their cash in one click?</p>
]]></description><guid isPermaLink="false">23610</guid><pubDate>Sun, 20 Oct 2013 00:02:57 +0000</pubDate></item><item><title>wanting to make gangmail show live post</title><link>https://makewebgames.io/topic/23554-wanting-to-make-gangmail-show-live-post/</link><description><![CDATA[
<pre class="ipsCode">
&lt;?
error_reporting('0');
include 'header.php';
include 'bbcodes.php';

  $newgmail = "0";
  $result = mysql_query("UPDATE `grpgusers` SET `gmail` = '".$newgmail."' WHERE `id`='".$_SESSION['id']."'");

if($user_class-&gt;gangmail &gt; 0){
$resulte = mysql_query("UPDATE `grpgusers` SET `gangmail`='0' WHERE `id`='".$user_class-&gt;id."'");
}
if($user_class-&gt;gang &lt; 1) { echo Message("You are not in a gang.");include 'footer.php'; die(); }

if ($user_class-&gt;gang != 0) {

$gang_class = New Gang($user_class-&gt;gang);
}
if (isset($_POST['submit'])) {

$error = ($_POST['message'] == "") ? "You need to have a message!" : $error;
if($error == ""){


$_POST['title'] = str_replace ('"', '"', $_POST['title']);
$_POST['title'] = str_replace ("'", "'", $_POST['title']);


$_POST['message'] = str_replace ('"', '"', $_POST['message']);
$_POST['message'] = str_replace ("'", "'", $_POST['message']);

$clock = date("d M H:i:s");
$time = time();
$result = mysql_query("INSERT INTO `gangmail` (`when`, `poster`,`date`, `title`, `message`, `gangid`)VALUES"." ('".$time."', '$user_class-&gt;id','$clock', '".strip_tags($_POST['title'])."', '".strip_tags($_POST['message'])."', '".$gang_class-&gt;id."')");

$resultbb = mysql_query("UPDATE `grpgusers` SET `gmail` = `gmail` + 1 WHERE `gang` = '{$gang_class-&gt;id}'");
 } else {
 echo Message($error);
 }
}
?&gt;
&lt;script language="JavaScript" type="text/javascript"&gt;
&lt;!--
function emoticon(myValue) 
{
var myField = document.getElementById('msgtext');
//IE support
if (document.selection) {
	var temp;
	myField.focus();
	sel = document.selection.createRange();
	temp = sel.text.lenght;
	sel.text = myValue;
	if (myValue.length == 0) {
		sel.moveStart('character', myValue.length);
		sel.moveEnd('character', myValue.length);
	} 
	else
	{
		sel.moveStart('character', -myValue.length + temp);
	}
	sel.select();
}
//MOZILLA/NETSCAPE support
else if (myField.selectionStart || myField.selectionStart == '0')
{
	var startPos = myField.selectionStart;
	var endPos = myField.selectionEnd;
	myField.value = myField.value.substring(0, startPos)
	+ myValue
	+ myField.value.substring(endPos, myField.value.length);
	myField.focus();
	myField.selectionStart = startPos + myValue.length;
	myField.selectionEnd = startPos + myValue.length;
}
else 
{
	myField.value += myValue;
	myField.focus();
}
}



&lt;/script&gt;
&lt;? 
?&gt;

&lt;tr&gt;
 &lt;td class="contentcontent"&gt;&lt;form method='post'&gt;
     &lt;table width='100%'&gt;
       &lt;center&gt;
         &lt;? echo bbcode_popup(); ?&gt;
       &lt;/center&gt;
       &lt;tr&gt;
         &lt;td width='25%'&gt;Message:&lt;/td&gt;
         &lt;td width='75%'&gt;&lt;textarea name='message' cols='70' rows='4' &gt;&lt;/textarea&gt;&lt;/td&gt;
       &lt;/tr&gt;
       &lt;tr&gt;
         &lt;td width='25%'&gt;Submit:&lt;/td&gt;
         &lt;td width='75%'&gt;&lt;center&gt;
             &lt;input type='submit' name='submit' class='button' value='Post'&gt;
           &lt;/center&gt;&lt;/td&gt;
       &lt;/tr&gt;
     &lt;/table&gt;
   &lt;/form&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?
$date = mysql_query("SELECT * from `gangmail` WHERE `gangid` = '".$gang_class-&gt;id."' ORDER BY `when` DESC LIMIT 40");
$result = mysql_query("SELECT * from `gangmail` WHERE `gangid` = '".$gang_class-&gt;id."' ORDER BY `when` DESC LIMIT 40");
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$user_ads = New User($row['poster']);

?&gt;
&lt;script type="text/JavaScript"&gt;

function timedRefresh(timeoutPeriod) {
setTimeout("location.reload(true);",timeoutPeriod);
}

&lt;/script&gt;
&lt;/head&gt;

&lt;body onload="JavaScript:timedRefresh(10000);"
&lt;tr&gt;
 &lt;td class="contentcontent"&gt;&lt;table width='100%'&gt;
     &lt;tr&gt;
       &lt;td width='25%' align='center' class='highlight'&gt;&lt;img src="&lt;?= $user_ads-&gt;avatar ?&gt;" width='100' height='100' border='0'&gt;&lt;/a&gt;&lt;br&gt;
         &lt;?= $user_ads-&gt;formattedname ?&gt;
         &lt;br&gt;
         &lt;?= ($row['date']) ?&gt;
         &lt;br&gt;&lt;/td&gt;
       &lt;td width='75%' colspan='4' class='highlight'&gt;&lt;?= $bbcode-&gt;parse($row['message']) ?&gt;
         &lt;/span&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;/table&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;/body&gt;
&lt;?
}
?&gt;
&lt;?
include 'footer.php';
?&gt;
</pre>
<div></div>

]]></description><guid isPermaLink="false">23554</guid><pubDate>Sat, 21 Sep 2013 23:32:50 +0000</pubDate></item><item><title>Crons</title><link>https://makewebgames.io/topic/23227-crons/</link><description><![CDATA[

<pre class="ipsCode">  &lt;?
include 'dbcon.php';
include 'classes.php';


$resultgrow = mysql_query("SELECT * FROM `growing`");
while($line = mysql_fetch_array($resultgrow, MYSQL_ASSOC)) {
$lost = floor(rand(0, $line['amount'] * 4));
if ($lost != 0){
	$newamount = $line['cropamount'] - $lost;
	Send_Event($line['userid'], $lost." of your ".$line['croptype']." plants have died. Crop ID:".$line['id']);
}

$resultgrowupdate = mysql_query("UPDATE `growing` SET `cropamount` = '".$newamount."' WHERE `id` = '".$line['id']."'");
}

//delete rows that are empty and give back land to owner
$resultgrow = mysql_query("SELECT * FROM `growing`");
while($line = mysql_fetch_array($resultgrow, MYSQL_ASSOC)) {
if ($line['cropamount'] == 0){
	Give_Land($line['cityid'], $line['userid'], $line['amount']);
	$result = mysql_query("DELETE FROM `growing` WHERE `id`='".$line['id']."'");
}
}


//$result2 = mysql_query("DELETE FROM `spylog` WHERE `age` &lt; ".time() - 172800);// clear out old spy log stuff

$deletechat = mysql_query("DELETE FROM `message`");
//Events
	mysql_query("UPDATE events SET age=age+1");
	mysql_query("UPDATE gang_events SET age=age+1");

               mysql_query("UPDATE mail SET age=age+1");

	mysql_query("DELETE FROM gang_events WHERE age &gt;= 3");
//END EVENTS


// Lottery Stuff
$checklotto = mysql_query("SELECT * FROM `lottery`");
$numlotto = mysql_num_rows($checklotto);
$amountlotto = $numlotto * 750;

$offset_result = mysql_query( " SELECT FLOOR(RAND() * COUNT(*)) AS `offset` FROM `lottery` ");
$offset_row = mysql_fetch_object( $offset_result );
$offset = $offset_row-&gt;offset;
$result = mysql_query( " SELECT * FROM `lottery` LIMIT $offset, 1 " );
$worked = mysql_fetch_array($result);

$winner = $worked['userid'];

$lottery_user = new User($worked['userid']);
$newmoney = $lottery_user-&gt;money + 20000 + $amountlotto;;
Send_Event($lottery_user-&gt;id, "You won the lottery! Congratulations, you won $".$amountlotto);
$result2 = mysql_query("UPDATE `grpgusers` SET `money` = '".$newmoney."' WHERE `id` = '".$lottery_user-&gt;id."'");
$result2 = mysql_query("DELETE FROM `lottery`");
// Lottery Stuff

// Points Lottery Stuff
$checkplotto = mysql_query("SELECT * FROM `plottery`");
$numplotto = mysql_num_rows($checkplotto);
$amountplotto = $numplotto * 24;

$poffset_result = mysql_query( " SELECT FLOOR(RAND() * COUNT(*)) AS `offset` FROM `plottery` ");
$poffset_row = mysql_fetch_object( $poffset_result );
$poffset = $poffset_row-&gt;offset;
$presult = mysql_query( " SELECT * FROM `plottery` LIMIT $poffset, 1 " );
$worked = mysql_fetch_array($presult);

$pwinner = $worked['userid'];

$plottery_user = new User($worked['userid']);
$newpoints = $plottery_user-&gt;points + $amountplotto;;
$pointsss =   Points;
Send_Event($plottery_user-&gt;id, "You won the points lottery! Congratulations, you won ".$amountplotto   .$pointsss);
$result2 = mysql_query("UPDATE `grpgusers` SET `points` = '".$newpoints."' WHERE `id` = '".$plottery_user-&gt;id."'");
$result2 = mysql_query("DELETE FROM `plottery`");
// Points Lottery Stuff

$result = mysql_query("SELECT * FROM `grpgusers`");
while($line = mysql_fetch_assoc($result)) {
$updates_user = new User($line['id']);
$newmoney = $updates_user-&gt;money;
$username = $updates_user-&gt;username;
$newrmdays = $updates_user-&gt;rmdays - 1;
$newrmdays = ($newrmdays &lt; 0) ? 0 : $newrmdays;
if($newrmdays &gt; 1) {
	$interest = .03;
} else {
	$interest = .01;
}
$newbank = ceil($updates_user-&gt;bank + ($updates_user-&gt;bank * $interest));

       if($newrmdays &gt; 1) {
	$interest = .0001;
} else {
	$interest = .00001;
}
$newbank2 = ceil($updates_user-&gt;bank2 + ($updates_user-&gt;bank2 * $interest));

if($updates_user-&gt;job != 0){
	$result_job = mysql_query("SELECT * FROM `jobs` WHERE `id`='".$updates_user-&gt;job."'");
	$worked_job = mysql_fetch_array($result_job);
	$newmoney = $updates_user-&gt;money + $worked_job['money'];
	$newwexp33 = $updates_user-&gt;workexp +$worked_job['workexp'];
               $newwstr = $worked_job['strengthgain'];
               $newwdef = $worked_job['defensegain'];
               $newwspd = $worked_job['speedgain'];
               $result5846 = mysql_query("UPDATE `grpgusers` SET `workexp` = '".$newwexp33."',`money` = '".$newmoney."', `strength` = strength +'".$newwstr."', `defense` = defense +'".$newwdef."', `speed` = speed +'".$newwspd."' WHERE `id`='".$updates_user-&gt;id."'");
	Send_Event($updates_user-&gt;id, "You earned $".$worked_job['money']." and ".$worked_job['workexp']." exp from your job. You now have $".$newmoney);
}                    	 
if($updates_user-&gt;gangjobs != 0){
$result_job = mysql_query("SELECT * FROM `gangjobs` WHERE `id`='".$updates_user-&gt;gangjobs."'");
$worked_job = mysql_fetch_array($result_job);
$newmoney21 = $worked_job['money'];
$result141 = mysql_query("UPDATE `gangs` SET `vault` = vault +'".$newmoney21."' WHERE `id`='".$updates_user-&gt;gang."'");
Send_Event($updates_user-&gt;id, "&lt;font color = 'yellow'&gt;You earned &lt;/font&gt;&lt;font color = '#ffffff'&gt;$".$worked_job['money']."&lt;/font&gt; &lt;font color = 'yellow'&gt;from your gangjob. You now have &lt;/font&gt; $".$newmoney);
}
// hooker stuff
if($updates_user-&gt;hookers &gt; 0){
$newbank = $newbank + (500 * $updates_user-&gt;hookers);
$newhookers = ceil($updates_user-&gt;hookers - 0);

	Send_Event($updates_user-&gt;id, "You earned $".($updates_user-&gt;hookers * 500)." from your Drug Dealers. You now have $".$newbank);
}
//hooker stuff
// hooker stuff
if($updates_user-&gt;hoes &gt; 0){
$newbank = $newbank + (100 * $updates_user-&gt;hoes);
$newhoes = ceil($updates_user-&gt;hoes );

	Send_Event($updates_user-&gt;id, "You earned $".($updates_user-&gt;hoes * 100)." from your Hookers. You now have $".$newbank);
}
//hooker stuff


}
$result2 = mysql_query("UPDATE `grpgusers` SET `workexp` = '".$newwexp."',`bank` = '".$newbank."',`bank2` = '".$newbank2."',`money` = '".$newmoney."', `hoes` = '0',`hookers` = '".$newhookers."', `rmdays` = '".$newrmdays."', `bank` = '".$newbank."', `searchdowntown` = '100', `csmuggling` = '10', `luckyrm` = '1', `lucky` = '1', `freefill` = '1',`boxes_opened` = '0', `slapping` = '0', `votemtl` = '0', `votegtop` = '0', `gymss` = '3',`gyms` = '1',`gs100` = '0', `m100` = '0',`bogd` = '0',`apex` = '0',`g200` = '0', `crack` = '0',`lastchase` = '0'");


mysql_query("UPDATE grpgusers SET userBANKDAYS = userBANKDAYS - 1 WHERE userBANKDAYS &gt; 0") or mysql_error();
mysql_query("DELETE FROM `rates`") or mysql_error();

mysql_query("UPDATE mailbans SET days = days - 1 WHERE days &gt; 0") or mysql_error();
mysql_query("DELETE FROM `mailbans` WHERE days &lt; 1") or mysql_error();

mysql_query("UPDATE bans SET days = days - 1 WHERE days &gt; 0") or mysql_error();
mysql_query("DELETE FROM `bans` WHERE days &lt; 1") or mysql_error();



?&gt;</pre>
<div></div>
<p data-double>&nbsp;</p>
<p>
Everyday a user bank reset to 0, not sure whats the problem in this.</p>
]]></description><guid isPermaLink="false">23227</guid><pubDate>Sun, 23 Jun 2013 12:30:06 +0000</pubDate></item><item><title>Credit System AUTO</title><link>https://makewebgames.io/topic/23215-credit-system-auto/</link><description><![CDATA[
<p>Credit Donation File</p>
<p data-double>&nbsp;</p>
<pre class="ipsCode">&lt;?
include "header.php";
if ($_GET['buy'] == "thirtyrm"){
 if($user_class-&gt;credits &gt; 2) {
 $newcredit = $user_class-&gt;credits - 3;
 $time = time();
       $creditbalance = 30 + $user_class-&gt;rmdays;
$result = mysql_query("UPDATE `grpgusers` SET `money` = money + 10000, `points` = points + 50, `rmdays` = '".$creditbalance."', `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
         $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '30 Day RM', '3')");
echo Message("You spent 3 credits for the 30 Day Respected Mobster Status.");
Send_Event($user_class-&gt;id, "You have been credited with your 30 Day Respected Mobster Status, $10,000 and 50 points.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "sixtyrm"){
if($user_class-&gt;credits &gt; 5) {
 $newcredit = $user_class-&gt;credits - 6;
$time = time();
        $creditbalance = 60 + $user_class-&gt;rmdays;
 $result = mysql_query("UPDATE `grpgusers` SET `money` = money + 25000, `points` = points + 120, `rmdays` = '".$creditbalance."', `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '60 Day RM', '6')");

echo Message("You spent 6 credits for the 60 Day Respected Mobster Status.");
        Send_Event($user_class-&gt;id, "You have been credited with your 60 Day Respected Mobster Status, $25,000 and 120 points.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "nintyrm"){
if($user_class-&gt;credits &gt; 8) {
 $newcredit = $user_class-&gt;credits - 9;
$time = time();
        $creditbalance = 90 + $user_class-&gt;rmdays;
 $result = mysql_query("UPDATE `grpgusers` SET `money` = money + 75000, `points` = points + 300, `rmdays` = '".$creditbalance."', `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '90 Day RM', '9')");

echo Message("You spent 9 credits for the 90 Day Respected Mobster Status.");
        Send_Event($user_class-&gt;id, "You have been credited with your 90 Day Respected Mobster Status, $75,000 and 300 points..".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "oneawakepill"){
if($user_class-&gt;credits &gt; 0) {
 $newcredit = $user_class-&gt;credits - 1;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '1 Awake Pill', '1')");
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
 echo Message("You spent 1 credit for an Awake pill.");
        Send_Event($user_class-&gt;id, "You have been credited with your Awake pill.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "fiveawakepill"){
if($user_class-&gt;credits &gt; 4) {
 $newcredit = $user_class-&gt;credits - 5;
$time = time();
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '5 Awake Pills', '5')");
 $result = mysql_query("UPDATE `grpgusers` SET `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought

 echo Message("You spent 5 credits for 5 Awake pills.");
        Send_Event($user_class-&gt;id, "You have been credited with your Awake pills.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "tenawakepill"){
if($user_class-&gt;credits &gt; 9) {
 $newcredit = $user_class-&gt;credits - 10;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '10 Awake Pills', '10')");
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought 
          Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
 echo Message("You spent 10 credits for 10 Awake pills.");
        Send_Event($user_class-&gt;id, "You have been credited with your Awake pills.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "fifteenawakepill"){
if($user_class-&gt;credits &gt; 14) {
 $newcredit = $user_class-&gt;credits - 15;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '15 Awake Pills', '15')");
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought 
          Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
          Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
    Give_Item(42, $user_class-&gt;id);//give the user their item they bought
 echo Message("You spent 15 credits for 15 Awake pills.");
        Send_Event($user_class-&gt;id, "You have been credited with your Awake pills.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "rmpack"){
if($user_class-&gt;credits &gt; 23) {
 $newcredit = $user_class-&gt;credits - 24;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '10 rm packs', '10')");
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought 
          Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
    Give_Item(3, $user_class-&gt;id);//give the user their item they bought
 echo Message("You spent 24 credits for 10 RM Packs.");
        Send_Event($user_class-&gt;id, "You have been credited with your 10 RM Packs.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack1"){
if($user_class-&gt;credits &gt; 2) {
 $newcredit = $user_class-&gt;credits - 3;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 250, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
         $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '250 Points', '3')");
echo Message("You spent 3 credits for the 250 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 250 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack2"){
if($user_class-&gt;credits &gt; 9) {
 $newcredit = $user_class-&gt;credits - 10;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 1000, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
       $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '1,000 Points Pack', '10')");
echo Message("You spent 10 credits for the 1,000 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 1,000 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack3"){
if($user_class-&gt;credits &gt; 19) {
 $newcredit = $user_class-&gt;credits - 20;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 2200, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
 $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '2,200 Points Pack', '20')");
echo Message("You spent 10 credits for the 2,200 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 2,200 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack5"){
if($user_class-&gt;credits &gt; 29) {
 $newcredit = $user_class-&gt;credits - 30;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 5000, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
 $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '5,000 Points Pack', '30')");
 echo Message("You spent 30 credits for the 5000 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 5000 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack6"){
if($user_class-&gt;credits &gt; 54) {
 $newcredit = $user_class-&gt;credits - 55;
$time = time();
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 10000, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
 $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '10,000 Points Pack', '55')");
 echo Message("You spent 55 credits for the 10,000 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 10,000 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}
if ($_GET['buy'] == "pointpack7"){
if($user_class-&gt;credits &gt; 119) {
 $newcredit = $user_class-&gt;credits - 120;
 $result = mysql_query("UPDATE `grpgusers` SET `points` = points + 25000, `credits`='".$newcredit."' WHERE `id`='".$_SESSION['id']."'");
 $result = mysql_query("INSERT INTO `spentcredits` (timestamp, spender, spent, amount)"."VALUES ('".$time."', '".$user_class-&gt;id."', '25,000 Points Pack', '120')");
 echo Message("You spent 120 credits for the 25,000 points pack.");
        Send_Event($user_class-&gt;id, "You have been credited with your 25,000 points pack.".$user_class-&gt;formattedusername);
} else {
	echo Message("You don't have enough credits.You can buy some at the upgrade store");
}
}



?&gt;
&lt;tr&gt;&lt;td class='contenthead'&gt;Your Wallet&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;	
&lt;center&gt;1 credit= $1&lt;/center&gt;
&lt;center&gt;Your credits balance is: &lt;font color=green&gt;&lt;b&gt;&lt;?php echo $user_class-&gt;credits; ?&gt;&lt;/center&gt;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;Please note!&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;	
&lt;center&gt;If you do not receieve your credits, please message a member of staff or create a support ticket.&lt;/center&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;Upgrade Store&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;	&lt;a href="/rmstoreoffers.php"&gt;&lt;font size=3&gt;Offers Here Click Me&lt;/font&gt;&lt;/a&gt;
&lt;center&gt;
&lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post" target=_blank class="style8"&gt;
   &lt;select name=amount style="background-color:#ffffff; font: 10pt verdana; border: 1px solid #000000;"&gt;
     &lt;option value=1&gt;1 Credit = $1.00&lt;/option&gt;
     &lt;option value=3&gt;3 Credits = $3.00&lt;/option&gt;
     &lt;option value=6&gt;6 Credits = $6.00&lt;/option&gt;
     &lt;option value=9&gt;9 Credits = $9.00&lt;/option&gt;
     &lt;option value=15&gt;15 Credits = $15.00&lt;/option&gt;
     &lt;option value=20&gt;20 Credits = $20.00&lt;/option&gt;
     &lt;option value=30&gt;30 Credits = $30.00&lt;/option&gt;
     &lt;option value=120&gt;120 Credits = $120.00&lt;/option&gt;
     &lt;option value=200&gt;200 Credits = $200.00&lt;/option&gt;
   &lt;/select&gt;
   &lt;input type="hidden" name="cmd" value="_xclick"&gt;
   &lt;input type="hidden" name="currency_code" value="USD"&gt;
   &lt;input type="hidden" name=custom value=&lt;?= $user_class-&gt;id ?&gt;&gt;
   &lt;input type="hidden" name="business" value="N/A"&gt;
   &lt;input type="hidden" name="item_number" value="1"&gt;
   &lt;input type="hidden" name="item_name" value="N/A Credits for &lt;?= $user_class-&gt;username ?&gt;"&gt;
&lt;input type="hidden" name="notify_url" value="/ipn_credits.php"&gt;
   &lt;input type="submit" class="button" border="0" value="Continue" onClick="confirmbuy()" name="submit" alt=""&gt;&lt;/form&gt;&lt;/td&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;Upgrade Store&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;
&lt;center&gt; &lt;img src="/rmupgrade.png"width=400 height=100";&lt;center&gt;	
&lt;table width='100%'&gt; 
&lt;tr&gt; 
&lt;td&gt; &lt;/td&gt; 
&lt;td&gt;Free Member&lt;/td&gt; 
&lt;td&gt;RM (30 days)&lt;/td&gt; 
&lt;td&gt;RM (60 days)&lt;/td&gt; 
&lt;td&gt;RM (90 days)&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Money Bonus (One Time)&lt;/td&gt; 
&lt;td&gt;-&lt;/td&gt; 
&lt;td&gt;$10,000&lt;/td&gt; 
&lt;td&gt;$25,000&lt;/td&gt; 
&lt;td&gt;$75,000&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Points Bonus (One Time)&lt;/td&gt; 
&lt;td&gt;-&lt;/td&gt; 
&lt;td&gt;50&lt;/td&gt; 
&lt;td&gt;125&lt;/td&gt; 
&lt;td&gt;300&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Access to RM Horse Races&lt;/td&gt; 
&lt;td&gt;No&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Talk to the Drug Dealer&lt;/td&gt; 
&lt;td&gt;No&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;td&gt;Yes&lt;/td&gt; 
&lt;/tr&gt;
&lt;tr&gt; 
&lt;td&gt;Energy Regain (Per 5 Mins)&lt;/td&gt; 
&lt;td&gt;10%&lt;/td&gt; 
&lt;td&gt;20%&lt;/td&gt; 
&lt;td&gt;20%&lt;/td&gt; 
&lt;td&gt;20%&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Bank Interest&lt;/td&gt; 
&lt;td&gt;1%&lt;/td&gt; 
&lt;td&gt;3%&lt;/td&gt; 
&lt;td&gt;3%&lt;/td&gt; 
&lt;td&gt;3%&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Max Items&lt;/td&gt; 
&lt;td&gt;100&lt;/td&gt; 
&lt;td&gt;250&lt;/td&gt; 
&lt;td&gt;250&lt;/td&gt; 
&lt;td&gt;250&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Credits Needed&lt;/td&gt; 
&lt;td&gt;Free&lt;/td&gt; 
&lt;td&gt;&lt;b&gt;3&lt;/b&gt;&lt;/td&gt; 
&lt;td&gt;&lt;b&gt;6&lt;/b&gt;&lt;/td&gt; 
&lt;td&gt;&lt;b&gt;9&lt;/b&gt;&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td&gt;Buy Now!&lt;/td&gt; 
&lt;td&gt;Free&lt;/td&gt; 
&lt;td&gt;&lt;a href="/rmstore.php?buy=thirtyrm"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/a&gt;&lt;/td&gt; 
&lt;td&gt;&lt;a href="/rmstore.php?buy=sixtyrm"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/a&gt;&lt;/td&gt; 
&lt;td&gt;&lt;a href="/rmstore.php?buy=nintyrm"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt; 
&lt;/tr&gt;
&lt;tr&gt; 
&lt;td&gt; &lt;/td&gt; 
&lt;td&gt; &lt;/td&gt; 


&lt;/tr&gt; 
&lt;/table&gt;

&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;The Respected Mobsters Packs&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;
&lt;table width="100%"&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;td&gt;Package&lt;/td&gt;	
&lt;td&gt;Points&lt;/td&gt;
&lt;td&gt;Items&lt;/td&gt;
&lt;td&gt;Credits Required&lt;/td&gt;
&lt;td&gt;Buy&lt;/td&gt;
&lt;/tr&gt;


       &lt;tr&gt;
	&lt;td&gt;10 RM Packs&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;               

	&lt;td&gt;RM Packs [x10]&lt;br&gt;&lt;/td&gt;
	&lt;td&gt;24&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=rmpack"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;

&lt;/tr&gt;
       &lt;tr&gt;
	&lt;td&gt;1 Awake Pill&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;

	&lt;td&gt;Awake Pill [x1]&lt;br&gt;&lt;/td&gt;
	&lt;td&gt;1&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=oneawakepill"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;

&lt;/tr&gt;


&lt;tr&gt;
	&lt;td&gt;5 Awake Pills&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;
	&lt;td&gt;Awake Pill [x5]&lt;br&gt;&lt;/td&gt;

	&lt;td&gt;5&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=fiveawakepill"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;

	&lt;td&gt;10 Awake Pills&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;
	&lt;td&gt;Awake Pill [x10]&lt;br&gt;&lt;/td&gt;
	&lt;td&gt;10&lt;/td&gt;


	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=tenawakepill"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
	&lt;td&gt;15 Awake Pills&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;
	&lt;td&gt;Awake Pill [x15]&lt;br&gt;&lt;/td&gt;

	&lt;td&gt;15&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=fifteenawakepill"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;

	&lt;td&gt;250 Points Pack&lt;/td&gt;
	&lt;td&gt;250&lt;/td&gt;
	&lt;td&gt;&lt;/td&gt;
	&lt;td&gt;3&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack1"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
	&lt;td&gt;1,000 Points Pack&lt;/td&gt;
	&lt;td&gt;1,000&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;

	&lt;td&gt;10&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack2"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;

	&lt;td&gt;2,200 Points Pack&lt;/td&gt;
	&lt;td&gt;2,200&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;
	&lt;td&gt;20&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack3"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;/form&gt;
&lt;tr&gt;
	&lt;td&gt;5,000 Points Pack&lt;/td&gt;
	&lt;td&gt;5,000&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;

	&lt;td&gt;40&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack5"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;

	&lt;td&gt;10,000 Points Pack&lt;/td&gt;
	&lt;td&gt;10,000&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;
	&lt;td&gt;75&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack6"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
	&lt;td&gt;25,000 Points Pack&lt;/td&gt;
	&lt;td&gt;25,000&lt;/td&gt;
	&lt;td&gt;-&lt;/td&gt;

	&lt;td&gt;120&lt;/td&gt;

	&lt;td align="center"&gt;&lt;a href="/rmstore.php?buy=pointpack7"&gt;&lt;b&gt;Buy&lt;/b&gt;&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;


&lt;/table&gt;
&lt;/td&gt;&lt;tr&gt;
&lt;tr&gt;&lt;td class="contenthead"&gt;Rules Please Read:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="contentcontent"&gt;
By donating to N/A you are agreeing on the following terms:&lt;br&gt;
1. If you didn't get your pack you brought please contact an admin or a member of staff with your transaction id and email address used to buy the package.&lt;br&gt;
2. Just because you have bought a package from us doesn't mean you can go around breaking rules. So be warned, you can still get banned for breaking them.&lt;br&gt;
3. No refunds will be given as the game runs on donations.&lt;br&gt;
4. If your trying to &lt;b&gt;refund&lt;/b&gt; your money through PayPal, we will ban you account.&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;?php
include 'footer.php';
?&gt;</pre>
<div></div>
<p data-double>&nbsp;</p>
<p data-double>&nbsp;</p>
<p>
Credit IPN</p>

<pre class="ipsCode">&lt;?
include "dbcon.php";

function Send_Event ($id, $text){

 $timesent = time();
$text = mysql_real_escape_string($text);
 $result= mysql_query("INSERT INTO `events` (`to`, `timesent`, `text`)".

 "VALUES ('$id', '$timesent', '$text')");

}
function microtime_float()

{

$time = microtime();

return (double)substr( $time, 11 ) + (double)substr( $time, 0, 8 );

}

$time = microtime_float();

// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-validate';

foreach ($_POST as $key =&gt; $value) {
$value = urlencode(stripslashes($value));
$req .= "&amp;$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'];
$payment_currency = $_POST['mc_currency'];
$txn_id = $_POST['txn_id'];
$receiver_email = $_POST['receiver_email'];
$payer_email = $_POST['payer_email'];
$first = $_POST['first_name'];
$last = $_POST['last_name'];
$quantity = $_POST['quantity'];
$user_id = $_POST['custom'];



$result1000 = mysql_query("INSERT INTO `ipn` (`itemname`, `date`, `itemnumber`, `paymentstatus`, `paymentamount`, `currency`, `txnid`, `receiveremail`, `payeremail`, `first`, `last`, `quantity`, `user_id`)"."VALUES ('".$item_name."', '$time',  '".$item_number."', '".$payment_status."', '".$payment_amount."', '".$payment_currency."', '".$txn_id."', '".$receiver_email."', '".$payer_email."', '".$first."', '".$last."', '".$quantity."', '".$user_id."')");

$result2 = mysql_query("SELECT*FROM `grpgusers` WHERE `id`='$_POST[custom]'");
$worked = mysql_fetch_array($result2);

if ($item_number == 1 &amp;&amp; $payment_status == "Completed"){
$userrmdays = $worked['credits'] + $_POST[mc_gross];
$result = mysql_query("UPDATE `grpgusers` SET `credits`='".$userrmdays."' WHERE `id`='$_POST[custom]'");
Send_Event($user_id, "Your $_POST[mc_gross] credit (s) have just been credited. PayPal Transaction id: ".$txn_id." ");

}
?&gt;</pre>
<div></div>
<p data-double>&nbsp;</p>
<p data-double>&nbsp;</p>
<p>
I don't which file is the problem.</p>
<p>
But it don't auto credit when a user buy credits.</p>
]]></description><guid isPermaLink="false">23215</guid><pubDate>Wed, 19 Jun 2013 22:51:22 +0000</pubDate></item></channel></rss>
