From 4e3e6c77cb2a5c1e03566c5e871301648ed3d4c5 Mon Sep 17 00:00:00 2001 From: seek3r Date: Tue, 16 Jan 2001 13:52:32 +0000 Subject: [PATCH] fixed banners so that they are all uniform and complete --- phpgwapi/inc/class.Template.inc.php | 14 +- phpgwapi/inc/class.accounts_ldap.inc.php | 5 +- phpgwapi/inc/class.accounts_shared.inc.php | 5 +- phpgwapi/inc/class.accounts_sql.inc.php | 5 +- phpgwapi/inc/class.acl.inc.php | 5 +- phpgwapi/inc/class.auth_http.inc.php | 5 +- phpgwapi/inc/class.auth_ldap.inc.php | 5 +- phpgwapi/inc/class.auth_mail.inc.php | 5 +- phpgwapi/inc/class.auth_sql.inc.php | 5 +- phpgwapi/inc/class.categories.inc.php | 5 +- phpgwapi/inc/class.clientsniffer.inc.php | 12 +- phpgwapi/inc/class.common.inc.php | 5 +- phpgwapi/inc/class.crypto.inc.php | 5 +- phpgwapi/inc/class.db_msql.inc.php | 12 +- phpgwapi/inc/class.db_mssql.inc.php | 16 +- phpgwapi/inc/class.db_mysql.inc.php | 14 +- phpgwapi/inc/class.db_odbc.inc.php | 14 +- phpgwapi/inc/class.db_oracle.inc.php | 12 +- phpgwapi/inc/class.db_pgsql.inc.php | 12 +- phpgwapi/inc/class.db_sybase.inc.php | 12 +- phpgwapi/inc/class.hooks.inc.php | 5 +- phpgwapi/inc/class.http.inc.php | 10 +- phpgwapi/inc/class.linkbox.inc.php | 4 +- phpgwapi/inc/class.matrixview.inc.php | 5 +- phpgwapi/inc/class.menutree.inc.php | 16 +- phpgwapi/inc/class.network.inc.php | 5 +- phpgwapi/inc/class.nextmatchs.inc.php | 5 +- phpgwapi/inc/class.phpgw.inc.php | 5 +- phpgwapi/inc/class.portalbox.inc.php | 5 +- phpgwapi/inc/class.preferences.inc.php | 5 +- phpgwapi/inc/class.resultbox.inc.php | 5 +- phpgwapi/inc/class.rssparse.inc.php | 250 --------------------- phpgwapi/inc/class.rssparser.inc.php | 34 ++- phpgwapi/inc/class.sbox.inc.php | 5 +- phpgwapi/inc/class.send.inc.php | 5 +- phpgwapi/inc/class.sessions.inc.php | 5 +- phpgwapi/inc/class.translation_sql.inc.php | 5 +- phpgwapi/inc/class.utilities.inc.php | 5 +- phpgwapi/inc/class.vfs.inc.php | 5 +- phpgwapi/inc/footer.inc.php | 5 +- phpgwapi/inc/functions.inc.php | 5 +- phpgwapi/inc/phpgw.inc.php | 5 +- 42 files changed, 175 insertions(+), 397 deletions(-) delete mode 100644 phpgwapi/inc/class.rssparse.inc.php diff --git a/phpgwapi/inc/class.Template.inc.php b/phpgwapi/inc/class.Template.inc.php index 38bd3c77af..2d6f18b967 100644 --- a/phpgwapi/inc/class.Template.inc.php +++ b/phpgwapi/inc/class.Template.inc.php @@ -1,15 +1,15 @@ * * and Lars Kneschke * * View and manipulate account records using LDAP * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.accounts_shared.inc.php b/phpgwapi/inc/class.accounts_shared.inc.php index dc8505c642..aa9de0359a 100644 --- a/phpgwapi/inc/class.accounts_shared.inc.php +++ b/phpgwapi/inc/class.accounts_shared.inc.php @@ -1,12 +1,13 @@ * * shared functions for other account repository managers * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 1b6af87352..ad449ed365 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -1,13 +1,14 @@ * * and Dan Kuykendall * * View and manipulate account records using SQL * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index 4cdff01cb6..83511a795a 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -1,12 +1,13 @@ * * Security scheme based on ACL design * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.auth_http.inc.php b/phpgwapi/inc/class.auth_http.inc.php index edffb1ae3c..847ced7e3c 100644 --- a/phpgwapi/inc/class.auth_http.inc.php +++ b/phpgwapi/inc/class.auth_http.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Authentication based on HTTP auth * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.auth_ldap.inc.php b/phpgwapi/inc/class.auth_ldap.inc.php index 40a25b8cc9..466d6cfc02 100644 --- a/phpgwapi/inc/class.auth_ldap.inc.php +++ b/phpgwapi/inc/class.auth_ldap.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Authentication based on LDAP Server * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.auth_mail.inc.php b/phpgwapi/inc/class.auth_mail.inc.php index 5c9936ab9f..c315381c4f 100644 --- a/phpgwapi/inc/class.auth_mail.inc.php +++ b/phpgwapi/inc/class.auth_mail.inc.php @@ -1,12 +1,13 @@ * * Authentication based on mail server * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.auth_sql.inc.php b/phpgwapi/inc/class.auth_sql.inc.php index 836cad143c..51832aa325 100644 --- a/phpgwapi/inc/class.auth_sql.inc.php +++ b/phpgwapi/inc/class.auth_sql.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Authentication based on SQL table * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index a943e84be6..662b8ad234 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -1,12 +1,13 @@ * * Category manager * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.clientsniffer.inc.php b/phpgwapi/inc/class.clientsniffer.inc.php index 2aace90527..b25e48c454 100644 --- a/phpgwapi/inc/class.clientsniffer.inc.php +++ b/phpgwapi/inc/class.clientsniffer.inc.php @@ -1,14 +1,14 @@ * * and Joseph Engo * * and Mark Peters * * Commononly used functions by phpGroupWare developers * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.crypto.inc.php b/phpgwapi/inc/class.crypto.inc.php index 6e67f24528..8e20cd7b2d 100644 --- a/phpgwapi/inc/class.crypto.inc.php +++ b/phpgwapi/inc/class.crypto.inc.php @@ -1,12 +1,13 @@ * * Handles encrypting strings based on various encryption schemes * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.db_msql.inc.php b/phpgwapi/inc/class.db_msql.inc.php index 8d5b5e4c0c..4b0ba63f6a 100644 --- a/phpgwapi/inc/class.db_msql.inc.php +++ b/phpgwapi/inc/class.db_msql.inc.php @@ -1,16 +1,16 @@ * * metadata() contributed by Adelino Monteiro * * ------------------------------------------------------------------------ * - * This file is not part of the phpGroupWare API * + * This is not part of phpGroupWare, but is used by phpGroupWare. * + * http://www.phpgroupware.org/ * * ------------------------------------------------------------------------ * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * + * This program 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. * \**************************************************************************/ /* $Id$ */ diff --git a/phpgwapi/inc/class.hooks.inc.php b/phpgwapi/inc/class.hooks.inc.php index a09b2a5422..adddf7b9c3 100644 --- a/phpgwapi/inc/class.hooks.inc.php +++ b/phpgwapi/inc/class.hooks.inc.php @@ -1,12 +1,13 @@ * * Allows applications to "hook" into each other * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.http.inc.php b/phpgwapi/inc/class.http.inc.php index ca32241e67..94f2d40d7e 100644 --- a/phpgwapi/inc/class.http.inc.php +++ b/phpgwapi/inc/class.http.inc.php @@ -3,12 +3,12 @@ * phpGroupWare API - HTTP protocol class * * http://www.phpgroupware.org/api * * ------------------------------------------------------------------------ * - * This file is not part of the phpGroupWare API * + * This is not part of phpGroupWare, but is used by phpGroupWare. * * ------------------------------------------------------------------------ * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * \**************************************************************************/ /* $Id$ */ diff --git a/phpgwapi/inc/class.linkbox.inc.php b/phpgwapi/inc/class.linkbox.inc.php index f15267e351..7d2d1ed668 100644 --- a/phpgwapi/inc/class.linkbox.inc.php +++ b/phpgwapi/inc/class.linkbox.inc.php @@ -6,7 +6,9 @@ * Creates linkboxes using templates * * Copyright (C) 2000, 2001 Mark Peters * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.matrixview.inc.php b/phpgwapi/inc/class.matrixview.inc.php index f39fb830ff..4cd9cf3de6 100644 --- a/phpgwapi/inc/class.matrixview.inc.php +++ b/phpgwapi/inc/class.matrixview.inc.php @@ -1,7 +1,6 @@ * * class for creating matrix like timeframes for items * * * @@ -12,7 +11,9 @@ * * * Copyright (C) 2000, 2001 Marc Logemann * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.menutree.inc.php b/phpgwapi/inc/class.menutree.inc.php index a442c0fdd7..c811dea464 100644 --- a/phpgwapi/inc/class.menutree.inc.php +++ b/phpgwapi/inc/class.menutree.inc.php @@ -1,16 +1,16 @@ * + * This file based on PHP3 TreeMenu * + * (c)1999 Bjorge Dijkstra * * ------------------------------------------------------------------------ * - * This file is not part of the phpGroupWare API * + * This is not part of phpGroupWare, but is used by phpGroupWare. * + * http://www.phpgroupware.org/ * * ------------------------------------------------------------------------ * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * \**************************************************************************/ /* $Id$ */ diff --git a/phpgwapi/inc/class.network.inc.php b/phpgwapi/inc/class.network.inc.php index 42e6ebaf24..cae2e31fd2 100644 --- a/phpgwapi/inc/class.network.inc.php +++ b/phpgwapi/inc/class.network.inc.php @@ -1,12 +1,13 @@ * * Handles opening network socket connections, taking proxy into account * * Copyright (C) 2000, 2001 Mark Peters * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.nextmatchs.inc.php b/phpgwapi/inc/class.nextmatchs.inc.php index ce0da3b1cc..0c7f47dac8 100644 --- a/phpgwapi/inc/class.nextmatchs.inc.php +++ b/phpgwapi/inc/class.nextmatchs.inc.php @@ -1,12 +1,13 @@ * * Handles limiting number of rows displayed * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.phpgw.inc.php b/phpgwapi/inc/class.phpgw.inc.php index 05b1835f28..0bacd9b2de 100644 --- a/phpgwapi/inc/class.phpgw.inc.php +++ b/phpgwapi/inc/class.phpgw.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * This is the central class for the phpGroupWare API * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.portalbox.inc.php b/phpgwapi/inc/class.portalbox.inc.php index 090c5dcd9c..f411bc869c 100755 --- a/phpgwapi/inc/class.portalbox.inc.php +++ b/phpgwapi/inc/class.portalbox.inc.php @@ -1,12 +1,13 @@ * * Helps manage the portal boxes for phpGroupWares main page * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index a979163c70..d198d948c6 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -1,13 +1,14 @@ * * and Mark Peters * * Manages user preferences * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.resultbox.inc.php b/phpgwapi/inc/class.resultbox.inc.php index 0abfe2763c..32129b0c73 100644 --- a/phpgwapi/inc/class.resultbox.inc.php +++ b/phpgwapi/inc/class.resultbox.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Creates result boxes using templates * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.rssparse.inc.php b/phpgwapi/inc/class.rssparse.inc.php deleted file mode 100644 index 9cd07655f4..0000000000 --- a/phpgwapi/inc/class.rssparse.inc.php +++ /dev/null @@ -1,250 +0,0 @@ -items)) { - * printf("Title: %s\n", $item["title"]); - * printf("Link: %s\n", $item["link"]); - * printf("Description: %s\n", $item["desc"]); - * } - * - * printf("Channel Title: %s\n", $rss->title); - * printf("Channel Description: %s\n", $rss->desc); - * printf("Channel Link: %s\n", $rss->link); - * - * printf("Image Title: %s\n", $rss->image["title"]); - * printf("Image URL: %s\n", $rss->image["url"]); - * printf("Image Description: %s\n", $rss->image["desc"]); - * printf("Image Link: %s\n", $rss->image["link"]); - * - * - * CHANGES: - * 0.4 - rssparse.php3 now supports the channel image tag and correctly supports - * RSS-style channels. - * - * - * BUGS: - * Width and height tags in image not supported, some other tags not supported - * yet. - * - * - * IMPORTANT NOTE: - * This requires PHP's XML routines. You must configure PHP with --with-xml. - */ - - /* $Id$ */ - -function _rssparse_start_elem ($parser, $elem, $attrs) { - global $_rss; - - if ($elem == "CHANNEL") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "channel"; - $_rss->tmptitle[$_rss->depth] = ""; - $_rss->tmplink[$_rss->depth] = ""; - $_rss->tmpdesc[$_rss->depth] = ""; - } - else if ($elem == "IMAGE") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "image"; - $_rss->tmptitle[$_rss->depth] = ""; - $_rss->tmplink[$_rss->depth] = ""; - $_rss->tmpdesc[$_rss->depth] = ""; - $_rss->tmpurl[$_rss->depth] = ""; - } - else if ($elem == "ITEM") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "item"; - $_rss->tmptitle[$_rss->depth] = ""; - $_rss->tmplink[$_rss->depth] = ""; - $_rss->tmpdesc[$_rss->depth] = ""; - } - else if ($elem == "TITLE") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "title"; - } - else if ($elem == "LINK") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "link"; - } - else if ($elem == "DESCRIPTION") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "desc"; - } - else if ($elem == "URL") { - $_rss->depth++; - $_rss->state[$_rss->depth] = "url"; - } -} - -function _rssparse_end_elem ($parser, $elem) { - global $_rss; - - if ($elem == "CHANNEL") { - $_rss->set_channel($_rss->tmptitle[$_rss->depth], $_rss->tmplink[$_rss->depth], $_rss->tmpdesc[$_rss->depth]); - $_rss->depth--; - } - else if ($elem == "IMAGE") { - $_rss->set_image($_rss->tmptitle[$_rss->depth], $_rss->tmplink[$_rss->depth], $_rss->tmpdesc[$_rss->depth], $_rss->tmpurl[$_rss->depth]); - $_rss->depth--; - } - else if ($elem == "ITEM") { - $_rss->add_item($_rss->tmptitle[$_rss->depth], $_rss->tmplink[$_rss->depth], $_rss->tmpdesc[$_rss->depth]); - $_rss->depth--; - } - else if ($elem == "TITLE") { - $_rss->depth--; - } - else if ($elem == "LINK") { - $_rss->depth--; - } - else if ($elem == "DESCRIPTION") { - $_rss->depth--; - } - else if ($elem == "URL") { - $_rss->depth--; - } -} - -function _rssparse_elem_data ($parser, $data) { - global $_rss; - - if ($_rss->state[$_rss->depth] == "title") { - $_rss->tmptitle[($_rss->depth - 1)] .= $data; - } - else if ($_rss->state[$_rss->depth] == "link") { - $_rss->tmplink[($_rss->depth - 1)] .= $data; - } - else if ($_rss->state[$_rss->depth] == "desc") { - $_rss->tmpdesc[($_rss->depth - 1)] .= $data; - } - else if ($_rss->state[$_rss->depth] == "url") { - $_rss->tmpurl[($_rss->depth - 1)] .= $data; - } -} - -class rssparser { - var $title; - var $link; - var $desc; - var $items = array(); - var $nitems; - var $image = array(); - var $state = array(); - var $tmptitle = array(); - var $tmplink = array(); - var $tmpdesc = array(); - var $tmpurl = array(); - var $depth; - - function rssparser() { - $this->nitems = 0; - $this->depth = 0; - } - - function set_channel($in_title, $in_link, $in_desc) { - $this->title = $in_title; - $this->link = $in_link; - $this->desc = $in_desc; - } - - function set_image($in_title, $in_link, $in_desc, $in_url) { - $this->image["title"] = $in_title; - $this->image["link"] = $in_link; - $this->image["desc"] = $in_desc; - $this->image["url"] = $in_url; - } - - function add_item($in_title, $in_link, $in_desc) { - $this->items[$this->nitems]["title"] = $in_title; - $this->items[$this->nitems]["link"] = $in_link; - $this->items[$this->nitems]["desc"] = $in_desc; - $this->nitems++; - } - - function parse($fp) { - $xml_parser = xml_parser_create(); - - xml_set_element_handler($xml_parser, "_rssparse_start_elem", "_rssparse_end_elem"); - xml_set_character_data_handler($xml_parser, "_rssparse_elem_data"); - - while ($data = fread($fp, 4096)) { - if (!xml_parse($xml_parser, $data, feof($fp))) { - return 1; - } - } - - xml_parser_free($xml_parser); - - return 0; - } -} - -function rssparse ($fp) { - global $_rss; - - $_rss = new rssparser(); - - if ($_rss->parse($fp)) { - return 0; - } - - return $_rss; -} - - diff --git a/phpgwapi/inc/class.rssparser.inc.php b/phpgwapi/inc/class.rssparser.inc.php index 9cd07655f4..936db5de5e 100644 --- a/phpgwapi/inc/class.rssparser.inc.php +++ b/phpgwapi/inc/class.rssparser.inc.php @@ -1,14 +1,14 @@ \ No newline at end of file diff --git a/phpgwapi/inc/class.sbox.inc.php b/phpgwapi/inc/class.sbox.inc.php index 390852be5d..bd9f7181cb 100644 --- a/phpgwapi/inc/class.sbox.inc.php +++ b/phpgwapi/inc/class.sbox.inc.php @@ -1,12 +1,13 @@ * * Class for creating predefines select boxes * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.send.inc.php b/phpgwapi/inc/class.send.inc.php index c46eef99d9..19a48d6d2f 100644 --- a/phpgwapi/inc/class.send.inc.php +++ b/phpgwapi/inc/class.send.inc.php @@ -1,7 +1,6 @@ * * and Joseph Engo * * This module should replace php's mail() function. It is fully syntax * @@ -10,7 +9,9 @@ * details on this variable). * * Copyright (C) 2000, 2001 Itzchak Rehberg * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.sessions.inc.php b/phpgwapi/inc/class.sessions.inc.php index 42ba4ff459..b192fd2e74 100644 --- a/phpgwapi/inc/class.sessions.inc.php +++ b/phpgwapi/inc/class.sessions.inc.php @@ -1,12 +1,13 @@ * * and Joseph Engo * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 8144e8f0de..9371c32eec 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -1,13 +1,14 @@ * * and Dan Kuykendall * * Handles multi-language support use SQL tables * * Copyright (C) 2000, 2001 Joseph Engo * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.utilities.inc.php b/phpgwapi/inc/class.utilities.inc.php index a84ed056d7..bac277ee4c 100644 --- a/phpgwapi/inc/class.utilities.inc.php +++ b/phpgwapi/inc/class.utilities.inc.php @@ -1,12 +1,13 @@ * * This simply loads up additional utility libraries * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/class.vfs.inc.php b/phpgwapi/inc/class.vfs.inc.php index a98ae13cb4..9c7bb68b08 100644 --- a/phpgwapi/inc/class.vfs.inc.php +++ b/phpgwapi/inc/class.vfs.inc.php @@ -1,12 +1,13 @@ * * This class handled file/dir access for phpGroupWare * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, * diff --git a/phpgwapi/inc/footer.inc.php b/phpgwapi/inc/footer.inc.php index b977a062fb..9d2ea56833 100644 --- a/phpgwapi/inc/footer.inc.php +++ b/phpgwapi/inc/footer.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Closes out interface and db connections * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of the phpGroupWare API * + * 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, * diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index d0c5f02ba0..1ea3984e4b 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * Has a few functions, but primary role is to load the phpgwapi * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of the phpGroupWare API * + * 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, * diff --git a/phpgwapi/inc/phpgw.inc.php b/phpgwapi/inc/phpgw.inc.php index e513f468ba..65fc48e4e9 100644 --- a/phpgwapi/inc/phpgw.inc.php +++ b/phpgwapi/inc/phpgw.inc.php @@ -1,13 +1,14 @@ * * and Joseph Engo * * This file will be deleted soon * * Copyright (C) 2000, 2001 Dan Kuykendall * * -------------------------------------------------------------------------* - * This library is part of phpGroupWare (http://www.phpgroupware.org) * + * 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, *