ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/luckymerchan/include/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/luckymerchan/include/functions/menu_function.php
<?php
function get_list_genres_left($categories){
    global $CORE;
    $genres = $CORE->input['f']['genres'] ?? '';
    $txt_menu = '';
    foreach($categories as $row){
        if($row['menus_fname']=='genres') {
            if($row['menus_parentid']==0){
                $txt_menu .= '<li class="text-center">
                            <a target="_self" href="/genres/">All genres</a>
                        </li>';
            }
            $v_tmp_parent_id = $row['menus_id'];
            $arr_sub = array();
            foreach($categories as $row2){
                if($v_tmp_parent_id==$row2['menus_parentid']){
                    $arr_sub[] = array('menus_name'=>$row2['menus_name'],'menus_fname'=>$row2['menus_fname']
                    );
                }
            }
            $txt_sub = '';
            foreach($arr_sub as $val3){
                $active = '';
                if($genres==$val3['menus_fname']){
                    $active = 'class="active"';
                }
                $txt_sub .= '<li>
                            <a target="_self" href="/genres/'.$val3['menus_fname'].'/" '.$active.'>'.$val3['menus_name'].'</a>
                        </li>';
            }
            $txt_menu .= $txt_sub;
        }
    }
    return $txt_menu;
}
function get_list_genres_search($categories){
    global $CORE;
    $genres = $CORE->input['f']['genres'] ?? array();
    $txt_menu = '';
    foreach($categories as $row){
        if($row['menus_fname']=='genres') {
            if($row['menus_parentid']==0){
                $txt_menu .= '';
            }
            $v_tmp_parent_id = $row['menus_id'];
            $arr_sub = array();
            foreach($categories as $row2){
                if($v_tmp_parent_id==$row2['menus_parentid']){
                    $arr_sub[] = array('menus_name'=>$row2['menus_name'],'menus_fname'=>$row2['menus_fname']
                    );
                }
            }
            $txt_sub = '';
            foreach($arr_sub as $val3){
                $active = '';
                if(isset($val3['menus_fname']) and isset($genres) and in_array($val3['menus_fname'],$genres)){
                    $active = 'checked';
                }
                $txt_sub .= '
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="checkbox" id="inlineCheckbox_'.$val3['menus_fname'].'" value="'.$val3['menus_fname'].'" name="f[genres][]" '.$active.'>
                        <label class="form-check-label" for="inlineCheckbox_'.$val3['menus_fname'].'">'.$val3['menus_name'].'</label>
                    </div>';
            }
            $txt_menu .= $txt_sub;
        }
    }
    return $txt_menu;
}
?>

ZeroDay Forums Mini