Ejemplo n.º 1
0
 public static function redirectIfLink()
 {
     if (function_exists('return_custom_field')) {
         if (function_exists('i18n_init')) {
             i18n_init();
         }
         if (function_exists('i18n_get_custom_fields')) {
             i18n_get_custom_fields();
         }
         $link = return_custom_field('link');
         if ($link) {
             header('Location: ' . $link);
             exit(0);
         }
     }
 }
Ejemplo n.º 2
0
 function get_page_creation_date($i = "l, F jS, Y - g:i A", $echo = true)
 {
     global $date;
     global $TIMEZONE;
     if ($TIMEZONE != '') {
         if (function_exists('date_default_timezone_set')) {
             date_default_timezone_set($TIMEZONE);
         }
     }
     $creDate = return_custom_field('creDate');
     $myVar = $creDate ? date($i, strtotime($creDate)) : null;
     if ($echo) {
         echo $myVar ? $myVar : '';
     } else {
         return $myVar;
     }
 }