forked from extern/egroupware
fix some formatting issues
This commit is contained in:
parent
136f437912
commit
ae216a7346
@ -8,7 +8,7 @@
|
|||||||
* Parts Copyright (C) 2003 Free Software Foundation *
|
* Parts Copyright (C) 2003 Free Software Foundation *
|
||||||
* -------------------------------------------------------------------------*
|
* -------------------------------------------------------------------------*
|
||||||
* This library is part of the phpGroupWare API *
|
* This library is part of the phpGroupWare API *
|
||||||
* http://www.phpgroupware.org/api *
|
* http://www.phpgroupware.org/api *
|
||||||
* ------------------------------------------------------------------------ *
|
* ------------------------------------------------------------------------ *
|
||||||
* This library is free software; you can redistribute it and/or modify it *
|
* This library is free software; you can redistribute it and/or modify it *
|
||||||
* under the terms of the GNU Lesser General Public License as published by *
|
* under the terms of the GNU Lesser General Public License as published by *
|
||||||
@ -40,12 +40,12 @@
|
|||||||
var $applications;
|
var $applications;
|
||||||
var $acl;
|
var $acl;
|
||||||
var $auth;
|
var $auth;
|
||||||
var $db;
|
var $db;
|
||||||
/**
|
/**
|
||||||
* Turn on debug mode. Will output additional data for debugging purposes.
|
* Turn on debug mode. Will output additional data for debugging purposes.
|
||||||
* @var string $debug
|
* @var string $debug
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
var $debug = 0; // This will turn on debugging information.
|
var $debug = 0; // This will turn on debugging information.
|
||||||
var $crypto;
|
var $crypto;
|
||||||
var $categories;
|
var $categories;
|
||||||
@ -73,7 +73,7 @@
|
|||||||
/**
|
/**
|
||||||
* Strips out html chars
|
* Strips out html chars
|
||||||
*
|
*
|
||||||
* Used as a shortcut for stripping out html special chars.
|
* Used as a shortcut for stripping out html special chars.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param $s string The string to have its html special chars stripped out.
|
* @param $s string The string to have its html special chars stripped out.
|
||||||
@ -108,20 +108,20 @@
|
|||||||
{
|
{
|
||||||
$this->redirect($this->session->link($url, $extravars));
|
$this->redirect($this->session->link($url, $extravars));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Repsost Prevention Detection
|
* Repost Prevention Detection
|
||||||
*
|
*
|
||||||
* Used as a shortcut. Wrapper to session->is_repost()
|
* Used as a shortcut. Wrapper to session->is_repost()
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param bool $display_error Use common error handler? - not yet implemented
|
* @param bool $display_error Use common error handler? - not yet implemented
|
||||||
* @return bool True if called previously, else False - call ok
|
* @return bool True if called previously, else False - call ok
|
||||||
* @see session->is_repost()
|
* @see session->is_repost()
|
||||||
* @syntax is_post()
|
* @syntax is_post()
|
||||||
* @example $repost = $GLOBALS['phpgwapi']->is_repost();
|
* @example $repost = $GLOBALS['phpgwapi']->is_repost();
|
||||||
* @author Dave Hall
|
* @author Dave Hall
|
||||||
*/
|
*/
|
||||||
function is_repost($display_error = False)
|
function is_repost($display_error = False)
|
||||||
{
|
{
|
||||||
return $this->session->is_repost($display_error);
|
return $this->session->is_repost($display_error);
|
||||||
@ -142,12 +142,12 @@
|
|||||||
/* global $HTTP_ENV_VARS; */
|
/* global $HTTP_ENV_VARS; */
|
||||||
|
|
||||||
$iis = @strpos($GLOBALS['HTTP_ENV_VARS']['SERVER_SOFTWARE'], 'IIS', 0);
|
$iis = @strpos($GLOBALS['HTTP_ENV_VARS']['SERVER_SOFTWARE'], 'IIS', 0);
|
||||||
|
|
||||||
if ( !$url )
|
if(!$url)
|
||||||
{
|
{
|
||||||
$url = $_SERVER['PHP_SELF'];
|
$url = $_SERVER['PHP_SELF'];
|
||||||
}
|
}
|
||||||
if ( $iis )
|
if($iis)
|
||||||
{
|
{
|
||||||
echo "\n<HTML>\n<HEAD>\n<TITLE>Redirecting to $url</TITLE>";
|
echo "\n<HTML>\n<HEAD>\n<TITLE>Redirecting to $url</TITLE>";
|
||||||
echo "\n<META HTTP-EQUIV=REFRESH CONTENT=\"0; URL=$url\">";
|
echo "\n<META HTTP-EQUIV=REFRESH CONTENT=\"0; URL=$url\">";
|
||||||
@ -177,7 +177,7 @@
|
|||||||
* @param string the fourth additional param
|
* @param string the fourth additional param
|
||||||
* @see translation->translate()
|
* @see translation->translate()
|
||||||
*/
|
*/
|
||||||
function lang($key, $m1 = '', $m2 = '', $m3 = '', $m4 = '')
|
function lang($key, $m1 = '', $m2 = '', $m3 = '', $m4 = '')
|
||||||
{
|
{
|
||||||
/* global $phpgw; */
|
/* global $phpgw; */
|
||||||
return $this->translation->translate($key);
|
return $this->translation->translate($key);
|
||||||
|
Loading…
Reference in New Issue
Block a user