本文整理汇总了PHP中import_request_variables函数的典型用法代码示例。如果您正苦于以下问题:PHP import_request_variables函数的具体用法?PHP import_request_variables怎么用?PHP import_request_variables使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了import_request_variables函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetLocations
function GetLocations()
{
import_request_variables("gp");
global $slplus_plugin;
//set the callback
if (!isset($_REQUEST['callback'])) {
$callback = '';
} else {
$callback = $_REQUEST['callback'];
}
if (!isset($_REQUEST['max'])) {
$max = get_option(SLPLUS_PREFIX . '_maxreturned');
} else {
$max = $_REQUEST['max'];
}
//set a latitude
if (!isset($_REQUEST['lat'])) {
$lat = '';
} else {
$lat = $_REQUEST['lat'];
}
//set a longitude
if (!isset($_REQUEST['lng'])) {
$lng = '';
} else {
$lng = $_REQUEST['lng'];
}
//set a radius
if (!isset($_REQUEST['radius'])) {
$radius = 40000;
} else {
$radius = $_REQUEST['radius'];
}
//set tags
if (!isset($_REQUEST['tags'])) {
$tags = '';
} else {
$tags = $_REQUEST['tags'];
}
//set a name
if (!isset($_REQUEST['name'])) {
$name = '';
} else {
$name = $_REQUEST['name'];
}
//create a params object
$params = array('center_lat' => $lat, 'center_lng' => $lng, 'radius' => $radius, 'tags' => $tags, 'name' => $name, 'callback' => $callback, 'max' => $max, 'apiKey' => '');
$response = new csl_mobile_listener($params);
}
示例2: import_request_variables
// 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 //
// ------------------------------------------------------------------------ //
// file_options.php
include '../../mainfile.php';
include_once 'inc_dms_functions.php';
include 'defines.php';
import_request_variables("P", "post_");
$this_file = "file_options.php";
if ($HTTP_POST_VARS["hdn_obj_id"]) {
$obj_id = $HTTP_POST_VARS['hdn_obj_id'];
} else {
$obj_id = $HTTP_GET_VARS['obj_id'];
}
if ($HTTP_POST_VARS["hdn_update_options"]) {
$query = "UPDATE " . $xoopsDB->prefix('dms_objects') . " SET ";
$query .= "obj_name='" . $HTTP_POST_VARS['hdn_obj_name'] . "' ";
$query .= "WHERE obj_id='" . $obj_id . "'";
$xoopsDB->query($query);
$query = "UPDATE " . $xoopsDB->prefix('dms_object_properties') . " SET ";
$query .= "obj_descript='" . $HTTP_POST_VARS['hdn_obj_descript'] . "', ";
$query .= "obj_keywords='" . $HTTP_POST_VARS['hdn_obj_keywords'] . "', ";
$query .= "obj_authors='" . $HTTP_POST_VARS['hdn_obj_authors'] . "', ";
示例3: ini_set
/*
if (!get_magic_quotes_gpc()) {
die("You must enable magic_quotes_gpc in php.ini in order to run phpShop. Read <a href=\"http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc\"> the docs</a>.");
}
*/
// Set global path
ini_set("include_path", "." . PATH_SEPARATOR . PS_BASE . PATH_SEPARATOR . PS_BASE . "modules");
// define webroot so that image uploads work
define("WEBROOT", dirname($_SERVER['SCRIPT_FILENAME']));
// left for backwards compatibility
define("MODROOT", PS_BASE . "modules/");
// Compatibility patch to be able to leave Register_globals = off
// &&
// XSS fixes
if (function_exists("import_request_variables") && False == ini_get('register_globals')) {
import_request_variables("CGP", "");
// php >=4.1
$HTTP_GET_VARS = $_GET;
$HTTP_POST_VARS = $_POST;
$HTTP_COOKIE_VARS = $_COOKIE;
$PHP_SELF = $_SERVER["PHP_SELF"];
$SERVER_NAME = $_SERVER["SERVER_NAME"];
$REMOTE_ADDR = $_SERVER["REMOTE_ADDR"];
$HTTP_X_FORWARDED_FOR = $_SERVER["HTTP_X_FORWARDED_FOR"];
$HTTP_VIA = $_SERVER["HTTP_VIA"];
foreach ($_FILES as $k => $v) {
${$k} = $v['tmp_name'];
$k_name = $k . "_name";
${$k_name} = $v['name'];
$k_size = $k . "_size";
${$k_size} = $v['size'];
示例4: import_request_variables
<?php
require_once 'common.inc';
require_once 'auth.inc';
import_request_variables('PG', 'req_');
$xml = false;
if (!strcasecmp($req_f, 'xml')) {
$xml = true;
}
$json = false;
if (!strcasecmp($req_f, 'json')) {
$json = true;
}
// pull in the test parameters
$test = array();
$test['url'] = trim($req_url);
$parts = explode('.', trim($req_location));
$test['location'] = $parts[0];
$test['connectivity'] = $parts[1];
$test['domElement'] = trim($req_domelement);
$test['login'] = trim($req_login);
$test['password'] = trim($req_password);
$test['runs'] = (int) $req_runs;
$test['fvonly'] = (int) $req_fvonly;
$test['connections'] = (int) $req_connections;
$test['speed'] = (int) $req_speed;
$test['private'] = $req_private;
$test['web10'] = $req_web10;
$test['ignoreSSL'] = $req_ignoreSSL;
$test['script'] = trim($req_script);
$test['block'] = $req_block;
示例5: import_request_variables
/* Copyright 2005, 2006 Jochen Koubek - v0.1.2.
For contributors see contributors.txt.
This file is part of the software 'Review Your Peers'.
'Review Your Peers' is free software; you can redistribute it and/or modify
it under the terms of the MIT License.
You should have received a copy of the MIT License
along with this program. See COPYING.txt.
The license-text is based on http://www.opensource.org/licenses/mit-license.php. */
-->
<?php
import_request_variables("p", "postv_");
if (strtoupper($postv_input) == "GLOBAL THERMONUCLEAR WAR") {
header('Location: http://deathball.net/notpron/levelone.htm');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<link href="../css/webstyle.css" rel="stylesheet" media="screen">
<title>WOPR</title>
<link href="webstyle.css" rel="stylesheet" media="screen">
<style type="text/css" media="screen"><!--body{background: black;}
示例6: import_request_variables
<?php
import_request_variables("gP", "R_");
$dir_list_mask = "*.jpg";
//default values
$pix_width = 600;
//useless here but...
$pix_height = 150;
//useless here but...
if (isset($R_pl) && file_exists("{$R_pl}.playlist")) {
include "{$R_pl}.playlist";
}
$pix_list = array();
$pix_count = 0;
foreach (glob($dir_list_mask) as $filename) {
$pix_list[++$pix_count] = $filename;
}
if ($pix_count) {
$name = $pix_list[rand(1, $pix_count)];
$fp = fopen($name, 'rb');
// send the right headers
header("Content-Type: image/jpg");
header("Content-Length: " . filesize($name));
//header( ('Content-Disposition: inline; filename="random.jpg"') );
header('Content-Disposition: inline; filename="' . $name . '";');
fpassthru($fp);
// dump the picture
} else {
echo "no files available!";
}
exit;
示例7: getrequest
function getrequest()
{
### magicquotes check
if (!get_magic_quotes_gpc()) {
array_walk_recursive($_GET, 'addslashes_gpc');
array_walk_recursive($_POST, 'addslashes_gpc');
array_walk_recursive($_COOKIE, 'addslashes_gpc');
array_walk_recursive($_REQUEST, 'addslashes_gpc');
}
import_request_variables("gp", "r_");
}
示例8: array
<?php
$links = array("Ten" => "http://ten.com.au/api/rest/session?key=movideoNetwork10&applicationalias=main-player", "OneHd" => "http://api.v2.movideo.com/rest/session?key=movideoOneHd&applicationalias=onehd-cutv-universal-flash", "Eleven" => "http://api.movideo.com/rest/session?key=movideoEleven&applicationalias=eleven-twix-flash&includeApplication=true", "Neighbours" => "http://api.movideo.com/rest/session?key=movideoNeighbours&applicationalias=neighbours-universal-flash", "Stargate Universe" => "http://api.v2.movideo.com/rest/session?key=movideoEleven&applicationalias=eleven-stargate", "Masterchef" => "http://api.v2.movideo.com/rest/session?key=movideoMasterChef&applicationalias=masterchef-2011", "The 7PM Project" => "http://api.v2.movideo.com/rest/session?key=movideo7pmProject&applicationalias=7pmproject-universal-flash", "Ready Steady Cook" => "http://api.v2.movideo.com/rest/session?key=movideo10&applicationalias=ready-steady-cook", "The Biggest Loser" => "", "The Circle" => "", "The Renovators" => "http://api.v2.movideo.com/rest/session\\?key\\=movideoRenovators\\&applicationalias\\=renovators-universal-flash");
import_request_variables('G', 'get_parameter_');
function get_url_contents($url)
{
$crl = curl_init();
$timeout = 5;
curl_setopt($crl, CURLOPT_URL, $url);
curl_setopt($crl, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt ($crl, CURLOPT_HEADER, 1);
curl_setopt($crl, CURLOPT_CONNECTTIMEOUT, $timeout);
$ret = curl_exec($crl);
curl_close($crl);
return $ret;
}
if (array_search($get_parameter_link, $links)) {
echo get_url_contents($get_parameter_link);
} else {
echo "Unknown: ";
echo $get_parameter_link;
}
?>
示例9: import_request_variables
GAEVALquery.js"></script>
<div id="mainWLS">
<div id="maincontents">
<h1 class="bottommargin1">GAEVAL analysis of <?php
echo $X;
?>
transcript annotations <img id='gaeval_table' title='Search Help' class='xgdb-help-button' src='/XGDB/images/help-icon.png' alt='?' /></h1>
<?php
global $cp_col_order, $cp_sort_ort, $cp_resultCols, $cp_ANNsrc, $PRIMARY_SQL, $cp_resultCols, $cp_ISgroup, $cp_SCSgroup, $cp_BS5group, $cp_BS5op, $cp_BS5val, $cp_BS5group, $cp_BS3group, $cp_BS3op, $cp_BS3val;
global $cp_APIgroup, $cp_APIop, $cp_APIval, $cp_AP5op, $cp_AP5group, $cp_AP5val, $cp_APCgroup, $cp_APCop, $cp_APCval, $cp_AP3group, $cp_AP3op, $cp_AP3val, $cp_APTval, $cp_APTgroup, $cp_APTop;
global $cp_sort_order, $cp_INC_FILTER, $cp_INCTYPES, $gtable, $GAEVAL_DBID;
import_request_variables("gp", "cp_");
//require('/Product/' . $X . 'GDB/conf/GAEVALconf.php'); // moved to top of file - dhrasmus
$SQL_svars = array('uid' => 'ann.uid', 'geneId' => 'geneId', 'integrity' => 'integrity', 'introns_confirmed' => 'introns_confirmed', 'introns_unsupported' => 'introns_unsupported', 'cds_size' => 'cds_size', 'utr5_size' => 'utr5_size', 'utr3_size' => 'utr3_size', 'exon_coverage' => 'exon_coverage', 'bound_5prime' => 'bound_5prime', 'bound_3prime' => 'bound_3prime');
$SQL_orderCmd = array('bound_5prime_ASC' => "bound_5prime DESC", 'bound_5prime_DESC' => "bound_5prime ASC", 'bound_3prime_ASC' => "bound_3prime DESC", 'bound_3prime_DESC' => "bound_3prime ASC", 'AltSplicing_ASC' => "CAST(((AS_AltIntron * (1 - AS_AltIntron_doc) * (1 - abs(AS_AltIntron_mindoc)) * (1 - abs(AS_AltIntron_maxdoc))) + (AS_AddIntron * (1 - AS_AddIntron_doc) * (1 - abs(AS_AddIntron_mindoc)) * (1 - abs(AS_AddIntron_maxdoc))) + (AS_ConIntron * (1 - AS_ConIntron_doc) * (1 - abs(AS_ConIntron_mindoc)) * (1 - abs(AS_ConIntron_maxdoc))) - AS_AltAnnIntron) AS SIGNED) DESC", 'AltSplicing_DESC' => "(GREATEST(0,AS_AltAnnIntron_maxdoc) + GREATEST(0,AS_AltIntron_maxdoc) + GREATEST(0,AS_AddIntron_maxdoc) + GREATEST(0,AS_ConIntron_maxdoc)) DESC,(ABS(LEAST(0,AS_AltAnnIntron_mindoc)) + ABS(LEAST(0,AS_AltIntron_mindoc)) + ABS(LEAST(0,AS_AddIntron_mindoc)) + ABS(LEAST(0,AS_ConIntron_mindoc))) DESC", 'AltTerm_ASC' => "(CM_AltCPS * (1 - CM_AltCPS_doc)) DESC", 'AltTerm_DESC' => "CM_AltCPS_maxdoc DESC,CM_AltCPS_mindoc ASC", 'Fission_ASC' => "(CM_Fission * (1 - CM_Fission_doc)) DESC", 'Fission_DESC' => "CM_Fission_maxdoc DESC,CM_Fission_mindoc ASC", 'Fusion_ASC' => "(CM_Fusion * (1 - CM_Fusion_doc)) DESC", 'Fusion_DESC' => "CM_Fusion_maxdoc DESC,CM_Fusion_mindoc ASC", 'AmbOlap_ASC' => "(AE_AmbOverlap * (1 - AE_AmbOverlap_doc)) DESC", 'AmbOlap_DESC' => "AE_AmbOverlap_maxdoc DESC,AE_AmbOverlap_mindoc ASC");
$DEFAULT_COLUMN_ORDER = array('geneId' => 1, 'url' => 2, 'integrity' => 3, 'custom_integrity' => 4, 'introns_confirmed' => 5, 'introns_unsupported' => 6, 'exon_coverage' => 7, 'utr5_size' => 8, 'cds_size' => 9, 'utr3_size' => 10, 'bound_5prime' => 11, 'bound_3prime' => 12, 'AltSplicing' => 13, 'AltTerm' => 14, 'Fission' => 15, 'Fusion' => 16, 'AmbOlap' => 17);
$DEFAULT_COLUMN_HEADER = array('geneId' => 'Annotation', 'url' => 'URLs', 'integrity' => 'Standard Integrity', 'custom_integrity' => 'Custom Integrity', 'introns_confirmed' => 'Introns Confirmed', 'introns_unsupported' => 'Introns Unsupported', 'cds_size' => 'CDS Size', 'utr5_size' => '5`UTR Size', 'utr3_size' => '3`UTR Size', 'exon_coverage' => '%Coverage', 'bound_5prime' => "<img alt='Upstream Extension' title='Upstream Extension' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend5}' />", 'bound_3prime' => "<img alt='Downstream Extension' title='Downstream Extension' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend3}' />", 'AltSplicing' => "<img alt='Alternative Splicing' title='Alternative Splicing' src='{$IMAGEDIR}{$GAEVAL_IMG_AltStr}' />", 'AltTerm' => "<img alt='Alternative Transcriptional Termination' title='Alternative Transcriptional Termination' src='{$IMAGEDIR}{$GAEVAL_IMG_AltCPS}' />", 'Fission' => "<img alt='Annotation Spliting / Fission' title='Annotation Spliting / Fission' src='{$IMAGEDIR}{$GAEVAL_IMG_Fission}' />", 'Fusion' => "<img alt='Annotation Merger / Fusion' title='Annotation Merger / Fusion' src='{$IMAGEDIR}{$GAEVAL_IMG_Fusion}' />", 'AmbOlap' => "<img alt='Erroneous Annotation Overlap' title='Erroneous Annotation Overlap' src='{$IMAGEDIR}{$GAEVAL_IMG_AmbOlap}' />");
$COLUMN_DESCRIPTION = array('geneId' => 'Annotation', 'url' => 'WWW links', 'integrity' => 'Standard Integrity', 'custom_integrity' => 'Custom Integrity', 'introns_confirmed' => 'Introns Confirmed', 'introns_unsupported' => 'Intons Unsupported', 'cds_size' => 'CDS Size', 'utr5_size' => '5`UTR Size', 'utr3_size' => '3`UTR Size', 'exon_coverage' => '%Coverage', 'bound_5prime' => "Upstream Boundary Extension<img alt='Upstream Extension' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend5}' />", 'bound_3prime' => "Downstream Boundary Extension<img alt='Downstream Extension' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Extend3}' />", 'AltSplicing' => "Alternative Splicing / Structure<img alt='Alternative Splicing' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AltStr}' />", 'AltTerm' => "Alternative Transcript Termination<img alt='Alternative Transcriptional Termination' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AltCPS}' />", 'Fission' => "Annotation Fission / Spliting<img alt='Annotation Spliting / Fission' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Fission}' />", 'Fusion' => "Annotation Fusion / Merger<img alt='Annotation Merger / Fusion' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_Fusion}' />", 'AmbOlap' => "Erroneous Annotation Overlap<img alt='Erroneous Annotation Overlap' class='colDesc' src='{$IMAGEDIR}{$GAEVAL_IMG_AmbOlap}' />");
$DEFAULT_INC = array('altsp' => 'Alternative splicing / structure filter', 'altcps' => 'Alternative transcript termination (Cleavage / PolyA site) filter', 'fis' => 'Split annotation filter', 'fus' => 'Merged annotation filter', 'eolap' => 'Erroneous annotation overlap filter');
$FLAG_TYPES = array('No Incongruence', "<img alt='Undocumented' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc}' />Undocumented", "<img alt='Documented Isoforms' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docL}' />Documented Isoforms", "<img alt='User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docU}' />User Annotations", "<img alt='Undocumented & Documented Isoforms' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docL}' />Undocumented & Documented Isoforms", "<img alt='Undocumented & User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docU}' />Undocumented & User Annotations", "<img alt='Isoforms & User Annotations' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_docL_docU}' />Isoforms & User Annotations", "<img alt='ALL Types' src='{$IMAGEDIR}{$GAEVAL_IMG_PROP_undoc_docL_docU}' />ALL Types");
$INC_FLAG_SQL = array('altsp' => array('(!(AS_AddIntron || AS_AltIntron || AS_ConIntron || AS_AltAnnIntron))', '((AS_AddIntron AND !AS_AddIntron_doc)||(AS_AltIntron AND !AS_AltIntron_doc)||(AS_ConIntron AND !AS_ConIntron_doc))', '((AS_AddIntron_mindoc < 0)||(AS_AltIntron_mindoc < 0)||(AS_ConIntron_mindoc < 0)||(AS_AltAnnIntron_mindoc < 0))', '((AS_AddIntron_maxdoc > 0)||(AS_AltIntron_maxdoc > 0)||(AS_ConIntron_maxdoc > 0)||(AS_AltAnnIntron_maxdoc > 0))'), 'altcps' => array('(!CM_AltCPS)', '(CM_AltCPS AND !CM_AltCPS_doc)', '(CM_AltCPS_mindoc < 0)', '(CM_AltCPS_maxdoc > 0)'), 'fus' => array('(!CM_Fusion)', '(CM_Fusion AND !CM_Fusion_doc)', '(CM_Fusion_mindoc < 0)', '(CM_Fusion_maxdoc > 0)'), 'fis' => array('(!CM_Fission)', '(CM_Fission AND !CM_Fission_doc)', '(CM_Fission_mindoc < 0)', '(CM_Fission_maxdoc > 0)'), 'eolap' => array('(!AE_AmbOverlap)', '(AE_AmbOverlap AND !AE_AmbOverlap_doc)', '(AE_AmbOverlap_mindoc < 0)', '(AE_AmbOverlap_maxdoc > 0)'));
if ($cp_col_order) {
eval('$COLUMN_ORDER = array(' . str_replace('\\', '', $cp_col_order) . ');');
} else {
$COLUMN_ORDER = $DEFAULT_COLUMN_ORDER;
}
$displayCols = array_keys($COLUMN_ORDER);
示例10: getdate
$progVersion = "v.0.9.2";
$datum = getdate(time());
$debug = "0";
$user = "mercdb";
$pass = "znrCCQqahCuqXYuy";
$database = "mercdb";
$server = "localhost";
$port = "3306";
$image_path = "items/";
$ext_info_url = "http://www.roempire.com/database/?page=items&act=view&iid=";
if (!isset($p_ROserver) || $p_ROserver == "") {
$p_ROserver = "[Full] Chaos";
}
//
import_request_variables('p', 'p_');
import_request_variables('g', 'g_');
/*
** Changelog:
** - way too much right now
** -
** -
** -
**
**
**
*/
if (empty($_POST['username']) && $HTTP_COOKIE_VARS['username']) {
$_POST['username'] = $HTTP_COOKIE_VARS['username'];
$_POST['passwd'] = $HTTP_COOKIE_VARS['passwd'];
}
session_start();
示例11: import_request_variables
1. Der Autor
(a) fehlt im Formular
(b) ist keine Ziffernfolge
(c) ist nicht angemeldet
(d) hat bereits ein Dokument eingereicht
2. Das eingereichte Dokument
(a) fehlt im Formular
(b) entspricht nicht der Namenskonvention
Falls kein Fehler auftritt:
3. Dokument sichern
4. Daten eintragen
***************************************************/
/**************************************************
0. Vertrauensvorbehalt
***************************************************/
import_request_variables("P", "dmvar_");
$autor = clean($dmvar_matrikelnr, 10);
$anmerkung = clean($dmvar_anmerkung, 32768);
$error_db = false;
/**************************************************
1. Eingabe Ueberpruefen: Autor (Matrikelnr.)
***************************************************/
if ($autor == "") {
$error_autor = true;
$error_autor_text = "Bitte Autor/in angeben.";
} elseif (!ereg("^[0-9]*\$", $autor)) {
$error_autor = true;
$error_autor_text = "Bitte die Matrikelnummer des Autors angeben";
} else {
$rs = mysql_query("SELECT * FROM gutachter WHERE matrikelnr='{$autor}'", $con);
if (!$rs) {
示例12: error_reporting
<?
//------------------------------------------------------------------------------
// niveau d'erreur
//------------------------------------------------------------------------------
//error_reporting(E_ALL);
error_reporting(E_ERROR);
//error_reporting(E_ERROR^E_PARSE^E_WARNING^E_NOTICE);
//error_reporting(E_ERROR^E_PARSE^E_WARNING);
if (false) {
//------------------------------------------------------------------------------
// rappatrie toutes les variables
//------------------------------------------------------------------------------
import_request_variables("gps","") ;
foreach (array_keys($_SESSION) as $var) {
print "$var=".$_SESSION[$var];
$GLOBALS[$var]=$_SESSION[$var];
}
}
if (false) {
//------------------------------------------------------------------------------
// flag debugging
//------------------------------------------------------------------------------
$is_deb=0;
$deb_opt=array(
"glob" => 0, // montrer les variables globales
"post" => 0, // montrer les variables postées
"o" => 0, // message lie a la base : ordre sql
示例13: call_user_method
<?php
call_user_method();
call_user_method_array();
define_syslog_variables();
dl();
ereg();
ereg_replace();
eregi();
eregi_replace();
import_request_variables();
mcrypt_generic_end();
mysql_db_query();
mysql_escape_string();
mysql_list_dbs();
mysqli_bind_param();
mysqli_bind_result();
mysqli_client_encoding();
mysqli_fetch();
mysqli_param_count();
mysqli_get_metadata();
mysqli_send_long_data();
magic_quotes_runtime();
session_register();
session_unregister();
session_is_registered();
set_magic_quotes_runtime();
set_socket_blocking();
split();
spliti();
sql_regcase();
示例14: import_request_variables
<?php
$cfgProgDir = 'phpSecurePages/';
include $cfgProgDir . "secure.php";
//Establish GET & POST variables
import_request_variables("gp");
$PHP_SELF = $_SERVER['PHP_SELF'];
if (isset($_GET['id'])) {
$id = $_GET['id'];
}
if (isset($_POST['submit']) and $_POST['submit'] == 'Delete') {
//connect to database
require "dbconn.php";
$id = $_POST['id'];
// delete record
$sql = "DELETE FROM bike_ride WHERE id=" . $id . " LIMIT 1";
if (@mysql_query($sql)) {
if (@mysql_affected_rows($dbcnx) == 1) {
$msg = "Item has been deleted.";
} else {
$error = "Error deleting item: " . mysql_error() . "<br>\n\t\t\tThe query being run was: " . $sql . "";
}
} else {
print '<p class = "Colors_and_font">fail mysql_query (inside submit) because: ' . mysql_error() . '</p>
<p class = "Colors_and_font">running from query: ' . $sql . '</p>';
}
}
?>
<!doctype html>
<html>
示例15: import_request_variables
<td>all files with the same extension:</td>
<td>
<input type='checkbox' name='dir'>
</td>
</tr>
<tr>
<td>Factor:</td>
<td><input type='text' name='factor' value='4'></td>
</tr>
<tr>
<td><input type='button' value="let's go" onclick='validate()'></td>
<td></td>
</tr>
</table>
<?php
import_request_variables('PG');
/*********PARAMS***************/
$countSymbolsFiles = 0;
$arraySymbolsFiles;
/********************************/
function modify($myDir, $myFile)
{
global $factor;
$myContent = fopen($myDir . "/" . $myFile, "r") or die("Datei " . $myDir . " / " . $myFile . " konnte nicht zum Lesen ge�ffnet werden!");
$myNewContent = fopen($myDir . "/" . str_replace(".", "_" . $factor . ".", $myFile), "w") or die("Datei " . $myDir . " / " . str_replace(".", "_" . $factor . ".", $myFile) . " konnte nicht zum Schreiben ge�ffnet werden!");
fputs($myNewContent, "#Modified by MapbenderTools" . "Date: " . date("d.m.Y") . "Factor: " . $factor . "\n\n");
//fputs($myNewContent, "#Date: ". date("d.m.Y") . "Factor: ". $factor . "\n\n");
//fputs($myNewContent, "#Factor: ". $factor . "\n\n");
while (!feof($myContent)) {
$myLine = fgets($myContent, 1024);
if (preg_match("/\\bSIZE\\s*(\\d+.?\\d*)\\s*/i", $myLine, $matches)) {