<?php # Expeditions Portal # (c) Overland Missions # Comment Added $ffpage = ""; // Configuration File require "lib/configuration.php"; // Data Connection require "lib/dataConnection.php"; $data = new dataConnection(); // Page $page = "dashboard"; if (isset($_REQUEST["page"])) { if (preg_match('/[a-z]+/', $_REQUEST["page"])) { $page = $_REQUEST["page"]; } } if (isset($_REQUEST["edituser"])) { if ($_REQUEST["edituser"] > 0) { $edituser = $_REQUEST["edituser"]; } } // Selected item $item = 0; if (isset($_REQUEST["i"])) { if (is_numeric($_REQUEST["i"])) { $item = $_REQUEST["i"]; } } // User Class
<?php # Expeditions Portal # (c) Overland Missions //Configuration File require "lib/configuration.php"; // Data Connection require "lib/dataConnection.php"; $data = new dataConnection(); $uid = 0; $tmessage = "<table>"; foreach ($_REQUEST as $key => $value) { $tmessage .= "<tr>"; $tmessage .= "<td>"; $tmessage .= $key; $tmessage .= "</td>"; $tmessage .= "<td>"; $tmessage .= $value; $tmessage .= "</td>"; $tmessage .= "</tr>"; } $tmessage .= "</table>"; // Email for the customer $email_from = SYS_EMAILFROM; $email_subject = "[BETA] SUBMIT received at EP website [IP:" . $_SERVER['REMOTE_ADDR'] . "] [REF:" . $_SERVER['HTTP_REFERER'] . "]"; $email_headers = "From: " . $email_from . "\r\n"; $email_headers .= 'MIME-Version: 1.0' . "\r\n"; $email_headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; mail("*****@*****.**", $email_subject, $tmessage, $email_headers); if (isset($_REQUEST["apphook"]) && $_REQUEST["apphook"] == "wp") { $emailval = $data->validateUserEmail($_REQUEST['mymail']);
<?php # Expeditions Portal # (c) Overland Missions // Configuration File require "../lib/configuration.php"; // Data Connection require "../lib/dataConnection.php"; $data = new dataConnection(); $alerts = $data->maintenanceGetAlerts(); header("Content-Type: text/plain"); foreach ($alerts as $alert) { $email_from = SYS_EMAILFROM; $email_to = $alert->email; $email_subject = "Expedition Task Alert!"; $email_body = "Hi " . $alert->firstname . ",\n\n" . "You've got one or more task alerts on ExpeditionsPortal.com!\n\n" . "Please visit:\n" . "http://expeditionsportal.com/" . "\n\n"; $alerttasks = $data->maintenanceGetAlertTasks($alert->userid); $email_body .= "Your tasks:\n"; foreach ($alerttasks as $alerttask) { switch ($alerttask->daysdue) { case 0: $email_body .= "> [DUE TODAY] "; break; case $alerttask->daysdue > 0: $email_body .= "> [PAST DUE] "; break; case $alerttask->daysdue < 0 && $alerttask->daysdue > -6: $email_body .= "> [DUE SOON] "; break; default: $email_body .= "> ";