forked from extern/egroupware
Formatting (minor)
This commit is contained in:
parent
cd339aa676
commit
c80c3bbcd9
@ -24,7 +24,6 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
|
||||
/**
|
||||
* Parent class for the phpgwAPI
|
||||
* Parent class. Has a few functions but is more importantly used as a parent class for everything else.
|
||||
@ -81,7 +80,6 @@
|
||||
* @syntax strip_html($string)
|
||||
* @example $reg_string = strip_html($urlencode_string);
|
||||
*/
|
||||
|
||||
function strip_html($s)
|
||||
{
|
||||
return htmlspecialchars(stripslashes($s));
|
||||
@ -100,7 +98,7 @@
|
||||
* @syntax link($string, $extravars)
|
||||
* @example None yet
|
||||
*/
|
||||
function link($url = "", $extravars = "")
|
||||
function link($url = '', $extravars = '')
|
||||
{
|
||||
global $phpgw, $phpgw_info, $usercookie, $kp3, $PHP_SELF;
|
||||
return $this->session->link($url, $extravars);
|
||||
@ -116,23 +114,27 @@
|
||||
* @syntax redirect(key as string)
|
||||
* @example None yet
|
||||
*/
|
||||
function redirect($url = "")
|
||||
function redirect($url = '')
|
||||
{
|
||||
global $HTTP_ENV_VARS;
|
||||
|
||||
$iis = @strpos($HTTP_ENV_VARS["SERVER_SOFTWARE"], "IIS", 0);
|
||||
$iis = @strpos($HTTP_ENV_VARS['SERVER_SOFTWARE'], 'IIS', 0);
|
||||
|
||||
if ( !$url ) {
|
||||
if ( !$url )
|
||||
{
|
||||
$url = $PHP_SELF;
|
||||
}
|
||||
if ( $iis ) {
|
||||
if ( $iis )
|
||||
{
|
||||
echo "\n<HTML>\n<HEAD>\n<TITLE>Redirecting to $url</TITLE>";
|
||||
echo "\n<META HTTP-EQUIV=REFRESH CONTENT=\"0; URL=$url\">";
|
||||
echo "\n</HEAD><BODY>";
|
||||
echo "<H3>Please continue to <a href=\"$url\">this page</a></H3>";
|
||||
echo "\n</BODY></HTML>";
|
||||
exit;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
Header("Location: $url");
|
||||
print("\n\n");
|
||||
exit;
|
||||
@ -152,7 +154,7 @@
|
||||
* @param string the fourth additional param
|
||||
* @see translation->translate()
|
||||
*/
|
||||
function lang($key, $m1 = "", $m2 = "", $m3 = "", $m4 = "")
|
||||
function lang($key, $m1 = '', $m2 = '', $m3 = '', $m4 = '')
|
||||
{
|
||||
global $phpgw;
|
||||
return $this->translation->translate($key);
|
||||
|
Loading…
Reference in New Issue
Block a user