Модуль Опросы | Голосование v1.26.1a
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
542 B

<?php
function PollRewrite($print_out)
{
$print_out = preg_replace('/index.php([?])module=poll&amp;action=result&amp;pid=(\d+)/', ABS_PATH . 'poll-\\2.html', $print_out);
$print_out = preg_replace('/index.php([?])module=poll&amp;action=form&amp;pop=1&amp;pid=(\d+)/', ABS_PATH . 'pollcomment-\\2.html', $print_out);
$print_out = preg_replace('/index.php([?])module=poll&amp;action=archive/', ABS_PATH . 'poll-archive.html', $print_out);
$print_out = str_replace(".html&amp;print=1", "-print.html", $print_out);
return $print_out;
}
?>