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`).

boxmind.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/boxmind.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2022 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of the GuppY Team
 *******************************************************************************
 * v6.00.08 (March 10, 2022)    : adaptation PHP 8 et 8.1
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'boxmind.inc')) {
    header('location:../index.php');
    die();
}

function fbox_mind($pos, $args) {
    global $lng, $lang, $site, $tconfig, $z2;

    if (is_file(CHEMIN.'plugins/mind/'.$lng.'-mind.inc')) {
        include CHEMIN.'plugins/mind/'.$lng.'-mind.inc';
    } else {
        include CHEMIN.'plugins/mind/en-mind.inc';
    }

    $out = '
<form action="'.CHEMIN.'plugins/mind/mind.php?lng='.$lng.'&amp;guess=0'.$z2.'" method="post" name="formMind">
  <p class="box" style="text-align:center">
    '.$mind[3].'
    <br />
    '.SubmitButton($mind[9]).'
  </p>
</form>';

    if ($pos == BOX_LEFT || $pos == BOX_RIGHT) {
        return '
<div class="'.$pos.$tconfig.'MIND">'.boxthin($pos, $mind[7], $out, ' MIND'.$tconfig).'
</div>';
    } else {
        return boxwide($pos, $mind[7], $out, ' MIND'.$tconfig);
    }
}
?>
en-mind.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/en-mind.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2013 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.00 (December 15, 2019) : initial release
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'en-mind.inc')) {
    header('location:index.php');
    die();
}

$mind[1] = 'Admin - Riddle sample Plugin';
$mind[2] = 'GuppY comes with a few very simple plugins, as examples (for developers) and as embellishment of your GuppY website (for webmasters).';
$mind[3] = 'I can read in your mind. Don\'t you believe it? Try! You will be amazed...';
$mind[4] = 'Accessed by : ';
$mind[5] = 'A lateral Box, to be configured in';
$mind[6] = 'Try it :';
$mind[7] = 'Riddle';
$mind[8] = 'Riddle Box';
$mind[9] = 'Give it a try!';
$mind[10] = 'The machine that reads in your mind';
$mind[11] = '1. Think about a number with two digits (example: 54)';
$mind[12] = '2. Substract each of these two digits (5 and 4) to the chosen number (example: 54 - 5 - 4 = 45)';
$mind[13] = '3. Look for this result in the following table and memorize the corresponding icon';
$mind[14] = '4. <strong>Concentrate very much on this icon.</strong> Then click on the button and the computer will guess it!';
$mind[15] = 'Guess my thoughts';
$mind[16] = 'Here is the icon that I could read in your mind:';
$mind[17] = 'Guess again my thoughts';
$mind[18] = 'Uninstall';
$mind[19] = '<strong>WARNING ! The uninstall is final.</strong><br/>';
?>
eo-mind.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/eo-mind.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   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.00 (December 15, 2020) : initial release
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'eo-mind.inc')) {
    header('location:index.php');
    die();
}

$mind[1] = 'Administrejo - Ekzemplo de kromprogramo : Divenaĵo';
$mind[2] = 'GuppY estas liverita kun kelkaj simplegaj kromprogramoj, kiel ekzemplo (por la programistoj) kaj plibeligo de via Guppy retejo (por la retejestroj).';
$mind[3] = 'Mi povas legi el viaj pensoj. Ĉu vi ne kredas je tio ? Provu ! Vi ege surpriziĝos...';
$mind[4] = "Aliro per:";
$mind[5] = "Flanka skatolo agordenda en";
$mind[6] = "Vidi ĝin funkcii:";
$mind[7] = "Divenaĵo";
$mind[8] = "Divenaĵa Skatolo";
$mind[9] = "Mi provas!";
$mind[10] = 'La maŝino por legi el la pensoj';
$mind[11] = "1. Pensu pri ducifera nombro (ekzemplo: 54)";
$mind[12] = "2. Subtrahi ĉiun el tiuj du ciferoj (5 kaj 4) el la elektita nombro (ekzemplo: 54 - 5 - 4 = 45)";
$mind[13] = "3. Serĉu tiun rezulton en la listo kaj memortenu la respondan simbolon";
$mind[14] = "<strong> Koncentriĝu tre forte pri tiu simbolo. </strong> Tiam alklaku la butonon kaj la maŝino divenos ĝin!";
$mind[15] = "Divenu miajn pensojn";
$mind[16] = "Jen la simbolo, kiun mi legis el viaj pensoj:";
$mind[17] = "Redivenu miajn pensojn";
$mind[18] = 'Malinstali';
$mind[19] = '<strong>ATENTU! La malinstalo estas definitiva.</strong><br/>';

?>
fr-mind.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/fr-mind.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2013 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.00 (December 15, 2019) : initial release
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'fr-mind.inc')) {
    header('location:index.php');
    die();
}

$mind[1] = "Admin - Plugin exemple Devinette";
$mind[2] = "GuppY est fourni avec quelques plugins très simples, à titre d'exemple (pour les développeurs) et d'embellissement de votre site GuppY (pour les webmasters).";
$mind[3] = "Je peux lire dans vos pensées. Vous n'y croyez pas ? Essayez ! Vous n'en reviendrez pas...";
$mind[4] = "Accès par :";
$mind[5] = "Une boîte latérale, à configurer dans";
$mind[6] = "Le voir fonctionner :";
$mind[7] = "Devinette";
$mind[8] = "Boîte Devinette";
$mind[9] = "J'essaye !";
$mind[10] = "La machine à lire dans les pensées";
$mind[11] = "1. Pensez à un nombre à deux chiffres (exemple : 54)";
$mind[12] = "2. Soustrayez chacun de ces deux chiffres (5 et 4) au nombre choisi (exemple : 54 - 5 - 4 = 45)";
$mind[13] = "3. Recherchez ce résultat dans la liste et mémorisez le symbole correspondant";
$mind[14] = "<strong>Concentrez-vous très fort sur ce symbole.</strong> Cliquez ensuite sur le bouton et la machine le devinera !";
$mind[15] = "Devinez mes pensées";
$mind[16] = "Voici le symbole que j'ai lu dans vos pensées :";
$mind[17] = "Redevinez mes pensées";
$mind[18] = 'Désinstaller';
$mind[19] = '<strong>ATTENTION ! La désinstallation est définitive.</strong><br/>';
?>
hu-mind.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/hu-mind.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2013 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.00 (December 15, 2019) : initial release
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'hu-mind.inc')) {
    header('location:index.php');
    die();
}

$mind[1] = "Admin - Gondolatolvasó minta plugin";
$mind[2] = "A GuppY alapcsomag néhány nagyon egyszerû plugint tartalmaz példaként (a fejlesztõknek), és mint díszítõelemet a GuppY webhelyhez (a webmestereknek).";
$mind[3] = "Tudok olvasni a gondolataidban. Nem hiszed? Próbáld ki! Meg fogsz lepõdni...";
$mind[4] = "Elérhetõsége : ";
$mind[5] = "Egy oldaldoboz, amely itt állítható be";
$mind[6] = "Próbáld ki :";
$mind[7] = "Gondolatolvasás";
$mind[8] = "Gondolatolvasás doboz";
$mind[9] = "Próbáld ki!";
$mind[10] = "A gép, amely olvas a gondolataidban";
$mind[11] = "1. Gondolj egy kétjegyû számra (például: 54)";
$mind[12] = "2. Vond ki mindkét számjegyet (5 és 4) a választott számból (példa: 54 - 5 - 4 = 45)";
$mind[13] = "3. Nézd meg az eredményt a következõ táblázatban, és jegyezd meg a hozzá tartozó ikont";
$mind[14] = "4. <B>Koncentrálj erõsen arra az ikonra.</B> Aztán kattints a gombra, és a számítógép ki fogja találni!";
$mind[15] = "Találd ki, mire gondoltam";
$mind[16] = "Ez az az ikon, amit a gondolataidból kiolvastam:";
$mind[17] = "Találd ki ismét a gondolatomat";
?>

it-mind_ok.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/it-mind_ok.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   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.00 (December 15, 2020) : initial release
 * v6.00.00 (December 27, 2020) : revised language by Max Bossi
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'it-mind.inc')) {
    header('location:index.php');
    die();
}

$mind[1] = "Admin - Plugin Esempio Indovinello";
$mind[2] = "GuppY viene fornito con alcuni plugin molto semplici, a titolo di esempio (per sviluppatori) e per abbellire il tuo sito GuppY (per webmaster).";
$mind[3] = "Posso leggerti nel pensiero. Non ci credi? Provalo! Rimarrai sbalordito ...";
$mind[4] = "Accesso da:";
$mind[5] = "Una scatola laterale, da configurare";
$mind[6] = "Guardalo funzionare:";
$mind[7] = "Indovinello";
$mind[8] = "Box Indovinello";
$mind[9] = "Ci sto provando!";
$mind[10] = "La macchina per leggere la mente";
$mind[11] = "1. Pensa a un numero di due cifre (esempio: 54)";
$mind[12] = "2. Sottrai ciascuna di queste due cifre (5 e 4) dal numero scelto (esempio: 54 - 5 - 4 = 45)";
$mind[13] = "3. Trova questo risultato nell'elenco e memorizza il simbolo corrispondente";
$mind[14] = "<strong> Concentrati molto su questo simbolo. </strong> Quindi fai clic sul pulsante e la macchina lo indovinerà!";
$mind[15] = "Indovina i miei pensieri";
$mind[16] = "Ecco il simbolo che ho letto nella tua mente:";
$mind[17] = "Riscopri i miei pensieri";
$mind[18] = 'Disinstalla';
$mind[19] = '<strong>ATTENZIONE! La disinstallazione è definitiva.</strong><br/>';

?>
mind.css
wget 'https://lists2.roe3.org/guppy/plugins/mind/mind.css'
View Content
/*  ---------  CSS for mind plugin  ----------- */

.mind1 { color: red; font-family: Verdana; }
.mind2 { color: blue; font-family: Windings; }
.mind3 {
  font-size: 2em;
  color: blue;
  background-color: yellow;
  font-policy: wingding;
}
mind.gif
wget 'https://lists2.roe3.org/guppy/plugins/mind/mind.gif'
View Content
mind.php
wget 'https://lists2.roe3.org/guppy/plugins/mind/mind.php'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 5.0
 *   CeCILL Copyright (C) 2004-2014 by Laurent Duveau
 *   Initiated by Laurent Duveau and Nicolas Alves
 *   Web site = http://www.freeguppy.org/
 *   e-mail   = guppy@freeguppy.org
 *   V5 developed by Lud Bienaimé
 *      with the participation of Jean-Michel Misrachi and the GuppY Team
 *******************************************************************************
 *   Version History :
 * v5.0.0 (February 15, 2014) : initial release.
 ******************************************************************************/

@session_set_cookie_params(0, '/', $_SERVER['HTTP_HOST'], false, ($_SERVER["HTTPS"] == 'on' ? true : false));
@session_name('GuppYSite');
session_start();
header('Pragma: no-cache');
define('CHEMIN', '../../');
include CHEMIN.'inc/includes.inc';

if (is_file(CHEMIN.'plugins/mind/'.$lng.'-mind.inc')) {
    include CHEMIN.'plugins/mind/'.$lng.'-mind.inc';
} else {
    include CHEMIN.'plugins/mind/en-mind.inc';
}


$alphaArray = array('a', 'n', 'b', 'd', 'f', 'h', '{', 'i', 'l', 'v', 'x', 'z', 'I', 'J', 'M', 'N', 'o', 'O', 'R', 'S', 'T', 'U', 'm', '6', '^', 'u', '_', '[', ']');

function init_seed() {
  list($usec, $sec) = explode(' ', microtime());
  return (float) $sec + ((float) $usec * 100000);
}

function ChooseMind() {
  srand(init_seed());
  $ax = rand(0,26);
  return $ax;
}

function WriteMindTable($ax) {
    global $alphaArray;
    $tablo = '
<table border="0" cellspacing="1" cellpadding="1" width="100%" summary="">';
    $j = 1;
    for ($i = 99 ; $i >= 0 ; $i-- ) {
        $a = rand(0,26);
        if ($i % 9 == 0 &&  $i < 89) {
            $a = $ax;
        }
        if ($j % 10 == 1) {
            $tablo .= '
  <tr>';
        }
        $tablo .= '
    <td style="color:red;font-family:Verdana">'.$i.'</td>
    <td style="color:blue;font-family:Windings">'.$alphaArray[$a].'</td>';
        if ($j % 10 == 0) {
            $tablo .= '
  </tr>';
        }
        $j++;
    }
    $tablo .= '
</table>';
    return $tablo;
}

$topmess = '<img src="mind.gif" style="width:32px;height:32px;float:right;" alt="" />'.$mind[10];
include CHEMIN.'inc/hpage.inc';
htable($topmess, "100%");

$guess = import('guess');

if ($guess == 0) {
    $rndax = ChooseMind();
    echo '
<p>'.$mind[3].'</p>
<p>
  '.$mind[11].'<br />
  '.$mind[12].'<br />
  '.$mind[13].'<br />
  '.$mind[14].'<br /><br />
</p>
'.WriteMindTable($rndax).'
<form name="guessmind1" action="mind.php?lng='.$lng.'&amp;guess='.($rndax+1).$z2.'" method="post">
  <div style="text-align:center;">
  '.SubmitButton($mind[15]).'<br />
  </div>
</form>';
}
else {
    echo '
<p>
  '.$mind[16].'
  <span style="font-size:2em;color:blue;background-color:yellow;font-policy:wingding;">&nbsp;'.$alphaArray[$guess-1].'&nbsp;</span>
</p>
<form name="guessmind2" action="mind.php?lng='.$lng.'&amp;guess=0'.$z2.'" method="post">
  <div style="text-align:center;">
    '.SubmitButton($mind[17]).'<br />
  </div>
</form>';
}

btable();
include CHEMIN.'inc/bpage.inc';
?>
plugin.inc
wget 'https://lists2.roe3.org/guppy/plugins/mind/plugin.inc'
View Content
<?php
/*******************************************************************************
 *   Mind Plugin
 *******************************************************************************
 *   GuppY PHP Script - version 6.0
 *   CeCILL Copyright (C) 2004-2013 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.00 (December 15, 2019) : initial release
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'plugin.inc')) {
    header('location:index.php');
    die();
}
?>