PHPIndex

This page lists files in the current directory. You can view content, get download/execute commands for Wget, Curl, or PowerShell, or filter the list using wildcards (e.g., `*.sh`).

fonts
images
cryptoseltexte.cfg.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptoseltexte.cfg.php'
View Content
<?php
/*******************************************************************************
 *   Configuration du captcha sélection texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : initial release
 ******************************************************************************/
include CONFIG;

$cryptheight = 32;          // Hauteur du cryptogramme (en pixels)
$bgC         = '#FFFFFF';   // Couleur du fond au format héxadécimal
$bdC         = '#000000';   // Couleur du cadre au format héxadécimal
$bdS         = '#C9C9C9';   // Couleur du cadre au format héxadécimal
$etC         = 1;			// Epaisseur du trait du cadre
$corners     = 4;			// Rayon des coins arrondis

// ----------------------------
// Configuration des caractères
// ----------------------------

// Polices de caractères

$tfont = 'Arial';

// Caracteres autorisés
// Attention, certaines polices ne distinguent pas (ou difficilement) les majuscules 
// et les minuscules. Certains caractères sont faciles à confondre, il est donc
// conseillé de bien choisir les caractères utilisés.

$charel = 'ABCDEFGHKLMNPRTWXYZ234569abcdefghkmnprtwxyz';       // Caractères autorisés

$crypteasy = false;       // Création de cryptogrammes "faciles à lire" (true/false)
                          // composés alternativement de consonnes et de voyelles.

$charelc = 'BCDFGHKLMNPRTVWXZbcdefghkmnprtvwxz';   // Consonnes utilisées si $crypteasy = true
$charelv = 'AEOUYaeiouy';                          // Voyelles utilisées si $crypteasy = true

$difuplow = $serviz[115] == 'on' ? true : false;   // Différencie les Maj/Min lors de la saisie du code (true, false)

$charnbmin = 8;          // Nb minimum de caracteres dans le cryptogramme
$charnbmax = 10;         // Nb maximum de caracteres dans le cryptogramme

$charsize  = 16;        // Taille des caractères

// --------------------------------
// Configuration système & sécurité
// --------------------------------

$cryptsecure = "";    // Méthode de crytpage utilisée: "md5", "sha1" ou "" (aucune)
                         // "sha1" seulement si PHP>=4.2.0
                         // Si aucune méthode n'est indiquée, le code du cyptogramme est stocké 
                         // en clair dans la session.
                   
$cryptoneuse = false;  // Si vous souhaitez que la page de verification ne valide qu'une seule 
                       // fois la saisie en cas de rechargement de la page indiquer "true".
                       // Sinon, le rechargement de la page confirmera toujours la saisie. 
?>
cryptoseltexte.fct.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptoseltexte.fct.php'
View Content
<?php
/*******************************************************************************
 *   Fonctions captcha sélection texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2022 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : : correction crypt
 ******************************************************************************/

function dsp_crypt($cfg = 0, $reload = 1, $crypt_nb = 1, $crypt_num = 0, $lbl = '', $dul = '') {
    // Affiche le cryptogramme
    include 'cryptoseltexte.cfg.php';
	if (isset($_COOKIE['GuppYCrypt']))
	{
		$acookie = explode('||', $_COOKIE['GuppYCrypt']);
		$style  = 'width:'.(strlen(gy_decrypt(CRYPT_KEY, @$acookie[2])) * 16).'px; height:'.$cryptheight.'px; border:0;';
		$out = '
		<div id="cryptogram'.$crypt_num.'" class="m-auto cryptsel" style="'.$style.'">';
		$style = 'width:14px; padding-left:1px; color:inherit; background-color:inherit;line-height:14px;';
		for ($i = 0; $i < strlen(gy_decrypt(CRYPT_KEY, @$acookie[2])); $i++) {
			$out .= '
		  <div class="text-center float-left font-weight-bold" style="'.($i > 0 ? 'border-left:1px solid '.$bdS.'; ' : '').$style.'">
			'.substr(gy_decrypt(CRYPT_KEY, @$acookie[2]), $i, 1).'
			<span style="font-size:8px;">'.($i + 1).'</span>
		  </div>';
		}
		$out .= '
		</div>
		<div class="text-center m-auto cryptpos">'.sprintf($lbl, @$acookie[3], $dul).'
		  <br /><span style="font-size:14px;"><b>'.gy_decrypt(CRYPT_KEY, @$acookie[4]).'</b></span>
		</div>'."\n";
	} 
	else $out = '';
    return $out;
}

