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

editors
inc
plugins
redac
.htaccess
wget 'https://sme10.lists2.roe3.org/guppy/admin/.htaccess'
View Content

Options -Indexes
admbs4style.css
wget 'https://sme10.lists2.roe3.org/guppy/admin/admbs4style.css'
View Content
/*  ---------  Admin CSS Bootstrap 4  ----------- */

.card-header.collapsed.card-link {
    background-color: #DCD9E0;
    color: #000;
    margin-top: 2px;
    border: 1px solid #67890B;
    border-radius: 4px;
    text-align: left;
}
.card-header.card-link {
    background-color: #7F7F7F;
    color: #FFF;
    font-size: 14px;
    text-align: left;
}
.collapse.show { background-color: #EFEFEF; font-size: 14px; }
.card-body { font-size: 13px; }
.popover {
    color: #404040;
    background-color: #FFFFFF;
    border-radius: 6px;
}
.popover-header {
    color: #000000;
    background-color: #DCD9E0;
    font: normal 14px Verdana, "Bitstream Vera Sans", sans-serif;
}
.popover-body {
    color: #404040;
    background-color: #FFFFFF;
    font: normal 14px Verdana, "Bitstream Vera Sans", sans-serif;
    border-radius: 0 0 6px 6px;
}
.btn-lg {
    font-size: 1rem;
    padding: .2rem .75rem;
}
.btn-info {
    background-color: #FFF;
    color: #000000;
    border: 1px solid #FFF;
	border-radius: 4px;
}
.btn-info:hover {
    background-color: #e00000;
    color: #FFF;
    border: 1px solid #e00000;
	border-radius: 4px;
}
.form-check-input {
	margin-top: .1rem;
	margin-left: 0;
}
admin.php
wget 'https://sme10.lists2.roe3.org/guppy/admin/admin.php'
View Content
<?php
/*******************************************************************************
 *   Admin Main page
 *******************************************************************************
 *   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.15 (November 29, 2023) : correction $grpcol
 ******************************************************************************/

header('Pragma: no-cache');
define('CHEMIN', '../');
include 'includes.inc';

$regit   = import('regit');
$replace = import('replace');
$plug    = import('plug');
$pg      = import('pg', 'GET');
$lng      = import('lng', 'GET');
if (@preg_match("!//|/\*|#|:/|\.\./|%2E\./|\.%2E/|%2E%2E/|document.cookie|alert|script|script!i", $_SERVER["QUERY_STRING"])) {
    die("Requête non autorisée - Request not allowed");
}
if (stristr($_SERVER['REQUEST_URI'], $lng.'-'.$urlrw[0].'-19')) echo '<script>window.location = "admin.php?lng='.$lng.'";</script>';

if (!isAdmin($userprefs[1])) {
    // Vous n'avez accès à l'administration
    $topmess = $admin[23];
    include 'hpage.inc';
    htable($admin[23], "100%");
    echo '
<br />
<p style="text-align:center;line-height:20px;font-size:14px;"><b>'.$admin[849].'</b></p>
<form name="logout" action="'.CHEMIN.'index.php?lng='.$lng.'" method="POST"><div style="text-align:center;">'.SubmitButton($admin[464]).'</div></form>';
    btable();
    include 'bpage.inc';
    exit;
}

$logout = import('logout');
if ($logout == 1) {
    if (empty(trim($serviz[31]))) {
        echo BeginJavascript().'
alert("'.$admin[1753].'");
window.location = "admin.php?lng='.$lng.'&pg=config5";'.EndJavascript();
    } else {
        if (isset($_COOKIE[ADMP_COOKIE])) {
            setcookie(ADMP_COOKIE, '', -1);
        }
        echo BeginJavascript().'
window.location = "'.CHEMIN.'index.php?lng='.$lng.'";'.EndJavascript();
    }
}

$fctwri = NULL;
if (FileDBExist(REDACREP.$userprefs[1].INCEXT)) {
    $wri = $userprefs[1];
    include REDACREP.$wri.INCEXT;
    $mdp    = $drtuser[38];
	$fctwri = $drtuser[42];
}
else {
    $wri    = 'admin';
    $fctwri = 'admin';
    $mdp    = $userprefs[1] == '' ? md5('pass') : $userprefs[7];
}

$grpcols = ReadMembersCol();
$myname  = $userprefs[1];
$myemail = $userprefs[2];
if (!isset($grpcols[$myname][0])) $grpcols[$myname][0] = 'ALL';
$grpcol  = isset($grpcols[$myname]) ? $grpcols[$myname][0] : 'ALL';

$boutonleft = $boutonright = '';
$imgdroite  = ' <i class="fas fa-caret-right align-middle" style="font-size: 1.8rem;"></i>';
$imggauche  = '<i class="fas fa-caret-left align-middle" style="font-size: 1.8rem;"></i> ';

if ($userprefs[10] == '') $userprefs[10] = $page[14];
if (isset($selskin)) $userprefs[10] = $selskin;
if ($wri == "admin") {
    $mdp    = $userprefs[1] == '' ? md5('pass') : $userprefs[7];
    $fctwri = 'admin';
} else {
    if (FileDBExist(CHEMIN.'admin/'.REDACREP.$wri.INCEXT)) {
        include(CHEMIN.'admin/'.REDACREP.$wri.INCEXT);
        $mdp    = $drtuser[38];
        $fctwri = $drtuser[42];
    } else {
        $mdp = "bad";
    }
}
$ctrlmdp = abs(crc32($mdp));
$admcookie = '';
$okctrlmdp = '';
if (isset($_COOKIE[ADMP_COOKIE]))
{
	$admcookie = $_COOKIE[ADMP_COOKIE];
	$strlen    = substr($admcookie, 0, 2);
	$okctrlmdp = substr($admcookie, 2, intval($strlen)) == $ctrlmdp ? true : false;
}
else
{
//if (empty($_COOKIE[ADMP_COOKIE]) || !$okctrlmdp) {
    $admcookie  = $ctrlmdp.'-img-file-img-3-1-1-web-web';
    $adminprefs = explode('-', $admcookie);
    $admdata    = '';
    for ($i = 0; $i < count($adminprefs); $i++) {
        $strlen   = sprintf("%02d", strlen($adminprefs[$i]));
        $admdata .= $strlen.$adminprefs[$i];
    }
    setcookie(ADMP_COOKIE, $admdata);
    echo BeginJavascript().'
window.location = "admin.php?lng='.$lng.'";'.EndJavascript();
}

$widepage  = 'on';
/*
$admcookie = '';
$okctrlmdp = '';
if (isset($_COOKIE[ADMP_COOKIE]))
{
	$admcookie = $_COOKIE[ADMP_COOKIE];
	$strlen    = substr($admcookie, 0, 2);
	$okctrlmdp = substr($admcookie, 2, intval($strlen)) == $ctrlmdp ? true : false;
}
*/

################################################################################
if (!empty($_COOKIE[ADMP_COOKIE]) && empty($pg)) {
    // Page d'accueil d'admin.
    $topmess = $admin[1];
    include 'hpage.inc';
    $dirsave  = CHEMIN.'save';
    $ctrlsave = false;
    if (is_dir($dirsave)) {
        $allsave = scandir($dirsave);
        if (FALSE !== $allsave) { 
            foreach ($allsave as $onesave) {
                $info = pathinfo($onesave);
                if (isset($info['extension']) && $info['extension'] == 'zip') {
                    $ctrlsave = true;
                    break;
                }
            }
            unset($allsave);
        }
    }
    $proto   = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
    $realurl = $proto.str_replace("/admin","/",$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])); //real site url
    if (($wri == $userprefs[1] && FileDBExist(REDACREP.$wri.INCEXT) && $okctrlmdp && $serviz[42] == "on")) {
        // Collaborateur
        include 'adminredac.php';
		htable($admin[1], "100%");
		echo '
<div style="text-align:center;">'.ToHelp($lng, '&pg=940&mnuid=937&tconfig=0#z2').'
  <p><br />
    <strong>'.$admin[2].'</strong><br />
    '.$admin[3].'<br />
    '.$admin[4].'<br />
  </p>
</div>';
		if ($site[3] != $realurl) {
			include 'inc/check_config.inc';
		}
		elseif (file_exists(CHEMIN.'install/install.php')) {
			include 'inc/check_install.inc';
        }
		if ($ctrlsave) {
			include 'inc/check_save.inc';
		}

		if (!in_array($fctwri, array('redac1', 'redac2', 'modo'))) include_once 'inc/notes.inc';
		$dirinc = CHEMIN.'admin/incadmin';
		if (is_dir($dirinc)) { 
			$hd = opendir($dirinc);
			while ($file = readdir($hd)) { 
				if (1 == preg_match('!^[^_].*(\.inc|\.inc\.php)$!', $file)) {
					include $dirinc.'/'.$file;
				}
			}
		}
    }
    elseif (($wri == "admin" && $okctrlmdp) || is_file(CHEMIN.'install/install.php')) {
        // Administrateur
        include 'administrateur.php';
		htable($admin[1], "100%");
		echo '
<div style="text-align:center;">'.ToHelp($lng, '&pg=940&mnuid=937&tconfig=0#z2').'
  <p><br />
    <strong>'.$admin[2].'</strong><br />
    '.$admin[3].'<br />
    '.$admin[4].'<br />
  </p>
</div>';
		if ($site[3] != $realurl) {
			include 'inc/check_config.inc';
		}
		elseif (file_exists(CHEMIN.'install/install.php')) {
			include 'inc/check_install.inc';
		}
		if ($ctrlsave) {
			include 'inc/check_save.inc';
		}
        
		include_once 'inc/notes.inc';
		$dirinc = CHEMIN.'admin/incadmin';
		if (is_dir($dirinc)) { 
			$hd = opendir($dirinc);
			while ($file = readdir($hd)) { 
				if (1 == preg_match('!^[^_].*(\.inc|\.inc\.php)$!', $file)) {
					include $dirinc.'/'.$file;
				}
			}
		}
    }
    else {
        // Vous n'avez accès à l'administration
		htable($admin[1], "100%");
        echo '
<br />
<p style="text-align:center;"><b>'.$admin[849].'</b></p>';
    }
    btable();
    include 'bpage.inc';
}
################################################################################
elseif (!empty($_COOKIE[ADMP_COOKIE]) && !empty($pg)) {
    // Autres pages d'admin.
    if (($pg == 'plugin') && (file_exists('plugins/'.$plug.'.inc'))) {
        // pages de plugin
        $admcookie  = $ctrlmdp.'-img-file-img-3-1-1-web-web';
        $adminprefs = explode('-', $admcookie);
        $admdata    = '';
        for ($i = 0; $i < count($adminprefs); $i++) {
            $strlen   = sprintf("%02d", strlen($adminprefs[$i]));
            $admdata .= $strlen.$adminprefs[$i];
        }
        setcookie(ADMP_COOKIE, $admdata);
        $plugindir = substr($plug, 0, strpos($plug,'/'));
        include 'plugins/'.$plugindir.'/plugin.inc';
        if(FileDBExist(REDACREP.$userprefs[1].INCEXT) && $drtuserplg[$plugindir] == '') {
            $nomzone = $plugin_admin_name;
            include 'inc/access.inc';
        }
        else {
            include 'plugins/'.$plug.'.inc';
        }
		exit;
    }
    elseif (file_exists('inc/'.$pg.'.inc')) {
        // Pages standards
        include 'inc/'.$pg.'.inc';
		exit;
    }
    else {
        // Pages inexistantes
		$topmess = $admin[1];
		include 'hpage.inc';
		if ($wri == 'admin') include CHEMIN.'admin/administrateur.php';
		if ($wri == $userprefs[1]) include CHEMIN.'admin/adminredac.php';
		htable($admin[1], "100%");
        echo '
<br />
<p style="text-align:center;"><b>'.$admin[20].'</b> '.$admin[21].'</p>
<br />
<p style="text-align:center;"><a href="'.CHEMIN.'admin/admin.php?lng='.$lng.'">'.$admin[22].'</a></p>';
		btable();
		include 'bpage.inc';
    }
} else {
    echo '
<script>window.location = "admin.php?lng='.$lng.'";</script>';
}
?>
administrateur.php
wget 'https://sme10.lists2.roe3.org/guppy/admin/administrateur.php'
View Content
<?php
/*******************************************************************************
 *   AdminWebmster Main page
 *******************************************************************************
 *   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.20 (October 24, 2024) : Integration counter IP
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'administrateur.php')) {
    header('location:../index.php');
    die();
}
$skintheme = ExploreDir('skins/');
$items1    = array();
                            $items1[] = array('txt'=>$admin[276],  'href'=>'about');
                            $items1[] = array('txt'=>$admin[904],  'href'=>'update');
                            $items1[] = array('txt'=>$admin[1265], 'href'=>'help');
                            $items1[] = array('txt'=>$admin[1554], 'href'=>'protect');
                            $items1[] = array('txt'=>$admin[817],  'href'=>'maintenance');
							
$items2a   = array();
$items2b   = array();
                            $items2a[] = array('txt'=>$admin[7],    'href'=>'config1');
                            $items2a[] = array('txt'=>$admin[169],  'href'=>'config5');
                            $items2a[] = array('txt'=>$admin[166],  'href'=>'config4');
if ($serviz[99] == 'on')    $items2a[] = array('txt'=>$admin[1183], 'href'=>'contact&amp;act=1', 'src'=>'contact');
                            $items2a[] = array('txt'=>$admin[1264], 'href'=>'search');
							
                            $items2b[] = array('txt'=>$admin[888],  'href'=>'config9', 'src'=>'config2');
                            $items2b[] = array('txt'=>$admin[890],  'href'=>'config2', 'src'=>'config9');
                            $items2b[] = array('txt'=>$admin[346],  'href'=>'config6');
                            $items2b[] = array('txt'=>$admin[469].' / '.strtolower($admin[770]),  'href'=>'config3');
                            $items2b[] = array('txt'=>$admin[719],  'href'=>'config8', 'src'=>'css');							

$items3a   = array();
$items3b   = array();
$items3c   = array();
$items3d   = array();
                            $items3a[] = array('txt'=>$admin[925],  'href'=>'members&amp;act=5', 'src'=>'members2');
                            $items3a[] = array('txt'=>$admin[696],  'href'=>'members&amp;act=2', 'src'=>'members3');
                            $items3a[] = array('txt'=>$admin[697],  'href'=>'members&amp;act=3', 'src'=>'members4');
if ($serviz[42] == 'on')    $items3a[] = array('txt'=>$admin[820],  'href'=>'attribdroits&amp;etape=1', 'src'=>'droits1');
if ($serviz[42] == 'on')    $items3a[] = array('txt'=>$admin[821],  'href'=>'gestredac', 'src'=>'droits2');
if ($serviz[42] == 'on')    $items3a[] = array('txt'=>$admin[1476], 'href'=>'gestredac&amp;act=2', 'src'=>'droits3');

                            $items3b[] = array('txt'=>$admin[278],  'href'=>'dbcheck');
                            $items3b[] = array('txt'=>$admin[170],  'href'=>'maintain');
							$items3b[] = array('txt'=>$admin[577],  'href'=>'archive');
							$items3b[] = array('txt'=>$admin[1844], 'href'=>'archiveepuration', 'src'=>'archive');
                            $items3b[] = array('txt'=>$admin[1126], 'href'=>'install');
                            $items3b[] = array('txt'=>$admin[1245], 'href'=>'save');
                            $items3b[] = array('txt'=>$admin[1093], 'href'=>'import');
                            $items3b[] = array('txt'=>$admin[171],  'href'=>'upload');
							
                            $items3c[] = array('txt'=>$admin[653],  'href'=>'counter', 'src'=>'counter1');
                            $items3c[] = array('txt'=>$admin[654],  'href'=>'countart', 'src'=>'counter2');
                            $items3c[] = array('txt'=>$admin[655],  'href'=>'countforum', 'src'=>'counter3');
                            $items3c[] = array('txt'=>$admin[656],  'href'=>'countdwnl', 'src'=>'counter4');
                            $items3c[] = array('txt'=>$admin[972],  'href'=>'statsvw', 'src'=>'stats1');
                            $items3c[] = array('txt'=>$admin[973],  'href'=>'statsprg', 'src'=>'stats2');
                            $items3c[] = array('txt'=>$admin[974],  'href'=>'statscfg', 'src'=>'stats3');
							
                            $items3d[] = array('txt'=>$admin[7].' Log',    'href'=>'logconfig', 'src'=>'eye1');
                            $items3d[] = array('txt'=>$admin[554],  'href'=>'logread', 'src'=>'eye2');
							$items3d[] = array('txt'=>$admin[1807],  'href'=>'config_log_smtp', 'src'=>'eye2');	
							$items3d[] = array('txt'=>$admin[830],  'href'=>'configlang', 'src'=>'article');

$items4a   = array();
$items4b   = array();
$items4c   = array();
$items4d   = array();
                            $items4a[] = array('txt'=>$admin[270],  'href'=>'freebox&amp;tri=ch', 'src'=>'freebox');
if ($serviz[27] == 'on')    $items4a[] = array('txt'=>$admin[602],  'href'=>'rss', 'src'=>'newsrss');
if ($serviz[19] == 'on')    $items4a[] = array('txt'=>$admin[263],  'href'=>'banner'); /// $serviz[19] est toujours à 'on'
if ($serviz[0] == 'on')     $items4a[] = array('txt'=>$admin[6],    'href'=>'think'); /// $serviz[0] est toujours à 'on'

                            $items4b[] = array('txt'=>$admin[876],  'href'=>'menuico&amp;tri=ch', 'src'=>'menuico');
                            $items4b[] = array('txt'=>$admin[1216], 'href'=>'menu&amp;tri=ch', 'src'=>'menu1');
                            $items4b[] = array('txt'=>$admin[1217], 'href'=>'menubox&amp;act=1', 'src'=>'menu2');
                            $items4b[] = array('txt'=>$admin[1349], 'href'=>'ddmenu&amp;tri=ch', 'src'=>'menu3');
                            $items4b[] = array('txt'=>$admin[1350], 'href'=>'menubox&amp;act=2', 'src'=>'menu4');

if ($serviz[9] == 'on')     $items4c[] = array('txt'=>$admin[632],  'href'=>'photo', 'src'=>'photo2');
if ($serviz[9] == 'on')     $items4c[] = array('txt'=>$admin[633],  'href'=>'photorama&amp;act=2&amp;sel=3', 'src'=>'photo3');
if ($serviz[9] == 'on')     $items4c[] = array('txt'=>$admin[631],  'href'=>'photorama&amp;act=2&amp;sel=1', 'src'=>'photo1');
if ($serviz[9] == 'on')     $items4c[] = array('txt'=>$admin[1741], 'href'=>'liquidslider&amp;act=1', 'src'=>'photo4');
							
                            $items4d[] = array('txt'=>$admin[348],  'href'=>'snmenu&amp;act=1', 'src'=>'socnet1');
                            $items4d[] = array('txt'=>$admin[349],  'href'=>'socnet&amp;tri=ch', 'src'=>'socnet2');
							$items4d[] = array('txt'=>$admin[1776], 'href'=>'rgpd&amp;act=1', 'src'=>'socnet1');

$items5a   = array();
$items5b   = array();
$items5c   = array();
if ($serviz[8] == 'on')     $items5a[] = array('txt'=>$admin[13],   'href'=>'news');
                            $items5a[] = array('txt'=>$admin[5],    'href'=>'art&amp;tri=-id', 'src'=>'article');
if ($serviz[29] != '')      $items5a[] = array('txt'=>$admin[476],  'href'=>'react');
if ($serviz[10] == 'on')    $items5a[] = array('txt'=>$admin[18],   'href'=>'dnload', 'src'=>'download');
if ($serviz[11] == 'on')    $items5a[] = array('txt'=>$admin[10],   'href'=>'links');
if ($serviz[14] == 'on')    $items5a[] = array('txt'=>$admin[206],  'href'=>'faq');
if ($serviz[12] == 'on')    $items5a[] = array('txt'=>$admin[11],   'href'=>'guestbk', 'src'=>'guestbook');
if ($serviz[47] == 'on')    $items5a[] = array('txt'=>$admin[624],  'href'=>'agenda&amp;tri=ch', 'src'=>'agenda');
if ($serviz[13] == 'on')    $items5a[] = array('txt'=>$admin[942],  'href'=>'frconfig', 'src'=>'config71');
if ($serviz[13] == 'on')    $items5a[] = array('txt'=>$admin[943],  'href'=>'frcateg', 'src'=>'config72');
if ($serviz[13] == 'on')    $items5a[] = array('txt'=>$admin[945],  'href'=>'rules', 'src'=>'config74');
if ($serviz[13] == 'on')    $items5a[] = array('txt'=>$admin[9],    'href'=>'forum&amp;tri=-ch', 'src'=>'forum1');

if ($serviz[53] == 'on')    $items5b[] = array('txt'=>$admin[15],   'href'=>'brub&amp;tri=ch', 'src'=>'blogrub');
if ($serviz[53] == 'on')    $items5b[] = array('txt'=>$admin[770],  'href'=>'blog&amp;tri=ch', 'src'=>'blog');
if ($serviz[53] == 'on')    $items5b[] = array('txt'=>$admin[774],  'href'=>'reblog');
if ($serviz[53] == 'on')    $items5b[] = array('txt'=>$admin[791],  'href'=>'bss', 'src'=>'blogrss');

if ($serviz[36] != '')      $items5c[] = array('txt'=>$admin[540],  'href'=>'nwllist', 'src'=>'newsletter1');
if ($serviz[36] != '')      $items5c[] = array('txt'=>$admin[925],  'href'=>'nwlgroup&amp;act=5', 'src'=>'newsletter2');
if ($serviz[36] != '')      $items5c[] = array('txt'=>$admin[538],  'href'=>'nwl', 'src'=>'newsletter3');
if ($serviz[36] != '')      $items5c[] = array('txt'=>$admin[534],  'href'=>'nwlsend', 'src'=>'newsletter4');
if ($serviz[36] != '')      $items5c[] = array('txt'=>$admin[1080], 'href'=>'newssend', 'src'=>'newsletter5');
$items5d   = array();
							$items5d[] = array('txt'=>$admin[1430], 'href'=>'sec_ban_def', 'src'=>'security1');
                            $items5d[] = array('txt'=>$admin[1431], 'href'=>'sec_ban_cfg', 'src'=>'security2');
                            $items5d[] = array('txt'=>$admin[1432], 'href'=>'sec_ban_log', 'src'=>'security3');
							$items5d[] = array('txt'=>$admin[1895], 'href'=>'sec_ban_counters_ip', 'src'=>'security3');								
							$items5d[] = array('txt'=>$admin[1810],  'href'=>'sec_ban_logguppy', 'src'=>'security5');	

if (is_dir(CHEMIN.'plugins/')) {
	$pluginlist = ExploreDir("plugins/");
	$items6 = array();
	if (!empty($pluginlist)) {
		foreach ($pluginlist as $item) {
			if(is_file("plugins/".$item."/plugin.inc")) {
				$plugin_admin_name = '';
				include "plugins/".$item."/plugin.inc";
				if ($plugin_admin_name != '') {
					$items6[] = array('txt'=>$plugin_admin_name, 'href'=>'plugin&amp;plug='.$plugin_admin_url, 'src'=>'plugins/'.$plugin_admin_icon);
				}
			}
		}
	}
}

echo '
    <div class="table-responsive-md">
    <table class="bord w-98 m-auto rounded-pill fs-14">
      <tr>
        <td class="col0 w-85">'.@ExecFunctionBox(BOX_BOTTOM, '||fbox_ariane||W12').'</td>
        <td class="col3 w-15 text-center pr-2">
          <strong><a href="admin.php?lng='.$lng.'&amp;logout=1">'.$admin[19].'</a></strong>
        </td>
      </tr>
    </table>
    </div>
    <div class="tbl w-100">
      <div class="bg-white">
      <nav class="navbar ddl navbar-expand-md">
        <a class="navbar-brand" href="#" title="'.$admin[23].'" style="color:#FF0000;">&nbsp;<i class="fas fa-tools">&nbsp;</i></a>&nbsp;';
if (file_exists(CHEMIN.'install/install.php') && ($userprefs[1] == $serviz[31] || $userprefs[1] == $serviz[176])) {
	echo '
        <a class="btn btn-md bg-yellow navbar-brand" href="'.CHEMIN.'install/install.php?lng='.$lng.'" title="Install" style="color:#FF0000;">Install</a>';
}
echo '
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSC-DDLADMIN" aria-controls="navbarSC-DDLADMIN" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSC-DDLADMIN">
          <style>
            @media screen and (max-width: 1000px) {
              .navbar.ddl ul.navbar-nav {
                -ms-flex-direction: column;
                -webkit-flex-direction: column;
                flex-direction: column;
              }
            }
          </style>
          <ul class="navbar-nav m-0">
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1355].'
              </a>
              <div class="dropdown-menu DDLADMIN w-100 bg-transparent" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items1, 6);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>      
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1356].'
              </a>
              <div class="dropdown-menu DDLADMIN bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items2a, 5);
ShowBlock('', $items2b, 5, $skintheme);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[881].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items3a, 7);
ShowBlock('', $items3b, 7);
ShowBlock('', $items3c, 7);
ShowBlock('', $items3d, 7);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1357].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items4a, 5);
ShowBlock('', $items4b, 5);
ShowBlock('', $items4c, 5);
if (!empty($items4d))
ShowBlock('', $items4d, 5);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[882].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items5a, 6);
if (!empty($items5b))
ShowBlock('', $items5b, 6);
if (!empty($items5c))
ShowBlock('', $items5c, 6);
echo '
                </div>
              </div>
            </div>
          </div>
        </li>';
if (!empty($items5d)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1819].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ms-0 ps-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ms-3 pt-2 showblock">';
ShowBlock('', $items5d, 7);
	echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}

if (!empty($items6)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[883].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items6, 7, NULL, true);
	echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
echo '
          </ul>
        </div>
      </nav>
      </div>';
echo '
    <!-- End of ADMIN TOPBOXES -->
	';
unset($items1, $items2a, $items2b, $items3a, $items3b, $items3c, $items3d, $items4a, $items4b, $items4c, $items5a, $items5b, $items5c, $items5d, $items6);
?>
adminredac.php
wget 'https://sme10.lists2.roe3.org/guppy/admin/adminredac.php'
View Content
<?php
/*******************************************************************************
 *   AdminRedac Main page
 *******************************************************************************
 *   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.20 (October 24, 2024) : Integration counter IP
 ******************************************************************************/

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

