diff options
author | dirk astrath <cacert-dev@fidocon.de> | 2010-12-14 23:59:04 +0100 |
---|---|---|
committer | dirk astrath <cacert-dev@fidocon.de> | 2010-12-14 23:59:04 +0100 |
commit | 36b3d8434449ef1a412c1d144634f23024afd9f9 (patch) | |
tree | 3e298b45be28727702361ffe1c95bacc28102b08 /pages/wot | |
parent | 8fe30daa7e89e15caa14054af72bedbe5bd11602 (diff) | |
download | cacert-devel-36b3d8434449ef1a412c1d144634f23024afd9f9.tar.gz cacert-devel-36b3d8434449ef1a412c1d144634f23024afd9f9.tar.xz cacert-devel-36b3d8434449ef1a412c1d144634f23024afd9f9.zip |
Don't count experience points if not enough assurance points
Diffstat (limited to 'pages/wot')
-rw-r--r-- | pages/wot/15.php | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/pages/wot/15.php b/pages/wot/15.php index d3fbb98..c5121f9 100644 --- a/pages/wot/15.php +++ b/pages/wot/15.php @@ -187,7 +187,14 @@ $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".i $sumexperienceOut = 50-$sumexperienceA; else $sumexperienceOut = $sumexperience; - +$points=70; + if ($points < 100) + { + $sumexperienceAHold = $sumexperienceA; + $sumexperienceA = 0; + $sumexperienceOutHold = $sumexperienceOut; + $sumexperienceOut = 0; + } ?> <tr> <td class="DataTD" colspan="3"><b><?=_("Total Assurance Points")?>:</b></td> @@ -197,7 +204,12 @@ $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".i <tr> <td class="DataTD" colspan="3"><b><?=_("Total Experience Points by Assurance")?>:</b></td> <td class="DataTD"><?=$sumexperienceA?></td> - <td class="DataTD" colspan="3"> </td> + <td class="DataTD" colspan="3"> +<? if ($points < 100) + {?> +<?=sprintf(_("%s Points on hold due to less Assurance points"),$sumexperienceAHold)?> +<? }?> + </td> </tr> <tr> <td class="DataTD" colspan="3"><b><?=_("Total Experience Points (other ways)")?>:</b></td> @@ -206,7 +218,12 @@ $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".i <? if ($sumexperience != $sumexperienceOut) { ?> - <?=_("Limit reached")?> + <? if (points <100) + { ?> + <?=sprintf(_("%s Points on hold due to less Assurance points"),$sumexperienceOutHold)?> + <? } else { ?> + <?=_("Limit reached")?> + <? } ?> <? } ?> </td> |