Subversion Repositories SvarDOS

Rev

Rev 1230 | Rev 1233 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1230 Rev 1231
Line 110... Line 110...
110
  date_default_timezone_set('UTC');
110
  date_default_timezone_set('UTC');
111
  return(date('d.m.Y, H:i:s', $timestamp) . ' UTC');
111
  return(date('d.m.Y, H:i:s', $timestamp) . ' UTC');
112
}
112
}
113
 
113
 
114
 
114
 
-
 
115
function selfurl($params = '') {
-
 
116
  global $SELFURL;
-
 
117
  $r = $SELFURL;
-
 
118
  if (!empty($params)) {
-
 
119
    if (strrchr($SELFURL, '?')) {
-
 
120
      $r .= '&';
-
 
121
    } else {
-
 
122
      $r .= '?';
-
 
123
    }
-
 
124
    $r .= $params;
-
 
125
  }
-
 
126
  return($r);
-
 
127
}
-
 
128
 
-
 
129
 
115
// returns an array with the list of languages requested by the browser, in
130
// returns an array with the list of languages requested by the browser, in
116
// the order of preference
131
// the order of preference
117
function getpreflang() {
132
function getpreflang() {
118
  $res = array();
133
  $res = array();
119
  if (! isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) return($res);
134
  if (! isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) return($res);