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

plugin.inc
wget 'https://lists2.roe3.org/guppy/admin/plugins/speed/plugin.inc'
View Content
<?php
/*******************************************************************************
 *   Plugin Speed
 *******************************************************************************
 *   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();
}

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

$plugin_admin_name = $speed[7];
$plugin_admin_url  = 'speed/speed';
$plugin_admin_icon = 'speed/speed.gif';

$plugin_datas_uninstall = array(
   'dirs' => array(
   'plugins/speed',
   'admin/plugins/speed'
   ),
   'files' => array(
   'data/config/rules/speed.dtb',
   ),
   'unreg' => 'speed',
   'include' => 'admin/plugins/speed/uninstall.inc',
   'function' => 'speed_uninstall'
);

AddPluginBox($speed[7], 'plugins/speed/boxspeed', 'fbox_speed', BOX_ABOVE.BOX_UNDER);
?>
speed.gif
wget 'https://lists2.roe3.org/guppy/admin/plugins/speed/speed.gif'
View Content
speed.inc
wget 'https://lists2.roe3.org/guppy/admin/plugins/speed/speed.inc'
View Content
<?php
/*******************************************************************************
 *   Plugin Speed
 *******************************************************************************
 *   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'], 'speed.inc')) {
    header('location:../index.php');
    die();
}

$uninstall = import('uninstall');
$act       = import('act');

if ($uninstall == 'on') {
	include CHEMIN.'admin/plugins/speed/uninstall.inc';
	speed_uninstall('off');
}

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

include("plugins/funcplug.inc");

$speedy = import('speedy');
if ($regit == 1) {
    if ($speedy == 'on') {
        if (!PluginRegistered('speed')) {
            RegisterPlugin('speed', 'ALL', 'ALL');
        }
    }
    else {
        UnregisterPlugin('speed');
    }
}

$topmess = '<a href="admin.php?lng='.$lng.'">Admin</a> > '.str_replace('Admin - ', '', $speed[1]);
include CHEMIN.'admin/hpage.inc';
if ($wri == 'admin') include CHEMIN.'admin/administrateur.php';
if ($wri == $userprefs[1]) include CHEMIN.'admin/adminredac.php';
htable($speed[1], '100%');

if (trim($serviz[31]) == '' || $userprefs[1] == $serviz[176] || $userprefs[1] == $serviz[31] || $drtuser[42] == 'admin') {
	if ($act == 'uninst') {
		echo'
<hr />
<div style="text-align:center;">
  <a href="admin.php?lng='.$lng.'&amp;pg=plugin&amp;plug=speed/speed">'.$speed[1].'</a>
</div>
<hr />';
		echo '
<div style="margin:20px;text-align:center;">
  <form name="uninst" action="admin.php?lng='.$lng.'&amp;pg=plugin&amp;plug=speed/speed" method="POST">
	<input type="hidden" name="uninstall" value="on" />
    <p class="text-center">'.$speed[21].'</p>
	'.SubmitButton($speed[20]).'
  </form>
</div>
<hr />';
		btable();
		include CHEMIN.'admin/bpage.inc';
		exit();
	}
}

echo '
<p>'.$speed[2].'</p>
<hr />
<p>'.$speed[3].'<br />
<br />
<u>'.$speed[4].'</u><br />
'.$speed[5].'<br />
<br />
<u>'.$speed[6].'</u> <a href="'.CHEMIN.'plugins/speed/speed.php?lng='.$lng.'" target="_blank"><b>'.$speed[7].'</b></a>
</p>
<form name="speed" action="admin.php?lng='.$lng.'&amp;pg=plugin&amp;plug=speed/speed" method="post">
  <input type="hidden" name="regit" value="1" />
  <fieldset style="width:45%; margin:0 auto;">
    <p style="text-align:center">
      <label for="speedy">'.$speed[8].'&nbsp;&nbsp;</label>
      <input type="checkbox" id="speedy" name="speedy"'.Checked(PluginRegistered("speed")).' />
    </p>
    <p style="text-align:center">'.SubmitButton($admin[66]).'</p>
  </fieldset>
</form>
<br />';

if (trim($serviz[31]) == '' || $userprefs[1] == $serviz[176] || $userprefs[1] == $serviz[31] || $drtuser[42] == 'admin') {
	echo'
<hr />
<div style="text-align:center;padding:2px;">
  '.SubmitButton($speed[20], 'self.location.href=\'admin.php?lng='.$lng.'&pg=plugin&plug=speed/speed&act=uninst\'').'
</div>
<hr />';
}

btable();
include CHEMIN.'admin/bpage.inc';
?>
uninstall.inc
wget 'https://lists2.roe3.org/guppy/admin/plugins/speed/uninstall.inc'
View Content
<?php
/*******************************************************************************
 *   Speed 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'], 'uninstall.inc')) {
	header('location:../index.php');
	die();
}

function RemoveSkinsBox() {
    $boxes[0] = 'plugins/speed/boxspeed||fbox_speed';
    $allskindir = array();
    $hd = opendir(CHEMIN.'skins/');
    while ($name = readdir($hd)) {
        if ($name != '.' && $name != '..' && is_dir(CHEMIN.'skins/'.$name)) {
            $allskindir[] = CHEMIN.'skins/'.$name.'/';
        }
    }
    $fileconfs = array('confweb');
    foreach ($allskindir as $skindir) {
        foreach ($fileconfs as $fileconf) {
            unset($xposbox, $templates);
            include $skindir.$fileconf.'.inc';
            foreach ($boxes as $box) {
                foreach (array(BOX_LEFT, BOX_CENTER, BOX_RIGHT) as $pos) {
                    if (isset($xposbox[BOX_EDITO][$pos])) {
                        foreach ($xposbox[BOX_EDITO][$pos] as $e=>$item) {
                            $parts = explode('W', $item);
                            if ($box == $parts[0]) $xposbox[BOX_EDITO][$pos][$e] = '';
                        }
                    }
                }
                foreach ($templates as $key=>$name) {
                    foreach (array(BOX_LEFT, BOX_CENTER, BOX_RIGHT) as $pos) {
                        if (isset($xposbox[$key][BOX_TOP][$pos])) {
                            foreach ($xposbox[$key][BOX_TOP][$pos] as $t=>$item) {
                                $parts = explode('W', $item);
                                if ($box == $parts[0]) $xposbox[$key][BOX_TOP][$pos][$t] = '';
                            }
                        }
                        if (isset($xposbox[$key][BOX_BOTTOM][$pos])) {
                            foreach ($xposbox[$key][BOX_BOTTOM][$pos] as $b=>$item) {
                                $parts = explode('W', $item);
                                if ($box == $parts[0]) $xposbox[$key][BOX_BOTTOM][$pos][$b] = '';
                            }
                        }
                    }
                    foreach (array(BOX_LEFT, BOX_RIGHT, BOX_ABOVE, BOX_UNDER) as $pos) {
                        $n = array_search($box, $xposbox[$key][$pos]);
                        if ($n !== false) $xposbox[$key][$pos][$n] = '';
                    }
                }
            }
            $meskin = $skindir;
            include CHEMIN.'admin/inc/'.$fileconf.'.inc';
        }
    }
}

function speed_uninstall($keepdatas) {
    global $sid;
    RemoveSkinsBox();
	include CHEMIN.'admin/plugins/speed/plugin.inc';
    foreach ($plugin_datas_uninstall['dirs'] as $dir) {
        if ($keepdatas == 'on' && 1 == preg_match('!data/!', $dir)) continue;
        RecursiveRemoteDir(CHEMIN.$dir);
    }
    foreach ($plugin_datas_uninstall['files'] as $file) {
        if ($keepdatas == 'on' && 1 == preg_match('!data/config/rules/!', $file)) continue;
        @unlink(CHEMIN.$file);
    }
	if (!empty($plugin_datas_uninstall['unreg'])) {
		$regs = ReadDBFields(DBPLUGIN);
		$tmp  = array();
		foreach ($regs as $reg)
			if ($reg[0] != $plugin_datas_uninstall['unreg'])
				$tmp[] = $reg;
		WriteDBFields(DBPLUGIN, $tmp);
	}
    $htaccess = file_get_contents(CHEMIN.'.htaccess');
    if (1 == preg_match('!plugins/speed!', $htaccess)) {
        setURLrewriting('');
        setURLrewriting('on');
    }
	header('location:'.CHEMIN.'admin/admin.php?lng='.$lng);
	die();
}
?>