Location: PHPKode > projects > OrangeDeals > orangedeals_v1.2/http/send_to_all_.php
<?php include "config.php"; include "functions.php";

if (isset($_SESSION["user"][0], $_POST["pass"], $_POST["subject"], $_POST["contents"])) 
{
 $_POST["pass"]=clean($_POST["pass"]); $_POST["subject"]=clean($_POST["subject"]); $_POST["contents"]=clean_a_desc($_POST["contents"]);
 if ($_POST["subject"]!="")
  if (($_SESSION["user"][5]>3)&&($_SESSION["user"][3]==md5($_POST["pass"])))
  {
   send_to_all($_SESSION["user"][0],$_POST["subject"], $_POST["contents"]);
   msg('Message Send. You should also have a copy in your inbox');
  } else msg($lang['notAdmin']);
 else msg($lang['noSubject']);
} else msg($lang['insufData']);
?>
Return current item: OrangeDeals