function send_remind($snt, $msg) { $mail = get_email_conf(); $emails = array_map(function ($id) { return get_member_email($id); }, $snt["who"]); send_mail('plain', $mail["from"], $emails, 'Show & Tell Order Remind', $msg); }
<?php require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init_member.inc.php'; ini_set('session.save_path', realpath($_SERVER['DOCUMENT_ROOT'] . '/session')); setcookie('NSH:member', get_member_email(), 1, '/'); header('Location: ' . $_SERVER['HTTP_REFERER'] . '');
<?php if (isset($_COOKIE['NSH:member']) && $_COOKIE['NSH:member'] == get_member_email() || $_SESSION['loggedin'] == 1) { if (person_exists()) { include template('scripts_top'); include template('member/person_dob_form'); } else { include template('member/avatar'); include template('scripts_top'); include template('member/profile_form'); include template('member/dob_form'); } include template('proverb'); include template('time'); if (has_dob()) { //include template('news'); include template('results'); } include template('keyboard'); echo list_persons(); include template('explanation'); include template('feed_blog'); //include template('feed_forum'); include template('install_app'); include template('comments'); echo list_user_same_birthday_links('same-birthday-links'); echo list_user_birthday_links('birthday-links'); echo list_user_links('user-birthdates'); } else { header('Location: http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 's' : '') . '://nhipsinhhoc.vn/member/login/'); }
function list_persons() { global $lang_code; global $span_interfaces; $output = ''; $email = get_member_email(); $persons = load_persons(); usort($persons, 'sort_fullname_ascend'); $output .= '<div class="dates-box">'; $output .= '<h2 id="persons_list_h2" class="dates-header">' . translate_span('list_persons') . '</h2>'; $output .= '<ul class="dates" id="persons_list">'; $output .= list_person_links(); $output .= '</ul>'; $output .= '<div class="clear"></div>'; $output .= '</div>'; return $output; }