⌈⌋ ⎇ branch:  freshcode


Check-in [5b7b92d159]

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

Overview
Comment:Raise version to 0.8.3, add freshfoss.com as toplink.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5b7b92d159062f9f5d35debcc45703db08dbdb84
User & Date: mario 2016-05-05 02:12:22
Context
2016-05-05
02:13
Add `debian` changelog autoupdating method. check-in: a53e4ee480 user: mario tags: trunk
02:12
Raise version to 0.8.3, add freshfoss.com as toplink. check-in: 5b7b92d159 user: mario tags: trunk
02:11
Edit spam filter. check-in: baa7cdd341 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to index.php.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * api: php
 * type: main
 * title: Freshcode.club
 * description: FLOSS software release tracking website
 * version: 0.8.0
 * author: mario
 * license: AGPL
 * 
 * Implements a freshmeat/freecode-like directory for open source
 * release publishing / tracking.
 *
 */

#-- init
include("config.php");

#-- dispatch
switch ($page = $_GET->id["page"]) {


    case "name":
    case "names":
        $page = "names";
    case "index":
    case "projects":
    case "feed":
    case "links":
    case "tags":
    case "search":
    case "rc":






|












|
>

<

<







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

23

24
25
26
27
28
29
30
<?php
/**
 * api: php
 * type: main
 * title: Freshcode.club
 * description: FLOSS software release tracking website
 * version: 0.8.3
 * author: mario
 * license: AGPL
 * 
 * Implements a freshmeat/freecode-like directory for open source
 * release publishing / tracking.
 *
 */

#-- init
include("config.php");

#-- dispatch
$page = $_GET->id["page"];
switch (isset($page_alias[$page]) ? $page_alias[$page] : $page) {


    case "names":

    case "index":
    case "projects":
    case "feed":
    case "links":
    case "tags":
    case "search":
    case "rc":
50
51
52
53
54
55
56






57
58
59
60
61
62
63
        include("page_$page.php");
        break;

    case "api":
        $api = new FreeCode_API();
        $api->dispatch();
        break;







    case "admin":
        if (!in_array($_SESSION["openid"], $moderator_ids)) {
            exit(include("page_login.php"));
        }
        include("page_admin.php");
        break;







>
>
>
>
>
>







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
        include("page_$page.php");
        break;

    case "api":
        $api = new FreeCode_API();
        $api->dispatch();
        break;

    case "ssl":
        if (HTTP_HOST === "test.freshcode.club") {
            include("page_test_ssl.php");
        }
        break;

    case "admin":
        if (!in_array($_SESSION["openid"], $moderator_ids)) {
            exit(include("page_login.php"));
        }
        include("page_admin.php");
        break;

Changes to template/header.php.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
 * api: freshcode
 * type: template
 * title: HTML page header
 * description: Starts <html> and <head>, outputs top bar / menus etc.
 * version: 0.8.0
 *
 * Optionally injects a `$header_add` list, or allows to override the
 * page $title.
 *
 */

// Content license
header("X-Content-License: Creative Commons (CC-BY-SA); version=0.8.0; spdx=CC-BY-3.0; source=https://creativecommons.org/licenses/by-sa/3.0/");

?>
<!DOCTYPE html>
<html>
<head> 
    <title><?= isset($title) ? $title : "freshcode.club" ?></title>
    <meta name=version content=0.7.6>
    <meta charset=UTF-8>
    <link rel=stylesheet href="/freshcode.css?0.7.9">
    <link rel="shortcut icon" href="/img/changes.png">
    <base href="/index">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
    <script src="/gimmicks.js?2"></script>
    <?php if (isset($header_add)) { print $header_add . "\n"; } ?>
</head>
<body>

<nav id=topbar>
<div class=container-width>
Open source software release tracking.
<?= is_int(strpos(HTTP_HOST, ".")) ? '<small style="color:#cd9" class=version>[0.8.0 beta]</small>' : '<b style="color:#c54">[local dev]</b>'; ?>
<span style=float:right>
<a href="//freshmeat.club/">freshmeat.club</a> |
<a href="//freecode.club/">freecode.club</a> |
<b><a href="//freshcode.club/">freshcode.club</a></b>
</span>
</div>
</nav>

<footer id=logo>
<div class=container-width>






|







|






|

|












|

|
<







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

40
41
42
43
44
45
46
<?php
/**
 * api: freshcode
 * type: template
 * title: HTML page header
 * description: Starts <html> and <head>, outputs top bar / menus etc.
 * version: 0.8.3
 *
 * Optionally injects a `$header_add` list, or allows to override the
 * page $title.
 *
 */

// Content license
header("X-Content-License: Creative Commons (CC-BY-SA); version=0.8.3; spdx=CC-BY-3.0; source=https://creativecommons.org/licenses/by-sa/3.0/");

?>
<!DOCTYPE html>
<html>
<head> 
    <title><?= isset($title) ? $title : "freshcode.club" ?></title>
    <meta name=version content=0.8.3>
    <meta charset=UTF-8>
    <link rel=stylesheet href="/freshcode.css?0.8.0">
    <link rel="shortcut icon" href="/img/changes.png">
    <base href="/index">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <!--[if lt IE 9]><script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script><![endif]-->
    <script src="/gimmicks.js?2"></script>
    <?php if (isset($header_add)) { print $header_add . "\n"; } ?>
</head>
<body>

<nav id=topbar>
<div class=container-width>
Open source software release tracking.
<?= is_int(strpos(HTTP_HOST, ".")) ? '<small style="color:#cd9" class=version>[0.8.3 beta]</small>' : '<b style="color:#c54">[local dev]</b>'; ?>
<span style=float:right>
<a href="//freshfoss.com/">freshfoss.com</a> |

<b><a href="//freshcode.club/">freshcode.club</a></b>
</span>
</div>
</nav>

<footer id=logo>
<div class=container-width>