function chk_crypt($code) {
    // Vérifie si le code est correct
    include 'cryptoseltexte.cfg.php';
    $code = addslashes($code);
    $code = str_replace(' ', '', $code);  // supprime les espaces saisis par erreur.
    $code = ($difuplow ? $code : strtoupper($code));
    switch (strtoupper($cryptsecure)) {
        case "MD5"  : $code = md5($code); break;
        case "SHA1" : $code = sha1($code); break;
    }
    $acookie = explode('||', $_COOKIE['GuppYCrypt']);
    return gy_decrypt(CRYPT_KEY, @$acookie[0]) == $code ? true : false;
}
?>
cryptoseltexte.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptoseltexte.php'
View Content
<?php
/*******************************************************************************
 *   Captcha sélection sélection texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * vv6.00.12 (MAy 28, 2023) : : initial release
 ******************************************************************************/

error_reporting(E_ALL ^ E_NOTICE);

include CRYPTREP.'cryptoseltexte2.php';
?>
cryptoseltexte2.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptoseltexte2.php'
View Content
<?php
/*******************************************************************************
 *   Construction du captcha sélection texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : Modify srand
 ******************************************************************************/

error_reporting(E_ALL ^ E_NOTICE);
//srand((int)microtime()*1000000);
srand((double)microtime(true)*1000000);
include 'cryptoseltexte.cfg.php';

$word   = '';
$pair   = rand(0,1);
$charnb = rand($charnbmin, $charnbmax);
for ($i = 1; $i <= $charnb; $i++) {
    if ($crypteasy) $tword = (!$pair ? substr($charelc, rand(0, strlen($charelc)-1), 1) : substr($charelv, rand(0, strlen($charelv)-1), 1));
    else $tword = substr($charel, rand(0, strlen($charel)-1), 1);

    $pair = !$pair;
    $word .= $tword;
}

// Conversion du cryptogramme en Majuscule si insensibilité à la casse
$word = ($difuplow ? $word : strtoupper($word));

// Retourne 4 informations dans la session:
// - Le code du cryptogramme à afficher
// - Le nombre de digits à saisir
// - Les positions des digits à saisir
// - Le code du cryptogramme (crypté ou pas)
$cryptnb = (int)rand(4,5);
$pos     = '';
for ($i = 0; $i < $cryptnb; $i++) $pos .= rand(1, strlen($word)).'-';
$cryptpos = substr($pos, 0, -1);
$tpos = explode('-', $cryptpos);
$tword = '';
foreach ($tpos as $p) $tword .= substr($word, $p - 1, 1);
switch (strtoupper($cryptsecure)) {
    case "MD5"  : $w0 = md5($tword); break;
    case "SHA1" : $w0 = sha1($tword); break;
    default     : $w0 = $tword; break;
}
setcookie('GuppYCrypt', gy_crypt(CRYPT_KEY, $w0).'||'.gy_crypt(CRYPT_KEY, $tword).'||'.gy_crypt(CRYPT_KEY, $word).'||'.$cryptnb.'||'.gy_crypt(CRYPT_KEY, $cryptpos));

unset($word, $tword, $w0);
?>
cryptotexte.cfg.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptotexte.cfg.php'
View Content
<?php
/*******************************************************************************
 *   Configuration du captcha texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : initial release
 ******************************************************************************/
include CONFIG;

$cryptwidth  = 90;         	// Largeur du cryptogramme (en pixels)
$cryptheight = 'auto';      // Hauteur du cryptogramme (auto ou pixels)
$bgC         = '#FFFFFF';   // Couleur du fond au format héxadécimal
$bdC         = '#000000';   // Couleur du cadre au format héxadécimal
$etC         = 2;			// Epaisseur du trait du cadre
$corners     = 4;			// Rayon des coins arrondis

// ----------------------------
// Configuration des caractères
// ----------------------------

// Polices de caractères

$tfont = 'Arial';   

// Caracteres autorisés
// Attention, certaines polices ne distinguent pas (ou difficilement) les majuscules 
// et les minuscules. Certains caractères sont faciles à confondre, il est donc
// conseillé de bien choisir les caractères utilisés.

$charel = 'ABCDEFGHKLMNPRTWXYZ234569abcdefghkmnprtwxyz';       // Caractères autorisés

$crypteasy = false;       // Création de cryptogrammes "faciles à lire" (true/false)
                          // composés alternativement de consonnes et de voyelles.