$skintheme = ExploreDir('skins/');
$items1    = array();
                                                $items1[] = array('txt'=>$admin[276],  'href'=>'about');
if ($drtuser[48] != '')                         $items1[] = array('txt'=>$admin[904],  'href'=>'update');
												$items1[] = array('txt'=>$admin[1265], 'href'=>'help');
if ($userprefs[1] == $serviz[176])              $items1[] = array('txt'=>$admin[1554], 'href'=>'protect');
if ($drtuser[11] != '')                         $items1[] = array('txt'=>$admin[817],  'href'=>'maintenance');
												
$items2a = array();
$items2b = array();
if ($drtuser[0] != '')                          $items2a[] = array('txt'=>$admin[7],    'href'=>'config1');
if ($drtuser[4] != '')                          $items2a[] = array('txt'=>$admin[169],  'href'=>'config5');
if ($drtuser[3] != '')                          $items2a[] = array('txt'=>$admin[166],  'href'=>'config4');
if ($drtuser[13] != '' && $serviz[99] == 'on')  $items2a[] = array('txt'=>$admin[1183], 'href'=>'contact&amp;act=1', 'src'=>'contact');
if ($drtuser[49] != '')                         $items2a[] = array('txt'=>$admin[1264], 'href'=>'search');
												
if ($drtuser[1] != '')                          $items2b[] = array('txt'=>$admin[888],  'href'=>'config9', 'src'=>'config2');
if ($drtuser[1] != '')                          $items2b[] = array('txt'=>$admin[890],  'href'=>'config2', 'src'=>'config9');
if ($drtuser[5] != '')                          $items2b[] = array('txt'=>$admin[346],  'href'=>'config6');
if ($drtuser[2] != '')                          $items2b[] = array('txt'=>$admin[469].' / '.strtolower($admin[770]),  'href'=>'config3');
if ($drtuser[43] != '')                         $items2b[] = array('txt'=>$admin[719],  'href'=>'config8', 'src'=>'css');

