| version 1.16, 2003/01/26 12:46:30 |
version 1.17, 2003/01/26 20:26:08 |
|
|
| function get_mtime() /* {{{ */ |
function get_mtime() /* {{{ */ |
| { |
{ |
| $mtime = microtime(); |
$mtime = microtime(); |
| $mtime = explode(" ", $mtime); |
$mtime = explode(' ', $mtime); |
| $mtime = $mtime[1] + $mtime[0]; |
$mtime = $mtime[1] + $mtime[0]; |
| return $mtime; |
return $mtime; |
| } /* }}} */ |
} /* }}} */ |
|
|
| $url = "$schema://$server_name$delim$url"; |
$url = "$schema://$server_name$delim$url"; |
| } |
} |
| } |
} |
| //echo("Location: $url [$file][".$HTTP_SERVER_VARS['PHP_SELF']."]"); |
|
| header("Location: $url"); |
header("Location: $url"); |
| exit; |
exit; |
| } /* }}} */ |
} /* }}} */ |
|
|
| return $ret; |
return $ret; |
| } |
} |
| |
|
| /* if (! is_array($origvars)) { |
|
| foreach (explode('&', $origvars) as $param) { |
|
| $parts = explode('=', $param, 2); |
|
| if (! isset($parts[1])) { |
|
| $parts[1] = $default_value; |
|
| } |
|
| if (strlen($parts[0]) <= 0) { |
|
| continue; |
|
| } |
|
| $origvars[$parts[0]] = $parts[1]; |
|
| } |
|
| } |
|
| if (! strncasecmp('GET', $method, 3)) { |
|
| if ($method[strlen($method) - 1] == '+' && count($origvars) > 0) { |
|
| echo '?'; |
|
| } |
|
| foreach ($origvars as $key => $val) { |
|
| echo htmlspecialchars(rawurlencode($key).'='.rawurlencode($val)); |
|
| } |
|
| } else { |
|
| foreach ($origvars as $key => $val) { |
|
| echo '<input type="hidden" name="'.htmlspecialchars($key).'"'; |
|
| if (isset($val)) { |
|
| echo ' value="'.htmlspecialchars($val).'"'; |
|
| } |
|
| echo ">\n"; |
|
| } |
|
| } |
|
| return true; |
|
| } /* }}} */ |
|
| |
|
| /** |
/** |
| * Reverse of the standard htmlspecialchars() PHP function. |
* Reverse of the standard htmlspecialchars() PHP function. |
| * |
* |