本文整理汇总了PHP中GetParameters函数的典型用法代码示例。如果您正苦于以下问题:PHP GetParameters函数的具体用法?PHP GetParameters怎么用?PHP GetParameters使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetParameters函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetRequestParameters
function GetRequestParameters()
{
if($_SERVER['REQUEST_METHOD'] == "POST")
GetParameters($_POST);
else
GetParameters($_GET);
}
示例2: array
$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);
示例3: GetParameters
<?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);
示例4: GetDefaultLocale
//
// 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/";
示例5: GetRequestParameters
function GetRequestParameters()
{
global $params;
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$params = $_POST;
} else {
$params = $_GET;
}
GetParameters();
}