$items3a   = array();
$items3b   = array();
$items3c   = array();
$items3d   = array();
if ($drtuser[10] != '')                         $items3a[] = array('txt'=>$admin[925],  'href'=>'members&amp;act=5', 'src'=>'members2');
if ($drtuser[10] != '')                         $items3a[] = array('txt'=>$admin[696],  'href'=>'members&amp;act=2', 'src'=>'members3');
if ($drtuser[10] != '')                         $items3a[] = array('txt'=>$admin[697],  'href'=>'members&amp;act=3', 'src'=>'members4');
if ($drtuser[12] != '' && $serviz[42] == 'on')  $items3a[] = array('txt'=>$admin[820],  'href'=>'attribdroits&amp;etape=1', 'src'=>'droits1');
if ($drtuser[12] != '' && $serviz[42] == 'on')  $items3a[] = array('txt'=>$admin[821],  'href'=>'gestredac', 'src'=>'droits2');
if ($drtuser[12] != '' && $serviz[42] == 'on')  $items3a[] = array('txt'=>$admin[1476], 'href'=>'gestredac&amp;act=2', 'src'=>'droits3');

if ($drtuser[8] != '')                          $items3b[] = array('txt'=>$admin[278],  'href'=>'dbcheck');
if ($drtuser[6] != '')                          $items3b[] = array('txt'=>$admin[170],  'href'=>'maintain');
if ($drtuser[7] != '') 
{
		$items3b[] = array('txt'=>$admin[577],  'href'=>'archive');
		$items3b[] = array('txt'=>$admin[1844], 'href'=>'archiveepuration', 'src'=>'archive');
}
if ($drtuser[46] != '')                         $items3b[] = array('txt'=>$admin[1126], 'href'=>'install');
if ($drtuser[47] != '')                         $items3b[] = array('txt'=>$admin[1245], 'href'=>'save');
if ($drtuser[44] != '')                         $items3b[] = array('txt'=>$admin[1093], 'href'=>'import');
if ($drtuser[36] != '')                         $items3b[] = array('txt'=>$admin[171],  'href'=>'upload');

if ($drtuser[31] != '')                         $items3c[] = array('txt'=>$admin[653],  'href'=>'counter', 'src'=>'counter1');
if ($drtuser[31] != '')                         $items3c[] = array('txt'=>$admin[654],  'href'=>'countart', 'src'=>'counter2');
if ($drtuser[31] != '')                         $items3c[] = array('txt'=>$admin[655],  'href'=>'countforum', 'src'=>'counter3');
if ($drtuser[31] != '')                         $items3c[] = array('txt'=>$admin[656],  'href'=>'countdwnl', 'src'=>'counter4');
if ($drtuser[32] != '')                         $items3c[] = array('txt'=>$admin[972],  'href'=>'statsvw', 'src'=>'stats1');
if ($drtuser[32] != '')                         $items3c[] = array('txt'=>$admin[973],  'href'=>'statsprg', 'src'=>'stats2');
if ($drtuser[32] != '')                         $items3c[] = array('txt'=>$admin[974],  'href'=>'statscfg', 'src'=>'stats3');