$charelc = 'BCDFGHKLMNPRTVWXZbcdefghkmnprtvwxz';   // Consonnes utilisées si $crypteasy = true
$charelv = 'AEOUYaeiouy';                          // Voyelles utilisées si $crypteasy = true

$difuplow = $serviz[115] == 'on' ? true : false;   // Différencie les Maj/Min lors de la saisie du code (true, false)

$charnbmin = 4;         // Nb minimum de caracteres dans le cryptogramme
$charnbmax = 6;         // Nb maximum de caracteres dans le cryptogramme

$charsize  = 16;        // Taille des caractères

// --------------------------------
// Configuration système & sécurité
// --------------------------------

$cryptsecure = "";    // Méthode de crytpage utilisée: "md5", "sha1" ou "" (aucune)
                         // "sha1" seulement si PHP>=4.2.0
                         // Si aucune méthode n'est indiquée, le code du cyptogramme est stocké 
                         // en clair dans la session.
                   
$cryptoneuse = false;  // Si vous souhaitez que la page de verification ne valide qu'une seule 
                       // fois la saisie en cas de rechargement de la page indiquer "true".
                       // Sinon, le rechargement de la page confirmera toujours la saisie. 
?>
cryptotexte.fct.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptotexte.fct.php'
View Content
<?php
/*******************************************************************************
 *   Fonctions captcha texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2022 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : correction crypt
 ******************************************************************************/

function dsp_crypt($cfg = 0, $reload = 1, $crypt_nb = 1, $crypt_num = 0) {
    // Affiche le cryptogramme
    include 'cryptotexte.cfg.php';
    $style  = 'width:'.$cryptwidth.'px; height:'.$cryptheight.';';
	if (isset($_COOKIE['GuppYCrypt']))
	{
		$acookie = explode('||', $_COOKIE['GuppYCrypt']);
		$out = '<div id="cryptogram'.$crypt_num.'" class="cryptcode" style="'.$style.'">'.gy_decrypt(CRYPT_KEY, @$acookie[1]).'</div>'."\n";
	}
	else $out = '';
    return $out;
}

function chk_crypt($code) {
    // Vérifie si le code est correct
    include 'cryptotexte.cfg.php';
    $code = addslashes($code);
    $code = str_replace(' ', '', $code);  // supprime les espaces saisis par erreur.
    $code = ($difuplow ? $code : strtoupper($code));
    switch (strtoupper($cryptsecure)) {
        case "MD5"  : $code = md5($code); break;
        case "SHA1" : $code = sha1($code); break;
    }
    $acookie = explode('||', $_COOKIE['GuppYCrypt']);
    return gy_decrypt(CRYPT_KEY, $acookie[0]) == $code ? true : false;
}
?>
cryptotexte.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptotexte.php'
View Content
<?php
/*******************************************************************************
 *   Captcha texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2020 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : initial release
 ******************************************************************************/

error_reporting(E_ALL ^ E_NOTICE);

include CRYPTREP.'cryptotexte2.php';
?>
cryptotexte2.php
wget 'https://sme10.lists2.roe3.org/guppy/inc/crypt/cryptotexte2.php'
View Content
<?php
/*******************************************************************************
 *   Construction du captcha texte
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2023 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = https://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V6 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 *   Latest Changes :
 * v6.00.12 (MAy 28, 2023) : correction script
 ******************************************************************************/

error_reporting(E_ALL ^ E_NOTICE);
//srand((int)microtime()*1000000);
srand((double)microtime(true)*1000000);
include 'cryptotexte.cfg.php';

$word   = '';
$pair   = rand(0,1);
$charnb = rand($charnbmin, $charnbmax);
for ($i = 1; $i <= $charnb; $i++) {
    if ($crypteasy) $tword = (!$pair ? substr($charelc, rand(0, strlen($charelc)-1), 1) : substr($charelv, rand(0, strlen($charelv)-1), 1));
    else $tword = substr($charel, rand(0, strlen($charel)-1), 1);

    $pair = !$pair;
    $word .= $tword;
}

// Conversion du cryptogramme en Majuscule si insensibilité à la casse
$word = ($difuplow ? $word : strtoupper($word));

switch (strtoupper($cryptsecure)) {
    case "MD5"  : $w0 = md5($word); break;
    case "SHA1" : $w0 = sha1($word); break;
    default     : $w0 = $word; break;
}
setcookie('GuppYCrypt', gy_crypt(CRYPT_KEY, $w0).'||'.gy_crypt(CRYPT_KEY, $word));

unset($word, $tword, $w0);
?>