Menu principal

Recherche

Publicité





« 1 (2) 3 4 5 ... 42 »


Charset iso-8859-1, iso-8859-15, utf-8, le problème du Charset
#11
Webmestre
Benutzerinformationen
(Ce document est une copie extraite de ce site, je remercie leurs auteurs)
Si il y a bien un problème qui peut virer au casse-tête chinois,
c’est bien celui de l’encodage de caractère dans un fichier, une page
web ou tout document que vous diffusez et qui se révèle truffé
d’erreurs d’encodage.

Arrête ton Charset en dur…

Comment diagnostiquer le problème ? Un symptôme simple, vous voyez

apparaître des signes cabalistiques dans vos pages html par exemple. Je
vous livre in extenso le diagnostic de
http://electron-libre.fassnet.net/utf8.php qui détaille brièvement les
moyens de déterminer le bourbier numérique dans lequel vous venez de
sauter à touches jointes !

Il donne les symptômes et les soins simples de première urgence.

Reconnaissance rapide des problèmes d’affichage UTF-8 ISO


Cas N°1

Si la page affiche des caractères de ce type : “é”, “î”, “Ô, …

=> Les données ont été enregistrées au format UTF-8, et le navigateur les affiche en pensant avoir affaire à de l’ISO.

Cas N°2

Si la page affiche des caractères de ce type : “�”

=> Les données ont été enregistrées au format ISO, et le navigateur les affiche en pensant avoir affaire à de l’UTF-8.

Si les données sont codées en dur dans la page, voir l’encodage de

l’éditeur de texte, le header apache et la balise meta “charset”.

Si les données proviennent de la base, vérifier le format de stockage
et les méthodes de lecture et d’insertion (SET NAMES et charset).

Si les données proviennent de l’extérieur (web services, rss, …),
penser à convertir les chaînes de caractère (utf8_encode-decode et
fonctions du module iconv).

http://electron-libre.fassnet.net/utf8.php

Le mal est déjà fait… Que puis-je faire ?

Il arrive notamment dans le cas d’une BDD que la corruption ait eu

lieu. Vous vous retrouvez par exemple avec une BDD codé à l’origine en
utf-8 mais dont l’unique sauvegarde que vous possédez est un “dump” (un
fichier .sql) fait et ouvert sur une machine en iso-8859-1, un windows
par exemple.


Le cas de la BDD corrompue

Si vous popularisez à nouveau ce “dump” (.sql) dans votre BDD et que

vos pages continuent de se charger en UTF-8, vous êtes alors dans le Cas N°2 décrit plus haut.

Si vous décidez de cautériser le problème directement dans le client

MySQL via le client SSH, dans putty par exemple, n’oubliez de changer
les spécifications de “translation” en sélectionnant UTF-8 afin de
taper vos requêtes SQl en utf-8. Vous pourrez alors passé allègrement
des requêtes, voir même des copier-coller, depuis votre poste ISO sur
le serveur en UTF-8.

Changer les propriétés de traduction dans Putty


Pour télécharger Putty, vous pouvez vous rendre à cette adresse

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.


Le cas de XML pour flash


Un cas qui est rarement évoqué, c’est le xml chargé dans flash, bien qu’il s’agisse rigoureusement de problèmes similaires.


Pour éviter parfois des problèmes à répétition, vous pouvez vous
rabattre sur l’encodage hexadécimal des caractères accentués… ainsi
donc de créer des xml pour vos applications flash sans erreur…



ç s'écrit ç
è s'écrit è
é s'écrit é
ê s'écrit ê


Le plus sur quelque soit le “charset” que vous définissez c’est de
remplacer les caractères accentués par leurs équivalents hexadécimaux.


	 version="1.0" encoding="UTF-8"?>
>
id="one">Cette été je pars pour apprendre le français à Paris>
id="two">Les accents ont été mon pire cauchemar>
>

	 version="1.0" encoding="UTF-8"?>
>
id="one">Cette été je pars pour apprendre le français å Paris>
id="two">Les accents ont été mon pire cauchemar>
>
Il existe des outils de traduction en ligne qui vous donneront les équivalents.


http://rishida.net/scripts/uniview/conversion.php


Enfin, vous pouvez toujours vous référer à la sainte bible du charset.

http://www.w3.org/International/O-charset.fr.php


Le doctype