if ($drtuser[35] != '')                         $items3d[] = array('txt'=>$admin[7].' Log',    'href'=>'logconfig', 'src'=>'eye1');
if ($drtuser[35] != '')                         $items3d[] = array('txt'=>$admin[554],  'href'=>'logread', 'src'=>'eye2');
if ($drtuser[35] != '')                         $items3d[] = array('txt'=>$admin[1807], 'href'=>'config_log_smtp', 'src'=>'eye2');
if ($drtuser[45] != '')   						$items3d[] = array('txt'=>$admin[830],  'href'=>'configlang', 'src'=>'article');

$items4a   = array();
$items4b   = array();
$items4c   = array();
if ($drtuser[26] != '')                         $items4a[] = array('txt'=>$admin[270],  'href'=>'freebox&amp;tri=-ch', 'src'=>'freebox');
if ($drtuser[34] != '' && $serviz[27] == 'on')  $items4a[] = array('txt'=>$admin[602],  'href'=>'rss', 'src'=>'newsrss');
if ($drtuser[27] != '' && $serviz[19] == 'on')  $items4a[] = array('txt'=>$admin[263],  'href'=>'banner');
if ($drtuser[28] != '' && $serviz[0] == 'on')   $items4a[] = array('txt'=>$admin[6],    'href'=>'think');

if ($drtuser[29] != '')                         $items4b[] = array('txt'=>$admin[876],  'href'=>'menuico&amp;tri=ch', 'src'=>'menuico');
if ($drtuser[17] != '')                         $items4b[] = array('txt'=>$admin[1216], 'href'=>'menu&amp;tri=ch', 'src'=>'menu1');
if ($drtuser[17] != '')                         $items4b[] = array('txt'=>$admin[1217], 'href'=>'menubox&amp;act=1', 'src'=>'menu2');
if ($drtuser[17] != '' && !in_array($fctwri, array('redac1', 'redac2'))) $items4b[] = array('txt'=>$admin[1349], 'href'=>'ddmenu&amp;tri=ch', 'src'=>'menu3');
if ($drtuser[17] != '' && !in_array($fctwri, array('redac1', 'redac2'))) $items4b[] = array('txt'=>$admin[1350], 'href'=>'menubox&amp;act=2', 'src'=>'menu4');

if ($drtuser[18] != '' && $serviz[9] == 'on')   $items4c[] = array('txt'=>$admin[632],  'href'=>'photo', 'src'=>'photo2');
if ($drtuser[18] != '' && $serviz[9] == 'on')   $items4c[] = array('txt'=>$admin[633],  'href'=>'photorama&amp;act=2&amp;sel=3', 'src'=>'photo3');
if ($drtuser[18] != '' && $serviz[9] == 'on')   $items4c[] = array('txt'=>$admin[631],  'href'=>'photorama&amp;act=2&amp;sel=1', 'src'=>'photo1');
if ($drtuser[18] != '' && $serviz[9] == 'on')   $items4c[] = array('txt'=>$admin[1741],  'href'=>'liquidslider&amp;act=1', 'src'=>'photo4');

if ($drtuser[50] != '')                         $items4d[] = array('txt'=>$admin[348],  'href'=>'snmenu&amp;act=1', 'src'=>'socnet1');
if ($drtuser[50] != '')                         $items4d[] = array('txt'=>$admin[349],  'href'=>'socnet&amp;tri=ch', 'src'=>'socnet2');
if ($drtuser[51] != '')                         $items4d[] = array('txt'=>$admin[1776], 'href'=>'rgpd&amp;act=1', 'src'=>'socnet1');
$items5a   = array();
$items5b   = array();
$items5c   = array();
$items5d   = array();
if ($drtuser[14] != '' && $serviz[8] == 'on')   $items5a[] = array('txt'=>$admin[13],   'href'=>'news');
if ($drtuser[15] != '')                         $items5a[] = array('txt'=>$admin[5],    'href'=>'art&amp;tri=-id', 'src'=>'article');
if ($drtuser[16] != '' && $serviz[29] != '')    $items5a[] = array('txt'=>$admin[476],  'href'=>'react');
if ($drtuser[19] != '' && $serviz[10] == 'on')  $items5a[] = array('txt'=>$admin[18],   'href'=>'dnload', 'src'=>'download');
if ($drtuser[20] != '' && $serviz[11] == 'on')  $items5a[] = array('txt'=>$admin[10],   'href'=>'links');
if ($drtuser[21] != '' && $serviz[14] == 'on')  $items5a[] = array('txt'=>$admin[206],  'href'=>'faq');
if ($drtuser[22] != '' && $serviz[12] == 'on')  $items5a[] = array('txt'=>$admin[11],   'href'=>'guestbk', 'src'=>'guestbook');
if ($drtuser[37] != '' && $serviz[47] == 'on')  $items5a[] = array('txt'=>$admin[624],  'href'=>'agenda&amp;tri=ch', 'src'=>'agenda');
if ($drtuser[24] != '' && $serviz[13] == 'on')  $items5a[] = array('txt'=>$admin[942],  'href'=>'frconfig', 'src'=>'config71');
if ($drtuser[24] != '' && $serviz[13] == 'on')  $items5a[] = array('txt'=>$admin[943],  'href'=>'frcateg', 'src'=>'config72');
if ($drtuser[24] != '' && $serviz[13] == 'on')  $items5a[] = array('txt'=>$admin[945],  'href'=>'rules', 'src'=>'config74');
if ($drtuser[23] != '' && $serviz[13] == 'on')  $items5a[] = array('txt'=>$admin[9],    'href'=>'forum&amp;tri=-ch', 'src'=>'forum1');

if ($drtuser[39] != '' && $serviz[53] == 'on')  $items5b[] = array('txt'=>$admin[15],   'href'=>'brub&amp;tri=ch', 'src'=>'blogrub');
if ($drtuser[39] != '' && $serviz[53] == 'on')  $items5b[] = array('txt'=>$admin[770],  'href'=>'blog&amp;tri=ch', 'src'=>'blog');
if ($drtuser[40] != '' && $serviz[53] == 'on')  $items5b[] = array('txt'=>$admin[774],  'href'=>'reblog');
if ($serviz[53] == 'on' && $serviz[54] == 'on' && $serviz[103] == 'on')  																		 
	$items5b[] = array('txt'=>$admin[791],  'href'=>'bss', 'src'=>'blogrss');

if ($drtuser[33] != '' && $serviz[36] != '')    $items5c[] = array('txt'=>$admin[540],  'href'=>'nwllist', 'src'=>'newsletter1');
if ($drtuser[33] != '' && $serviz[36] != '')    $items5c[] = array('txt'=>$admin[925],  'href'=>'nwlgroup&amp;act=5', 'src'=>'newsletter2');
if ($drtuser[33] != '' && $serviz[36] != '')    $items5c[] = array('txt'=>$admin[538],  'href'=>'nwl', 'src'=>'newsletter3');
if ($drtuser[33] != '' && $serviz[36] != '')    $items5c[] = array('txt'=>$admin[534],  'href'=>'nwlsend', 'src'=>'newsletter4');
if ($drtuser[33] != '' && $serviz[36] != '')    $items5c[] = array('txt'=>$admin[1080], 'href'=>'newssend', 'src'=>'newsletter5');

$items5d   = array();
if ($drtuser[45] != '')  
{
							$items5d[] = array('txt'=>$admin[1430], 'href'=>'sec_ban_def', 'src'=>'security1');
                            $items5d[] = array('txt'=>$admin[1431], 'href'=>'sec_ban_cfg', 'src'=>'security2');
                            $items5d[] = array('txt'=>$admin[1432], 'href'=>'sec_ban_log', 'src'=>'security3');	
							$items5d[] = array('txt'=>$admin[1810],  'href'=>'sec_ban_logguppy', 'src'=>'security5');	
							$items5d[] = array('txt'=>$admin[1895], 'href'=>'sec_ban_counters_ip', 'src'=>'security3');
}						
		
$items6 = array();	
if (is_dir(CHEMIN.'plugins/')) {
	$pluginlist = ExploreDir("plugins/");
	$items6 = array();
	if (!empty($pluginlist)) {
		foreach ($pluginlist as $item) {
			if(isset($drtuserplg[$item]) && is_file('plugins/'.$item.'/plugin.inc')) {
				$plugin_admin_name = '';
				include('plugins/'.$item.'/plugin.inc');
				if ($plugin_admin_name != '') {
					$items6[] = array('txt'=>$plugin_admin_name, 'href'=>'plugin&amp;plug='.$plugin_admin_url, 'src'=>'plugins/'.$plugin_admin_icon);
				}
			}
		}
	}
}

echo '
    <div class="table-responsive-md">
    <table class="bord w-98 m-auto rounded-pill fs-14">
      <tr>
        <td class="col0 w-85">'.@ExecFunctionBox(BOX_BOTTOM, '||fbox_ariane||W80').'</td>
        <td class="col3 w-15 text-center">
          <strong><a href="admin.php?lng='.$lng.'&amp;logout=1">'.$admin[19].'</a></strong>
        </td>
      </tr>
    </table>
    </div>
    <div class="tbl w-100">
      <div class="bg-white">
      <nav class="navbar ddl navbar-expand-md">
        <a class="navbar-brand" href="#" title="'.$admin[23].'" style="color:#FF0000;">&nbsp;<i class="fas fa-tools">&nbsp;</i></a>&nbsp;';
if (file_exists(CHEMIN.'install/install.php') && ($userprefs[1] == $serviz[31] || $userprefs[1] == $serviz[176])) {
	echo '
        <a class="btn btn-md bg-yellow navbar-brand" href="'.CHEMIN.'install/install.php?lng='.$lng.'" title="Install" style="color:#FF0000;">Install</a>';
}
echo '
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSC-DDLADMIN" aria-controls="navbarSC-DDLADMIN" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSC-DDLADMIN">
          <style>
            @media screen and (max-width: 1000px) {
              .navbar.ddl ul.navbar-nav {
                -ms-flex-direction: column;
                -webkit-flex-direction: column;
                flex-direction: column;
              }
            }
          </style>
          <ul class="navbar-nav m-0">
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1355].'
              </a>
              <div class="dropdown-menu DDLADMIN w-100 bg-transparent" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items1, 6);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';      
if (!empty($items2a) || !empty($items2b)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1356].'
              </a>
              <div class="dropdown-menu DDLADMIN bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items2a, 5);
