} showtablefooter(); } elseif ($_G['gp_anchor'] == 'post') { $count = DB::result_first("SELECT count(*) FROM " . DB::table('security_evilpost') . " WHERE type = '0'"); $multipage = multi($count, $tpp, $page, ADMINSCRIPT . '?action=cloud&operation=security&anchor=post'); list($datas, $evilPids) = getEvilList('post', $start_limit, $tpp); echo "<p><a href='{$adminscript}?action=recyclebinpost&operation=search&formhash=" . formhash() . "&security=1&searchsubmit=1' target='_blank'>{$lang['security_recyclebin_post']}</a></p>"; showtableheader('', '', 'id = "security_list"'); showsubtitle(array('security_subject', 'security_forum', 'security_author', 'security_post_status')); foreach ($datas as $key => $value) { if (!$value['message']) { $subjectstyle = 'class = "threadopt"'; } else { $subjectstyle = ''; } $value['message'] = convertMessage($value); $modthreadkey = modauthkey($value['tid']); $thread = array(convertSubjectandIP($value), getNamebyFid($value['fid']), convertAuthorAndDate($value), convertIdtoStr($value['invisible'], 'adminoperate'), $viewlink); showtagheader('tbody', '', true, 'hover'); showtablerow($subjectstyle, array('width = "400px"'), $thread); $value['message'] ? showtablerow('class="threadopt" style="display: none;" id = "mod_' . $value['tid'] . '_row_' . $key . '"', 'colspan = "6"', $value['message']) : ''; showtagfooter('tbody'); } if ($multipage) { showtablerow('', 'colspan = "6"', $multipage); } showtablefooter(); } elseif ($_G['gp_anchor'] == 'member') { $memberperpage = $_G['setting']['memberperpage']; $start_limit = ($page - 1) * $memberperpage; $count = DB::result_first('SELECT count(*) FROM ' . DB::table('security_eviluser'));
<?php require 'class.phpmailer.php'; $data = json_decode(file_get_contents('php://input'), true); $response = array("status" => null); if (!isset($data) || empty($data) || empty($data['data'])) { $response['status'] = "ERROR"; } else { $message = $data['data']; $username = convertName($message['username']); $email = convertEmail($message['email']); $subject = convertSubject($message['subject']); $messageContent = convertMessage($message['message']); $validation = array("username" => $username != "", "email" => $email && $email != "", "subject" => $subject != "", "message" => $messageContent != ""); if (isValid($validation)) { $response['status'] = "ERROR"; $mail = new PHPMailer(); $mail->From = $email; $mail->FromName = $username . " - formularz"; $mail->AddAddress("*****@*****.**"); // Add a recipient if ($message['copy']) { $mail->AddAddress($email); // Add copy } // $mail->isSMTP(); // $mail->Host = 'poczta.o2.pl'; // Specify main and backup SMTP servers // $mail->SMTPAuth = true; // Enable SMTP authentication // $mail->Username = ''; // SMTP username // $mail->Password = ''; // SMTP password // $mail->SMTPSecure = 'tls';