Disons que pour résumer, le dilemme se pose dans le choix du doctype entre “transitional” et “strict”.
Il est certain que si vous choisissez de publier avec un doctype
strict, l’obtention de la validation par le validator W3C va se montre
plus délicat.

Néanmoins, cela n’est pas impossible que vous puissiez valider ainsi
vous pourrez affubler vos pages du logo qui atteste de la validité de
vos pages.


La déclaration d’un doctype n’est requise que pour la validation.


Le doctype Transitional



	
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Le doctype strict



	
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


Les icônes W3C









Si vous souhaitez faire de l’évangélisation, vous pouvez aussi toujours ajouter ce petit logo…



Le “W3C Markup Validation Service”

http://validator.w3.org/


L’en-tête à l’emploi


C’est la balise meta qui va indiquer au navigateur comment interprèter un document web.


L’en-tête UTF-8





L’en-tête iso-8859-1





Le tableau des équivalences


Le tableau de toutes les équivalences pour le chartset ISO 8859-1 Character Set ( Latin - 1) - Western / West European


http://www.tableascii.com/iso88591.htm


Pour aller plus loin


Les règles simples pour passer son site de iso à utf-8



Un récapitulatif bien fait sur la déclaration et les en-têtes


http://www.pompage.net/pompe/doctypecontenttype/

Posté le : 21/02 19:07
Outils MP Email PDF Bookmark Imprimer Rapport Haut


Birthday avec capchat intégré
#12
Webmestre
Benutzerinformationen
Cette version à été créer avec un sécurité intégré, vous trouverez ici deux version, l'une doit être plus récente que l'autre

Attacher un fichier:


Visible uniquement pour les utilisateurs enregistrés
Visible uniquement pour les utilisateurs enregistrés

Posté le : 21/02 10:06
Outils MP Email PDF Bookmark Imprimer Rapport Haut


TellAFriend version 1.03
#13
Webmestre
Benutzerinformationen
fichier index.php


if( ! empty($_POST['submit']) ) { // Ligne 46
     // Hack SecurityImage by DuGris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header'(script removed)history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
        exit();
    }
    
// Hack SecurityImage by DuGris

... 
... 
... 
}
$contact_form->addElement($subject_text); // Ligne 189

if( $xoopsModuleConfig['can_bodyedit'] ) {
    
$contact_form->addElement($comment_textareatrue);
} else {
    
$contact_form->addElement($body_label);
    
$contact_form->addElement($body_hidden);
}

// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED')  ) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) {
        
$contact_form->addElement($security_imagetrue);
    }
}
// Hack SecurityImage by DuGris
$contact_form->addElement($ticket_hidden);
$contact_form->addElement($submit_button);
$contact_form->assign($xoopsTpl);

Posté le : 21/02 09:59
Outils MP Email PDF Bookmark Imprimer Rapport Haut


Wordbook 1.16
#14
Webmestre
Benutzerinformationen
include/storyform.inc.php
Après

....
....
if ( 
is_object$xoopsUser ) ) {

    
$uid $xoopsUser->getVar('uid');
    
$sform -> addElement( new XoopsFormHidden'uid'$uid ) );
    
$notify_checkbox = new XoopsFormCheckBox'''notifypub'$notifypub );
    
$notify_checkbox -> addOption1_MD_WB_NOTIFY );
    
$sform -> addElement$notify_checkbox ); 
// Ligne 48

et avant ce code

$button_tray 
= new XoopsFormElementTray'''' ); $hidden = new XoopsFormHidden'op''post' ); $button_tray -> addElement$hidden ); $button_tray -> addElement( new XoopsFormButton'''post'_MD_WB_CREATE'submit' ) );

Mettre ceci:

// Hack SecurityImage by DuGris
if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) { 
        
$sform->addElement($security_imagetrue); 
    } 
}
// Hack SecurityImage by DuGris


submit.php


...
...
switch ( 
$op ) {
      case 
'post':    // Ligne 60



    // Hack SecurityImage by DuGris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
     if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
          
redirect_header('(script removed)history.go(-1)' 2_SECURITYIMAGE_ERROR ) ;
        exit();
    }
    
// Hack SecurityImage by DuGris
    
... 
    ...


=================

eparcyl92 a écrit:
Merci cx1max...
Wordbook 1.16 Suite... et fin

Le père Dugris à fait ceci pour SOUMETTRE UNE NOUVELLE ENTREE

Le père Eparcyl92 vous propose maintenant de sécurityimagiser le "DEMANDER UNE DEFINITION."