ShowBlock('', $items2b, 5, $skintheme);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
if (!empty($items3a) || !empty($items3b) || !empty($items3c) || !empty($items3d)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[881].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items3a, 7);
ShowBlock('', $items3b, 7);
ShowBlock('', $items3c, 7);
ShowBlock('', $items3d, 7);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
if (!empty($items4a) || !empty($items4b) || !empty($items4c)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1357].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items4a, 5);
ShowBlock('', $items4b, 5);
ShowBlock('', $items4c, 5);
if (!empty($items4d))
ShowBlock('', $items4d, 5);
echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
if (!empty($items5a) || !empty($items5b) || !empty($items5c) || !empty($items5d)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[882].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items5a, 6);
if (!empty($items5b))
ShowBlock('', $items5b, 6);
if (!empty($items5c))
ShowBlock('', $items5c, 6);
echo '
                </div>
              </div>
            </div>
          </div>
        </li>';
}
if (!empty($items5d)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[1819].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ms-0 ps-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ms-3 pt-2 showblock">';
// ShowBlock('', $items5d, 7, NULL, true); // pour afficher des img sans la balise <i
ShowBlock('', $items5d, 7);
	echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
if (!empty($items6)) {
	echo '
            <li class="nav-item dropdown w-100">
              <a class="nav-link dropdown-toggle" href="#" id="navbarDDL" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                '.$admin[883].'
              </a>
              <div class="dropdown-menu DDL461 bg-transparent w-100" aria-labelledby="navbarDDL">
                <div class="container-fluid ml-0 pl-0">
                  <div class="row w-auto">
                    <div class="col-md-12 ml-3 pt-2 showblock">';
ShowBlock('', $items6, 7, NULL, true);
	echo '
                    </div>
                  </div>
                </div>
              </div>
            </li>';
}
echo '
          </ul>
        </div>
      </nav>
      </div>';
echo '
    <!-- End of ADMIN TOPBOXES -->
	';
unset($items1, $items2a, $items2b, $items3a, $items3b, $items3c, $items3d, $items4a, $items4b, $items4c, $items5a, $items5b, $items5c, $items5d, $items6);?>
admstyle.css
wget 'https://sme10.lists2.roe3.org/guppy/admin/admstyle.css'
View Content
/*  ---------  Admin CSS  ----------- */

html { /*  document */
    font: 13px Arial, Helvetica, sans-serif;
    color: #000000;
    background: #7F7F7F;
}
body { /*  corps du document */
    margin: 0;
    font: 13px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #7F7F7F;
}
/************
 * Général */
a { /* lien */
    color: #000000;
    background: inherit;
    text-decoration: none;
}
a.titre { /* lien titres */
    color: #000000;
    background-color: inherit;
    text-decoration: none;
}
a:hover { /* lien survolé */
    color: #FF0000;
    text-decoration: none;
    font-weight: bold;
    background-color: inherit;
    position: relative;  top: 1px;  left: 1px;
}
p { /* paragraphe */
    margin: 16px 0;
    color: inherit;
    background: inherit;
}
hr { /* ligne horizontale */
    height: 1px;
    border: 1px inset #000000;
    width: 98%;
}
ul, ol, dl, dd, dt { /* listes */
    padding: 0;
    margin: 0;
}
img, object, embed, canvas, video, audio, picture {
    border-style: none !important;
    vertical-align: initial;
    max-width: 100%;
    height: auto;
}
.blink { animation: blink 1.2s infinite; }
@keyframes blink {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}
/******************************************
* Mise en page des blocks div principaux */
#page{ /* all the page */
    color: inherit;
    background-color: #EFEFEF;
    border-radius: 6px;
    max-width: 1280px;
    margin: auto;
}
#AdminBoxes { /* pages admin */
    margin: 4px 0 8px 0;
    color: inherit;
    background-color: inherit;
    border: 1px solid #000000;
    border-radius: 6px;
}
/*****************
 * Fil d"ariane */
.ariane { /* bloc fil d"ariane */
    text-align: left;
    padding: 4px;
    margin: 0px;
}
div.ariane span.arianeOn { /* adresses actives */
    font-style: italic;
    color: inherit;
}
div.ariane span.arianeOff { /* page courante */
    font-style: italic;
    color: #FF0000;
}
/******************************************
 * Mise en page des blocks dans le corps */
/* block lateral boxes */
/* block central boxes */
.titre, .titre a {
    background-color: #7F7F7F;
    border-width: 0;
    border: 1px solid #7F7F7F;
    border-radius: 6px;
    padding: 5px;
	margin: 0 4px;
    white-space: nowrap;
    font: bold 15px Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    text-align: left;
}
.tbl {
    border-width: 0;
    border-width: 0;
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    padding: 4px;
    margin-bottom: 8px;
    text-align:left;
}
.tblout {
    background-color: #EFEFEF;
}
.tblover {
    background-color: #EFEFEF;
}
div ul, ol { /* listes */
    padding: 8px 0 8px 8px;
    margin-left: 16px;
}
div li{
    padding: 0;
    margin-left: 12px;
}
/*************
 * Calendar */
.cal {
    width: 100%;
    text-align: center;
    margin: auto;
    border-collapse: separate;
    border: 1px solid #D3D3D3;
    border-radius: 6px;
    border-spacing: 1px;
    color: inherit;
    background-color: #EAEAEA;
}
tr.cal { /* calendar nav bar */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;
    text-align: center;
}
td.cals { /* week */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;

    width: 14%;
    text-align: center;
}
td.cal0 { /* empty cell*/
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;
    width: 14%;
    text-align: center;
}
td.cal1 { /* days */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;
    width: 14%;
    text-align: center;
}
td.cal2 { /* today */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #DEFFC1;
    border: 1px solid #000000;
    border-radius: 6px;
    width: 14%;
    text-align: center;
}
td.cal3 { /* sunday or special */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;
    border: 1px solid #000000;
    border-radius: 6px;
    width: 14%;
    text-align: center;
}
td.cal4 { /* today is sunday or special */
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #EAEAEA;
    border: 1px solid #000000;
    border-radius: 6px;
    width: 14%;
    text-align: center;
}
td.calevt { /* planner event */
    font: bold 14px Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: #C5D1A5;
    text-decoration: underline;
    text-align: center;
    width: 14%;
}
/************************
 * Formulaires (Forms) */
form { /* formulaire */
    margin: 3px 0;
}
fieldset { /* Encadrement des champs */
    border: 1px solid #8F916A;
    border-radius: 6px;
    margin: 8px;
    padding: 6px;
}
legend, .legend { /* légende des encadrements */
    font: 14px Arial, Helvetica, sans-serif !important;
    color: #000000 !important;
    background-color: inherit !important;
    font-weight: bold !important;
    padding: 0 4px !important;
    margin-left: 5% !important;
    width: auto !important;
}
input.bouton, button { /* bouton */
    cursor: pointer;
    margin: 4px 0;
    color: #000000;
    border: 1px inset #000000;
	border-radius: 4px;
    background-color: #FFF;
    font: 14px Arial, Helvetica, sans-serif;

}
input.texte { /* champ texte */
    background-color: #FFF;
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    border: 1px solid #000;
    border-radius: 4px;
    margin: 4px;
	padding: 2px 6px;
}
select { /* champ select */
    color: #000000;
    background-color: #FFF;
    font: 14px Arial, Helvetica, sans-serif;
    border: 1px solid #000000;
	border-radius: 4px 0 0 4px;
    margin: 4px 0;
}
textarea { /* champ textarea */
    color: #000000;
    background-color: #FFF;
    border: 1px solid #000000;
    overflow: auto;
    margin: 4px 0;
}
/*************************************
 * block box central forum - tables */
.forum, .forum a {
    background-color: #7F7F7F;
    padding: 5px 0;
    font: bold 14px Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    text-align: center;
}
.quest {
    background-color: #FAF6FF;
    padding: 5px;
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    text-align: left;
}
.rep {
    background-color: #EEE;
    padding: 10px 5px 5px 5px;
    font: 14px Arial, Helvetica, sans-serif;
    color: #000000;
    text-align: left;
}
.bord {
    border: 1px solid #8F916A;
    padding: 1px;
}
/**********************
 * Editeur CKEditor */
.Code {
    border: 1px solid #8F916A;
    padding-right: 5px;
    padding-left: 5px;
    color: #000000;
    font: 14px Arial, Helvetica, sans-serif, Monospace;
    background-color: #E3EDC7;
}
/************************
 * Divers, inclassables */
.top {
    font: 0.8em Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: inherit;
    text-align: center;
}
.timer {
    font: italic 0.9em Arial, Helvetica, sans-serif;
    color: #000000;
    background-color: inherit;
    text-align: center;
    padding: 8px;
}
.c-pointer, .clsCursor { cursor: pointer; }
.c-help, .cursorHelp { cursor: help; }
.notice {
    color: red;
    background-color: #FF9;
    padding: 2px;
}
.errorInputText {
    background-color: #FFE5E5;
    font: 13px Arial, Helvetica, sans-serif;
    color: #000099;
    border: 1px solid #8F916A;
    border-radius: 4px;
    margin: 4px;
	padding: 2px 6px;
}
.navbarLeftW { padding: 5px; }
.imgPlus { padding-left: 5px; }
.navbarRightW { padding: 5px; }
.dispError {
    max-width: 480px;
    margin: auto;
    background-color: #FFF;
}
.dispError2 {
    color: #FFF;
    background-color: #FF0000;
    text-align: center;
    font-size: 13pt;
    font-weight: bold;
    padding: 2px 0;
}
.w-98 { width: 98% !important; }
.w-95 { width: 95% !important; }
.w-90 { width: 90% !important; }
.w-88 { width: 88% !important; }
.w-85 { width: 85% !important; }
.w-80 { width: 80% !important; }
.w-78 { width: 78% !important; }
.w-76 { width: 76% !important; }
.w-70 { width: 70% !important; }
.w-65 { width: 65% !important; }
.w-60 { width: 60% !important; }
.w-55 { width: 55% !important; }
.w-48 { width: 48% !important; }
.w-45 { width: 45% !important; }
.w-40 { width: 40% !important; }
.w-35 { width: 35% !important; }
.w-30 { width: 30% !important; }
.w-22 { width: 22% !important; }
.w-20 { width: 20% !important; }
.w-18 { width: 18% !important; }
.w-15 { width: 15% !important; }
.w-10 { width: 10% !important; }
.w-5  { width: 5%  !important; }
.fs-14 { font-size: 1.1rem !important; }
/***************************
 * Evaluation mot de passe */
