function filter_has_same_birthday($a)
 {
     //Call back function to filter array by role ID
     global $dob, $fullname;
     if (isset($a['dob']) && $dob != '' && isset($a['name'])) {
         if (has_birthday($a['dob'], strtotime($dob)) == $this->num && prevent_xss($a['name']) != $fullname) {
             return true;
         } else {
             return false;
         }
     }
 }
<?php

require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php';
echo has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? birthday_title() : home_title();
<?php

require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php';
echo has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? $birthday_wish : $meta_description;
function email_daily_suggestion()
{
    global $lang_code, $email_interfaces, $span_interfaces;
    //$my_email = '*****@*****.**';
    $my_email = '*****@*****.**';
    $emails = array();
    $members = array();
    $path = realpath($_SERVER['DOCUMENT_ROOT']) . '/member/';
    $directories = array_filter(glob($path . '*'), 'is_dir');
    foreach ($directories as $directory) {
        if (str_replace($path, '', $directory) != 'login' && str_replace($path, '', $directory) != 'register') {
            $emails[] = str_replace($path, '', $directory);
        }
    }
    $count = count($emails);
    sort($emails);
    for ($m = 0; $m < $count; ++$m) {
        $members[$m] = load_member_from_email($emails[$m]);
    }
    usort($members, 'sort_date_member_ascend');
    for ($i = 0; $i < $count; ++$i) {
        $member_chart = new Chart($members[$i]['dob'], 0, 0, date('Y-m-d'), $members[$i]['dob'], $members[$i]['lang']);
        $heading = '';
        switch ($members[$i]['lang']) {
            case 'vi':
                $heading = 'Biểu đồ nhịp sinh học | Bieu do nhip sinh hoc';
                break;
            case 'en':
                $heading = 'Biorhythm chart';
                break;
            case 'ru':
                $heading = 'Биоритм диаграммы';
                break;
            case 'es':
                $heading = 'Biorritmo carta';
                break;
            case 'zh':
                $heading = '生理节律图';
                break;
            case 'ja':
                $heading = 'バイオリズムチャート';
                break;
        }
        $content = '';
        $content .= has_birthday($members[$i]['dob'], time()) ? '<style>body {background-image: url("http://nhipsinhhoc.vn/css/images/gifts_mobile.png") !important;}</style>' : '';
        $content .= '<h1>' . (has_birthday($members[$i]['dob'], time()) ? $email_interfaces['happy_birthday'][$members[$i]['lang']] : $email_interfaces['hi'][$members[$i]['lang']]) . ' ' . $members[$i]['fullname'] . '</h1>';
        $content .= '<p class="lead">' . $email_interfaces['daily_suggestion'][$members[$i]['lang']] . $email_interfaces['colon'][$members[$i]['lang']] . '</p>';
        $content .= '<p>' . $member_chart->get_infor() . '</p>';
        $content .= '<p>' . $member_chart->get_birthday_countdown() . '</p>';
        $content .= '<p class="lead">' . $email_interfaces['daily_values'][$members[$i]['lang']] . $email_interfaces['colon'][$members[$i]['lang']] . '</p>';
        $content .= '<p>' . $member_chart->get_infor_values() . '</p>';
        $content .= '<p><a href="http://nhipsinhhoc.vn/member/' . $members[$i]['email'] . '/">' . $email_interfaces['go_to_your_profile'][$members[$i]['lang']] . '</a></p>';
        $content .= '<p><a href="https://www.youtube.com/watch?v=' . $email_interfaces['instruction_video_youtube_id'][$members[$i]['lang']] . '">' . $email_interfaces['instruction_video_text'][$members[$i]['lang']] . '</a></p>';
        $content .= '<p>' . $email_interfaces['regards'][$members[$i]['lang']] . '</p>';
        $content .= '<p>' . $span_interfaces['pham_tung'][$members[$i]['lang']] . '</p>';
        $content .= '<p>' . $email_interfaces['keyboard_shortcuts'][$members[$i]['lang']] . '</p>';
        $content .= '<p><em>' . $email_interfaces['definition'][$members[$i]['lang']] . '</em></p>';
        $content .= '<p>' . $span_interfaces['for_reference_only'][$members[$i]['lang']] . '</p>';
        $content .= '<p>' . $email_interfaces['not_mark_as_spam'][$members[$i]['lang']] . '</p>';
        $content .= '<p><a href="mailto:admin@nhipsinhhoc.vn?subject=' . $email_interfaces['unsubscribe'][$members[$i]['lang']] . '&body=' . $email_interfaces['unsubscribe'][$members[$i]['lang']] . ' ' . $members[$i]['email'] . '&cc=tung.42@gmail.com">' . $email_interfaces['unsubscribe'][$members[$i]['lang']] . '</a></p>';
        $message = email_message($heading, $content);
        //send_mail($my_email,$email_interfaces['hi'][$members[$i]['lang']].' '.$members[$i]['fullname'].', '.$email_interfaces['daily_suggestion'][$members[$i]['lang']].' | '.date('Y-m-d'),$message);
        send_mail($members[$i]['email'], $email_interfaces['hi'][$members[$i]['lang']] . ' ' . $members[$i]['fullname'] . ', ' . $email_interfaces['daily_suggestion'][$members[$i]['lang']] . ' | ' . date('Y-m-d'), $message);
        sleep(2);
    }
}
<?php

require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php';
echo (has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? birthday_title() : home_title()) . ' | ' . $site_name;