!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/HTML/Select/Common/   drwxr-xr-x
Free 11.88 GB of 61.93 GB (19.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     FRDepartements.php (7.49 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Provide Select list for Departements in France
 *
 * PHP Version 4
 *
 * @category  HTML
 * @package   HTML_Select_Common
 * @author    Richard Heyes <richard@php.net>
 * @author    Eric De Sousa <esc.z@wanadoo.fr>
 * @copyright 2002 Richard Heyes <richard@php.net>
 * @license   BSD (see http://www.opensource.org/licenses/bsd-license.php)
 * @version   CVS: $Id: FRDepartements.php 303988 2010-10-04 12:27:17Z clockwerx $
 * @link      http://pear.php.net/package/HTML_Select_Common
 */

/**
 * Class to produce a HTML Select dropdown of FR Departements
 *
 * @category HTML
 * @package  HTML_Select
 * @author   Richard Heyes <richard@php.net>
 * @author   Eric De Sousa <esc.z@wanadoo.fr>
 * @access   public
 * @license  BSD (see http://www.opensource.org/licenses/bsd-license.php);
 * @link     http://pear.php.net/package/HTML_Select_Common
 */

class HTML_Select_Common_FRDepartements
{
    
/**
    * Constructor
    *
    * @access public
    */
    
function HTML_Select_Common_FRDepartements()
    {
        
$this->_departements['01'] = 'Ain';
        
$this->_departements['02'] = 'Aisne';
        
$this->_departements['03'] = 'Allier';
        
$this->_departements['04'] = 'Alpes de-Htes Provence';
        
$this->_departements['05'] = 'Hautes-Alpes';
        
$this->_departements['06'] = 'Alpes-Maritimes';
        
$this->_departements['07'] = 'Ardèche';
        
$this->_departements['08'] = 'Ardennes';
        
$this->_departements['09'] = 'Ariège';
        
$this->_departements['10'] = 'Aube';
        
$this->_departements['11'] = 'Aude';
        
$this->_departements['12'] = 'Aveyron';
        
$this->_departements['13'] = 'Bouches-du-Rhône';
        
$this->_departements['14'] = 'Calvados';
        
$this->_departements['15'] = 'Cantal';
        
$this->_departements['16'] = 'Charente';
        
$this->_departements['17'] = 'Charente-Maritime';
        
$this->_departements['18'] = 'Cher';
        
$this->_departements['19'] = 'Corrèze';
        
$this->_departements['21'] = 'Côte d\'Or';
        
$this->_departements['22'] = 'Côtes d\'Armor';
        
$this->_departements['23'] = 'Creuse';
        
$this->_departements['24'] = 'Dordogne';
        
$this->_departements['25'] = 'Doubs';
        
$this->_departements['26'] = 'Drôme';
        
$this->_departements['27'] = 'Eure';
        
$this->_departements['28'] = 'Eure-et-Loir';
        
$this->_departements['29'] = 'Finistère';
        
$this->_departements['2A'] = 'Corse du Sud';
        
$this->_departements['2B'] = 'Hautes-Corse';
        
$this->_departements['30'] = 'Gard';
        
$this->_departements['31'] = 'Hautes-Garonne';
        
$this->_departements['32'] = 'Gers';
        
$this->_departements['33'] = 'Gironde';
        
$this->_departements['34'] = 'Hérault';
        
$this->_departements['35'] = 'Ille-et-Vilaine';
        
$this->_departements['36'] = 'Indre';
        
$this->_departements['37'] = 'Indre-et-Loire';
        
$this->_departements['38'] = 'Isère';
        
$this->_departements['39'] = 'Jura';
        
$this->_departements['40'] = 'Landes';
        
$this->_departements['41'] = 'Loir-et-Cher';
        
$this->_departements['42'] = 'Loire';
        
$this->_departements['43'] = 'Hautes-Loire';
        
$this->_departements['44'] = 'Loire-Atlantique';
        
$this->_departements['45'] = 'Loiret';
        
$this->_departements['46'] = 'Lot';
        
$this->_departements['47'] = 'Lot-et-Garonne';
        
$this->_departements['48'] = 'Lozère';
        
$this->_departements['49'] = 'Maine-et-Loire';
        
$this->_departements['50'] = 'Manche';
        
$this->_departements['51'] = 'Marne';
        
$this->_departements['52'] = 'Haute-Marne';
        
$this->_departements['53'] = 'Mayenne';
        
$this->_departements['54'] = 'Meurthe-et-Moselle';
        
$this->_departements['55'] = 'Meuse';
        
$this->_departements['56'] = 'Morbihan';
        
$this->_departements['57'] = 'Moselle';
        
$this->_departements['58'] = 'Nièvre';
        
$this->_departements['59'] = 'Nord';
        
$this->_departements['60'] = 'Oise';
        
$this->_departements['61'] = 'Orne';
        
$this->_departements['62'] = 'Pas-de-Calais';
        
$this->_departements['63'] = 'Puy-de-Dôme';
        
$this->_departements['64'] = 'Pyrénées-Atlantiques';
        
$this->_departements['65'] = 'Hautes-Pyrénées';
        
$this->_departements['66'] = 'Pyrénées';
        
$this->_departements['67'] = 'Bas-Rhin';
        
$this->_departements['68'] = 'Haut-Rhin';
        
$this->_departements['69'] = 'Rhône';
        
$this->_departements['70'] = 'Hautes-Saône';
        
$this->_departements['71'] = 'Saône-et-Loire';
        
$this->_departements['72'] = 'Sarthe';
        
$this->_departements['73'] = 'Savoie';
        
$this->_departements['74'] = 'Hautes-Savoie';
        
$this->_departements['75'] = 'Paris';
        
$this->_departements['76'] = 'Seine-Maritime';
        
$this->_departements['77'] = 'Sein-et-Marne';
        
$this->_departements['78'] = 'Yvelines';
        
$this->_departements['79'] = 'Deux-Sèvres';
        
$this->_departements['80'] = 'Somme';
        
$this->_departements['81'] = 'Tarn';
        
$this->_departements['82'] = 'Tarn-et-Garonne';
        
$this->_departements['83'] = 'Var';
        
$this->_departements['84'] = 'Vaucluse';
        
$this->_departements['85'] = 'Vendée';
        
$this->_departements['86'] = 'Vienne';
        
$this->_departements['87'] = 'Hautes-Vienne';
        
$this->_departements['88'] = 'Vosges';
        
$this->_departements['89'] = 'Yonne';
        
$this->_departements['90'] = 'Territoire de Belfort';
        
$this->_departements['91'] = 'Essonne';
        
$this->_departements['92'] = 'Hauts-de-Seine';
        
$this->_departements['93'] = 'Seine-St-Denis';
        
$this->_departements['94'] = 'Val de Marne';
        
$this->_departements['95'] = 'Val d\'Oise';
        
$this->_departements['971'] = 'Guadeloupe';
        
$this->_departements['972'] = 'Martinique';
        
$this->_departements['973'] = 'Guyane';
        
$this->_departements['974'] = 'Réunion';
    }

    
/**
    * Produces the HTML for the dropdown
    *
    * @param string $name            The name="" attribute
    * @param string $selectedOption  The option to be selected by default.
    *                                Must match the departement name exactly,
    *                                OR departement code
    *                                (though it can be a different case).
    * @param string $promoText       The text to appear as the first option
    * @param string $extraAttributes Any extra attributes for the <select> tag
    *
    * @return string                  The HTML for the <select>
    * @access public
    */
    
function toHTML(
        
$name,
        
$selectedOption null,
        
$promoText 'Selectionnez un departement...',
        
$extraAttributes ''
    
) {
        
$options[]      = sprintf('<option value="">%s</option>'$promoText);
        
$selectedOption strtolower($selectedOption);

        foreach (
$this->_departements as $code => $departement) {
            
$code strtolower($code);
            
//$departements_lc  = explode(' - ',$departements_ld);
            
$selected  = ($selectedOption == $code ||
                          
$selectedOption == strtolower($departement) ) ?
                            
' selected="selected" ' '';
            
$options[] = '<option value="' $code '"' $selected '>' .
                         
$code ' - ' $departement '</option>';
        }

        return 
sprintf(
            
'<select name="%s" %s>%s</select>',
            
$name,
            
$extraAttributes,
            
implode("\r\n"$options)
        );
    }
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.503 ]--