Jump to content
MakeWebGames

Honour exchange error


Criminal

Recommended Posts

Hey i have a error on honourexchange.php v2 file thnx

 

<?php

include "globals.php";

if(!$_GET['spend'])

{

print "Welcome to the Honor Award Exchange Center!

You have {$ir['honor']} Honor Awards.

What would you like to spend your Honor Awards on?

 

IQ - 100 IQ per Honor Award

Trade for Labour Points - 3,000 Labour Points per Honor Award

Trade for Defense - 3,000 Defense per Honor Award

Trade for Agility - 3,000 Speed per Honor Award

Trade for Strength - 3,000 strength per Honor Award

Money - \$2,000,000 per Honor Award

";

}

else if($_GET['spend'] == 'IQ')

{

print "Type in the amount of Honor Awards you want to swap for IQ.

You have {$ir['honor']} Honor Awards.

One Honor Award = 100 IQ.<form action='HonorExchange.php?spend=IQ2' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'IQ2')

{

$_POST['honor']=(int) $_POST['honor'];

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$iqgain=$_POST['honor']*100;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c);

mysql_query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for $iqgain IQ.";

}

}

else if($_GET['spend'] == 'labour3')

{

print "Type in the amount of Honor Awards you want to swap for labour points.

You have {$ir['honor']} Honor Awards.

One Honor Award = 300,000 labour points.<form action='HonorExchange.php?spend=labour4' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'labour4')

{

$_POST['honor']=(int) $_POST['honor'];

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$labourgain=$_POST['honor']*3000;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c);

mysql_query("UPDATE userstats SET labour=labour+$labourgain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for $labourgain labour points.";

}

}

else if($_GET['spend'] == 'guard3')

{

print "Type in the amount of Honor Awards you want to swap for Defense.

You have {$ir['honor']} Honor Awards.

One Honor Award = 3,000 Defense.<form action='HonorExchange.php?spend=guard4' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'guard4')

{

$_POST['honor']=(int) $_POST['honor'];

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=mny_stripfmt($_POST['honor'], ENT_QUOTES);

$_POST['honor']=abs((int)($_POST['honor']));

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$guardgain=$_POST['honor']*3000;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c);

mysql_query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for $guardgain Defense.";

}

}

 

else if($_GET['spend'] == 'agility3')

{

print "Type in the amount of Honor Awards you want to swap for Agility.

You have {$ir['honor']} Honor Awards.

One Honor Award = 3,000 Agility.<form action='HonorExchange.php?spend=agility4' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'agility4')

{

$_POST['honor']=(int) $_POST['honor'];

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$agilitygain=$_POST['honor']*3000;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c);

mysql_query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for $agilitygain Agility.";

}

}

 

else if($_GET['spend'] == 'strength3')

{

print "Type in the amount of Honor Awards you want to swap for Strength.

You have {$ir['honor']} Honor Awards.

One Honor Award = 3,000 Strength.<form action='HonorExchange.php?spend=strength4' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'strength4')

{

$_POST['honor']=(int) $_POST['honor'];

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$strengthgain=$_POST['honor']*3000;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']} WHERE userid=$userid",$c);

mysql_query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for $strengthgain Strength.";

}

}

 

else if($_GET['spend'] == 'money')

{

print "Type in the amount of Honor Awards you want to swap for \$\$\$.

You have {$ir['honor']} Honor Awards.

One Honor Award = \$2,000,000.<form action='HonorExchange.php?spend=money2' method='post'><input type='text' name='honor' />

<input type='submit' value='Swap' /></form>";

}

else if($_GET['spend'] == 'money2')

{

$_POST['honor']=(int) $_POST['honor'];

if($_POST['honor'] <= 0 || $_POST['honor'] > $ir['honor'])

{

print "Error, you either do not have enough Honor Awards or did not fill out the form.

Back";

}

else

{

$iqgain=$_POST['honor']*2000000;

$_POST['honor']=strip_tags($_POST['honor']);

$_POST['honor']=abs((int)($_POST['honor']));

$_POST['money']=strip_tags($_POST['money']);

$_POST['money']=abs($_POST['money']);

mysql_query("UPDATE users SET honor=honor-{$_POST['honor']},money=money+$iqgain WHERE userid=$userid",$c);

print "You traded {$_POST['honor']} Honor Awards for \$$iqgain.";

}

}

$h->endpage();

?>

 

error

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 35

error

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 60

error

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 78

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 116

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 143

Fatal error: Call to undefined function mny_stripfmt() in /home/lilblow/public_html/HonorExchange.php on line 170

sory its gt all them errors

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...