<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
	error_reporting(0);
	$url = 'https://ipay.vn/tin-tuc/Khuyen-mai-nha-mang/';
	$color = array("#F5A89A","#F09C42","#FCF54C","#00A06B","#00A6AD","#7388C1","#79378B","#D2A6C7","#006666","#FF6699","#00FF00");
	include '../getlink/simple_html_dom.php';
	$html = file_get_html($url);
	$news = $html->find('ul[id=list_item]', 0);
	$echojs ='';
	foreach($news->find('h3[class=title-news]') as $stt=>$tin)
	{
		$bantin = str_replace('  ','',$tin->plaintext);
		$bantin = preg_replace('#\%(.*?)g\&\#224\;y#is', '% ng&#224;y', $bantin);
		if(preg_match("#VIETTEL#is", $bantin) || preg_match("#VINAPHONE#is", $bantin) || preg_match("#MOBIFONE#is", $bantin)){
			$echojs .= '<div class="menu" style="color:'.$color[array_rand($color)].';"><i class="fa fa-file-o" style="font-size:18px;color:'.$color[array_rand($color)].'"></i> '.$bantin.'</div>';
		}
		if ($stt==2)
			break;
	}
	echo 'document.getElementById(\'news-blog\').innerHTML = \''.addslashes($echojs).'\';';

?>