本文整理汇总了PHP中stripslashes_r函数的典型用法代码示例。如果您正苦于以下问题:PHP stripslashes_r函数的具体用法?PHP stripslashes_r怎么用?PHP stripslashes_r使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了stripslashes_r函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: get_formulaire
function get_formulaire($M = array())
{
global $array_magic_type;
extract(stripslashes_r($M));
?>
<form method="POST" action="<?php
echo get_link("Magics", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Magics', $M);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:28,代码来源:Magics.php
示例2: get_formulaire_Caracteristique
function get_formulaire_Caracteristique($Caracteristique = array())
{
extract(stripslashes_r($Caracteristique));
?>
<form method="POST" action="<?php
echo get_link("Caracteristiques", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Caracteristique</h2>
<?php
echo forumulaire_db('Caranille_Caracteristiques', $Caracteristique);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:30,代码来源:Caracteristiques.php
示例3: get_formulaire_Menu
function get_formulaire_Menu($Menu = array())
{
extract(stripslashes_r($Menu));
if (isset($Menu_Module)) {
set_values_db('Caranille_Menus', 'Menu_Link', list_menu($Menu_Module));
}
?>
<form method="POST" action="<?php
echo get_link("Menus", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Menu</h2>
<?php
echo forumulaire_db('Caranille_Menus', $Menu);
?>
<br/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer"/>
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:33,代码来源:Menus.php
示例4: stripslashes_arr
function stripslashes_arr($arr)
{
$newArr = array();
foreach ($arr as $key => $value) {
$newArr[$key] = is_array($value) ? stripslashes_r($value) : stripslashes($value);
}
return $newArr;
}
开发者ID:anboto,项目名称:xtreamer-web-sdk,代码行数:8,代码来源:func.php
示例5: stripslashes_r
function stripslashes_r(&$Array)
{
foreach ($Array as $Key => $Value) {
if (is_array($Value)) {
stripslashes_r($Array[$Key]);
} else {
$Array[$Key] = stripslashes($Value);
}
}
return $Array;
}
开发者ID:BackupTheBerlios,项目名称:nepama-svn,代码行数:11,代码来源:lib.php
示例6: register_request
function register_request()
{
global $prefixe_salt, $suffixe_salt;
extract(addslashes_r(stripslashes_r($_POST)));
$Date = date('Y-m-d H:i:s');
$IP = getRealIpAddr();
$filter = uniqid();
$pswd = password_encode($prefixe_salt . $filter . $suffixe_salt, $Password);
$key = uniqid();
insert_db('Caranille_Accounts', array('Account_Pseudo' => strip_tags($Pseudo), 'Account_Password' => strip_tags($pswd), 'Account_Salt' => $filter, 'Account_Email' => $Email, 'Account_Sexe' => $Sexe, 'Account_Inscription' => $Date, 'Account_Last_IP' => $IP, 'Account_HP_Remaining' => 100, 'Account_Key' => $key, 'Account_valid' => 0, 'Account_Level' => 1, 'Account_Order' => 1, 'Account_Reason' => 'None', 'Account_Status' => "Authorized", 'Account_Access' => "Member", 'Account_Guild_ID' => 0, 'Account_HP_Bonus' => 0, 'Account_MP_Remaining' => 10, 'Account_MP_Bonus' => 0, 'Account_Strength_Bonus' => 0, 'Account_Magic_Bonus' => 0, 'Account_Agility_Bonus' => 0, 'Account_Defense_Bonus' => 0, 'Account_Experience' => 0, 'Account_Golds' => 0, 'Account_Notoriety' => 0, 'Account_Chapter' => 1, 'Account_Mission' => 1, 'Account_Step' => 2));
$user_record = get_db('request_account', $_POST);
return $user_record;
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:13,代码来源:Register.php
示例7: news_comment_form
function news_comment_form($News)
{
$form = '<form method="POST" action="' . get_link('Comments', 'Public') . '">';
$form .= call_bbcode_editor("Comment_Message");
//$form .= '<textarea name="Comment_Message" ID="message" rows="10" cols="50"></textarea><br/><br/>';
$form .= '<input type="hidden" name="Comment_News_ID" value="' . stripslashes_r($News['News_ID']) . '"/>';
$form .= '<input type="hidden" name="News_ID" value="' . stripslashes_r($News['News_ID']) . '"/>';
$form .= '<input type="hidden" name="Comment_Date" value="' . date('Y-m-d H:i:s') . '"/>';
$form .= '<input type="hidden" name="Comment_Account_Pseudo" value="' . user_data('Account_Pseudo') . '"/>';
$form .= '<input type="hidden" name="token" value="' . generer_token('Comment-' . $News['News_ID']) . '" />';
$form .= '<input type="submit" name="End_Add" value="Terminer">';
$form .= '</form>';
return $form;
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:14,代码来源:Comments.php
示例8: get_formulaire_Landing
function get_formulaire_Landing($Landings = array())
{
global $rayon_city, $array_landing_type, $_path;
extract(stripslashes_r($Landings));
?>
<form method="POST" action="<?php
echo get_link("Landing", "Admin");
?>
">
<table>
<tr><th colspan="2">Coordonnées de la terrain</th></tr>
<tr><td><?php
echo line_db("Caranille_Landings", "Landing_PosX", isset($Landing_PosX) ? $Landing_PosX : $_POST['PosX']);
echo line_db("Caranille_Landings", "Landing_PosY", isset($Landing_PosX) ? $Landing_PosY : $_POST['PosY']);
echo line_db("Caranille_Landings", "Landing_Type", isset($Landing_Type) ? $Landing_Type : 0);
?>
</td></tr>
<tr><td class="none" colspan="2">
<input type="hidden" name="Landing_ID" value="<?php
echo isset($Landing_ID) ? $Landing_ID : '';
?>
"/>
<input type="submit" name="Back" value="Annuler" />
<input type="submit" name="End_<?php
echo request_confirm('Add') ? 'Add' : 'Edit';
?>
" value="Terminer">
<?php
if (request_confirm('Second_Edit')) {
?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php
}
?>
</td></tr>
</table>
</form>
<?php
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:40,代码来源:Landing.php
示例9: GetModule
public function GetModule($ModuleId, $Fields = array("id", "name", "author", "version", "classname", "filename", "classfilename", "action", "menu", "active"))
{
global $objDb;
$Data = NULL;
if ($ModuleId != NULL) {
$Rows = $objDb->Select($Fields, "modules", "WHERE `id` = '{$ModuleId}'");
if ($Rows == 0) {
return false;
}
$Data = $objDb->FetchArray();
stripslashes_r($Data);
} else {
$Rows = $objDb->Select($Fields, "modules");
if ($Rows == 0) {
return false;
}
while ($x = $objDb->FetchArray()) {
$Data[] = stripslashes_r($x);
}
}
return $Data;
}
开发者ID:BackupTheBerlios,项目名称:nepama-svn,代码行数:22,代码来源:class.admin.php
示例10: get_perso
/**
* retrouve le joueur
* utilisé dans refresh.php
* utilisé dans login.php
*/
function get_perso($Pseudo)
{
global $Account_Data, $already_get_perso;
if (!$already_get_perso) {
debug_log("function get_perso({$Pseudo})");
$user_record = get_db('perso_account', array('Pseudo' => $Pseudo));
if (!empty($user_record)) {
$Account_Data = stripslashes_r($user_record);
}
debug_log("Account_Data =><" . print_r($Account_Data, 1) . ">");
$already_get_perso = true;
}
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:18,代码来源:Functions.php
示例11: array_map
//$email_webmaster = "[email protected]"; // utile en cas de perte du mot de passe
// entrer les parametres pour la connexion
$dbUser = "root";
$dbPass = "";
$dbHote = "localhost";
//nom de la base � laquelle on se connecte
$dbName = "chiricahuasv1";
global $connexion;
//-----------------------------------------------------------------------------//
// !!! Ne rien changer sous cette ligne !!!
/*function stripslashes_r($var) {// Fonction qui supprime l'effet des magic quotes
if (is_array($var)) { // Si la variable pass�e en argument est un array, on appelle la fonction stripslashes_r dessus
return array_map('stripslashes_r', $var);
} else { // Sinon stripslashes
return stripslashes($var);
}
}*/
if (get_magic_quotes_gpc()) {
// Si les magic quotes sont activ�s on les d�sactive
$_GET = stripslashes_r($_GET);
$_POST = stripslashes_r($_POST);
$_COOKIE = stripslashes_r($_COOKIE);
}
// connexion et choix de la base
try {
$connexion = mysqli_connect($dbHote, $dbUser, $dbPass, $dbName) or die("Error " . mysqli_error($connexion));
$GLOBALS['connexion'] = mysqli_connect($dbHote, $dbUser, $dbPass, $dbName) or die("Error " . mysqli_error($connexion));
} catch (Exception $e) {
// message en cas d'erreur
die('Erreur : ' . $e->getMessage());
}
开发者ID:AurelienAubert,项目名称:Stage_Apsaroke,代码行数:31,代码来源:connection2.php
示例12: session_start
*
* Nickolay Shestakov <[email protected]>
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
session_start();
if (!$_SESSION['fm_entry']) {
die('Not a Valid Entry');
}
include_once "../lang/" . $_SESSION['lang'] . ".lang.php";
include_once "../config.php";
include_once "../lib/func.php";
include_once "../lib/pclzip/pclzip.lib.php";
$files = stripslashes_r($_POST['par']);
if (empty($files)) {
exit;
}
$files = explode(",", $files);
function send_file($path)
{
session_write_close();
ob_end_clean();
if (!is_file($path) || connection_status() != 0) {
return false;
}
//to prevent long file from getting cut off from //max_execution_time
set_time_limit(0);
$name = basename($path);
//filenames in IE containing dots will screw up the
开发者ID:anboto,项目名称:xtreamer-web-sdk,代码行数:31,代码来源:downloadfiles.php
示例13: formulaire_input
echo formulaire_input(array(select_input("label.message.destinataire", "Receiver", $Players, null, null, "Receiver"), text_input("label.message.subject", "Message_Subject", null, null, null, "placeholder.message.subject"), call_bbcode_editor("Message"), submit_input("Send", "btn.message.send")), "Mailbox-Send", get_link('Mailbox', 'User'), "post", null);
} else {
if (request_confirm('Read')) {
$Messages = list_db('request_mailbox', user_data());
echo "<table class='newsboard email' >";
echo "<tr><th><div class='important'>" . LanguageValidation::iMsg("label.message.emetteur") . "</div></th>";
echo "<th><div class='important'>" . LanguageValidation::iMsg("label.message.subject") . "</div></th>";
echo "<th>" . LanguageValidation::iMsg("label.message.content") . "</th>";
echo '<th></th></tr>';
echo '<tr>';
echo '<td class="none" colspan="4" >';
echo '</td>';
echo '</tr>';
if (!empty($Messages)) {
foreach ($Messages as $Message) {
extract(stripslashes_r($Message));
$ID = get_db('request_mail', $Message);
if (!empty($ID)) {
$Transmitter = $ID['Account_Pseudo'];
echo "<tr><td>{$Transmitter}</td>";
echo "<td>{$Private_Message_Subject}</td>";
echo "<td>" . bb_code($Private_Message_Message) . "</td>";
echo '<td>';
echo formulaire_input(array(hidden_input("Private_Message_ID", $Private_Message_ID), hidden_input("Private_Message_Conversation", $Private_Message_Conversation), hidden_input("Transmitter", $Transmitter), hidden_input("Message_Subject", $Private_Message_Subject), hidden_input("Message", nl2br($Private_Message_Message)), submit_input("Reply", "btn.message.reply"), submit_input("Delete", "btn.message.delete")), "Mailbox-Send-{$Private_Message_ID}", get_link('Mailbox', 'User'), "post", null);
echo '</td></tr>';
echo '<tr>';
echo '<td class="none" colspan="4" >';
echo '</td>';
echo '</tr>';
}
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:31,代码来源:Mailbox.php
示例14: session_start
* Copyright (C) 2006 - 2007, West-Web Limited.
*
* Nickolay Shestakov <[email protected]>
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
session_start();
if (!$_SESSION['fm_entry']) {
die('Not a Valid Entry');
}
include_once "../config.php";
include_once "../lib/func.php";
include_once "../lang/" . $_SESSION['lang'] . ".lang.php";
$file = stripslashes_r($_GET['file']);
$theme = $_SESSION['theme'];
if (empty($file) || !is_file($file)) {
exit;
}
$fp = @fopen($file, "rb");
if (!$fp) {
echo $strCantOpenFile;
exit;
}
$bn = substr(strrchr($file, '/'), 1);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
开发者ID:anboto,项目名称:xtreamer-web-sdk,代码行数:31,代码来源:editfile.php
示例15: session_start
* Copyright (C) 2006 - 2007, West-Web Limited.
*
* Nickolay Shestakov <[email protected]>
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
session_start();
if (!$_SESSION['fm_entry']) {
die('Not a Valid Entry');
}
include_once "../../lang/" . $_SESSION['lang'] . ".lang.php";
include_once "../../lib/func.php";
include_once "func.php";
extract(stripslashes_r($_POST));
$theme = $_SESSION['theme'];
$archive = $par[0];
list($ar_basename, $bname, $type) = get_ar_type($archive);
/*
$ar_basename=substr(strrchr($archive,'/'),1);
$ext = strtolower(substr(strrchr($archive,'.'),1));
$bname=substr($archive,0,strrpos($archive,'.'));
$ext2 = strtolower(substr(strrchr($bname,'.'),1));
if($ext2 == "tar") {
if($ext == "gz") $type="targz";
elseif($ext == "bz2") $type="tarbz2";
$bname=substr($archive,0,strrpos($bname,'.'));
开发者ID:anboto,项目名称:xtreamer-web-sdk,代码行数:30,代码来源:srvextract.php
示例16: foreach
<br/>
<?php
//On vérifie que la requête a bien retourné des messages
if (count($query) < 1) {
echo '<p>Il n y a aucun post sur ce topic, vérifiez l url et reessayez</p>';
} else {
//Si tout roule on affiche notre tableau puis on remplit avec une boucle
?>
<table>
<tr>
<th class="vt_auteur"><strong>Auteurs</strong></th>
<th class="vt_mess"><strong>Messages</strong></th>
</tr>
<?php
foreach ($query as $data) {
extract(stripslashes_r($data));
//On commence à afficher le pseudo du créateur du message :
//On vérifie les droits du Account
//(partie du code commentée plus tard)
echo '<tr><td><strong>
<a href="./voirprofil.php?m=' . $Account_ID . '&action=consulter">
' . $Account_pseudo . '</a></strong></td>';
/* Si on est l'auteur du message, on affiche des liens pour
Modérer celui-ci.
Les modérateurs pourront aussi le faire, il faudra donc revenir sur
ce code un peu plus tard ! */
$d = new datetime($Post_Time);
if (user_data('Account_ID') == $Post_Createur) {
echo '<td id=p_' . $Post_ID . '>Posté à ' . $d->format('H\\hi \\l\\e d M y') . '
<a href="' . get_link('Poster', 'Guild', array('action' => 'delete', 'p' => $Post_ID)) . '"><span alt="Supprimer" title="Supprimer ce message" >✗</span></a>
<a href="' . get_link('Poster', 'Guild', array('action' => 'edit', 'p' => $Post_ID)) . '"><span alt="Editer" title="Editer ce message" >✓</span></a></td></tr>';
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:31,代码来源:Topic.php
示例17: extract
<?php
/*
* Copyright (C) 2006 - 2007, West-Web Limited.
*
* Nickolay Shestakov <[email protected]>
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/
include_once "func.php";
extract(stripslashes_r($_GET));
$size = filesize($file);
if (empty($file) || !is_file($file) || !$size) {
exit;
}
$bn = substr(strrchr($file, '/'), 1);
if (!($fp = @fopen($file, "rb"))) {
exit;
}
if ($type == 'txt') {
?>
<html>
<head>
<title><?php
echo $title;
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
开发者ID:anboto,项目名称:xtreamer-web-sdk,代码行数:31,代码来源:loadfile.php
示例18: stripslashes_r
/**
*
* Fonction recursive qui supprime l'effet des magic quotes
* à utiliser pour l'affichage des données
* il faut la retravailler. j'ai quelques cas où ça suprrime aussi les retour chariot
* @param $var
*/
function stripslashes_r($var)
{
//print_array($var, 'stripslashes_r');
if (is_array($var)) {
// Si la variable passée en argument est un array, on appelle la fonction stripslashes_r dessus
foreach ($var as $champs => $value) {
$var[$champs] = stripslashes_r($value);
}
} else {
if (is_object($var)) {
// Si la variable passée en argument est un object, on appelle la fonction stripslashes_r dessus
foreach ($var as $champs => $value) {
$var->{$champs} = stripslashes_r($value);
}
} else {
//$var = str_replace("\\", '\ ', $var);
//$var = str_replace("\'", "'", $var);
$var = stripslashes($var);
$var = trim($var);
}
}
return $var;
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:30,代码来源:Systems.php
示例19: list_db
echo '</table>';
}
if (request_confirm('Craft')) {
echo 'Voici vos Fragments<br /><br />';
echo '<table class="inventory">';
echo '<tr>';
echo '<th>' . LanguageValidation::iMsg("label.inventory.name") . '</th>';
echo '<th>' . LanguageValidation::iMsg("label.inventory.image") . '</th>';
echo '<th>' . LanguageValidation::iMsg("label.inventory.quantite") . '</th>';
echo '<th>' . LanguageValidation::iMsg("label.inventory.price") . '</th>';
echo '<th>' . LanguageValidation::iMsg("label.inventory.action") . '</th>';
echo '</tr>';
$Fragment_Query = list_db('list_inventaire_fragment', array('Account_ID' => user_data('Account_ID')));
if (!empty($Fragment_Query)) {
foreach ($Fragment_Query as $Fragment) {
extract(stripslashes_r($Fragment));
$desc = $Fragment_Description . "\r\n\r\n";
$desc .= '' . LanguageValidation::iMsg("label.level.required") . ' : ' . $Fragment_Level_Required . "\r\n\r\n";
foreach ($array_character_type as $char) {
$desc .= '+' . eval("return \$Fragment_" . $char . "_Effect ;") . ' ' . LanguageValidation::iMsg("label." . strtolower($char) . ".card") . '' . "\r\n";
}
//<br />';
/**
$desc .= '+' .$Fragment_HP_Effect. ' HP'."\r\n";//<br />';
$desc .= '+' .$Fragment_MP_Effect. ' MP'."\r\n";//<br />';
$desc .= '+' .$Fragment_Strength_Effect. ' Force'."\r\n";//<br />';
$desc .= '+' .$Fragment_Magic_Effect. ' Magie'."\r\n";//<br />';
$desc .= '+' .$Fragment_Agility_Effect. ' Agilité'."\r\n";//<br />';
$desc .= '+' .$Fragment_Defense_Effect. ' Defense'."\r\n";//';
**/
echo "<tr>";
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:31,代码来源:Inventory.php
示例20: list_db
<?php
if (isset($race) && $race == true) {
$Race_list = list_db('list_races');
$token = generer_token("Register-step-race");
if (!empty($Race_list)) {
foreach ($Race_list as $Race) {
extract(stripslashes_r($Race));
echo '<h2>' . $Race_Name . '</h2>';
echo '<p>' . nl2br($Race_Description) . '</p>';
echo '<form method="POST" action="' . get_link('Race', 'Register') . '">';
echo "<input type='hidden' name='Race_ID' value='{$Race_ID}' />";
echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />";
echo '<input type="hidden" name="token" value="' . $token . '"/>';
echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.race") . '"/>' . LanguageValidation::eMsg("btn.register.race");
echo '</form>';
}
echo '<p>ATTENTION, ce choix est irréversible, choisissez donc bien</p>';
} else {
echo '<form method="POST" action="' . get_link('Race', 'Register') . '">';
echo "<input type='hidden' name='Race_ID' value='0' />";
echo "<input type='hidden' name='Account_ID' value='" . $user_record['Account_ID'] . "' />";
echo '<input type="hidden" name="token" value="' . $token . '"/>';
echo '<input type="submit" name="Race" value="' . LanguageValidation::nMsg("btn.register.pass") . '"/>' . LanguageValidation::eMsg("btn.register.pass");
echo '</form>';
}
}
开发者ID:galadie,项目名称:Caranille-RPG,代码行数:27,代码来源:Race.php
注:本文中的stripslashes_r函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论