From 52b87d3121353428501aff0705177a2211e99390 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Fri, 28 Dec 2012 10:35:11 -0800 Subject: [PATCH] Removed some erroneous copyright headers. -discussed on this forum thread: http://sourceforge.net/projects/openemr/forums/forum/202506/topic/6405748 --- interface/globals.php | 25 --------- library/sql-ledger.inc | 131 +++++++++++++++++++---------------------------- sites/default/config.php | 25 --------- 3 files changed, 53 insertions(+), 128 deletions(-) rewrite library/sql-ledger.inc (61%) diff --git a/interface/globals.php b/interface/globals.php index 42c3e7bcd..7f02798c4 100644 --- a/interface/globals.php +++ b/interface/globals.php @@ -1,29 +1,4 @@ // -// ------------------------------------------------------------------------ // -// 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. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program 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 General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // // Is this windows or non-windows? Create a boolean definition. if (!defined('IS_WINDOWS')) diff --git a/library/sql-ledger.inc b/library/sql-ledger.inc dissimilarity index 61% index d30770319..f94e09e34 100644 --- a/library/sql-ledger.inc +++ b/library/sql-ledger.inc @@ -1,78 +1,53 @@ - // -// ------------------------------------------------------------------------ // -// 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. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program 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 General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -$sl_conn = 0; // connection object -$sl_err = ""; // global error message - -function SLConnect() { - global $sl_conn, $sl_dbname, $sl_dbuser, $sl_dbpass; - $sl_host = $GLOBALS['oer_config']['ws_accounting']['server']; - $sl_conn = pg_pconnect("host=$sl_host dbname=$sl_dbname user=$sl_dbuser password=$sl_dbpass"); - if (!$sl_conn) die("Failed to connect to SQL-Ledger database."); -} - -function SLClose() { - global $sl_conn; - if ($sl_conn) pg_close($sl_conn); -} - -function SLQuery($query) { - global $sl_conn, $sl_err; - $sl_err = ""; - $res = pg_exec($sl_conn, $query); - if (!$res || pg_numrows($res) < 0) { - $sl_err = pg_errormessage($sl_conn) . ": $query"; - if (! $sl_err) $sl_err = "Query failed:" + $query; - } - return $res; -} - -function SLRowCount($res) { - return pg_numrows($res); -} - -function SLAffectedCount($res) { - return pg_affected_rows($res); -} - -function SLGetRow($res, $rownum) { - return pg_fetch_array($res, $rownum, PGSQL_ASSOC); -} - -function SLQueryValue($query) { - $res = SLQuery($query); - if (! $sl_err && SLRowCount($res) > 0) { - $tmp = pg_fetch_array($res, 0); - return $tmp[0]; - } - return ""; -} - -function SLFreeResult($res) { - pg_freeresult($res); -} -?> + 0) { + $tmp = pg_fetch_array($res, 0); + return $tmp[0]; + } + return ""; +} + +function SLFreeResult($res) { + pg_freeresult($res); +} +?> diff --git a/sites/default/config.php b/sites/default/config.php index e92601aab..aa175270c 100644 --- a/sites/default/config.php +++ b/sites/default/config.php @@ -1,29 +1,4 @@ // -// ------------------------------------------------------------------------ // -// 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. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program 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 General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // $GLOBALS['oer_config']['freeb']['claim_file_dir'] = "/usr/share/freeb/public/"; //currently can be pdf or txt -- 2.11.4.GIT