示例#1
0
    $subjects[] = $subject;
    $messages[] = htmlentities($message);
}
$foundemail = false;
if (count($emails)) {
    foreach ($emails as $email) {
        if ($email != 'admin-reply') {
            $foundemail = true;
            break;
        }
    }
}
if (!$foundemail) {
    exit('FATAL ERROR: Unable to find your reply email. <a href="openticket.php">Click here</a> to open a new ticket.');
}
$site_host = get_ticket_host($subjects[0]);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Reply to Ticket</title>
<link rel="stylesheet" type="text/css" href="tickets/x.css" />
<style>
.main_content {
  margin: 10px auto;
  overflow: auto;
  width: 850px;
  border: 1px solid black;
}
.notValid {
示例#2
0
                } else {
                    if ($banned) {
                        $notValid = $banned;
                    } else {
                        if ($notValid = EmailFormat($email)) {
                        } else {
                            if (strlen($summary) > 40) {
                                $summary = substr($summary, 0, 40);
                            }
                            $subject = "{$site} {$username} {$summary}";
                            $subject = $db->EscStr($subject);
                            $message = $db->EscStr($message);
                            $number = substr(sha1(microtime(1) . $email), 0, 8);
                            $db->Query("INSERT INTO tickets VALUES('','{$number}','{$email}','{$subject}','{$message}','1',NOW())");
                            $date = date('F j, Y, g:i a');
                            $host = get_ticket_host($site);
                            $headers = "From: {$host} <*****@*****.**>";
                            $subject = "{$host} Ticket Request Received.";
                            $message = "We received your request for support on: {$date}\n\n";
                            $message .= "Your Ticket history: http://planetxmail.com/clientreply.php?n={$number}\n\n";
                            $message .= "We will respond to your question as soon as we can.\n\n";
                            $message .= "Thank you,\n";
                            $message .= "{$host} Team";
                            $ticketlink = "http://planetxmail.com/clientreply.php?n={$number}";
                            @mail($email, $subject, $message, $headers);
                            @mail('*****@*****.**', $subject, $message, $headers);
                            $html = rawurlencode('<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Open a Ticket</title>