function PasstoParse($targetid, $notification) { $connection = new Connect(); $connectinfo = $connection->GetConnection(); $name = $connection->GetNamebyId($connectinfo, $targetid, 0); //echo '<p>Directed to: '.$name.' - '. $notification . '</p>'; }
<?php $safe = true; include_once 'connect.php'; $connection = new Connect(); $connectinfo = $connection->GetConnection(); if (array_key_exists('groupid', $_POST)) { $groupid = filter_input(INPUT_POST, 'groupid'); } else { $safe = false; } if (array_key_exists('profid', $_POST)) { $profid = filter_input(INPUT_POST, 'profid'); } else { $safe = false; } if (array_key_exists('token', $_POST)) { $token = filter_input(INPUT_POST, 'token'); } else { $safe = false; } if ($safe) { $authenticated = $connection->Verify($connectinfo, $profid, $token); if ($authenticated) { $row = $connection->GetRow($connectinfo, 0, $groupid); $admin = $row["starter"]; $invitedlist = $row["people_requested"]; if ($admin == $profid) { $invitedarray = explode(";", $invitedlist); if (is_array($invitedarray) || is_object($invitedarray)) { foreach ($invitedarray as $invitee) {