AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK Interactive Terminal

Command Executor


Warning: chmod(): Operation not permitted in /www/wwwroot/dzynews.com/wp-content/plugins/fileorganizer/fileorganizer.php on line 8
403WebShell
403Webshell
Server IP : dzynews.com  /  Your IP : 216.73.217.105
Web Server : nginx/1.30.3
System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 8.2.31
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/dzynews.com/wp-content/themes/archive-document/Modules/Templates/Modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/Modules/Templates/Modules/Search.php
<?php namespace B2\Modules\Templates\Modules;

class Search{
    public function init($data,$i){

        $cats = $data['search_cat'] ?? [];

        $options = '';

        if(!empty($cats)){
            $options = '<ul v-show="show" v-cloak class="b2-radius">';
            $options .= '<li @click="picked(\'\',\''.__('全部','b2').'\',\''.B2_HOME_URI.'\')" :class="category == \''.__('全部','b2').'\' ? \'picked b2-radius\' : \' b2-radius\'">'.__('全部','b2').'</li>';
            foreach ($cats as $k => $v) {

                $term = get_term_by('id',$v, 'category');

                $options .= '<li @click="picked(\''.$v.'\',\''.$term->name.'\',\''.esc_url(get_term_link($term->slug, 'category')).'\')" :class="category == \''.$term->name.'\' ? \'picked\' : \'\'">'.$term->name.'</li>';
            }
            $options .= '</ul>';
        }

        $key = self::str_to_array($data['search_key'] ?? '');

        $_key = '';

        $data['search_color'] = isset($data['search_color']) && $data['search_color'] ? $data['search_color'] : '#121212';

        if($data['search_key'] ?? false){
            $_key .= '<ul>';
            $_key .= '<li style="color:'.$data['search_color'].'">'.__('热门搜索:','b2').'</li>';
            foreach ($key as $k => $v) {
                $v = trim($v, " \t\n\r\0\x0B\xC2\xA0");
                $_key .= '<li class="search-key"><a href="'.B2_HOME_URI.'/?s='.$v.'" target="_blank" style="color:'.$data['search_color'].'">'.$v.'</a></li>';
            }
            $_key .= '</ul>';
        }

        return '
            <div class="search-module search-'.$i.'" data-i="'.$i.'" id="search-module-'.$i.'">
                <div class="search-module-title" style="color:'.$data['search_color'].'">'.$data['search_title'].'</div>
                <div class="search-module-desc" style="color:'.$data['search_color'].'">'.$data['search_desc'].'</div>
                <div class="search-module-box">
                    <form method="get" class="search-module-form" :action="link" autocomplete="off">
                        '.$options.'
                        <div>
                            '.($options ? '<div class="picked-category b2-radius" @click.stop="show = true">
                            <span v-text="category"></span>
                        </div>' : '').'
                            <input type="text" :name="category == \''.__('全部','b2').'\' ? \'s\' : \'archiveSearch\'" v-model="keyword" class="search-module-input" placeholder="'.$data['search_input_desc'].'"/>
                            <input type="hidden" name="type" value="post" v-if="category == \''.__('全部','b2').'\'"/>
                        </div>
                        <button class="search-button-action">'.b2_get_icon('b2-search-line').'</button>
                    </form>
                </div>
                '.($_key ? '<div class="search-module-key">
                        '.$_key.'
                    </div>' : '').'
            </div>
        ';
    }

    public function str_to_array($str){
        $str = trim($str, " \t\n\r\0\x0B\xC2\xA0");
        $str = explode(PHP_EOL, $str );
        return $str;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit