!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.9 GB of 61.93 GB (19.22%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     NOFylke.php (3.28 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Produce a HTML Select dropdown of Norwegian Fylker
 *
 * PHP Version 4
 *
 * @category  HTML
 * @package   HTML_Select
 * @author    Nils-Fredrik G. Kaland <nils-fredrik@argo.no>
 * @copyright 2003 Nils-Fredrik G. Kaland <nils-fredrik@argo.no>
 * @license   BSD (see http://www.opensource.org/licenses/bsd-license.php)
 * @version   CVS: $Id: NOFylke.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 Norwegian Fylker
 *
 * @category HTML
 * @package  HTML_Select
 * @author   Nils-Fredrik G. Kaland <nils-fredrik@argo.no>
 * @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_NOFylke
{
    
/**
    * Constructor
    *
    * @access public
    */
    
function HTML_Select_Common_NOFylke()
    {
        
$this->_fylker[] = 'Akershus';
        
$this->_fylker[] = 'Aust-Agder';
        
$this->_fylker[] = 'Buskerud';
        
$this->_fylker[] = 'Finnmark';
        
$this->_fylker[] = 'Hedmark';
        
$this->_fylker[] = 'Hordaland';
        
$this->_fylker[] = 'Møre og Romsdal';
        
$this->_fylker[] = 'Nord-Trøndelag';
        
$this->_fylker[] = 'Nordland';
        
$this->_fylker[] = 'Oppland';
        
$this->_fylker[] = 'Oslo';
        
$this->_fylker[] = 'Rogaland';
        
$this->_fylker[] = 'Sogn og Fjordane';
        
$this->_fylker[] = 'Svalbard';
        
$this->_fylker[] = 'Sør-Trøndelag';
        
$this->_fylker[] = 'Telemark';
        
$this->_fylker[] = 'Troms';
        
$this->_fylker[] = 'Vest-Agder';
        
$this->_fylker[] = 'Vestfold';
        
$this->_fylker[] = 'Østfold';
    }

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

        foreach (
$this->_fylker as $fylke) {
            
$fylke_lc  strtolower($fylke);
            
$selected  $selectedOption == $fylke_lc ' selected="selected"' '';
            
$options[] = '<option value="' $fylke_lc '"' $selected .
                         
'>' ucfirst($fylke) . '</option>';
        }

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

    
/**
    * Returns an array with all fylker
    *
    * @return array                   The array containing all fylke data
    * @access public
    */
    
function getList()
    {
        return 
$this->_fylker;
    }
}

?>

:: 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.5057 ]--