<?php require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php'; echo has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? birthday_title() : home_title();
<div id="loading" class="ajax_<?php echo has_dob() && is_birthday() ? 'birthday' : 'loader'; ?> "></div>
<div id="img_desc"> <?php if (has_dob() && is_birthday()) { ?> <img src="<?php echo $cdn_url; ?> /img/img_desc_birthday.png" alt="<?php echo birthday_wish(); ?> " /> <?php } else { ?> <img src="<?php echo $cdn_url; ?> /img/img_desc_logo.png" alt="<?php echo head_description(); ?> " /> <?php } ?> </div>
} } } } } } } } } } if (has_dob() && date('m-d', strtotime($dob)) == date('m-d')) { $h1 = birthday_title(); $title = birthday_title(); } $site_name = site_name(); $birthday_wish = birthday_wish(); switch ($p) { case 'bmi': $meta_description = 'Tính chỉ số BMI dựa trên cân nặng và chiều cao của bạn.'; break; case 'lunar': $meta_description = 'Xem ngày tốt xấu, xem ngày cưới, xem ngày khai trương, xem ngày động thổ.'; break; case 'pong': $meta_description = 'Trò chơi bóng bàn 3D hấp dẫn.'; break; default: $meta_description = (can_wish() ? birthday_title() : $title) . (has_dob() ? ' - ' . $chart->render_meta_description() : '') . ' - ' . head_description(); } $head_title = (can_wish() ? birthday_title() : $title) . ' | ' . $site_name; $head_description = can_wish() ? $birthday_wish : $meta_description;
<?php require_once realpath($_SERVER['DOCUMENT_ROOT']) . '/includes/init.inc.php'; echo has_dob() && has_birthday($dob, strtotime($_GET['time'])) ? $birthday_wish : $meta_description;
<script id="chart_script"> <?php if (has_dob() && $embed == 0) { $chart->render_main_chart_script(); } else { if (!has_dob()) { $explanation_chart->render_explanation_chart_script(); } else { if ($embed == 1) { $embed_chart->render_embed_chart_script(); } } } ?> </script>
<?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/'); }
<meta name="revisit-after" content="1 days"> <meta property="og:type" content="website"> <meta property="og:url" content="<?php echo str_replace('&', '&', current_url()); ?> "> <meta property="og:title" content="<?php echo $head_title; ?> "> <meta property="og:description" content="<?php echo $head_description; ?> "> <meta property="og:image" content="<?php echo 'http://nhipsinhhoc.vn/img/img_desc_' . (has_dob() && is_birthday() ? 'birthday' : 'logo') . '.png'; ?> "> <meta name="p:domain_verify" content="b30465bfdebc3906bbca8efaeda20ddf"/> <meta name="renderer" content="webkit"> <link rel="icon" href="<?php echo $cdn_url; ?> /favicon.ico" /> <link rel="apple-touch-icon" href="<?php echo $cdn_url; ?> /app-icons/apple-touch-icon-iphone.png"> <link rel="apple-touch-icon" sizes="76x76" href="<?php echo $cdn_url; ?>
function can_wish() { if (has_dob() && is_birthday()) { 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()) . ' | ' . $site_name;