| verzia 1.6, 2005/11/26 12:37:58 |
verzia 1.7, 2005/11/28 15:14:10 |
| Riadok 362 function ezin_get_link($type = 'S', $id |
|
| Riadok 362 function ezin_get_link($type = 'S', $id |
|
| case 'U': $script = 'author'; break; |
case 'U': $script = 'author'; break; |
| case 'P': $script = 'print'; break; |
case 'P': $script = 'print'; break; |
| case 'M': $script = 'message'; break; |
case 'M': $script = 'message'; break; |
| |
case 'PA': $script = 'poll_answer'; break; |
| } |
} |
| if ($ezin_cfg['link_file_type']) { |
if ($ezin_cfg['link_file_type'] && $type != 'PA') { |
| return $url_prefix.$ezin_cfg['url'] |
return $url_prefix.$ezin_cfg['url'] |
| .$script.'.php' |
.$script.'.php' |
| .'?'.htmlspecialchars($id) |
.'?'.htmlspecialchars($id) |
| Riadok 1198 function ezin_cgi_parse() /* {{{ */ |
|
| Riadok 1199 function ezin_cgi_parse() /* {{{ */ |
|
| $ezin_cgi['output'] = 'author'; |
$ezin_cgi['output'] = 'author'; |
| } |
} |
| |
|
| |
$poll_answer_id = Platon::parse_id_param('ezin_poll_answer_id', 0); |
| |
if ($poll_answer_id > 0) { |
| |
$poll_id = ezin_is_valid_poll($poll_answer_id); |
| |
$poll_cookie = 'ezin_poll_'.$poll_id; |
| |
if (! isset($_COOKIE[$poll_cookie])) { |
| |
ezin_poll_answer_vote($poll_answer_id); |
| |
ezin_cache_clear("P$poll_id"); |
| |
setcookie($poll_cookie, $poll_answer_id); |
| |
} |
| |
header('Location: '.$_SERVER['HTTP_REFERER']); |
| |
exit; |
| |
} |
| |
|
| /* This part creates $ezin_cgi['lang_bind'] array, which will be used |
/* This part creates $ezin_cgi['lang_bind'] array, which will be used |
| for template language variables substitution. */ |
for template language variables substitution. */ |
| if (is_array($ezin_cfg['languages'])) { |
if (is_array($ezin_cfg['languages'])) { |