⌈⌋ branch:  freshcode


Check-in [e98c1f377a]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:e98c1f377ae47ddef9aa8642d5c366ed980cfde7
Date: 2014-12-29 14:11:37
User: mario
Comment:Addition of redir/ script for obfuscated URLs (not sure if needed though).
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-01-08
15:55
[3886be7986] COLLATE NOCASE for version_exists() check (user: mario, tags: trunk)
2014-12-29
14:11
[e98c1f377a] Addition of redir/ script for obfuscated URLs (not sure if needed though). (user: mario, tags: trunk)
14:10
[20f04cf33d] Addition of gtkapps, kdeapps, qtapps, cliapps to feed list. (user: mario, tags: trunk)
Changes

Changes to .htaccess.

36
37
38
39
40
41
42

43
44
45
46
47
48
49
50
51
52
53
54
55
RewriteRule  ^projects/([\w-_]+)/urls\.json$  index.php?page=api&name=$1&api=urls [L,NS,QSA] 


#-- Page dispatching
RewriteRule  ^index/?$		/			[R=301,L]
RewriteRule  ^$                 index.php?page=index    [L,NS,QSA]
RewriteRule  ^(projects|submit|search|flag|names?|tags?|feed|login|links|rc|admin|github-releases|drchangelog)\b/?(\w+(?:[-_]\w+)*(?:\.\w{2,7})?)?(?:\.(json|atom|rss))?/?$   index.php?page=$1&name=$2&ext=$3   [L,NS,QSA]

RewriteRule  ^(forum|meta)\b/?(\w+)?/?$   page_forum.php?name=$2   [L,NS,QSA]

#-- Deny direct invocations
RewriteRule  ^freshcode\.db.*$  -                       [F]
RewriteRule  ^\.                -                       [F]
RewriteCond  %{ENV:REDIRECT_STATUS}  !200
RewriteRule  ^\w+\.php(|/.*)$   -                       [F,L,NS]


#-- invalid resources
RewriteRule ^favicon\.(png|ico|jpeg)$ http://freshcode.club/img/changes.png [R=301,L]









>













36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
RewriteRule  ^projects/([\w-_]+)/urls\.json$  index.php?page=api&name=$1&api=urls [L,NS,QSA] 


#-- Page dispatching
RewriteRule  ^index/?$		/			[R=301,L]
RewriteRule  ^$                 index.php?page=index    [L,NS,QSA]
RewriteRule  ^(projects|submit|search|flag|names?|tags?|feed|login|links|rc|admin|github-releases|drchangelog)\b/?(\w+(?:[-_]\w+)*(?:\.\w{2,7})?)?(?:\.(json|atom|rss))?/?$   index.php?page=$1&name=$2&ext=$3   [L,NS,QSA]
RewriteRule  ^(url|go)/(\w+(?:[-_]\w+)*)/(\w+)/?$   index.php?page=redir&name=$2&ext=$3   [L,NS,QSA]
RewriteRule  ^(forum|meta)\b/?(\w+)?/?$   page_forum.php?name=$2   [L,NS,QSA]

#-- Deny direct invocations
RewriteRule  ^freshcode\.db.*$  -                       [F]
RewriteRule  ^\.                -                       [F]
RewriteCond  %{ENV:REDIRECT_STATUS}  !200
RewriteRule  ^\w+\.php(|/.*)$   -                       [F,L,NS]


#-- invalid resources
RewriteRule ^favicon\.(png|ico|jpeg)$ http://freshcode.club/img/changes.png [R=301,L]


Changes to index.php.

28
29
30
31
32
33
34

35
36
37
38
39
40
41
    case "links":
    case "tags":
    case "search":
    case "rc":
    case "drchangelog":
    case "githubreleases":
    case "login":

        include("page_$page.php");
        break;

    case "forum":
    case "meta":
        include("page_forum.php");
        break;







>







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
    case "links":
    case "tags":
    case "search":
    case "rc":
    case "drchangelog":
    case "githubreleases":
    case "login":
    case "redir":
        include("page_$page.php");
        break;

    case "forum":
    case "meta":
        include("page_forum.php");
        break;