mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 04:11:49 +02:00
added php3 support file
This commit is contained in:
parent
200387bdea
commit
c9ea092eae
@ -26,7 +26,10 @@
|
|||||||
/*!
|
/*!
|
||||||
@class hooks
|
@class hooks
|
||||||
@abstract class which gives ability for applications to set and use hooks to communicate with each other
|
@abstract class which gives ability for applications to set and use hooks to communicate with each other
|
||||||
@discussion Author: Seek3r
|
@author Dan Kuykendall
|
||||||
|
@copyright LGPL
|
||||||
|
@package phpgwapi
|
||||||
|
@access public
|
||||||
*/
|
*/
|
||||||
class hooks
|
class hooks
|
||||||
{
|
{
|
||||||
@ -60,8 +63,8 @@
|
|||||||
@function process
|
@function process
|
||||||
@abstract process the hooks
|
@abstract process the hooks
|
||||||
@discussion not currently being used
|
@discussion not currently being used
|
||||||
@param $type
|
@param \$type
|
||||||
@param $where
|
@param \$where
|
||||||
*/
|
*/
|
||||||
function process($type,$where = "")
|
function process($type,$where = "")
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,16 @@
|
|||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
|
/****************************************************************************\
|
||||||
|
* If running in PHP3, then load up the support functions file for *
|
||||||
|
* transparent support. *
|
||||||
|
\****************************************************************************/
|
||||||
|
|
||||||
|
if (floor(phpversion()) == 3)
|
||||||
|
{
|
||||||
|
include(PHPGW_API_INC.'/php3_support_functions.inc.php');
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************************\
|
/****************************************************************************\
|
||||||
* Direct functions, which are not part of the API class *
|
* Direct functions, which are not part of the API class *
|
||||||
* because they are require to be availble at the lowest level. *
|
* because they are require to be availble at the lowest level. *
|
||||||
|
46
phpgwapi/inc/php3_support_functions.inc.php
Executable file
46
phpgwapi/inc/php3_support_functions.inc.php
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
//$debugme = "on";
|
||||||
|
/**************************************************************************\
|
||||||
|
* phpGroupWare API - PHP3 Compatibility layer *
|
||||||
|
* This file written by Dan Kuykendall <seek3r@phpgroupware.org> *
|
||||||
|
* Has repliations of PHP4 only functions to allow for transparent PHP3 *
|
||||||
|
* compatibility *
|
||||||
|
* Copyright (C) 2000, 2001 Dan Kuykendall *
|
||||||
|
* -------------------------------------------------------------------------*
|
||||||
|
* This library is part of the phpGroupWare API *
|
||||||
|
* http://www.phpgroupware.org/api *
|
||||||
|
* ------------------------------------------------------------------------ *
|
||||||
|
* 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 *
|
||||||
|
* the Free Software Foundation; either version 2.1 of the License, *
|
||||||
|
* or any later version. *
|
||||||
|
* This library is distributed in the hope that it will be useful, but *
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||||
|
* See the GNU Lesser General Public License for more details. *
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License *
|
||||||
|
* along with this library; if not, write to the Free Software Foundation, *
|
||||||
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
||||||
|
\**************************************************************************/
|
||||||
|
|
||||||
|
function is_bool($var)
|
||||||
|
{
|
||||||
|
$retval = gettype($var) ;
|
||||||
|
if ( strcmp( $retval, "unknown type") == 0 )
|
||||||
|
{
|
||||||
|
/* Chances are that we have a boolean */
|
||||||
|
if ($var == True || $var == False)
|
||||||
|
{
|
||||||
|
return True;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return False;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return False ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user