本文整理汇总了PHP中request_confirm函数的典型用法代码示例。如果您正苦于以下问题:PHP request_confirm函数的具体用法?PHP request_confirm怎么用?PHP request_confirm使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了request_confirm函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_formulaire_Level
function get_formulaire_Level($level = array())
{
?>
<form method="POST" action="<?php
echo get_link("Levels", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Levels', $level);
?>
<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
}
示例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
}
示例3: login
function login()
{
global $secteur, $page, $_path, $newsAmodifier, $array_adm;
if ($page == 'login') {
//Si l'id passé en paramètre dans l'url n'existe pas, c'est que le visiteur a été amenené ici par hasard
if (!request_confirm('admin-login')) {
//Donc on redirige vers index.php
header('location:' . getenv('HTTP_REFERER'));
//Puis on stoppe l'exécution du script
exit;
}
debug_log('page login');
// si on s'identifie
if (request_confirm('admin-login')) {
debug_log('form login');
$login = request_post('pseudo');
$pass = request_post('password');
if (array_key_exists($login, $array_adm)) {
debug_log('exists login' . "test({$pass} == " . $array_adm[$login] . ")");
if ($pass == $array_adm[$login]) {
debug_log('pass login');
$_SESSION['admin'] = true;
$_SESSION['user'] = $login;
} else {
$_SESSION['error'] = "Mot de passe erroné.";
}
} else {
$_SESSION['error'] = "Cet accès n'existe pas.";
}
header('location:' . getenv('HTTP_REFERER'));
}
}
}
示例4: formulaire
function formulaire($r = array())
{
set_values_db('Caranille_Items', 'Item_Type', array('Parchment'));
?>
<form method="POST" action="<?php
echo get_link("Parchments", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Items', $r);
?>
<br/>
<?php
echo line_db('Caranille_Craftings', 'Crafting_Fragment_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
}
?>
</form>
<?php
if (isset($r["Item_ID"])) {
$loots = list_db('foreign_list', array('table' => 'Caranille_Craftings', 'ID' => 'Crafting_Item_ID', 'value' => $r["Item_ID"]));
list_html($loots, "Caranille_Craftings", "Crafts", array('Crafting_Fragment_ID'), true, false);
}
}
示例5: formulaire
function formulaire($r = array())
{
global $array_Fragments_type;
set_values_db('Caranille_Fragments', 'Fragment_Type', $array_Fragments_type);
?>
<form method="POST" action="<?php
echo get_link("Fragments", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Fragments', $r);
?>
<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
}
示例6: 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
}
示例7: get_formulaire_Building
function get_formulaire_Building($Building = array())
{
?>
<form method="POST" action="<?php
echo get_link('Buildings', 'Admin');
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
du Batiment</h2>
<?php
echo forumulaire_db('Caranille_Building', $Building);
?>
<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
}
示例8: formulaire
function formulaire($Page = array())
{
?>
<form method="POST" action="<?php
echo get_link("Pages", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
de Page</h2>
<?php
echo forumulaire_db('Caranille_Pages', $Page);
?>
<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
}
示例9: 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
}
示例10: news_comment_record
function news_comment_record($News)
{
if (verif_connect(true)) {
if (verifier_token(600, get_link('Comments', 'Public'), 'Comment-' . $News['News_ID'])) {
if (request_confirm('End_Add')) {
if (request_confirm('Comment_Message')) {
insert_db('Caranille_Comments', addslashes_r($_POST));
}
}
}
}
}
示例11: news_comment_record
function news_comment_record($News)
{
if (verif_connect(true)) {
if (verifier_token(600, get_link('Comments', 'Public'), 'Comment-' . $News['News_ID'])) {
if (request_confirm('End_Add')) {
if (request_confirm('Comment_Message')) {
echo "vous ne devriez pas pouvoir faire ça...";
}
}
}
}
}
示例12: get_formulaire
function get_formulaire($news = array())
{
//extract(stripslashes_r($news));
echo '<form method="POST" action="' . get_link("Comments", "Admin") . '">';
echo forumulaire_db('Caranille_Comments', $news);
echo '<input type="submit" name="Back" value="Annuler" />';
echo '<input type="submit" name="End_Edit" value="Terminer"/>';
if (request_confirm('Second_Edit')) {
echo '<input type="submit" name="Second_Delete" value="Supprimer"/>';
}
echo '</form>';
}
示例13: 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
}
示例14: get_formulaire
function get_formulaire($equipment = array())
{
global $array_accessory_type;
//extract(stripslashes_r($equipment));
set_values_db('Caranille_Items', 'Item_Type', $array_accessory_type);
?>
<form method="POST" action="<?php
echo get_link("Equipment", "Admin");
?>
">
<h2><?php
echo request_confirm('Add') ? 'Ajout' : 'Modification';
?>
d'Equipement</h2>
<?php
echo forumulaire_db('Caranille_Items', $equipment);
?>
<br/>
<?php
echo line_db('Caranille_Craftings', 'Crafting_Fragment_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
}
?>
</form>
<?php
if (isset($r["Item_ID"])) {
$loots = list_db('foreign_list', array('table' => 'Caranille_Craftings', 'ID' => 'Crafting_Item_ID', 'value' => $r["Item_ID"]));
list_html($loots, "Caranille_Craftings", "Crafts", array('Crafting_Fragment_ID'), true, false);
}
}
示例15: get_formulaire
function get_formulaire($monster = array())
{
?>
<form method="POST" action="<?php
echo get_link("Monsters", "Admin");
?>
">
<?php
echo forumulaire_db('Caranille_Monsters', $monster);
?>
<br/>
<?php
echo line_db('Caranille_Monster_Loot', 'Loot_Item_ID');
echo line_db('Caranille_Monster_Loot', 'Loot_Rate');
?>
<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
if (isset($monster["Monster_ID"])) {
$loots = list_db('foreign_list', array('table' => 'Caranille_Monster_Loot', 'ID' => 'Loot_Monster_ID', 'value' => $monster["Monster_ID"]));
list_html($loots, "Caranille_Monster_Loot", "Loots", array('Loot_Item_ID', 'Loot_Rate'), true, false);
?>
<?php
}
}