本文整理汇总了PHP中html_clean函数的典型用法代码示例。如果您正苦于以下问题:PHP html_clean函数的具体用法?PHP html_clean怎么用?PHP html_clean使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_clean函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tmp_data
function tmp_data($d_file, $var)
{
require $d_file;
$d_content = '';
if (!isset(${$var})) {
return '';
}
eval('foreach ($' . $var . ' as $k => $v) $d_content .= $k." | ".$v."\\n";');
$this->d_content = html_clean($d_content);
}
示例2: define
/*
--------------------------------------------------------------------------------
File: index.php
Unit: INDEX
Author: Quoc Viet [aFeLiOn]
Begin: 2005-12-29
Comment: EPS wrap
--------------------------------------------------------------------------------
*/
define('EPS_ROOT', './');
require EPS_ROOT . 'include/common.php';
$eps_title = html_clean($eps_config['title']);
require EPS_ROOT . 'header.php';
if (@$_GET['mode'] == 'show') {
require EPS_ROOT . 'show.php';
} else {
// Extra
?>
<div id="eps_header"><h1><?php
echo $eps_title;
?>
</h1><span><?php
echo $eps_config['desc'];
?>
</span></div>
<?php
require EPS_ROOT . 'eps_left.php';
示例3: array
if ($epsclass->validate->chk_empty($description, $eps_lang['Description'])) {
$epsclass->load_class('class_upload', EPS_GALLERY_DIR, array('jpg', 'gif', 'png'), 1512000);
if ($epsclass->upload->up('req_file')) {
$epsclass->load_class('class_image');
$epsclass->image->create_thumb(EPS_GALLERY_DIR . $epsclass->upload->uploaded_infos['name']);
$inserts = array('filename' => $epsclass->upload->uploaded_infos['name'], 'filesize' => $epsclass->upload->uploaded_infos['size'], 'description' => $description, 'poster_id' => $eps_user['id'], 'posted' => time());
$epsclass->db->vinsert(TBL_GALLERY, $inserts);
// redirect('index.php?eps=share', $eps_lang['Redirect_share_post']);
return;
} else {
$errors = $epsclass->upload->errors;
}
} else {
$errors = $epsclass->validate->errors;
}
}
$epsclass->load_class('class_paginate');
$sqls = array("SELECT COUNT(*) FROM " . TBL_GALLERY, "SELECT u.username,g.* FROM " . TBL_GALLERY . " g LEFT JOIN " . TBL_USER . " u ON g.poster_id=u.id ORDER BY g.posted DESC");
$result = $epsclass->paginate->get_result($sqls, $module_path, $p);
$gallery_shows = array();
while ($cur_gallery = $epsclass->db->fetch_assoc($result)) {
$gallery_shows[] = auto_gen_link($module_path . '&gid=' . $cur_gallery['id'], '<img src="' . EPS_GALLERY_DIR . pic2thumb($cur_gallery['filename']) . '" />', '<b>' . html_clean($cur_gallery['username']) . '</b> - <i>' . format_time($cur_gallery['posted']) . ' (' . floor($cur_gallery['filesize'] / 1024) . ' KB)</i><br />' . html_clean($cur_gallery['description']), true, true, true);
}
$smarty->assign('error_show', !empty($errors) ? gen_alert($errors) : '');
$smarty->assign('description', isset($description) ? html_clean($description) : '');
$smarty->assign('p', $p);
$smarty->assign('gallery_dir', EPS_GALLERY_DIR);
$smarty->assign('gallery_shows', $gallery_shows);
$smarty->assign('pagination', $epsclass->paginate->gen_page_link());
}
$smarty->display('module/gallery.tpl');
示例4: foreach
$where = $tmp = $b1 = '';
//选取条件字段用
foreach ($mn as $key => $inside) {
if ($inside) {
//查找主键、唯一属性、自动增加的字段,找到就停止,否则组合所有字段作为条件。
if ($rowdb[$key]['Key'] == 1 || $rowdb[$key]['Auto'] == 1) {
$where = $key . "='" . addslashes($inside) . "'";
break;
}
$where .= $tmp . $key . "='" . addslashes($inside) . "'";
$tmp = ' AND ';
}
}
//读取记录用
foreach ($mn as $key => $inside) {
$b1 .= '<td nowrap>' . html_clean($inside) . ' </td>';
}
$where = base64_encode($where);
if ($allowedit) {
p('<td nowrap><a href="javascript:editrecord(\'edit\', \'' . $where . '\', \'' . $tablename . '\');">Edit</a> | <a href="javascript:editrecord(\'del\', \'' . $where . '\', \'' . $tablename . '\');">Del</a></td>');
}
p($b1);
p('</tr>');
$index++;
unset($b1);
}
tbfoot();
p($multipage);
break;
case 2:
$ar = mssql_affected_rows();
示例5: file
$num_poll = 0;
if (is_file(FILE_POLL_DATA)) {
$polls = file(FILE_POLL_DATA);
if (!empty($polls)) {
$poll_ques = html_clean(trim($polls[0]));
for ($cur_id = 0; $cur_id + 1 < count($polls); $cur_id++) {
$cur_line = trim($polls[$cur_id + 1]);
if (empty($cur_line)) {
continue;
}
if (strpos($cur_line, '|') !== false) {
$tmp = explode('|', $cur_line);
$cur_ans = html_clean(trim($tmp[0]));
$cur_vote = intval(trim($tmp[1]));
} else {
$cur_ans = html_clean($cur_line);
$cur_vote = 0;
}
$poll_ans[$cur_id] = array('ans' => $cur_ans, 'vote' => $cur_vote);
$poll_radios[$cur_id] = $cur_ans;
$num_poll += $cur_vote;
}
}
}
$polled_ids = is_file(FILE_POLL_ID) ? explode("\n", file_get_contents(FILE_POLL_ID)) : array();
$polled_ips = is_file(FILE_POLL_IP) ? explode("\n", file_get_contents(FILE_POLL_IP)) : array();
if (empty($poll_ques) || empty($poll_ans)) {
return;
}
$show_result = $show || !$eps_user['is_guest'] && in_array($eps_user['id'], $polled_ids) || in_array($eps_user['ip_address'], $polled_ips) ? true : false;
if ($show_result || IS_ADMIN) {
示例6: foreach
<ul class="links adb_list">
<?php
foreach ($items as $item) {
?>
<li>
<a href="<?php
echo href_to($item['target_url']) . "#comment_{$item['id']}";
?>
"><?php
echo html_strip($item['target_title'], 50);
?>
</a>
<div><?php
echo html_clean($item['content_html'], 100);
?>
</div>
<div class="date"><?php
echo string_date_age_max($item['date_pub'], true);
?>
</div>
</li>
<?php
}
?>
</ul>
<?php
if ($show_count < $total) {
?>
<a class="view_all_link" href="<?php
echo href_to('admin', 'controllers', array('edit', 'comments', 'comments_list'));
?>
示例7: isset
$errors = $epsclass->validate->errors;
$epsclass->validate->data_reset();
}
}
}
// For Select Box
$news['type'] = isset($type) ? $type : $news['type'];
$news['no_smiley'] = isset($no_smiley) ? $no_smiley : $news['no_smiley'];
if ($action == 'edit') {
$page_title = $eps_lang['Page_post_edit'];
} else {
if ($action == 'delete') {
$page_title = $eps_lang['Page_post_delete'];
} else {
$page_title = $eps_lang['Page_post'];
}
}
$req_fields = array('title' => $eps_lang['Title'], 'content' => $eps_lang['Content']);
$smarty->assign('js_lang', gen_jslang($req_fields));
$smarty->assign('emoticons', $epsclass->bbcode->emoticons);
$smarty->assign('action', $action);
$smarty->assign('page_title', $page_title);
$smarty->assign('error_show', !empty($errors) ? gen_alert($errors) : '');
$smarty->assign('form_tag', auto_gen_form('index.php?eps=post&action=' . $action . (($action == 'edit' || $action == 'delete') && $nid >= 1 ? '&nid=' . $nid : ''), 'postnews', true));
$smarty->assign('title', html_clean(isset($title) ? $title : $news['title']));
$smarty->assign('content', html_clean(isset($content) ? $content : $news['content']));
$smarty->assign('imgurl', html_clean(isset($imgurl) ? $imgurl : $news['imgurl']));
$smarty->assign('type', isset($type) ? $type : $news['type']);
$smarty->assign('no_smiley', isset($no_smiley) ? $no_smiley : $news['no_smiley']);
unset($nid, $action, $news, $errors, $title, $content, $imgurl, $type, $no_smiley, $page_title, $req_fields);
$smarty->display('module/post.tpl');
示例8: imdbData
//.........这里部分代码省略.........
preg_match_all('/<a.*?href="\\/name\\/nm.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
// TODO: Update templates to use multiple directors
$data['director'] = trim(join(', ', $ary[1]));
// Rating
preg_match('/<span .*? itemprop="ratingValue">([\\d\\.]+)<\\/span>/si', $resp['data'], $ary);
$data['rating'] = trim($ary[1]);
// Countries
preg_match('/Country:\\s*<\\/h4>(.+?)<\\/div>/si', $resp['data'], $ary);
preg_match_all('/<a.*?href="\\/country\\/.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
$data['country'] = trim(join(', ', $ary[1]));
// Languages
preg_match('/Languages?:\\s*<\\/h4>(.+?)<\\/div>/si', $resp['data'], $ary);
preg_match_all('/<a.*?href="\\/language\\/.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
$data['language'] = trim(strtolower(join(', ', $ary[1])));
// Genres (as Array)
preg_match('/Genres:\\s*<\\/h4>(.+?)<\\/div>/si', $resp['data'], $ary);
preg_match_all('/<a.*?href="\\/genres?\\/.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
foreach ($ary[1] as $genre) {
$data['genres'][] = trim($genre);
}
// for Episodes - try to get some missing stuff from the main series page
if ($data['istv'] and (!$data['runtime'] or !$data['country'] or !$data['language'] or !$data['coverurl'])) {
$sresp = httpClient($imdbServer . '/title/tt' . $data['tvseries_id'] . '/', $cache);
if (!$sresp['success']) {
$CLIENTERROR .= $resp['error'] . "\n";
}
# runtime
if (!$data['runtime']) {
preg_match('/itemprop="duration".*?>(\\d+)\\s+min<\\//si', $sresp['data'], $ary);
if (!$ary) {
preg_match('/Runtime:?<\\/h4>.*?>(\\d+)\\s+min/si', $resp['data'], $ary);
}
$data['runtime'] = preg_replace('/,/', '', trim($ary[1]));
}
# country
if (!$data['country']) {
preg_match('/Country:\\s*<\\/h4>(.+?)<\\/div>/si', $sresp['data'], $ary);
preg_match_all('/<a.*?href="\\/country\\/.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
$data['country'] = trim(join(', ', $ary[1]));
}
# language
if (!$data['language']) {
preg_match('/Languages?:\\s*<\\/h4>(.+?)<\\/div>/si', $sresp['data'], $ary);
preg_match_all('/<a.*?href="\\/language\\/.+?".*?>(.+?)<\\/a>/si', $ary[1], $ary, PREG_PATTERN_ORDER);
$data['language'] = trim(strtolower(join(', ', $ary[1])));
}
# cover
if (!$data['coverurl']) {
$data['coverurl'] = imdbGetCoverURL($sresp['data']);
}
}
// Plot
preg_match('/<h2>Storyline<\\/h2>.*?<p>(.*?)</si', $resp['data'], $ary);
$data['plot'] = $ary[1];
// Fetch credits
$resp = imdbFixEncoding($data, httpClient($imdbServer . '/title/tt' . $imdbID . '/fullcredits', $cache));
if (!$resp['success']) {
$CLIENTERROR .= $resp['error'] . "\n";
}
// Cast
if (preg_match('#<table class="cast_list">(.*)#si', $resp['data'], $match)) {
// no idea why it does not always work with (.*?)</table
// could be some maximum length of .*?
// anyways, I'm cutting it here
$casthtml = substr($match[1], 0, strpos($match[1], '</table'));
if (preg_match_all('#<td .*? itemprop="actor".*?>\\s+<a href="/name/(nm\\d+)/?.*?".*?>(.*?)</a>.*?<td class="character">(.*?)</td>#si', $casthtml, $ary, PREG_PATTERN_ORDER)) {
for ($i = 0; $i < sizeof($ary[0]); $i++) {
$actorid = trim(strip_tags($ary[1][$i]));
$actor = trim(strip_tags($ary[2][$i]));
$character = trim(preg_replace('/\\s+/', ' ', strip_tags(preg_replace('/ /', ' ', $ary[3][$i]))));
$cast .= "{$actor}::{$character}::{$imdbIdPrefix}{$actorid}\n";
}
}
// remove html entities and replace with simple space
$data['cast'] = html_clean_utf8($cast);
// sometimes appearing in series (e.g. Scrubs)
$data['cast'] = preg_replace('#/ ... #', '', $data['cast']);
}
// Fetch plot
$resp = $resp = imdbFixEncoding($data, httpClient($imdbServer . '/title/tt' . $imdbID . '/plotsummary', $cache));
if (!$resp['success']) {
$CLIENTERROR .= $resp['error'] . "\n";
}
// Plot
preg_match('/<P CLASS="plotSummary">(.+?)<\\/P>/is', $resp['data'], $ary);
if ($ary[1]) {
$data['plot'] = trim($ary[1]);
$data['plot'] = preg_replace('/"/', '"', $data['plot']);
//Replace HTML " with "
//Begin removal of 'Written by' section
$data['plot'] = preg_replace('/<a href="\\/SearchPlotWriters.*?<\\/a>/', '', $data['plot']);
$data['plot'] = preg_replace('/Written by/', '', $data['plot']);
$data['plot'] = preg_replace('/<i>\\s+<\\/i>/', ' ', $data['plot']);
//End of removal of 'Written by' section
$data['plot'] = preg_replace('/\\s+/s', ' ', $data['plot']);
}
$data['plot'] = html_clean($data['plot']);
#dump($data['plot']);
return $data;
}
示例9: href_to_abs
<?php
}
?>
<link><?php
echo href_to_abs($feed['ctype_name'], $item['slug'] . '.html');
?>
</link>
<?php
if (!empty($feed['mapping']['description'])) {
?>
<description><?php
html(html_clean($item[$feed['mapping']['description']], 150));
?>
</description>
<yandex:full-text><?php
html(html_clean($item[$feed['mapping']['description']]));
?>
</yandex:full-text>
<?php
}
?>
<?php
if (!empty($feed['mapping']['image'])) {
?>
<?php
$image = cmsModel::yamlToArray($item[$feed['mapping']['image']]);
?>
<?php
if (!empty($image[$feed['mapping']['image_size']])) {
?>
<?php
示例10: sylk_clean
/**
* Clean display value for sylk export
*
* @param $value string value
*
* @return clean value
**/
function sylk_clean($value)
{
if (get_magic_quotes_runtime()) {
$value = stripslashes($value);
}
$value = preg_replace('/\\x0A/', ' ', $value);
$value = preg_replace('/\\x0D/', NULL, $value);
$value = str_replace("\"", "''", $value);
$value = str_replace(';', ';;', $value);
$value = html_clean($value);
return $value;
}
示例11: while
while ($cur_user = $epsclass->db->fetch_assoc($result)) {
$tmp = array();
$cur_detail = '';
if (!$eps_user['is_guest']) {
$cur_details = array();
foreach ($details as $key => $value) {
$cur_details[] = '<li><strong>' . $value . ': </strong>' . $cur_user[$key];
}
$cur_detail = '<ul>' . implode('</li>', $cur_details) . '</li></ul>';
}
if ($list_type == 2) {
$tmp[1] = $eps_user['is_guest'] ? html_clean($cur_user['name']) : gen_link('#', html_clean($cur_user['name']), $cur_detail, false, true);
$tmp[2] = $cur_user['birth'];
$tmp[3] = !empty($eps_lang[$cur_user['course']]) ? $eps_lang[$cur_user['course']] : html_clean($cur_user['course']);
} else {
$link_edit = IS_MODADMIN ? 'index.php?eps=profile&uid=' . $cur_user['id'] : '#';
$tmp[1] = $eps_user['is_guest'] ? html_clean($cur_user['username']) : auto_gen_link($link_edit, $cur_user['username'], $cur_detail, true, true, true);
$tmp[2] = format_time($cur_user['reg_time']);
$tmp[3] = html_clean($cur_user['g_title']);
}
$tmp[0] = $start++;
$list_shows[] = $tmp;
}
$smarty->assign('list_type', $list_type);
$smarty->assign('list_shows', $list_shows);
$smarty->assign('pagination', $epsclass->paginate->gen_page_link());
$smarty->display('module/list.tpl');
} else {
$smarty->display('empty.tpl');
}
unset($list, $search, $uid, $where_sql, $list_type, $sqls, $page_link, $list_shows, $empty, $start, $prefix, $tpl_jump);
示例12: format_time
// Parse
$user['reg_time'] = format_time($user['reg_time']);
$user['name'] = html_clean($user['name']);
$user['birth'] = html_clean($user['birth']);
$user['course'] = !empty($eps_lang[$user['course']]) ? $eps_lang[$user['course']] : html_clean($user['course']);
$user['phone'] = html_clean(isset($phone) ? $phone : $user['phone']);
$user['yahoo'] = html_clean(isset($yahoo) ? $yahoo : $user['yahoo']);
$smarty->assign('yesno_radios', array(1 => $eps_lang['Yes'], 0 => $eps_lang['No']));
$smarty->assign('is_admin', IS_ADMIN);
$smarty->assign('is_modadmin', IS_MODADMIN);
$smarty->assign('user', $user);
$smarty->assign('js_lang', gen_jslang($req_fields));
$smarty->assign('error_show', !empty($errors) ? gen_alert($errors) : '');
$smarty->assign('form_tag1', auto_gen_form('index.php?eps=profile&uid=' . $uid, 'profile', true));
$smarty->assign('username', html_clean(isset($username) ? $username : $user['username']));
$smarty->assign('changepass_link', auto_gen_link('index.php?eps=profile&action=changepass&uid=' . $uid, $eps_lang['Change_password']));
$smarty->assign('email', html_clean(isset($email) ? $email : $user['email']));
$smarty->assign('s_id', html_clean(isset($s_id) ? $s_id : $user['s_id']));
$smarty->assign('groups', $groups);
$smarty->assign('use_ajax', isset($_POST['use_ajax']) || $user['ajax'] ? true : false);
$smarty->assign('styles', get_stuff('style'));
$smarty->assign('languages', get_stuff('language'));
$smarty->assign('form_tag2', auto_gen_form('index.php?eps=profile&uid=' . $uid, 'another', true));
$smarty->assign('native', html_clean(isset($native) ? $native : $user['native']));
$smarty->assign('address', html_clean(isset($address) ? $address : $user['address']));
$smarty->assign('phone', html_clean(isset($phone) ? $phone : $user['phone']));
$smarty->assign('yahoo', html_clean(isset($yahoo) ? $yahoo : $user['yahoo']));
$smarty->display('module/profile.tpl');
}
}
unset($errors, $need_old_pass, $action, $uid, $secr_key, $old_password, $new_password1, $new_password2, $req_fields, $user, $groups, $allow_group_id, $username, $email, $s_id);
示例13: redirect
$epsclass->db->vinsert(TBL_SHARE, $inserts);
redirect('index.php?eps=share', $eps_lang['Redirect_share_post']);
return;
} else {
$errors = $epsclass->upload->errors;
}
} else {
$errors = $epsclass->validate->errors;
}
}
// Paginate
$epsclass->load_class('class_paginate');
$sqls = array("SELECT COUNT(id) FROM " . TBL_SHARE, "SELECT u.username,s.* FROM " . TBL_SHARE . " s LEFT JOIN " . TBL_USER . " u ON s.poster_id=u.id ORDER BY s.post_time DESC");
$result = $epsclass->paginate->get_result($sqls, 'index.php?eps=share', $p);
$shares = array();
if ($epsclass->paginate->num_result()) {
while ($cur_share = $epsclass->db->fetch_assoc($result)) {
$tmp = array('link' => gen_link('download.php?down=share&id=' . $cur_share['id'], html_clean($cur_share['url']), '', true), 'comment' => html_clean($cur_share['comment']), 'poster' => auto_gen_link('index.php?eps=list&list=user&uid=' . $cur_share['poster_id'], html_clean($cur_share['username']), '', true), 'post_time' => format_time($cur_share['post_time']));
if ($cur_share['poster_id'] == $eps_user['id'] || IS_MODADMIN) {
$tmp['editlink'] = gen_editlink('index.php?eps=share&shid=' . $cur_share['id']);
}
$shares[] = $tmp;
}
$smarty->assign('pagination', $epsclass->paginate->gen_page_link());
}
$smarty->assign('error_show', !empty($errors) ? gen_alert($errors) : '');
$smarty->assign('shares', $shares);
$smarty->assign('comment', isset($comment) ? html_clean($comment) : '');
$smarty->display('module/share.tpl');
}
unset($p, $shid, $action, $errors, $req_fields, $this_share, $comment, $updates, $inserts, $sqls, $shares);
示例14: showItem
/**
* Print generic normal Item Cell
*
* @param $type display type (0=HTML, 1=Sylk,2=PDF,3=CSV)
* @param $value value to display
* @param $num column number
* @param $row row number
* @param $extraparam extra parameters for display
*
*@return string to display
**/
static function showItem($type, $value, &$num, $row, $extraparam = '')
{
$out = "";
switch ($type) {
case PDF_OUTPUT_LANDSCAPE:
//pdf
//pdf
case PDF_OUTPUT_PORTRAIT:
global $PDF_ARRAY, $PDF_HEADER;
$value = weblink_extract($value);
$PDF_ARRAY[$row][$num] = decodeFromUtf8(html_clean($value), 'windows-1252');
break;
case SYLK_OUTPUT:
//sylk
global $SYLK_ARRAY, $SYLK_HEADER, $SYLK_SIZE;
$value = weblink_extract($value);
$SYLK_ARRAY[$row][$num] = sylk_clean($value);
$SYLK_SIZE[$num] = max($SYLK_SIZE[$num], utf8_strlen($SYLK_ARRAY[$row][$num]));
break;
case CSV_OUTPUT:
//csv
$value = weblink_extract($value);
$out = "\"" . csv_clean($value) . "\"" . $_SESSION["glpicsv_delimiter"];
break;
default:
//TODO supprimer valign pour mettre class mais conflit avec $extraparam
$out = "<td {$extraparam} valign='top'>";
/* if (!preg_match('/<hr>/',$value)) {
$values = preg_split("/<br>/i",$value);
$line_delimiter = '<br>';
} else {
$values = preg_split("/<hr>/i",$value);
$line_delimiter = '<hr>';
}
$limitto = 20;
if (count($values) > $limitto) {
for ( $i=0 ; $i<$limitto ; $i++) {
$out .= $values[$i].$line_delimiter;
}
$rand=mt_rand();
$out .= "... ";
$out .= showToolTip($value,array('display' => false,
'autoclose' => false));
} else {*/
$out .= $value;
// }
$out .= "</td>\n";
}
$num++;
return $out;
}
示例15: date_string
<?php
/*
--------------------------------------------------------------------------------
File: w_o_t_d.php
Module: WORD OF THE DAY
Author: Quoc Viet [aFeLiOn]
Begin: 2006-03-11
Comment: Get From dictionary.com
--------------------------------------------------------------------------------
*/
if (!defined('IN_EPS')) {
exit;
}
$wotd_link = 'http://dictionary.reference.com/wordoftheday/wotd.rss';
$wotd_diff = -36000;
@(include EPS_CACHE_DIR . 'cache_wotd.php');
$now_string = date_string(time() + $wotd_diff);
if (!isset($wotd) || empty($wotd['desc']) || $wotd['date'] != $now_string) {
$epsclass->load_class('class_xml');
$epsclass->xml->load_file($wotd_link);
$wotd_rss = $epsclass->xml->get_rss();
$wotd = empty($wotd_rss) ? array() : array('date' => $now_string, 'link' => $wotd_rss['item']['link'], 'title' => html_clean($wotd_rss['item']['title']), 'desc' => preg_replace('#^(.+?):#i', '<strong>$1</strong>:', html_clean($wotd_rss['item']['description'])));
create_file('<?php' . "\n" . '$wotd = ' . var_export($wotd, true) . ';' . "\n" . '?>', 'cache_wotd.php', EPS_CACHE_DIR);
}
$smarty->assign('wotd', $wotd);
$smarty->display('module/w_o_t_d.tpl');
unset($wotd_link, $wotd_diff, $now_string, $wotd_rss, $wotd);