v1.0.0 RC 1

This commit is contained in:
2014-06-14 18:04:27 +02:00
parent 16387ca7d1
commit 8da730253d
109 changed files with 10834 additions and 8132 deletions

View File

@@ -8,53 +8,47 @@ RewriteEngine on
#ErrorDocument 404 /databap/index.php?p=error&test=%{REQUEST_URI}
#ErrorDocument 500 /databap/index.php?p=error
#reading procedure bytes (by id/phrase)
RewriteRule ^(.*)(p|proc|procedure)\-([0-9]+)$ index.php?p=procedure&proc_id=$3 [L]
#Read procedure (by id)
RewriteRule ^(p|proc|procedure)\-([0-9]+)$ index.php?p=procedure&id=$2 [L]
#Article (by id)
RewriteRule ^(.*)(a|art|article)\-(.+)$ index.php?a=art_redirect&id=$3 [L]
#Add procedure
RewriteRule ^(add_proc|add_procedure|p\-|proc\-?|procedure\-?)$ index.php?p=procedure [L]
#Doc (by id)
RewriteRule ^(.*)(d|doc|documentation)\-(.+)$ index.php?p=doc&doc_id=$3 [L]
#Read doc (by id)
RewriteRule ^(d|doc|documentation)\-([0-9]+)$ index.php?p=doc&id=$2 [L]
#reading code bytes (by id/phrase)
RewriteRule ^(.*)(c|code)\-(.+)$ index.php?p=read_code&code=$3 [L]
#Add doc
RewriteRule ^(d|doc|documentation)$ index.php?p=doc [L]
#search (by phrase)
RewriteRule ^(.*)(recherche|search)\-(.+)$ index.php?p=search&search_words=$3 [L]
#Add Procedure
RewriteRule ^(.*)(add_proc|add_procedure|p\-|proc|proc\-|procedure|procedure\-)$ index.php?p=procedure [L]
#Read code (by id/phrase)
RewriteRule ^(c|code)\-(.+)$ index.php?p=code&id=$2 [L]
#Add Code
RewriteRule ^(.*)(add_code|c\-|code|code\-)$ index.php?p=add_code [L]
RewriteRule ^(c\-?|code\-?)$ index.php?p=code [L]
#Add Doc
RewriteRule ^(.*)doc$ index.php?p=doc [L]
#Read article (by id)
RewriteRule ^(a|art|article)\-([0-9]+)$ index.php?a=art_redirect&id=$2 [L]
#search (by phrase)
RewriteRule ^(recherche|search|r|s)\-(.+)$ index.php?p=search&search_words=$2 [L]
#Liste
RewriteRule ^(.*)liste$ index.php?p=list [L]
RewriteRule ^(liste?)$ index.php?p=list [L]
#Profile (by id)
RewriteRule ^(.*)(p|profil)\-(.+)$ index.php?p=profile&profile_user=$3 [L]
RewriteRule ^(u|user|profile?)\-(.+)$ index.php?p=profile&id=$2 [L]
#Profile (current user)
RewriteRule ^(.*)(p\-|profil|profil\-)$ index.php?p=profile&profile_user= [L]
RewriteRule ^(u\-?|user\-?|profile?\-?)$ index.php?p=profile&id= [L]
#Chat (by message id)
RewriteRule ^(.*)chat\-(.+)$ index.php?p=chat&id=$2 [L]
RewriteRule ^chat\-(.+)$ index.php?p=chat&id=$1 [L]
#Chat (current chat)
RewriteRule ^(.*)(chat|chat\-)$ index.php?p=chat [L]
RewriteRule ^(chat|chat\-)$ index.php?p=chat [L]
#Options
RewriteRule ^(.*)options$ index.php?p=options [L]
#RSS Feed (by category)
RewriteRule ^(.*)rss\-(.+)$ index.php?p=rss&cat=$2 [L]
#RSS Feed (all)
RewriteRule ^(.*)rss$ index.php?p=rss [L]
RewriteRule ^options$ index.php?p=options [L]
#Eg
#prevent www.
@@ -62,7 +56,7 @@ RewriteRule ^(.*)rss$ index.php?p=rss [L]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,NC,L]
#E.g RewriteRule ^(.*)\.html $1.php
#reading code bytes (by id)
#RewriteRule ^(.*)code\-([0-9]+)$ index.php?p=read_code&id_code=$2 [L]
#RewriteRule ^(.*)code\-([0-9]+)$ index.php?p=code&id_code=$2 [L]
# Jul - deny access to the .git directory
RewriteRule \.git - [F,L]