.alert {
    background-color: #FCF8E3;
    border: 1px solid #000000;
    margin: 4px 0;
    padding: 2px;
    color: #000000;
    text-align: center;
    font-weight: bold;
}
.alert-error {
    color: #FFFFFF;
    background-color: #FF0000;
    border-color: #EED3D7;
}
.alert-success {
    color: #000000;
    background-color: #00FF00;
    border-color: #D6E9C6;
}
.alert-info {
    color: #FFFFFF;
    background-color: #009DFF;
    border-color: #BCE8F1;
}
/**************
 * Statistics */
.tdstats { padding: 5px; }
.vertbarStat { width: 2em; white-space: nowrap; }
.horiztxtStat { width: 100px; margin: 10px; }
.horizbarStat { white-space: nowrap; margin: 10px; }
/********************
 * Menus déroulants */
@media screen and (min-width: 760px) {
  .navbar.ddl {
    display: flex;
    padding-top: 0px;
    padding-bottom: 0px;
    max-width: 100%;
  }
  .navbar.ddl .nav-item {
    margin: 0;
  }
  .navbar.ddl .dropdown { position: static; }
  .dropdown-toggle::after { display:none; }
  .navbar.ddl .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    top: 35px;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.4s linear;
  }
  .navbar.ddl .dropdown:hover .dropdown-menu, .navbar.ddl .dropdown .dropdown-menu:hover {
    display: block;
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.4s linear;
  }
}
.navbar.ddl .dropdown-menu { border: none; }
.navbar.ddl .dropdown-menu div[class*="col"] {
    margin-bottom: 1rem;
}
.navbar.ddl a.navbar-brand, .navbar.ddh a.navbar-brand, 
.navbar ul.navbar-nav a.nav-link, .nav-link {
    font: bold 1.1rem Nunito, sans-serif;
    color: rgba(0,0,0, 1) !important;
}
.navbar.ddl a.navbar-brand:hover, .navbar ul.navbar-nav a.nav-link:hover,
.navbar.ddl a.navbar-brand:focus, .navbar.ddh a.navbar-brand:hover, 
.navbar ul.navbar-nav a.nav-link:focus {
    background-color: rgba(3,203,63, 1) !important;
    color: rgba(255,255,255, 1) !important;
}
.navbar.ddl, .navbar.ddl ul {
	background-color: #FFF;
	color: rgba(0,0,0, 1) !important;
	max-width: 1000px;
}
.navbar.ddl ul.navbar.ddl .dropdown-menu {
    margin-top: .75rem !important;
    height: auto;
    background-color: #E7E1EF;
    border: 0;
    border-radius: 0;
}
.navbar.ddl .dropdown-menu > div, .navbar.ddl .dropdown-menu > div p {
    font-size: 1.2rem;
    color: #000000;
}
.navbar .navbar-toggler, .navbar.ddl .navbar-toggler, .navbar.ddh .navbar-toggler {  /* bordure icône de la barre en mobile */
    border-color: rgba(0,0,0, 0.9);
    border-radius: 0.35rem;
}
.navbar.ddl .navbar-toggler-icon { /* couleur texte icône de la barre en mobile (stroke) */
    background-image: url("data:image/svg+xml,%3csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"30\" height=\"30\" viewBox=\"0 0 30 30\"%3e%3cpath stroke=\"rgba(0,0,0, 0.9)\" stroke-linecap=\"round\" stroke-miterlimit=\"10\" stroke-width=\"2\" d=\"M4 7h22M4 15h22M4 23h22\"/%3e%3c/svg%3e") !important;
}
.showblock { background-color:#FFF; border-radius: 6px; }
ul.keyword {
    list-style: none;
    margin: 0; 
    padding: 0;
    position: relative;
    float: left;
}
ul.keyword li {
    margin: 0;
    padding: 0 6px;
    background-color: inherit;
    color: #000;
    list-style: none;
    float: left;
    background-color: #FFF;
    border: 1px solid #000;
    border-radius: 4px;
}
ul.keyword li:hover {
    background-color: #FFF;
    color: #000;
    position: relative;
    z-index: 599;
    cursor: pointer;
}
ul.keyword ul {
    width: 220px;
    list-style: none;
    margin: 0;
    padding: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 95%;
    z-index: 598;
}
ul.keyword-horizontal ul li *.dir {
    padding-right: 20px;
}
ul.keyword a:hover {
	color: #FF0000;
	font-weight: normal;
}
ul.keyword li:hover > ul {
    transition-property : visibility;
    transition-delay : 200ms;
    visibility: visible;
    line-height: 1.8em;
}
ul.keyword div {
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #FFF;
	z-index: 597;
}
.hover_img a { position:relative; }
.hover_img a span { background: #FFF; position:absolute; left:120px; display:none; z-index:99; border: 1px solid #000; padding:10px; }
.hover_img a:hover span { display:block; }
.hover_img img { max-width: 468px; height: auto; color:#000}/*si pas d'image (noscreen) le texte du tag alt sera en noir*/
.hover_img img::after  { content: url(inc/img/files/noscreen.jpg); } /*affichage de cette image si le lien n'est pas une image*/

.overpop { cursor: help; }
.overpop a i { color: inherit; }
.inputuid { width: 220px; max-width: 100%; }

.navbarLeftW i.cur, .navbarLeftM i.cur, 
.navbarRightW i.cur, .navbarRightM i.cur { font-size: 1.5rem; margin-top: 5px; }
.navbarLeftW i.curN, .navbarLeftM i.curN, 
.navbarRightW i.curN, .navbarRightM i.curN { font-size: 1.5rem; margin-top: 5px; opacity: 0.5; }

.text-transparent { color: transparent !important; }
.bg-yellow { background-color: rgb(255, 255, 0) !important; }

.part-left { text-align: left; }
.part-right { text-align: right; }

@media screen and (max-width: 760px), screen and (max-device-width: 760px) {
  .fs-14 { font-size: 1rem !important; }
  .part-left, .part-right { text-align: center !important; }
  .colorpicker { left: auto !important; }
}
bpage.inc
wget 'https://sme10.lists2.roe3.org/guppy/admin/bpage.inc'
View Content
<?php
/*******************************************************************************
 *   Site Bottom & Right of Page
 *******************************************************************************
 *   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.17 (January 23, 2024) : add Opcache code
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'bpage.inc')) {
    header('location:../index.php');
    die();
}
if (function_exists('opcache_get_configuration'))
{
	// Ces Lignes ne peuvent être mises qu'à la fin du script
	// Clear du cache et restore de opcache.enable
	if ($site[7] == 'on')
	{
		if (OPCACHEDISABLE == 1) //cache enable voir constantes
		{
			if (OPCACHEINISET == 1) // Gestion des options caches enable/disable
			{	
				if (ini_get('opcache') == 1) 
				{
					ini_set('opcache.enable', '0');
//					echo ' OPcache désactivé fait<br />';
				}
				else
				 ini_restore('opcache.enable');				
			}
		}
		/*
		   Clear du cache disque géré par PHP
		*/
		clearstatcache();
		// Invalidation du fichier contenant les constantes
		if (function_exists('opcache_invalidate')) {
		  opcache_invalidate(CHEMIN.INCREP.'constantes.php', TRUE);
		}
	}
}
if ($lng == 'fr') {
	$txtspe = '
  &nbsp;
  <a class="copyright" href="https://www.freeguppy.org/" title="freeguppy.org" target="_blank">
	'.($site[35] == 'T' ? 'Propulsé par GuppY' : '<i class="gen-gypower"></i>').'
  </a>
  &nbsp; '.html_entity_decode('© '.MP_COPYRIGHT, ENT_COMPAT, $charset).' &nbsp;
  <a class="copyright" href="http://cecill.info/index.fr.html" title="En savoir plus ..." target="_blank">
	'.($site[35] == 'T' ? 'Sous Licence Libre CeCILL' : '<i class="gen-gycecill-f align-middle" title="More info ..."></i>').'
  </a>
  &nbsp;';
}
else {
	$txtspe = '
  &nbsp;
  <a class="copyright" href="https://www.freeguppy.org/" title="freeguppy.org" target="_blank">
	'.($site[35] == 'T' ? 'Powered by GuppY' : '<i class="gen-gypower align-middle" title="freeguppy.org"></i>').'
  </a>
  &nbsp; '.html_entity_decode('© '.MP_COPYRIGHT, ENT_COMPAT, $charset).' &nbsp;
  <a class="copyright" href="http://cecill.info/index.en.html" title="More info ..." target="_blank">
	'.($site[35] == 'T' ? 'Under Free License CeCILL' : '<i class="gen-gycecill-f align-middle" title="More info ..."></i>').'
  </a>
  &nbsp;';
}

echo '
    <!-- Begin of ADMIN BOTTOM_BOXES -->
    <div style="margin-bottom:20px;">';
if (!empty($admcookie)) echo '
	  <div style="text-align:center; font-size: 14px;">
	    <a href="#top">
		  <i class="fas fa-chevron-circle-up"></i>
		  <b> '.$admin[1583].' </b>
		  <i class="fas fa-chevron-circle-up"></i>
	    </a>
	  </div>
      <div class="table-responsive-md">
      <table class="bord w-98 m-auto rounded-pill fs-14">
        <tr>
          <td class="col0 w-85">'.@ExecFunctionBox(BOX_BOTTOM, '||fbox_ariane||W12').'</td>
          <td class="col3 w-15 text-center">
            <strong><a href="admin.php?lng='.$lng.'&amp;logout=1">'.$admin[19].'</a></strong>
          </td>
        </tr>
      </table>
      </div>
      ';
echo '
      <div style="text-align:center;">'.$txtspe.'</div>
    </div>
    <!-- End of ADMIN BOTTOM_BOXES -->
  </div>
	';
    if ($page[8] == 'on') {
        $timer = StopTimer();
        echo '
        <div class="timer">
          '.$web[116].' '.$timer.' '.($timer <= 1 ? $web[117] : $web[118]).'
        </div>';
    }
echo '
</div>
<!-- end page -->

</body>
</html>';
?>
funcarch.php
wget 'https://sme10.lists2.roe3.org/guppy/admin/funcarch.php'
View Content
<?php
/*******************************************************************************
 *   Archives Specific Functions
 *******************************************************************************
 *   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.19 (August 26, 2024) : Archives Epuration
 ******************************************************************************/

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

define('ARCHDBBASE', ARCHREP.'doc');
define('ARCHDBIPBASE', ARCHREP.'ipdoc');
define('DOCIDARCH', ARCHREP.'docid'.DBEXT);
define('DBFORUMARCH', ARCHREP.TYP_FORUM.DBEXT);
define('DBTHREADARCH', ARCHREP.TYP_THREAD.DBEXT);

function UpdateDocCounterArch($id) {
    $DataDB = ReadDocCounter(ARCHDBBASE.$id);
    $vote = DejaVote(ARCHDBIPBASE.$id.DBEXT,300);
    if ($vote[0] == false) {
        $DataDB++;
        WriteDocCounter(ARCHDBBASE.$id,$DataDB);
    }
    return $DataDB;
}

function UpdateDBforumArch() {
    global $site,$type,$fileid,$status,$creadate,$moddate,$author,$email,
        $fielda1,$fielda2,$fieldb1,$fieldb2,$fieldc1,$fieldc2,$fieldd1,$fieldd2;
    $db = array();
    $db = ReadDBFields(DOCIDARCH);
    @sort($db);
    $dbf = array();
    $j = 0;
    for ($i = 0; $i < count($db); $i++) {
        if ($db[$i][2] == 'a') {
            ReadDoc(ARCHDBBASE.$db[$i][1]);
            $dbf[$j][0] = $creadate;
            $dbf[$j][1] = $fielda1;
            $dbf[$j][2] = $fielda2;
            $dbf[$j][3] = $fileid;
            $dbf[$j][4] = RemoveConnector($author);
            $dbf[$j][5] = RemoveConnector($email);
            $dbf[$j][6] = RemoveConnector($fieldb1);
            $dbf[$j][7] = $fieldd1;
            $dbf[$j][8] = $fieldb2;
            $j++;
        }
    }
    $db = array();
    @sort($dbf,SORT_REGULAR);
    WriteDBFields(DBTHREADARCH,$dbf);
    $dbf = array();
    $db = ReadDBFields(DBTHREADARCH);
    $j = 0;
    for ($i = 0; $i < count($db); $i++) {
        if ($db[$i][2] == '0') {
            $dbf[$j][0] = $db[$i][0];
            $dbf[$j][1] = $db[$i][1];
            $dbf[$j][2] = $db[$i][3];
            $dbf[$j][3] = $db[$i][4];
            $dbf[$j][4] = $db[$i][5];
            $dbf[$j][5] = $db[$i][6];
            $dbf[$j][6] = $db[$i][0];
            $dbf[$j][7] = 0;
            $dbf[$j][8] = '';
            $dbf[$j][9] = '';
            $dbf[$j][10] = $db[$i][7];
            $dbf[$j][11] = '';
            $dbf[$j][12] = $db[$i][8];
            for ($k = $i+1; $k < count($db); $k++) {
                if ($db[$k][1] == $dbf[$j][1]) {
                    $dbf[$j][0] = $db[$k][0];
                    $dbf[$j][7] = $dbf[$j][7]+1;
                    $dbf[$j][8] = $db[$k][4];
                    $dbf[$j][9] = $db[$k][5];
                    $dbf[$j][11] = $db[$k][7];
                }
            }
            $j++;
        }
    }
    @rsort($dbf,SORT_REGULAR);
    WriteDBFields(DBFORUMARCH,$dbf);
}
?>
hpage.inc
wget 'https://sme10.lists2.roe3.org/guppy/admin/hpage.inc'
View Content
<?php
/*******************************************************************************
 *   Site Index Top of Page
 *******************************************************************************
 *   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.19 (August 20, 2024) : add Opcache code
 ******************************************************************************/

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

if (function_exists('opcache_get_configuration'))
{
/*
echo 'Dans constantes.php Opcachedisable pour les disques 1 pour oui, 0 pour enable?: '.OPCACHEDISABLE.'<br />';
echo 'Dans constantes.php Opcachetempo en seconde: '.OPCACHETEMPOSECONDE.'<br />';
echo 'Dans constantes.php Mise en place des Ini_set pour oui Disable/Enable =>1 , pour Non =>0: '.OPCACHEINISET.'<br />';
	// Appel du tableau des configurations OPcache enregistrées dans php.ini
	$mropcacheconfiguration = opcache_get_configuration();
	echo '<br />';
	var_dump($mropcacheconfiguration); // Affichage du tableau
	echo '<br />';
*/
	// Si opcache est active mettre en disable
	if ($site[7] == 'on')
	{
		if (OPCACHEDISABLE == 1)
		{
			if (OPCACHEINISET == 1) // Gestion des options caches enable/disable
			{	
				if (ini_get('opcache') == 1) 
				{
					ini_set('opcache.enable', '0');
	//				echo ' OPcache désactivé fait<br />';
				}
			}
		}
	}
} // fin de existance opcache_get_configuration()
$toppage = stripslashes($site[($lang[0] == $lng ? 0 : 11)]);
if (($page[22]) && (!empty($topmess))) {
    $toppage .= ' - '.strip_tags($topmess);
}
if ($serviz[32] == 'on' && $serviz[42] == 'on' && FileDBExist(CHEMIN.'admin/redac/'.$userprefs[1].INCEXT)) {
    include CHEMIN.'admin/redac/'.$userprefs[1].INCEXT;
}
echo '<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="'.$lng.'">';

	///////////////////////////////////////////////////////////////////////////////////
	//                                                                               //
	//                GuppY is protected by the CeCILL FREE LICENSE.                 //
	//  REMOVING OR MODIFYING THE FOLLOWING COPYRIGHT NOTICE IS STRICTLY FORBIDDEN.  //
	//                                                                               //
	///////////////////////////////////////////////////////////////////////////////////

echo '

  <!--[  GuppY v'.MP_VERSION.' CeCILL Copyright (C) '.MP_COPYRIGHT.' by Laurent Duveau - https://www.freeguppy.org/  ]-->

<head>
<meta http-equiv="content-type" content="text/html; charset='.$charset.'" />
<meta name="application-name" content="'.$toppage.'" />

<title>'.$toppage.'</title>

<meta name="description" content="'.$site[1].'" />
<meta name="generator" content="GuppY CMS" />
<meta name="author" content="'.$site[9].'" />
<meta name="keywords" content="'.$site[2].'" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">';
echo '
<link rel="shortcut icon" href="'.$site[3].'favicon.ico">';

echo '
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" 
  integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.2/css/bootstrap.min.css" 
  integrity="sha512-rt/SrQ4UNIaGfDyEXZtNcyWvQeOq0QLygHluFQcSjaGB04IxWhal71tKuzP6K8eYXYB6vJV4pHkXcmFGGQ1/0w==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/default.min.css" 
  integrity="sha512-3xLMEigMNYLDJLAgaGlDSxpGykyb+nQnJBzbkQy2a0gyVKL2ZpNOPIj1rD8IPFaJbwAgId/atho1+LBpWu5DhA==" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/SocialIcons/1.0.1/soc.min.css" 
  integrity="sha512-PTz/4lAo890ortUEd041dNdebPVxpjxZiTTgW8DXUTIiPZQGXFua9U7izCygP7NqHUDmaDF4F1CswmblvYq4Vw==" crossorigin="anonymous" />
<link rel="stylesheet" href="'.CHEMIN.'admin/admstyle.css" />
<link rel="stylesheet" href="'.CHEMIN.'admin/admbs4style.css" />
<link rel="stylesheet" href="'.CHEMIN.'admin/inc/img/admin/admin.css" />
<link rel="stylesheet" href="'.CHEMIN.'admin/inc/img/files/admfiles.css" />
<link rel="stylesheet" href="'.CHEMIN.'inc/lang/flags.css" />
<link rel="stylesheet" href="'.CHEMIN.'inc/img/browser/browsers.css" />
<link rel="stylesheet" href="'.CHEMIN.'inc/img/avatars/'.$page[23].'.css" />
<link rel="stylesheet" href="'.CHEMIN.'inc/img/general/forum.css" />
<link rel="stylesheet" href="'.CHEMIN.'inc/img/general/general.css" />
<link rel="stylesheet" href="'.CHEMIN.'admin/inc/img/admin/admin_secure.css" />
';

echo BeginJavascript().'
var charset = "'.$charset.'";
var site0 = "'.htmlspecialchars($site[($lang[0] == $lng ? 0 : 11)]).'";
var site3 = "'.$site[3].'";
'.EndJavascript();

// ordre de chargement : jquery, popper, bootstrap (ou jquery, bundle)
echo 
  JavascriptFile(CHEMIN.'inc/hpage.js').'
  <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" 
  integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.2/js/bootstrap.bundle.min.js" 
	integrity="sha512-igl8WEUuas9k5dtnhKqyyld6TzzRjvMqLC79jkgT3z02FvJyHAuUtyemm/P/jYSne1xwFI06ezQxEwweaiV7VA==" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js" 
  integrity="sha512-0QbL0ph8Tc8g5bLhfVzSqxe9GERORsKhIn1IrpxDAgUsbBGz/V7iSav2zzW325XGd1OMLdL4UiqRJj702IeqnQ==" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js" 
  integrity="sha512-Pbb8o120v5/hN/a6LjF4N4Lxou+xYZ0QcVF8J6TWhBbHmctQWd8O6xTDmHpE/91OjPzCk4JRoiJsexHYg4SotQ==" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/SocialIcons/1.0.1/soc.min.js" 
  integrity="sha512-eUJ3eP9+avp5kHKhfx5gB0vzLEgMkZiOmZcpVqJmlg9hMMse2SChMOTSDWl6oYGfmYW2N7oO/W6CqpgYBneqKw==" crossorigin="anonymous">
</script>
<script src="https://unpkg.com/bootstrap-show-password@1.2.1/dist/bootstrap-show-password.min.js"></script>
';

$loader = '';
$unloader = '';

echo $headinc;

echo '
</head>
<body'.
    (!empty($loader)  ? ' onload="'.$loader.'"' : '').
    (!empty($unloader) ? ' onunload="'.$unloader.'"' : '').'>';
echo '
<div id="page">';
echo '
  <div id="header">
';

if ($serviz[44] == "on") {
    // Site en travaux
    echo '
    <div id="work" class="notice" style="padding:10px; border:3px solid red; text-align:center; font-weight:bold; font-size:larger;">
      ATTENTION : site en travaux - CAUTION: work in progress
    </div>
';
}
echo '
  </div>
  <a id="top"></a>
';

$bccount = 0;
$wposbox = array();
foreach ($templates as $keyconf=>$valueconf) {
	foreach (array(BOX_LSIDE, BOX_LEFT, BOX_CENTER, BOX_RIGHT, BOX_RSIDE) as $key) {
		foreach ($xposbox[$keyconf][BOX_TOP][$key] as $i=>$value) {
			$args  = '';
			if (!empty($value)) {
				$pos   = strrpos($value, 'W');
				$args  = $pos === false ? '' : substr($value, $pos + 1);
				$value = $pos === false ? $value : substr($value, 0, $pos);
				$value = substr($value, -1) == '|' ? substr($value, 0, -2) : $value;			
			}
			$xposbox[$keyconf][BOX_TOP][$key][$i] = $value;
			$wposbox[$keyconf][BOX_TOP][$key][$i] = $args;
		}
		foreach ($xposbox[$keyconf][BOX_BOTTOM][$key] as $i=>$value) {
			$args  = '';
			if (!empty($value)) {
				$pos   = strrpos($value, 'W');
				$args  = $pos === false ? '' : substr($value, $pos + 1);
				$value = $pos === false ? $value : substr($value, 0, $pos);
				$value = substr($value, -1) == '|' ? substr($value, 0, -2) : $value;
			}
			$xposbox[$keyconf][BOX_BOTTOM][$key][$i] = $value;
			$wposbox[$keyconf][BOX_BOTTOM][$key][$i] = $args;
		}
	}
}
foreach (array(BOX_LSIDE, BOX_LEFT, BOX_CENTER, BOX_RIGHT, BOX_RSIDE) as $key) {
	foreach ($xposbox[BOX_EDITO][$key] as $i=>$value) {
		$args  = '';
		if (!empty($value)) {
			$pos   = strrpos($value, 'W');
			$args  = $pos === false ? '' : substr($value, $pos + 1);
			$value = $pos === false ? $value : substr($value, 0, $pos);
			$value = substr($value, -1) == '|' ? substr($value, 0, -2) : $value;
		}
		$xposbox[BOX_EDITO][$key][$i] = $value;
		$wposbox[BOX_EDITO][$key][$i] = $args;
	}
}

// php or html scripts located in directory admin/incadmin are automatically include at the top of the page
if (is_dir('incadmin')) { 
	$hd = opendir('incadmin');
	while ($file = readdir($hd)) { 
        if (1 == preg_match('!^[^_].*(\.inc|\.inc\.php)$!', $file)) {
			include 'incadmin/'.$file;
		}
	}
}

$tconfig = !isset($templates[$tconfig]) ? 0 : $tconfig;

$flags = '';
if ($lang[1] != '') {
    $flagurl = str_replace('&', '&amp;', $endurl);
    if ($lng == $lang[0]) $flagurl = str_replace('lng='.$lang[0], 'lng='.$lang[1], $flagurl); 
    if ($lng == $lang[1]) $flagurl = str_replace('lng='.$lang[1], 'lng='.$lang[0], $flagurl); 
    $flags = '
  <div>
    <a href="'.$flagurl.'"><i class="flg-'.$lang[$lng == $lang[0] ? 1 : 0].'" title="'.$lang[$lng == $lang[0] ? 1 : 0].'"></i></a>
  </div>';
}
echo '
  <div id="AdminBoxes">
    <!-- Begin of ADMIN TOPBOXES -->
	<div class="row titre text-center mb-2 py-2 rounded-pill">
      <div class="col-md-1 part-left px-3">'.$flags.'</div>
      <div class="col-md-6 part-right px-0">
        '.$site[($lang[0] == $lng ? 0 : 11)].' ['.MP_VERSION.'] &nbsp;<i class="far fa-hand-point-right"></i>&nbsp;
      </div>';
if (!isset($grpcol))  $grpcol = 'ALL';
if ($userprefs[1] != '') {
    $userstatus = isset($drtuser[42]) ? $drtuser[42] : 'admin';
    echo '
      <div class="col-md-5 part-left pl-1 pr-0">'.$userprefs[1].' '.$userstatus.' : '.($grpcol != '' ? $grpcol : 'ALL').'</div>';
}
echo '
    </div>
    ';
?>
includes.inc
wget 'https://sme10.lists2.roe3.org/guppy/admin/includes.inc'
View Content
<?php
/*******************************************************************************
 *   Load Includes
 *******************************************************************************
 *   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.19 (August 26, 2024) : add security
 ******************************************************************************/

if (stristr($_SERVER['SCRIPT_NAME'], 'includes.inc')) {
    header('location:../index.php');
    die();
}
if (@preg_match("!//|/\*|#|:/|\.\./|%2E\./|\.%2E/|%2E%2E/|document.cookie|script!i", $_SERVER["QUERY_STRING"])) {
    die("Requête non autorisée - Request not allowed");
}
error_reporting( E_ALL ^ E_NOTICE );

$endurl = strip_tags($_SERVER['REQUEST_URI']);
$lang   = array('','');

if (!defined('PHP700')) define('PHP700', version_compare(PHP_VERSION, '7.0.0', '>='));
@ob_implicit_flush();

include CHEMIN.'inc/functions.php';
include CONFIG;
define('SITE3', $site[3]);
$tconfig = 0;

$_SERVER['HTTPS'] = is_ssl() ? 'on' : '';

if (substr($serviz[101], -2) != 'px') $serviz[101] = '800px';

include CHEMIN.'inc/func_groups.php';
include CHEMIN.'inc/func_groupscol.php';
include CHEMIN.'inc/func_groupsnwl.php';
include CHEMIN.'inc/func_boxes.php';
include CHEMIN.'inc/func_blogboxes.php';

date_default_timezone_set($site['TZ']);
$pg  = import('pg');
$lng = import('lng');

$userprefs = array_pad(array(), 31, '');
if (!empty($_COOKIE[USER_COOKIE])) {
    $usercookie = gy_decrypt(CRYPT_KEY, $_COOKIE[USER_COOKIE]);
    $positem    = 0;
    for ($i = 0; $i < 31; $i++) {
        $poslen        = $positem + 2;
        $posdata       = $positem + 4;
        $lendata       = intval(substr($usercookie, $poslen, 2));
        $userprefs[$i] = substr($usercookie, $posdata, $lendata);
        $userprefs[$i] = $userprefs[$i] == 'off' ? '' : $userprefs[$i];
        $positem       = $posdata + $lendata;
    }
    if (($userprefs[0] == $lang[0] || $userprefs[0] == $lang[1]) && empty($lng)) {
        $lng = strip_tags($userprefs[0]);
    }
    $userprefs[0] = strip_tags($userprefs[0]);
    $userprefs[1] = preg_replace('![^-a-zA-Z0-9_]!i', '', substr(strip_tags($userprefs[1]), 0, $serviz[148]));
    $userprefs[2] = strip_tags($userprefs[2]);
    $userprefs[3] = strip_tags($userprefs[3]);
    $userprefs[4] = strip_tags($userprefs[4]);
    $userprefs[5] = strip_tags($userprefs[5]);
    $userprefs[6] = str_replace('\n', '<br />', strip_tags($userprefs[6]));
    $userprefs[7]  = strip_tags($userprefs[7]);
    $userprefs[8]  = strip_tags($userprefs[8]);
    $userprefs[9]  = strip_tags($userprefs[9]);
    $userprefs[10] = strip_tags($userprefs[10]);
    $userprefs[11] = strip_tags($userprefs[11]);
    $userprefs[12] = strip_tags($userprefs[12]);
    $userprefs[13] = strip_tags($userprefs[13]);
    $userprefs[14] = strip_tags($userprefs[14]);
    $userprefs[15] = strip_tags($userprefs[15]);
    $userprefs[16] = strip_tags($userprefs[16]);
    $userprefs[17] = strip_tags($userprefs[17]);
    $userprefs[18] = strip_tags($userprefs[18]);
    $userprefs[19] = strip_tags($userprefs[19]);
    $userprefs[20] = strip_tags($userprefs[20]);
    $userprefs[21] = strip_tags($userprefs[21]);
    $userprefs[22] = strip_tags($userprefs[22]);
    $userprefs[23] = strip_tags($userprefs[23]);
    $userprefs[24] = strip_tags($userprefs[24]);
    $userprefs[25] = strip_tags($userprefs[25]);
    $userprefs[26] = strip_tags($userprefs[26]);
    $userprefs[27] = strip_tags($userprefs[27]);
    $userprefs[28] = strip_tags($userprefs[28]);
    $userprefs[29] = strip_tags($userprefs[29]);
    $userprefs[30] = strip_tags($userprefs[30]);
}

if (!isset($selskin)) $selskin = import('selskin');
$selskin = preg_replace('`[^-a-z0-9_]`i', '', $selskin);
if (empty($page[14])) {
    $page[14] = 'no_skin';
}
if (!empty($userprefs[10])) {
    $page[14] = $userprefs[10];
}
if (!empty($selskin)) {
    $page[14] = $selskin;
}
if (empty($selskin)) {
    $selskin = $page[14];
}

if (empty($lng)) {
    $lng = $lang[0];
} elseif (($lng != $lang[0]) && ($lng != $lang[1])) {
    $lng = $lang[0];
}

if (!isset($_SERVER['REQUEST_URI'])) {
    $REQUEST_URI = $_SERVER['SCRIPT_NAME']."?".$_SERVER['QUERY_STRING'];
}

$pathconf = is_file(CHEMIN.'skins/'.$page[14].'/skin'.INCEXT) ? $page[14] : 'no_skin';
$fileconf = 'confweb';
include CHEMIN.'skins/'.$pathconf.'/skin'.INCEXT;
include CHEMIN.'inc/funcskin'.INCEXT;
include CHEMIN.'skins/'.$pathconf.'/confskin'.INCEXT;
include CHEMIN.'admin/inc/check_confs'.INCEXT;
include CHEMIN.'skins/'.$pathconf.'/'.$fileconf.INCEXT;
$z2 = !isset($body[16]) ? '#z2' : ($body[16] == 'on' ? '#z2' : '');

$flag1 = '<i class="flg-'.$lang[0].' align-middle" title="'.$lang[0].'"></i>';
$flag2 = '<i class="flg-'.$lang[1].' align-middle" title="'.$lang[1].'"></i>';
$aml0 = 'articles.php?lng='.$lng.'&pg='.$serviz[177].'&tconfig='.$serviz[178];
$aml1 = $lng.'-'.$urlrw[20].'-102-'.$serviz[177].'-'.$serviz[178];
$aml  = '<a href="'.(!empty($serviz[177]) ? CHEMIN.($site['URLR'] == 'on' ? $aml1 : $aml0).$z2 : '#').'" title="">';
$wbm0 = $site['PG'].'.php?lng='.$lng.'&typ='.TYP_MAIL;
$wbm1 = $lng.'-'.$urlrw[14].'-'.TYP_MAIL;
$wbm  = '<a href="'.CHEMIN.($site['URLR'] == 'on' ? $wbm1 : $wbm0).$z2.'" title="">';
include CHEMIN.INCREP.'lang/'.$lng.'-help'.INCEXT;
include CHEMIN.INCREP.'lang/'.$lng.'-admin'.INCEXT;
include CHEMIN.INCREP.'lang/'.$lng.'-web'.INCEXT;

include CHEMIN.'admin/inc/admfunctions.php';
StartTimer();
?>