Advertisement
plas71k

WJunction member - decoded wp functions

Nov 16th, 2012
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <?php
  2. function nezaman_yazildi()
  3. {
  4.     $gun   = get_the_date("d");
  5.     $ay    = get_the_date("m");
  6.     $yil   = get_the_date("Y");
  7.     $bugun = date("d");
  8.     $buay  = date("m");
  9.     $buyil = date("Y");
  10.     if ($yil == $buyil) {
  11.         if ($ay == $buay) {
  12.             if ($gun == $bugun) {
  13.                 echo "Bugun eklendi.";
  14.             } else {
  15.                 $gunonce = $bugun - $gun;
  16.                 if (6 < $gunonce) {
  17.                     $haftaonce = round($gunonce / 7);
  18.                     echo $haftaonce . " hafta once eklendi.";
  19.                 } else if ($gunonce == 1) {
  20.                     echo "Dun eklendi.";
  21.                 } else {
  22.                     echo $gunonce . " gun once eklendi.";
  23.                 }
  24.             }
  25.         } else {
  26.             $ayonce = $buay - $ay;
  27.             echo $ayonce . " ay once eklendi.";
  28.         }
  29.     } else {
  30.         $yilonce = $buyil - $yil;
  31.         if ($yilonce < 2) {
  32.             $ayonce = 12 - $ay + $buay;
  33.             echo $ayonce . " ay once eklendi.";
  34.         } else {
  35.             echo $yilonce . " y?l once eklendi..";
  36.         }
  37.     }
  38. }
  39.  
  40. function temalisanslama()
  41. {
  42.     $site  = get_bloginfo("home");
  43.     $site1 = "http://www.diziizledim.com/";
  44.     $site2 = "http://diziizledim.com";
  45.     if ($site != $site1 && $site != $site2) {
  46.         echo "Bu tema sadece 'diziizledim.com' sitesinde kullan?labilir.";
  47.         exit();
  48.     }
  49. }
  50.  
  51. define("INC", TEMPLATEPATH . "/functions");
  52. require_once(INC . "/keremiya-functions.php");
  53. require_once(INC . "/keremiya-core.php");
  54. add_filter("show_admin_bar", "__return_false");
  55. remove_action("personal_options", "_admin_bar_preferences");
  56. temalisanslama();
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement