function GetRequestParameters() { if($_SERVER['REQUEST_METHOD'] == "POST") GetParameters($_POST); else GetParameters($_GET); }
$groupChildren = array(); $groupIcon = imagecreatefromgif("lc_group.gif"); $dwfIcon = imagecreatefrompng("legend-DWF.png"); $rasterIcon = imagecreatefrompng("legend-raster.png"); $themeIcon = imagecreatefrompng("legend-theme.png"); $font = "../fonts/arial.ttf"; $fontSizePt = 12; $fontIndex = 4; $xPad = 4; $yPad = 2; $xIndent = $iconWidth + $xPad; $offsetX = $xPad + 10; $offsetY = $yPad + 10; $textColor = NULL; try { GetParameters(); GenerateLegend(); } catch (MgException $e) { $msg = "last error"; $msg .= "\nERROR: " . $e->GetExceptionMessage() . "\n"; $msg .= $e->GetDetails() . "\n"; $msg .= $e->GetStackTrace() . "\n"; RenderTextToImage($msg); } catch (Exception $ex) { $msg = $ex->GetMessage(); RenderTextToImage($msg); } imagedestroy($groupIcon); imagedestroy($dwfIcon); imagedestroy($rasterIcon); imagedestroy($themeIcon);
<?php require_once "../../../interface/globals.php"; require_once "../../../library/pnotes.inc"; require_once "../../../library/log.inc"; require_once "./Utils.php"; $parameters = GetParameters(); $oemrdb = $GLOBALS['dbh']; ?> <html> <body> <?php // check for required data if (!isset($parameters['masterid'])) { echo "Missing a Master Merge ID"; exit; } if (!isset($parameters['otherid'])) { echo "Missing a Other matching IDs"; exit; } // get the PID matching the masterid $sqlstmt = "select pid from patient_data where id='" . $parameters['masterid'] . "'"; $qResults = sqlQ($sqlstmt); if (!$qResults) { echo "Error fetching master PID."; exit; } $row = sqlFetchArray($qResults);
// // 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA include 'common.php'; include 'constants.php'; $locale = GetDefaultLocale(); $scaleDenominator; $annotations; $args = GetRequestMethod(); GetParameters($args); $templ = file_get_contents("../viewerfiles/quickplotpreviewinner.templ"); SetLocalizedFilesPath(GetLocalizationPath()); // Localize the page $templ = Localize($templ, $locale, GetClientOS()); // Set some annotation labels in the page by replacing the placeholders in the html code $templ = str_replace(array_keys($annotations), array_values($annotations), $templ); // Set the date annotation according to its format mask $pattern = "/\\{date:.*\\[php=(.+?)\\].+?\\}/"; $matches = array(); if (preg_match($pattern, $templ, $matches)) { $mask = $matches[1]; $date = date($mask); $templ = preg_replace($pattern, $date, $templ); } $jsPath = "../viewerfiles/";
function GetRequestParameters() { global $params; if ($_SERVER['REQUEST_METHOD'] == "POST") { $params = $_POST; } else { $params = $_GET; } GetParameters(); }