Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function nezaman_yazildi()
- {
- $gun = get_the_date("d");
- $ay = get_the_date("m");
- $yil = get_the_date("Y");
- $bugun = date("d");
- $buay = date("m");
- $buyil = date("Y");
- if ($yil == $buyil) {
- if ($ay == $buay) {
- if ($gun == $bugun) {
- echo "Bugun eklendi.";
- } else {
- $gunonce = $bugun - $gun;
- if (6 < $gunonce) {
- $haftaonce = round($gunonce / 7);
- echo $haftaonce . " hafta once eklendi.";
- } else if ($gunonce == 1) {
- echo "Dun eklendi.";
- } else {
- echo $gunonce . " gun once eklendi.";
- }
- }
- } else {
- $ayonce = $buay - $ay;
- echo $ayonce . " ay once eklendi.";
- }
- } else {
- $yilonce = $buyil - $yil;
- if ($yilonce < 2) {
- $ayonce = 12 - $ay + $buay;
- echo $ayonce . " ay once eklendi.";
- } else {
- echo $yilonce . " y?l once eklendi..";
- }
- }
- }
- function temalisanslama()
- {
- $site = get_bloginfo("home");
- $site1 = "http://www.diziizledim.com/";
- $site2 = "http://diziizledim.com";
- if ($site != $site1 && $site != $site2) {
- echo "Bu tema sadece 'diziizledim.com' sitesinde kullan?labilir.";
- exit();
- }
- }
- define("INC", TEMPLATEPATH . "/functions");
- require_once(INC . "/keremiya-functions.php");
- require_once(INC . "/keremiya-core.php");
- add_filter("show_admin_bar", "__return_false");
- remove_action("personal_options", "_admin_bar_preferences");
- temalisanslama();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement