From: bradymiller Date: Mon, 10 Dec 2012 18:59:17 +0000 (-0800) Subject: Fix the dated reminders script headers. X-Git-Tag: whats-been-changed~479 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/cbe8796b44017d0862fc375467c1416cd523a865 Fix the dated reminders script headers. -Permission was obtained from the author/copyright holder of these scripts. These changes ensure the code is compatible with the GPL license. --- diff --git a/interface/main/dated_reminders/dated_reminders.php b/interface/main/dated_reminders/dated_reminders.php index b609f3d83..0bbc9e501 100644 --- a/interface/main/dated_reminders/dated_reminders.php +++ b/interface/main/dated_reminders/dated_reminders.php @@ -1,31 +1,24 @@ // -// ------------------------------------------------------------------------ // -// 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 // -// --------------------------------------------------------------------------// -// Original Author of this file: Craig Bezuidenhout (Tajemo Enterprises) // -// Purpose of this file: Used for displaying dated reminders // -// --------------------------------------------------------------------------// +/** + * Used for displaying dated reminders. + * + * Copyright (C) 2012 tajemo.co.za + * + * LICENSE: 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 3 + * of the License, or (at your option) any later version. + * 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, see ;. + * + * @package OpenEMR + * @author Craig Bezuidenhout + * @link http://www.open-emr.org + */ // removed as jquery is already called in messages page (if you need to use jQuery, uncomment it futher down) // not neeeded as messages page handles this diff --git a/interface/main/dated_reminders/dated_reminders_add.php b/interface/main/dated_reminders/dated_reminders_add.php index f0685acfa..6f7515d3a 100644 --- a/interface/main/dated_reminders/dated_reminders_add.php +++ b/interface/main/dated_reminders/dated_reminders_add.php @@ -1,31 +1,24 @@ // -// ------------------------------------------------------------------------ // -// 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 // -// --------------------------------------------------------------------------// -// Original Author of this file: Craig Bezuidenhout (Tajemo Enterprises) // -// Purpose of this file: Used for adding dated reminders // -// --------------------------------------------------------------------------// +/** + * Used for adding dated reminders. + * + * Copyright (C) 2012 tajemo.co.za + * + * LICENSE: 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 3 + * of the License, or (at your option) any later version. + * 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, see ;. + * + * @package OpenEMR + * @author Craig Bezuidenhout + * @link http://www.open-emr.org + */ $fake_register_globals=false; $sanitize_all_escapes=true; diff --git a/interface/main/dated_reminders/dated_reminders_log.php b/interface/main/dated_reminders/dated_reminders_log.php index 1f8692d74..451e2e3bd 100644 --- a/interface/main/dated_reminders/dated_reminders_log.php +++ b/interface/main/dated_reminders/dated_reminders_log.php @@ -1,31 +1,24 @@ // -// ------------------------------------------------------------------------ // -// 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 // -// --------------------------------------------------------------------------// -// Original Author of this file: Craig Bezuidenhout (Tajemo Enterprises) // -// Purpose of this file: Used for displaying log of dated reminders // -// --------------------------------------------------------------------------// +/** + * Used for displaying log of dated reminders. + * + * Copyright (C) 2012 tajemo.co.za + * + * LICENSE: 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 3 + * of the License, or (at your option) any later version. + * 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, see ;. + * + * @package OpenEMR + * @author Craig Bezuidenhout + * @link http://www.open-emr.org + */ $fake_register_globals=false; $sanitize_all_escapes=true; @@ -187,4 +180,4 @@ Calendar.setup({inputField:"sd", ifFormat:"%Y-%m-%d", button:"img_begin_date", showsTime:'false'}); Calendar.setup({inputField:"ed", ifFormat:"%Y-%m-%d", button:"img_begin_date", showsTime:'false'}); - \ No newline at end of file + diff --git a/library/ajax/dated_reminders_counter.php b/library/ajax/dated_reminders_counter.php dissimilarity index 77% index 34b5bc6a5..7e34deb46 100644 --- a/library/ajax/dated_reminders_counter.php +++ b/library/ajax/dated_reminders_counter.php @@ -1,50 +1,44 @@ - // -// ------------------------------------------------------------------------ // -// 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 // -// --------------------------------------------------------------------------// -// Original Author of this file: Craig Bezuidenhout (Tajemo Enterprises) // -// Purpose of this file: Returns a count of due messages for current user // -// --------------------------------------------------------------------------// - -//SANITIZE ALL ESCAPES -$sanitize_all_escapes=true; -// - -//STOP FAKE REGISTER GLOBALS -$fake_register_globals=false; - -require_once("../../interface/globals.php"); -require_once("$srcdir/htmlspecialchars.inc.php"); -require_once("$srcdir/dated_reminder_functions.php"); -require_once("$srcdir/pnotes.inc"); - -//Collect number of due reminders -$dueReminders = GetDueReminderCount(5,strtotime(date('Y/m/d'))); - -//Collect number of active messages -$activeMessages = getPnotesByUser("1","no",$_SESSION['authUser'],true); - -$totalNumber = $dueReminders + $activeMessages; -echo ($totalNumber > 0 ? '('.text(intval($totalNumber)).')' : ''); -?> + + * + * LICENSE: 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 3 + * of the License, or (at your option) any later version. + * 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, see ;. + * + * @package OpenEMR + * @author Craig Bezuidenhout + * @author Brady Miller + * @link http://www.open-emr.org + */ + +//SANITIZE ALL ESCAPES +$sanitize_all_escapes=true; +// + +//STOP FAKE REGISTER GLOBALS +$fake_register_globals=false; + +require_once("../../interface/globals.php"); +require_once("$srcdir/htmlspecialchars.inc.php"); +require_once("$srcdir/dated_reminder_functions.php"); +require_once("$srcdir/pnotes.inc"); + +//Collect number of due reminders +$dueReminders = GetDueReminderCount(5,strtotime(date('Y/m/d'))); + +//Collect number of active messages +$activeMessages = getPnotesByUser("1","no",$_SESSION['authUser'],true); + +$totalNumber = $dueReminders + $activeMessages; +echo ($totalNumber > 0 ? '('.text(intval($totalNumber)).')' : ''); +?> diff --git a/library/dated_reminder_functions.php b/library/dated_reminder_functions.php index 1d2fdc57b..6b5b518c6 100644 --- a/library/dated_reminder_functions.php +++ b/library/dated_reminder_functions.php @@ -1,31 +1,25 @@ // -// ------------------------------------------------------------------------ // -// 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 // -// --------------------------------------------------------------------------// -// Original Author of this file: Craig Bezuidenhout (Tajemo Enterprises) // -// Purpose of this file: Contains functions used in the dated reminders // -// --------------------------------------------------------------------------// +/** + * Contains functions used in the dated reminders. + * + * Copyright (C) 2012 tajemo.co.za + * + * LICENSE: 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 3 + * of the License, or (at your option) any later version. + * 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, see ;. + * + * @package OpenEMR + * @author Craig Bezuidenhout + * @link http://www.open-emr.org + */ + require_once("$srcdir/htmlspecialchars.inc.php"); // ------------------------------------------------