Check-in [9bff4c3798]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Move auth section after utility includes |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
9bff4c37984bc584e7d5bfe42a4434b6 |
| User & Date: | mario 2021-04-05 04:33:04 |
Context
|
2021-04-05
| ||
| 06:19 | fix missing /section check-in: f7d54b199b user: mario tags: trunk | |
| 04:33 | Move auth section after utility includes check-in: 9bff4c3798 user: mario tags: trunk | |
| 04:32 | Introduce IndieAuth logins check-in: 71ca4f7823 user: mario tags: trunk | |
Changes
Changes to config.php.
| ︙ | ︙ | |||
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
// base
chdir(__DIR__);
// autoloader
include("./shared.phar");
#include("./lib/curl.php");
#error_reporting(E_ALL);
// input filter
define("INPUT_QUIET", 1);
define("INPUT_DIRECT", "raw");
include_once("lib/input.php");
include_once("tags.php");
include_once("release.php");
// database
include_once("lib/db.php");
db(new PDO("sqlite:freshcode.db"));
db()->in_clause = 0;
db()->setAttribute(PDO::ATTR_TIMEOUT, "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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
// base
chdir(__DIR__);
// autoloader
include("./shared.phar");
#include("./lib/curl.php");
#error_reporting(E_ALL);
#ini_set("display_errors", 1);
// input filter
define("INPUT_QUIET", 1);
define("INPUT_DIRECT", "raw");
include_once("lib/input.php");
include_once("tags.php");
include_once("release.php");
// database
include_once("lib/db.php");
db(new PDO("sqlite:freshcode.db"));
db()->in_clause = 0;
db()->setAttribute(PDO::ATTR_TIMEOUT, "15");
// utility functions
include_once("aux.php");
define("FRESHCODE_USER_AGENT", "freshcode/0.7.9.3 (Linux x86-64; HHVM/3.6.x) projects-autoupdate/0.7.9 (img,news,regex,xpath) github-poll/0.7 launchpad-poll/0.3 +http://freshcode.club/");
curl::$defaults["useragent"] = FRESHCODE_USER_AGENT;
ini_set("user_agent", FRESHCODE_USER_AGENT);
// auth+session
define("LOGIN_REQUIRED", 0);
define("CAPTCHA_REQUIRED", 0);
define("HTTP_HOST", $_SERVER->id["HTTP_HOST"]);
include_once("lib/deferred_openid_session.php");
// Renamed projects
$renamed_proj = [
"mlock" => "mikrolock",
"myfonts" => "tkfonty",
"arx" => "arx-libertatis",
];
// Alias page/action names
$page_alias = [
"name" => "names",
"project" => "projects",
"p" => "projects",
|
| ︙ | ︙ |