Le fichier wordbook/include/requestform.php


$rform 
-> addElement$notify_checkbox );
    } 
<
strong><span style="color: #CC0000;">// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$rform->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris </span></strong>
$submit_button = new XoopsFormButton("""submit"_MD_WB_SUBMIT"submit");


Et enfin, le fichier wordbook/request.php


$adminMessage 
.= _MD_WB_NOTIFYONPUB;
            }
<
strong><span style="color: #CC0000;">// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$rform->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris </span></strong>
            
$adminMessage .= "n".$HTTP_SERVER_VARS['HTTP_USER_AGENT']."n";

Et plus bas

ATTENTION: ENLEVER LES ESPACES DE (j a v a s c r i p t :)



if ($xoopsModuleConfig['mailtoadmin'] == 1)
        {
<
strong><span style="color: #CC0000;">// Hack SecurityImage by Dugris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
    
redirect_header'j a v a s c r i  p t :history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
        exit();
    }
// Hack SecurityImage by Dugris </span></strong> 
        
$messagesent .= sprintf(_MD_WB_SENTCONFIRMMAIL,$address);


Bonne journée à toutes et tous

Posté le : 21/02 09:53
Outils MP Email PDF Bookmark Imprimer Rapport Haut


News 1.61
#15
Webmestre
Benutzerinformationen
cx1max a écrit:
Hello, voici un hack pour le module News de InstantZero.
Il y a peut être des aberrations dans mon hack ?

News 1.61
SecurityImages pour Proposer un article

Fichier news/include/storyform.inc.php
Vers la ligne 186

Après

$smiley_checkbox 
= new XoopsFormCheckBox('''nosmiley'$nosmiley);
$smiley_checkbox->addOption(1_DISABLESMILEY);
$option_tray->addElement($smiley_checkbox);
$sform->addElement($option_tray);
//TODO: Approve checkbox + "Move to top" if editing + Edit indicator


Avant

//Submit buttons
$button_tray = new XoopsFormElementTray('' ,'');


Insérer

// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED') ) {
    
$captcha true;
    if (
is_object($xoopsUser) && $xoopsUser->isAdmin($com_modid)) {
        
$captcha false;
    }
    if (
$captcha) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$sform->addElement($security_imagetrue);
        }
    }
}
// Hack SecurityImage by DuGris




Ensuite, fichier news/submit.php
Vers la ligne 291
Après

include_once XOOPS_ROOT_PATH.'/modules/news/include/storyform.inc.php';
        break;

    case 
'post':


Avant

$nohtml_db 
= isset($_POST['nohtml']) ? $_POST['nohtml'] : 1;
        if (
is_object($xoopsUser) ) {
            
$uid $xoopsUser->getVar('uid');


Insérer

// Hack SecurityImage by DuGris
        
include_once(XOOPS_ROOT_PATH ."/class/xoopsformloader.php");
        
$captcha true;
        if (
is_object($xoopsUser) && $xoopsUser->isAdmin($com_modid)) {
            
$captcha false;
        }
        if (
$captcha) {
            if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
                
redirect_header'j a v a s c r i p t:history.go(-1)' 1_SECURITYIMAGE_ERROR ) ;
            }
        }
        
// Hack SecurityImage by DuGris

Posté le : 21/02 09:46
Outils MP Email PDF Bookmark Imprimer Rapport Haut


NEWBB Version 3.08
#16
Webmestre
Benutzerinformationen
eparcyl92 a écrit:
NEWBB Version 3.08
newbb/include/forumform.inc.php


$button_tray
->addElement($preview_button);

// Hack SecurityImage by DuGris
    
include_once XOOPS_ROOT_PATH."/class/xoopsform/securityimage.php";
    if ( 
defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$forum_form->addElement($security_imagetrue);
        }
    }
// Hack SecurityImage by DuGris

$button_tray->addElement($submit_button);


post.php
Attention: enlever les espaces du mot "j a v a s c r i p t"


include XOOPS_ROOT_PATH."/header.php";

// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
    
redirect_header'j a v a s c r i p t:history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
    exit();
}
// Hack SecurityImage by DuGris

if ( !empty($_POST['contents_submit']) ) {

viewtopic.php


$forum_form
->addElement(new XoopsFormHidden('notify', -1));

// Hack SecurityImage by DuGris
    
if ( defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$forum_form->addElement($security_imagetrue);
        }
    }
    
// Hack SecurityImage by DuGris

    
$forum_form->addElement(new XoopsFormHidden('contents_submit'1));

Pour la partie "Repport", c'est comme pour la 1.16

Que la force soit avec vous....

Posté le : 21/02 09:45

Edité par didgon sur 02/09/2010 03:25:28
Motif: Rectif
Outils MP Email PDF Bookmark Imprimer Rapport Haut


Mydownloads 1.5
#17
Webmestre
Benutzerinformationen
eparcyl92 a écrit:
Bonsoir à toutes et tous
Pour Mydownloads 1.5


tout est dans le submit.php:

if (!empty($_POST['submit'])) {
<
span style="color: #CC0000;">// Hack SecurityImage by Dugris
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
     
redirect_header'(script removed)history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
     exit();
}
// Hack SecurityImage by Dugris</span>
    
$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;


Ensuite:


$xoopsTpl
->assign('lang_description'_MD_DESCRIPTION);
    
    <
span style="color: #CC0000;">// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) { 
    
$sform->addElement($security_imagetrue); 
    } 
}
// Hack SecurityImage by Dugris</span>

    
$xoopsTpl->assign('lang_submit'_SUBMIT);


et enfin:


$sform
->addElement($shot_tray,false);
        
// Submit button
         
<span style="color: #CC0000;">// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) { 
        
$sform->addElement($security_imagetrue); 
    } 
}
// Hack SecurityImage by Dugris</span>
        
$button_tray = new XoopsFormElementTray('' ,'');


Pour bien faire, il faudrait aussi sécuriser la section "Rapport de fichier brisé", surement le fichier brokenfile.php et/ou mydownloads_brokenfile.html

Bon samedi soir

Posté le : 21/02 09:44
Outils MP Email PDF Bookmark Imprimer Rapport Haut


JOBS 3.0 RC3
#18
Webmestre
Benutzerinformationen
eparcyl92 a écrit:
JOBS 3.0 RC3
Bonjour, je commence ...

Le fichier addlisting.php

if (!empty($_POST['submit']) ) {
<
strong><span style="color: #FF0000;">
    
// Hack SecurityImage by DuGris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header'(script removed)history.go(-1)' 3_SECURITYIMAGE_ERROR ) ;
        exit();
    }
    
// Hack SecurityImage by DuGris </span></strong>
    
$jobsdays=$xoopsModuleConfig['jobs_days'];


et

$form
->addElement(new XoopsFormHidden("valid""No"), false);
    }
<
strong><span style="color: #FF0000;">
// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$form->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris </span></strong>  
        
$form->addElement(new XoopsFormButton('''submit'_JOBS_SUBMIT'submit'));


C'est pas fini.... je cherche la suite

Posté le : 21/02 09:32
Outils MP Email PDF Bookmark Imprimer Rapport Haut


Addresses 1.7 de Shine
#19
Webmestre
Benutzerinformationen
Guitariste a écrit:
Security image Pour le Module Addresses 1.7 de Shine

- Après Avoir installer La Class Sécurity image selon ce tuto
- Editez /templates/addresses_submit.htm en ajoutant ce qui est en rouge :

Citation :

<input type="checkbox" name="notify" value="1"><{$lang_notify}></input>
<{/if}>
</td>
</tr>
<!-- Hack SecurityImage by Dugris&Kraven30-->
<tr>
<td class="head"><{$lang_securityimage}></td>
<td class="even"><{$input_securityimage}></td>
</tr>
<!-- Hack SecurityImage by Dugris&Kraven30-->

</table>
<br />
<div style="text-align: center;"><input type="submit" name="submit" class="button" value="<{$lang_submit}>" />&nbsp;<input type="button" value="<{$lang_cancel}>" onclick="(script removed)history.go(-1)" /></div>


- Puis éditez le fichier submit.php en ajoutant ce qui est en rouge :
Citation :


//End Catz edit

if (!empty($HTTP_POST_VARS['submit'])) {

//Hack SecurityImage by Dugris&Kraven30
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'submit.php' , 1, _SECURITYIMAGE_ERROR ) ;
}
//Hack SecurityImage by Dugris&Kraven30

$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;


- Puis toujours sur submit.php ajoutez ces lignes en rouge :

Citation :

$xoopsOption['template_main'] = 'pagesjaunes_submit.html';
include XOOPS_ROOT_PATH."/header.php";
ob_start();
xoopsCodeTarea("message",37,8);
$xoopsTpl->assign('xoops_codes', ob_get_contents());
ob_end_clean();
//Hack SecurityImage by Dugris&Kraven30
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') ) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ( $security_image->render() ) {
$xoopsTpl->assign('lang_securityimage', _SECURITYIMAGE_CODE);
$xoopsTpl->assign('input_securityimage' , $security_image->render() );
}
}
//Hack SecurityImage by Dugris&Kraven30

ob_start();
xoopsSmilies("message");
$xoopsTpl->assign('xoops_smilies', ob_get_contents());


Cia

======================

eparcyl92 a écrit:
Bonjour,
Pour pousser le bouchon plus loin encore... toujours pour ADDRESSE.

modlink.php

if (!empty($HTTP_POST_VARS['submit'])){
//Hack SecurityImage by Dugris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header'index.php' 1_SECURITYIMAGE_ERROR ) ;
    }
//Hack SecurityImage by Dugris
    
$eh = new ErrorHandler//ErrorHandler object

et puis

$xoopsTpl
->assign('lang_description'_MD_DESCRIPTIONC);
    
//Hack SecurityImage by Dugris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if ( 
$security_image->render() ) {
            
$xoopsTpl->assign('lang_securityimage'_SECURITYIMAGE_CODE);
            
$xoopsTpl->assign('input_securityimage' $security_image->render() );
        }
    }
    
//Hack SecurityImage by Dugris 

    
$xoopsTpl->assign('lang_sendrequest'_MD_SENDREQUEST);


le fichier addresses_modlink.html

<textarea name=description cols=45 rows=7><{$link.description}></textarea>
      </
td>
    </
tr>
         <!-- 
Hack SecurityImage by Dugris-->
          <
tr>
            <
td class="head"><{$lang_securityimage}></td>
            <
td class="even"><{$input_securityimage}></td>
          </
tr>
     <!-- 
Hack SecurityImage by Dugris-->
    <
tr>


Bonne journée

Posté le : 21/02 09:22

Edité par eparcyl92 sur 24/02/2010 19:50:24
Motif:
Outils MP Email PDF Bookmark Imprimer Rapport Haut


Wfdownloads version 3.2
#20
Webmestre
Benutzerinformationen
C'est presque comme la 3.0

Dans Submit.php, ce n'est plus la ligne 39 mais vers la ligne 50

Dans class/download.php, ce n'est plus la ligne 350 mais vers la ligne 417

======================

eparcyl92 a écrit:

SecurityImage dans le "MIRROR" du module Wfdownloads V.3 (suite)


Bonjour,
Après avoir suivi les instructions de Dugris SITE DE MONSEIGNEUR DUGRIS

Vous faites ceci dans le fichier modules/wfdownloads/mirror.php
(vers la ligne 132)

if (!empty($_POST['submit']))
        {
<
strong><span style="color: #CC0000;">
    
// Hack SecurityImage by DuGris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header'(script removed)history.go(-1)' 3_SECURITYIMAGE_ERROR ) ;
        exit();
    }
    
// Hack SecurityImage by DuGris </span></strong>
    
$uid = !empty($xoopsUser) ? intval($xoopsUser->getVar('uid')) : 0;


Et pour finir


$button_tray 
= new XoopsFormElementTray('''');
<
strong><span style="color: #CC0000;">
// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$sform->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris   </span></strong>
        
$button_tray->addElement(new XoopsFormButton('''submit'_SUBMIT'submit'));


Je ne sais pas si question securité, c'est utile... mais bon... dès l'instant qu'il y a un formulaire à remplir... c'est plus fort que moi... je cherche à la securiser

Bon dimanche

ASTUCES PLUS

VOUS FAITES EXACTEMENT LA MEME CHOSE AVEC LE FICHIER REVIEW.PHP et Proposez une révision sera sécuritiymagisé

Posté le : 21/02 09:18
Outils MP Email PDF Bookmark Imprimer Rapport Haut



« 1 (2) 3 4 5 ... 42 »




Commentaires récents



 

C.N.I.L 1113850 | Communauty the Nullos ami de Xoops CMS
XOOPS Code hosted on SourceForge   PHP   Powered by MySQL   Powered by Smarty   OSI certified  GPL  All content on this site is subject to the Creative Commons License
  Design by Cyberianet - Katisuhara