/* ************************************************************************** * hiddenfiles.php ***************************************************************************/ /* ************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ if (PHPmyBrowser!="ok") { echo "Hacking attempt!"; exit; } /** * le tableau $HiddenFiles : * Fichiers/Répertoires qu'on veut masquer, on masque les fichiers du programme PHPmyBrowser ! * Les chemins des fichiers sont en fonction du répertoire d'installation de PHPexplorer * on ne peut pas mettre un ../repertoire, mais on peut mettre n'importe quel fichier * du répertoire de PHPexplorer ou d'un sous répertoire * à moins que je trouve une solution d'ici là ;-) * INSENSIBLE A LA CASSE, écrivez en majuscule ou minuscule, peu importe... * * the array $HiddenFiles : * it contains files/folders you want to hide. You may want to hide PHPmyBrowser folder * CASE INSENSITIVE ! * * {diskroot}/xxx * hide a folder/file from the disk root * cache une fichier ou un répertoire depuis la racine * example : /WINNT => {diskroot}/WINNT * * {alldir}/xxx * hide folder/file in ALL directories * cache le répertoire/fichier xxx dans chaque répertoire * example : .htaccess => {alldir}/.htaccess * @todo DOCUMENTATION * @package PHPmyBrowser */ //Par défaut : //$HiddenFiles=array( // 'index.php', // $PHPmyBrowserFolder, // $PHPmyBrowserCustom // ); //determinate the $PHP_SELF file name... by default it's index.php but if you change into //browse.php or other... ;-) $arr = explode('/', $_SERVER['PHP_SELF']); $HiddenFiles = array( //PHPmyBrowser script 'index.php', //main file / fichier principal //si vous le renommez n'oubliez pas de changer ici //if you rename it, do not forget to change it here $PHPmyBrowserFolder, //directory/répertoire => css/images/add-ons '{alldir}/'.$PHPmyBrowserCustom, '{alldir}/'.$COMMENT_file, //PHP scripts '{prog_php}', //Websites '{alldir}/.htaccess', //.htaccess files '{alldir}/.htpasswd', //Unix '/etc/passwd', //Windows specific '{diskroot}/pagefile.sys', //Windows memory cache file '{diskroot}/system volume information/', //Windows directory i don't know what it does lol '{diskroot}/recycled/', //Windows Recycled Bin '{diskroot}/recycler/', //sometimes (often?) windows bugs and another recycler bin is called recycler //so I don't know which one is correct ! LOL '{alldir}/desktop.ini', //Special windows directory (desktop, network, tasks...) '{alldir}/folder.htt', //Windows 98 & 2K boot system '{diskroot}/arcldr.exe', '{diskroot}/arcsetup.exe', '{diskroot}/autoexec.bat', //autoexec.* '{diskroot}/boot.ini', '{diskroot}/bootfont.bin', '{diskroot}/config.sys', '{diskroot}/drvspace.bin', '{diskroot}/io.sys', '{diskroot}/iph.ph', '{diskroot}/msdos.sys', '{diskroot}/ntdetect.com', '{diskroot}/ntldr', //Windows XP thumbnails '{alldir}/thumbs.db', //Finder index (?) '{alldir}/finder.dat', //CVS system '{alldir}/CVS/', '{alldir}/.cvsignore', //Softwares '{diskroot}/jfw.cps/', //Jaws '{alldir}/certify.bvd', //ViGUARD antivirus files ); if (substr_count(strtolower($_ENV["OS"]), "win") > 0) {//Add some special files //http://www.a2001.com/english/down/concon.html $DOSerror = Array('con','prn','nul','aux','clock$','config$','emmxxxx0','xmsxxxx0','setverxx', 'ifs$hlp$','$ibmadsp','dblbuff$','jkeyb$','biling$','ms$kanji','mscd001','$mmxxxx0','kkcfunc$', 'jkeyb$','$ibmafnt','setver','cd_101','mscd$$$$', 'lpt1','lpt2','lpt3','lpt4','lpt5','lpt6','lpt7','lpt8','lpt9', 'com1','com2','com3','com4','com5','com6','com7','com8','com9'); reset($DOSerror); while(list($DEkey,$item) = each($DOSerror)) $HiddenFiles[] = '{alldir}/'.$item.'.*'; unset($DOSerror); } // //IMPORTANT NOTE / NOTE IMPORTANTE // //I'm note a Linux big boss lol so if you know which file/folder are very critical //(password, system config...) please tell me : iubito@users.sourceforge.net //Je suis pas un boss sous linux donc si vous savez quels sont les fichiers critiques //(mot de passes, config...) dites-le moi par mail : iubito@users.sourceforge.net ?> /* ************************************************************************** * file.php ***************************************************************************/ /* ************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ /** * What is an "add-on" ? * * Add-ons are small functions called when the engine get the list of files, and when a * {@link default.php template} print this list. * * Some of them do minor tricks, {@link webimage.php} create image thumbnails, others add a javascript * to call a plug-in in a popup (convert a file for example). * * Add-ons are called "on the fly", plug-ins called by a popup, a form, or the parameter action * in the URL... (in forms this is an hidden field). * * How to use/create add-ons ? * * file.php is the add-on called for all files. For the moment, this does nothing, but you can write here * function that will apply to all files, e.g. if admin : delete, rename... * * For all add-on (file, images...), you can write two functions : *
if ($tabSize[$idx] < 10*1024)
* {
* //your file is less than 10 KB
* }
* else
* {
* //your file is larger
* }
* - you want to change the displayed type :
* $tabTyp[$idx] = 'what you want here';
*
* @author Sylvain Machefert Nom | Type | Taille | Modifié le | |
---|---|---|---|---|
.. [Répertoire parent] | ||||
cr réunion Comité des Programmes 211108.pdf | Adobe Acrobat | 89,0 Ko | 22/09/2009 14:46 | |
cr_reunion_Comite_des_ Programmes_260608.pdf | Adobe Acrobat | 80,1 Ko | 17/11/2008 09:46 | |
Présentation AR et DC 211108_1.pdf | Adobe Acrobat | 791,0 Ko | 22/09/2009 14:46 | |
Présentation EL 211108.pdf | Adobe Acrobat | 1 482,9 Ko | 22/09/2009 14:46 | |
Présentation NG 211108.pdf | Adobe Acrobat | 4 328,3 Ko | 22/09/2009 14:46 | |
Présentation PG 211108.pdf | Adobe Acrobat | 953,4 Ko | 22/09/2009 14:46 | |
Présentation XM 211108.pdf | Adobe Acrobat | 1 434,2 Ko | 22/09/2009 14:46 | |
Presentation_AR_et_DC_260608.pdf | Adobe Acrobat | 556,6 Ko | 17/11/2008 09:46 | |
Presentation_JA_Geoazur_260608.pdf | Adobe Acrobat | 697,7 Ko | 17/11/2008 09:46 | |
Presentation_MC_LOV_260608.pdf | Adobe Acrobat | 419,2 Ko | 17/11/2008 09:46 | |
Presentation_PA_260608.pdf | Adobe Acrobat | 1 791,4 Ko | 17/11/2008 09:46 | |
Presentation_ SB_260608.pdf | Adobe Acrobat | 394,6 Ko | 17/11/2008 09:46 |