<?php

/*** Freedom City | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php";

if (isset($_POST["name"], $_POST["q"]))
 if (isset($_SESSION["user"][0]))
  if (($_SESSION["user"][4]>3)&&($_SESSION["user"][2]==md5($_POST["pass"])))
  {
   $names=$_POST["name"]; $names=explode(":", $names); $names="\"".implode("\", \"", $names)."\"";
   if ($_POST["name"]!="")
    if (g_points($names, $_POST["q"])) msg($_POST["q"]." points sent to ".$_POST["name"]);
    else msg("Failure.".mysql_error());
   else msg($lang['emptyUserList']);
  }
  else msg($lang['notAdmin']);
 else msg($lang['accessDenied']);
else msg($lang['noInput']);
?>
