!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:     UKCounty.php (7.48 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Class to produce a HTML Select dropdown of UK Counties
 * Probably not an entirely accurate list and no doubt contains
 * some fluff. However it did come from Post Office data.
 *
 * PHP Version 4
 *
 * @category  HTML
 * @package   HTML_Select_Common
 * @author    Richard Heyes <richard@php.net>
 * @copyright 2002 Richard Heyes <richard@php.net>
 * @license   BSD (see http://www.opensource.org/licenses/bsd-license.php)
 * @version   CVS: $Id: UKCounty.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 UK Counties
 * Probably not an entirely accurate list and no doubt contains
 * some fluff. However it did come from Post Office data.
 *
 * @category HTML
 * @package  HTML_Select
 * @author   Richard Heyes <richard@php.net>
 * @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_UKCounty
{
    
/**
    * Constructor
    *
    * @access public
    */
    
function HTML_Select_Common_UKCounty()
    {
        
$this->_counties[] = 'Aberdeenshire';
        
$this->_counties[] = 'Angus';
        
$this->_counties[] = 'Argyll';
        
$this->_counties[] = 'Avon';
        
$this->_counties[] = 'Ayrshire';
        
$this->_counties[] = 'Banffshire';
        
$this->_counties[] = 'Bedfordshire';
        
$this->_counties[] = 'Berkshire';
        
$this->_counties[] = 'Berwickshire';
        
$this->_counties[] = 'Buckinghamshire';
        
$this->_counties[] = 'Caithness';
        
$this->_counties[] = 'Cambridgeshire';
        
$this->_counties[] = 'Cheshire';
        
$this->_counties[] = 'Clackmannanshire';
        
$this->_counties[] = 'Cleveland';
        
$this->_counties[] = 'Clwyd';
        
$this->_counties[] = 'Cornwall';
        
$this->_counties[] = 'county';
        
$this->_counties[] = 'County Antrim';
        
$this->_counties[] = 'County Armagh';
        
$this->_counties[] = 'County Down';
        
$this->_counties[] = 'County Durham';
        
$this->_counties[] = 'County Fermanagh';
        
$this->_counties[] = 'County Londonderry';
        
$this->_counties[] = 'County Tyrone';
        
$this->_counties[] = 'Cumbria';
        
$this->_counties[] = 'Derbyshire';
        
$this->_counties[] = 'Devon';
        
$this->_counties[] = 'Dorset';
        
$this->_counties[] = 'Dumfriesshire';
        
$this->_counties[] = 'Dunbartonshire';
        
$this->_counties[] = 'Dyfed';
        
$this->_counties[] = 'East Lothian';
        
$this->_counties[] = 'East Sussex';
        
$this->_counties[] = 'Essex';
        
$this->_counties[] = 'Fife';
        
$this->_counties[] = 'Gloucestershire';
        
$this->_counties[] = 'Gwent';
        
$this->_counties[] = 'Gwynedd';
        
$this->_counties[] = 'Hampshire';
        
$this->_counties[] = 'Herefordshire';
        
$this->_counties[] = 'Hertfordshire';
        
$this->_counties[] = 'Inverness-shire';
        
$this->_counties[] = 'Isle of Arran';
        
$this->_counties[] = 'Isle of Barra';
        
$this->_counties[] = 'Isle of Bute';
        
$this->_counties[] = 'Isle of Canna';
        
$this->_counties[] = 'Isle of Coll';
        
$this->_counties[] = 'Isle of Colonsay';
        
$this->_counties[] = 'Isle of Cumbrae';
        
$this->_counties[] = 'Isle of Eigg';
        
$this->_counties[] = 'Isle of Gigha';
        
$this->_counties[] = 'Isle of Harris';
        
$this->_counties[] = 'Isle of Iona';
        
$this->_counties[] = 'Isle of Islay';
        
$this->_counties[] = 'Isle of Jura';
        
$this->_counties[] = 'Isle of Lewis';
        
$this->_counties[] = 'Isle of Mull';
        
$this->_counties[] = 'Isle of North Uist';
        
$this->_counties[] = 'Isle of Orkney';
        
$this->_counties[] = 'Isle of Rhum';
        
$this->_counties[] = 'Isle of Skye';
        
$this->_counties[] = 'Isle of South Uist';
        
$this->_counties[] = 'Isle of Tiree';
        
$this->_counties[] = 'Isle of Wight';
        
$this->_counties[] = 'Isles of Scilly';
        
$this->_counties[] = 'Kent';
        
$this->_counties[] = 'Kincardineshire';
        
$this->_counties[] = 'Kirkcudbrightshire';
        
$this->_counties[] = 'Lanarkshire';
        
$this->_counties[] = 'Lancashire';
        
$this->_counties[] = 'Leicestershire';
        
$this->_counties[] = 'Lincolnshire';
        
$this->_counties[] = 'Merseyside';
        
$this->_counties[] = 'Middlesex';
        
$this->_counties[] = 'Mid Glamorgan';
        
$this->_counties[] = 'Midlothian';
        
$this->_counties[] = 'Morayshire';
        
$this->_counties[] = 'Norfolk';
        
$this->_counties[] = 'Northamptonshire';
        
$this->_counties[] = 'North Humberside';
        
$this->_counties[] = 'Northumberland';
        
$this->_counties[] = 'North Yorkshire';
        
$this->_counties[] = 'Nottinghamshire';
        
$this->_counties[] = 'Orkney';
        
$this->_counties[] = 'Oxfordshire';
        
$this->_counties[] = 'Peeblesshire';
        
$this->_counties[] = 'Perthshire';
        
$this->_counties[] = 'Powys';
        
$this->_counties[] = 'Renfrewshire';
        
$this->_counties[] = 'Ross-shire';
        
$this->_counties[] = 'Roxburghshire';
        
$this->_counties[] = 'Selkirkshire';
        
$this->_counties[] = 'Shetland Islands';
        
$this->_counties[] = 'Shropshire';
        
$this->_counties[] = 'Somerset';
        
$this->_counties[] = 'South Glamorgan';
        
$this->_counties[] = 'South Humberside';
        
$this->_counties[] = 'South Yorkshire';
        
$this->_counties[] = 'Staffordshire';
        
$this->_counties[] = 'Stirlingshire';
        
$this->_counties[] = 'Suffolk';
        
$this->_counties[] = 'Surrey';
        
$this->_counties[] = 'Sutherland';
        
$this->_counties[] = 'Tyne and Wear';
        
$this->_counties[] = 'Warwickshire';
        
$this->_counties[] = 'West Glamorgan';
        
$this->_counties[] = 'West Lothian';
        
$this->_counties[] = 'West Midlands';
        
$this->_counties[] = 'West Sussex';
        
$this->_counties[] = 'West Yorkshire';
        
$this->_counties[] = 'Wigtownshire';
        
$this->_counties[] = 'Wilts';
        
$this->_counties[] = 'Wiltshire';
        
$this->_counties[] = 'Worcestershire';
    }

    
/**
    * 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 county name exactly,
    *                                (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 'Select a county...',
        
$extraAttributes ''
    
) {
        
$options[]      = sprintf('<option value="">%s</option>'$promoText);
        
$selectedOption strtolower($selectedOption);

        foreach (
$this->_counties as $county) {
            
$county_lc strtolower($county);
            
$selected  $selectedOption == $county_lc ' selected="selected"' '';
            
$options[] = '<option value="' $county_lc '"' $selected .
                         
'>' ucfirst($county) . '</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.5076 ]--