当前位置: 首页>>代码示例>>PHP>>正文


PHP stripslashes_r函数代码示例

本文整理汇总了PHP中stripslashes_r函数的典型用法代码示例。如果您正苦于以下问题:PHP stripslashes_r函数的具体用法?PHP stripslashes_r怎么用?PHP stripslashes_r使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了stripslashes_r函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 = "Bernard@monsite.fr"; // 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 <ns@ampex.ru>
 *
 * 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 <ns@ampex.ru>
 *
 * 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 <ns@ampex.ru>
 *
 * 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


注:本文中的stripslashes_r函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。