@qingjieshouliang M1n1 Shira0ka

M1n1 Shira0ka File Manager

Current Path : /www/wwwroot/eblliwsm.com/060b04a8/Common/
Upload File :
Current File : /www/wwwroot/eblliwsm.com/060b04a8/Common/common.php

<?php
function recursive ($array, $pid=0, $level=0) {
	$arr = array();
	foreach ($array as $v) {
		if ($v['pid'] == $pid) {
			$v['level'] = $level;
			$v['html'] = str_repeat('-', $level);
			$arr[] = $v;
			$arr = array_merge($arr, recursive($array, $v['id'], $level + 1));	
		}
	}
	return $arr;
}

function redWord($str,$len,$name){
	$redstr=mb_substr($str,0,$len,'utf-8');
	$search=$name;
	$search = urldecode($search);
	$redstr=preg_replace("/($search)/i","<font color=red>\\1</font>",$redstr);
	return $redstr;
}
?>

GO Party By You