); if($jsShareConfig){ S($jsShareConfigKey,$jsShareConfig[0],86400); } $jsShareConfig = $jsShareConfig[0]; } $cmsShareJs = $jsShareConfig['config_value'] ? : ''; $keyname = 'PROPAGATION_PAGE_DATA'; $data = $redis->rpop($keyname); if(!empty($data)){ $data = json_decode($data,true); $user = $data['users']; $dynamics = $data['dynamics']; $mtoThesauruses = $data['mtoThesauruses']; }else{ $showFile = ''; $dir = opendir($path); while (($file = readdir($dir)) !== false) { if($file != '.' && $file != '..'){ $showFile = $file; if(false !== strpos($showFile, '.txt')){ closedir($dir); break; } } } if(empty($showFile)){ echo file_get_contents( APP_PATH . 'Tpl/think_exception.tpl');exit; }else{ $data = file_get_contents( $path .$showFile); if(!empty($data)){ $data = json_decode($data,true); $user = $data['users']; $dynamics = $data['dynamics']; $mtoThesauruses = $data['mtoThesauruses']; $cmsShareJs = $data['cmsShareJs']; } } } } $user['id'] = mt_rand(1,9999999); $string = ''; $footer = ''; if(is_mobile_request() == 'pc'){ $string .= ' '. $user['tagTitle'] .' - Trang chủ cá nhân của '. $user['name'] .' - '. $domain['keyword'] .'
No data
'; } $string .= ' '; $string .= $footer; $string .= '