i need share plusses script n im using lavalair script so plz help me out!!!!!!! External image (may be gone)
Share Plusses Script
Started on the old forum in January 2008 · view the original in the archive · old links redirect here
in index.php
//////////////////////////////////////////Share Plusses
else if($action=="sharepl")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Sharring Plusses","");
echo "<card id=\"main\" title=\"$sitename\">";
echo "<onevent type=\"onenterforward\">";
echo "<refresh>
<setvar name=\"tfgp\" value=\"0\"/>";
echo "</refresh></onevent>";
echo "<p align=\"center\">";
echo "script by Rukiya";
echo "
";
echo "[b]Give Plusses To ".getnick_uid($who)."[/b]
";
$ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
echo "You have $ps[0] Plusses
";
echo "Plusses to give
";
echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
echo "
<anchor>Give";
echo "<go href=\"genproc.php?action=sharepl&sid=$sid&who=$who\" method=\"post\">";
echo "<postfield name=\"ptg\" value=\"$(tfgp)\"/>";
echo "</go></anchor>";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
usage
echo "<a href=\"index.php?action=sharepl&who=$who&sid=$sid\">Share Plusses</a>
";
in genproc.php
//////////////////////////////////////////Share plusses
else if($action=="sharepl")
{
addonline(getuid_sid($sid),"Sharring Plusses","");
$who = $_GET["who"];
$ptg = $_POST["ptg"];
echo "<card id=\"main\" title=\"$sitename\">";
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$psf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$pst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
if($psf[0]>=$ptg){
$psf = $psf[0]-$ptg;
$pst = $pst[0]+$ptg;
$res = mysql_query("UPDATE ibwf_users SET plusses='".$pst."' WHERE id='".$who."'");
if($res)
{
$res = mysql_query("UPDATE ibwf_users SET plusses='".$psf."' WHERE id='".$uid."'");
echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
}
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough Plusses to give
";
}
echo " script by rukiya";
echo "
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
copy and paste again the above written script ,it will work if you have >0 plusses
i need share plusses script n im using lavalair script so plz help me out!!!!!!! External image (may be gone)
or just look for the share game plusses part andcopy that and just change the gplus to plusses ...
//////////////////////////////////////////Share Plusses
else if($action=="sharepl")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Sharring Plusses","");
echo "<head>";
echo "<title>$sitename</title>";
echo "</head>";
echo "<body>";
echo "<onevent type=\"onenterforward\">";
echo "<refresh>
<setvar name=\"tfgp\" value=\"0\"/>";
echo "</refresh></onevent>";
echo "<p align=\"center\">";
echo "script by Rukiya";
echo "
";
echo "[b]Give Plusses To ".getnick_uid($who)."[/b]
";
$ps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
echo "You have $ps[0] Plusses
";
echo "Plusses to give
";
echo "<input name=\"tfgp\" format=\"*N\" maxlength=\"2\"/>";
echo "
<form action="genproc.php?action=sharepl&sid=$sid&who=$who\" method=\"post\">";
echo "<input name=\"ptg\" value=\"$(tfgp)\"/>";
echo"<input type = "submit" value"GO"/>";
echo"</form>";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
/////////////////////////////
do the rest yourself
Use<form></form> tag instead of <anchor></anchor> tag
Use the last edited codes in the previous
in index.php
//////////////////////////////////////////Give Plusses
else if($action=="givep")
{
$who = $_GET["who"];
addonline(getuid_sid($sid),"Giving Plusses","");
echo "<head>";
echo "<title>Give Plusses</title>";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "[b]Give GPs To ".getnick_uid($who)."[/b]
";
$gps = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
echo "You have $gps[0] GP's
";
echo "plusses to give
";
echo "<form action=\"genproc.php?action=givep&sid=$sid&who=$who\" method=\"post\">";
echo "<input name=\"ptg\" style=\"-wap-input-format: '*N'\" maxlength=\"2\">";
echo "
<input type=\"Submit\" Value=\"Give\" name=\"Give\"></form>";
echo "
<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</body>";
}
usage in index.php
echo "<a href=\"index.php?action=givep&who=$who&sid=$sid\">Share Plusses</a>
";
in genproc.php
else if($action=="givep")
{
addonline(getuid_sid($sid),"Giving Plusses","");
$who = $_GET["who"];
$ptg = $_POST["ptg"];
echo "<head>";
echo "<title>$sitename</title>";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$gpsf = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
$gpst = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
if($gpsf[0]>=$ptg){
$gpsf = $gpsf[0]-$ptg;
$gpst = $gpst[0]+$ptg;
$res = mysql_query("UPDATE ibwf_users SET plusses='".$gpst."' WHERE id='".$who."'");
if($res)
{
$res = mysql_query("UPDATE ibwf_users SET plusses='".$gpsf."' WHERE id='".$uid."'");
echo "<img src=\"../images/ok.gif\" alt=\"o\"/>Plusses Updated Successfully
";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>Database Error!
";
}
}else{
echo "<img src=\"../images/notok.gif\" alt=\"x\"/>You don't have enough plusses to give
";
}
echo "
";
echo "[b]0 [/b]<a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</body>";
}
and do copy and paste the only one work u can really do
if($uid !==$who) { //link to share pluses here }
the code would be if($uid !=$who) { //link to share pluses here }
one more thing...i found that in this coding..user r able to share pluses to themself...this will make them get pluses easyly...huh?i need some solution...
i dont understand your ENGLISH,repharse it