ÿØÿà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/comment_function.php
<?php
function badWords($text,$bad)
{
    //$bad = array('dirty','butt','lips');
    for ($i=0; $i < count($bad); $i++)
    {
        $position = strpos($text, $bad[$i]);
        while($position !== false)//if text contains a bad word
        {
            /*for($j=$position; $j<$position+strlen($bad[$i]); $j++)
                $text[$j]='*';
            $position = strpos($text, $bad[$i]);*/
            return true;
        }
    }
    return false;
}
function check_bad_word_in_string($string,$arr_bad_word){
    //$array = array("name","tom");
    if(0 < count(array_intersect(array_map('strtolower', explode(' ', $string)), $arr_bad_word)))
    {
        return true;
    }
    return false;
}
function lasted_comment($limit=10){
    global $DB,$func;
    $q_comment = $DB->query("SELECT * FROM `tb_comment` WHERE `comment_id` IN ( SELECT max(`comment_id`) as `comment_id` FROM tb_comment WHERE comment_status='active' GROUP BY `truyen_id` ORDER BY `time_post` DESC  ) ORDER BY `time_post` DESC LIMIT 0,$limit; ");
    $list = '';
    while($r_comment = $DB->fetch_row($q_comment)){
        if($r_comment['comment_status']!='active'){
            continue;
        }
        $txt_chuong = '';
        if($r_comment['chuong_id']>0){
            $txt_chuong = '<a class="cmchapter-link" href="/'.$r_comment['truyen_fname'].'-'.$r_comment['truyen_id'].'/'.$r_comment['chuong_fname'].'-'.$r_comment['chuong_id'].'/"><span class="cmchapter">'.$r_comment['chuong_name'].'</span></a>';
        }
        $date_comment = date('d/m/Y h:i:s A',$r_comment['time_post']);
        $time_comment = $func->time_ago($r_comment['time_post']);
        $list .= '<li><h4 class="title-comment">
                                    <a href="/'.$r_comment['truyen_fname'].'-'.$r_comment['truyen_id'].'/">'.$r_comment['truyen_name'].'</a>
                                    '.$txt_chuong.'
                                </h4>
                                <a class="thumb user" title="'.$r_comment['truyen_name'].'" href="/'.$r_comment['truyen_fname'].'-'.$r_comment['truyen_id'].'/"><img alt="'.$r_comment['user_id_post_name'].'" class="lazy center" src="'.$r_comment['user_id_img'].'"></a>
                                <span class="authorname name-5">'.$r_comment['user_id_post_name'].'</span>
                                <abbr title="'.$date_comment.'"><i class="far fa-clock"></i> '.$time_comment.'</abbr>
                                <p class="comment-content">'.strip_tags(html_entity_decode($r_comment['comment_content']),'<img></br>').'</p>
                            </li>';
    }
    return $list;
}

ZeroDay Forums Mini