| version 1.140, 2017/06/09 15:12:59 |
version 1.141, 2018/03/25 00:08:49 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/functions.inc.php,v 1.139 2016/07/11 13:28:12 igor Exp $ */ |
/* $Platon: Metafox/functions.inc.php,v 1.140 2017/06/09 15:12:59 igor Exp $ */ |
| |
|
| function ezin_eval($evalcode) /* {{{ */ |
function ezin_eval($evalcode) /* {{{ */ |
| { |
{ |
| Line 539 function ezin_message_html_process(&$tex |
|
| Line 539 function ezin_message_html_process(&$tex |
|
| } |
} |
| } |
} |
| |
|
| $text .= htmlspecialchars($ar[$k]); |
$text .= Platon::htmlspecialchars($ar[$k]); |
| } |
} |
| |
|
| // TODO: optimalization using arrays |
// TODO: optimalization using arrays |
| Line 715 function ezin_get_link($type = 'S', $id |
|
| Line 715 function ezin_get_link($type = 'S', $id |
|
| if ($ezin_cfg['link_file_type'] == 1 && $type != 'PA') { |
if ($ezin_cfg['link_file_type'] == 1 && $type != 'PA') { |
| return $url_prefix.$ezin_cfg['url'] |
return $url_prefix.$ezin_cfg['url'] |
| .$script.'.php' |
.$script.'.php' |
| .'?'.htmlspecialchars($id) |
.'?'.Platon::htmlspecialchars($id) |
| .htmlspecialchars($append_params) |
.Platon::htmlspecialchars($append_params) |
| .($force_lang && $lang != '' ? htmlspecialchars('&ezin_lang='.$lang) : ''); |
.($force_lang && $lang != '' ? Platon::htmlspecialchars('&ezin_lang='.$lang) : ''); |
| } |
} |
| |
|
| if ($ezin_cfg['link_file_type'] == 2 && $type != 'PA') { |
if ($ezin_cfg['link_file_type'] == 2 && $type != 'PA') { |
| Line 752 function ezin_get_link($type = 'S', $id |
|
| Line 752 function ezin_get_link($type = 'S', $id |
|
| } |
} |
| |
|
| return $url_prefix.$ezin_cfg['url'] |
return $url_prefix.$ezin_cfg['url'] |
| .$append_url.htmlspecialchars($id) |
.$append_url.Platon::htmlspecialchars($id) |
| .($force_lang && $lang != '' ? htmlspecialchars('&ezin_lang='.$lang) : ''); |
.($force_lang && $lang != '' ? Platon::htmlspecialchars('&ezin_lang='.$lang) : ''); |
| } |
} |
| |
|
| return $url_prefix.$ezin_cfg['url'].'?ezin_' |
return $url_prefix.$ezin_cfg['url'].'?ezin_' |
| .($script == 'print' ? 'article' : $script) |
.($script == 'print' ? 'article' : $script) |
| .(intval($id) > 0 ? '_id=' : '_key=').htmlspecialchars($id) |
.(intval($id) > 0 ? '_id=' : '_key=').Platon::htmlspecialchars($id) |
| .htmlspecialchars($append_params) |
.Platon::htmlspecialchars($append_params) |
| .($force_lang && $lang != '' ? htmlspecialchars('&ezin_lang='.$lang) : '') |
.($force_lang && $lang != '' ? Platon::htmlspecialchars('&ezin_lang='.$lang) : '') |
| .($script == 'print' ? htmlspecialchars('&ezin_print=1') : ''); |
.($script == 'print' ? Platon::htmlspecialchars('&ezin_print=1') : ''); |
| } |
} |
| |
|
| return $url_prefix.$ezin_cfg['url'] |
return $url_prefix.$ezin_cfg['url'] |
| .($lang != '' ? htmlspecialchars('?ezin_lang='.$lang) : ''); |
.($lang != '' ? Platon::htmlspecialchars('?ezin_lang='.$lang) : ''); |
| } /* }}} */ |
} /* }}} */ |
| |
|
| function ezin_adjust_link($link, $full_url = 0, $lang_var = 0) /* {{{ */ |
function ezin_adjust_link($link, $full_url = 0, $lang_var = 0) /* {{{ */ |
| Line 1042 function ezin_message_process($full, $me |
|
| Line 1042 function ezin_message_process($full, $me |
|
| $messages[$i]['message_datetime'] = date($ezin_cfg['format_datetime'], $messages[$i]['message_timestamp']); |
$messages[$i]['message_datetime'] = date($ezin_cfg['format_datetime'], $messages[$i]['message_timestamp']); |
| $messages[$i]['message_level'] = $level; |
$messages[$i]['message_level'] = $level; |
| $messages[$i]['message_link'] = ezin_get_link('M', $messages[$i]['message_id']); |
$messages[$i]['message_link'] = ezin_get_link('M', $messages[$i]['message_id']); |
| $messages[$i]['message_author'] = htmlspecialchars($messages[$i]['message_author']); |
$messages[$i]['message_author'] = Platon::htmlspecialchars($messages[$i]['message_author']); |
| $messages[$i]['message_homepage'] = htmlspecialchars($messages[$i]['message_homepage']); |
$messages[$i]['message_homepage'] = Platon::htmlspecialchars($messages[$i]['message_homepage']); |
| $messages[$i]['message_subject'] = htmlspecialchars($messages[$i]['message_subject']); |
$messages[$i]['message_subject'] = Platon::htmlspecialchars($messages[$i]['message_subject']); |
| ezin_message_html_process($messages[$i]['message_message']); |
ezin_message_html_process($messages[$i]['message_message']); |
| ezin_process_text_flags($messages[$i]['message_message'], 'message', 1); |
ezin_process_text_flags($messages[$i]['message_message'], 'message', 1); |
| /* if atitle is empty, set it to title, |
/* if atitle is empty, set it to title, |
| Line 1933 function ezin_cgi_parse() /* {{{ */ |
|
| Line 1933 function ezin_cgi_parse() /* {{{ */ |
|
| continue; |
continue; |
| } |
} |
| if (preg_match('|^ezin_(.+)$|', $key, $matches)) { |
if (preg_match('|^ezin_(.+)$|', $key, $matches)) { |
| $data[$matches[1]] = htmlspecialchars(stripslashes($val)); |
$data[$matches[1]] = Platon::htmlspecialchars(stripslashes($val)); |
| } |
} |
| } |
} |
| if ($logged_in) { |
if ($logged_in) { |