<?php require_once 'loader.php'; $imei = $_REQUEST['data1']; $message = $_REQUEST['data2']; $sendToIMEI = $_REQUEST['data3']; // $regID = $_REQUEST['data4']; $UserName = getIMEIUserName($sendToIMEI); // $ReceiverName=getIMEIUserName($imei); $message = $UserName . "^" . $sendToIMEI . "^" . $message; $imeiArray = explode('::', $imei); if (strcmp($imeiArray[0], "All") == 0) { $resultUsers = getAllUsersData($imeiArray[1]); } else { $resultUsers = getIMEIUser($imeiArray[0]); } if ($resultUsers != false) { $NumOfUsers = mysql_num_rows($resultUsers); } else { $NumOfUsers = 0; } if ($NumOfUsers > 0) { while ($rowUsers = mysql_fetch_array($resultUsers)) { $gcmRegID = $rowUsers["gcm_regid"]; // GCM Registration ID got from device $pushMessage = $message; if (isset($gcmRegID) && isset($pushMessage)) { $registration_ids = array($gcmRegID); $messageSend = array("message" => $pushMessage); $result = send_push_notification($registration_ids, $messageSend); echo $result;
<?php include_once '../includes/config.php'; include_once '../includes/app/projects.php'; include_once '../includes/app/users.php'; $users = getAllUsersData(); //print_r($users); if ($users) { ?> <table class ="adminlist-table" id ="t02" cellpadding="0"cellspacing ="0"> <tbody> <caption class="post-title"><b style="color:#4a77a4; height:10px;">Users</b></caption> <tr> <th>No.</th> <th>photo </th> <th>Name </th> <th>Email</th> <th>Verify_file</th> <th>Verified</th> <th>Verify/Deny</th> <th>Delete</th> <th>Acceptor</th> </tr> <?php foreach ($users as $ix => $user) { ?> <tr id ="userlist_<?php echo $user['user_id']; ?> ">