<?php
if (!defined("FUNC_FILE")) die("Illegal File Access");

$rewrite_out = array(
// Файлы
"files-new.html",
"files-print-\\1.html",
"files-view-\\1-\\2.html",
"files-view-\\1.html",
"files-view-\\1.html",
"files-broken-\\1.html",
"files-list-\\1.html",
"files-list.html",
"files-add.html",
"files-best-\\1.html",
"files-best.html",
"files-hits-\\1.html",
"files-hits.html",
"files-\\1.html",
"files-cat-\\1-\\2.html",
"files-cat-\\1.html",
"files.html",
// Новости
"news-topic-\\1-page-\\2.html",
"news-topic-\\1.html",
"news-friendsend-\\1.html",
"news-print-\\1.html",
"news-view-\\1-\\2.html",
"news-view-\\1-word-\\2.html",
"news-view-\\1.html",
"news-list-\\1.html",
"news-list.html",
"news-best-\\1.html",
"news-best.html",
"news-hits-\\1.html",
"news-hits.html",
"news-cat-\\1-\\2.html",
"news-cat-\\1.html",
"news-\\1.html",
"news.html",

"topics.html",
"addnews.html",
"recommend.html",
"info.html",
"contact.html",
//Документация
"pages-cat-\\1-pagenum-\\2.html",
"pages-cat-\\1.html",
"pages-\\1.html",
"pages.html",
//Голосование
"voting-pollresult-\\1.html",
"voting-pollshow-\\1.html",
"voting.html",
//Поиск
"search.html",
//SSD 1.0.1
"deletepost-id-\\1.html",
"editpost-id-\\1.html",
"theme-status-set-\\1-id-\\2.html",   
"theme-move-id-\\1.html",
"theme-open-id-\\1.html",
"theme-close-id-\\1.html",
"showtopic-topic-\\1-id-\\2.html",
"showtopic-\\1-page-\\2.html",
"newtopic-\\1.html",
"showtopic-\\1.html",
"showforum-\\1.html",
"showforum.html",
"forum.html",
// ЧАВО
"faq-showcat-\\1-asc.html",
"faq-showcat-\\1-desc.html",
"faq-showcat-\\1-az.html",
"faq-showcat-\\1-za.html",
"faq-showcat-\\1.html",
"faq-send.html",
"faq.html",

"nicearticles-\\1.html",
"nicearticles.html",

);

$rewrite_in = array(
// Файлы
"'(?<!/)index.php\?name=Files&new'",
"'(?<!/)index.php\?name=Files&op=printe&id=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=view&id=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=view&id=([0-9]*)&word=([%&;/:|\s\-\'{}().&_a-zA-Zа-яА-Я0-9+=-]*)'",
"'(?<!/)index.php\?name=Files&op=view_file&lid=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=broken&lid=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=liste&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=liste'",
"'(?<!/)index.php\?name=Files&op=add_file'",
"'(?<!/)index.php\?name=Files&best=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&best=1'",
"'(?<!/)index.php\?name=Files&hits=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&hits'",
"'(?<!/)index.php\?name=Files&num=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=cat&id=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=Files&op=cat&id=([0-9]*)'",
"'(?<!/)index.php\?name=Files'",
// Новости
"'(?<!/)index.php\?name=News&new_topic=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=News&new_topic=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=friendsend&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=printpage&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)&word=([%&;/:|\s\-\'{}().&_a-zA-Zа-яА-Я0-9+=-]*)'",
"'(?<!/)index.php\?name=News&op=article&sid=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=liste&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&op=liste'",
"'(?<!/)index.php\?name=News&best=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&best=1'",
"'(?<!/)index.php\?name=News&hits=1&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&hits=1'",
"'(?<!/)index.php\?name=News&cat=([0-9]*)&num=([0-9]*)'",
"'(?<!/)index.php\?name=News&cat=([0-9]*)'",
"'(?<!/)index.php\?name=News&num=([0-9]*)'",
"'(?<!/)index.php\?name=News'",

"'(?<!/)index.php\?name=Topics'",
"'(?<!/)index.php\?name=Add_News'",
"'(?<!/)index.php\?name=Recommend'",
"'(?<!/)index.php\?name=Info'",
"'(?<!/)index.php\?name=Contact'",
//Документация
"'(?<!/)index.php\?name=Pages&op=cat&id=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)index.php\?name=Pages&op=cat&id=([0-9]*)'",
"'(?<!/)index.php\?name=Pages&op=page&pid=([0-9]*)'",
"'(?<!/)index.php\?name=Pages'",
//Голосование
"'(?<!/)index.php\?name=Voting&op=poll_result&poll_id=([0-9]*)'",
"'(?<!/)index.php\?name=Voting&op=poll_show&poll_id=([0-9]*)'",
"'(?<!/)index.php\?name=Voting'",
//Поиск
"'(?<!/)index.php\?name=Search'",
//SSD 1.0.1
"'(?<!/)index.php\?name=Forums&op=deletepost&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=editpost&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=status&set=([0-9]*)&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=move&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=theme&action=open&id=([0-9]*)'", 
"'(?<!/)index.php\?name=Forums&op=theme&action=close&id=([0-9]*)'", 
"'(?<!/)index.php\?name=Forums&op=showtopic&cat=([0-9]*)&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showtopic&id=([0-9]*)&pagenum=([0-9]*)'", 
"'(?<!/)index.php\?name=Forums&op=newtopic&cid=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showtopic&id=([0-9]*)'", 
"'(?<!/)index.php\?name=Forums&op=showforum&id=([0-9]*)'",
"'(?<!/)index.php\?name=Forums&op=showforum'",
"'(?<!/)index.php\?name=Forums'",
//ЧАВО
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=asc'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=desc'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=az'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)&howorder=za'",
"'(?<!/)index.php\?name=FAQ&op=showcat&id_cat=([0-9]*)'",
"'(?<!/)index.php\?name=FAQ&op=faqsend'",
"'(?<!/)index.php\?name=FAQ'",
//SEOZAVR
"'(?<!/)index.php\?name=nicearticles&LS4q=([0-9]*)'",
"'(?<!/)index.php\?name=nicearticles'",


);

?>