1
0
Fork 1

Move canonical site URL to .phpenv

remotes/1715175271555336803/main
gravel 2 years ago
parent 1345028eac
commit f8bde220ad
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -138,11 +138,17 @@
*/ */
$REPOSITORY_CANONICAL_URL_FILES="$REPOSITORY_CANONICAL_URL/src/branch/main"; $REPOSITORY_CANONICAL_URL_FILES="$REPOSITORY_CANONICAL_URL/src/branch/main";
/**
* @var string $SITE_CANONICAL_URL
* The base URL for this project's website.
*/
$SITE_CANONICAL_URL="https://sessioncommunities.online";
/** /**
* @var string $API_CANONICAL_URL * @var string $API_CANONICAL_URL
* The base URL for the listing provider API. * The base URL for the listing provider API.
*/ */
$API_CANONICAL_URL="https://lp.sessioncommunities.online/"; $API_CANONICAL_URL="https://lp.sessioncommunities.online";
set_include_path(implode(PATH_SEPARATOR, array( set_include_path(implode(PATH_SEPARATOR, array(
get_include_path(), get_include_path(),

@ -1,4 +1,6 @@
<?php <?php
require_once '+getenv.php';
$NUM_PARTICLES = 20; $NUM_PARTICLES = 20;
$DELAYS = range(0, 240 - 1, 240 / $NUM_PARTICLES); $DELAYS = range(0, 240 - 1, 240 / $NUM_PARTICLES);
shuffle($DELAYS); shuffle($DELAYS);
@ -13,7 +15,7 @@
<html> <html>
<?php include "+components/page-head.php" ?> <?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/donate.html"> <link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/donate.html">
<link rel="stylesheet" href="css/common-dark.css"> <link rel="stylesheet" href="css/common-dark.css">
<title>Donate — sessioncommunities.online</title> <title>Donate — sessioncommunities.online</title>
<style> <style>

@ -34,7 +34,7 @@
<head> <head>
<?php include "+components/page-head.php" ?> <?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/"> <link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/">
<link rel="stylesheet" href="./index.css"> <link rel="stylesheet" href="./index.css">
<script type="module" src="./main.js"></script> <script type="module" src="./main.js"></script>
<link rel="modulepreload" href="js/util.js"> <link rel="modulepreload" href="js/util.js">
@ -51,7 +51,7 @@
property="og:description" property="og:description"
content="<?=count($rooms)?> Communities and counting — updated every day!" content="<?=count($rooms)?> Communities and counting — updated every day!"
> >
<meta property="og:url" content="https://sessioncommunities.online/"> <meta property="og:url" content="<?=$SITE_CANONICAL_URL?>/">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:locale" content="en_US"/> <meta property="og:locale" content="en_US"/>
<meta name="timestamp" content="<?=$timestamp?>"> <meta name="timestamp" content="<?=$timestamp?>">
@ -138,7 +138,7 @@
<br> <br>
Communities shown are fetched automatically from Communities shown are fetched automatically from
<a <a
href="https://codeberg.org/gravel/sessioncommunities.online#which-sources-are-crawled" href="<?=$REPOSITORY_CANONICAL_URL?>#which-sources-are-crawled"
target="_blank" target="_blank"
>various sources</a>. >various sources</a>.
<br> <br>

@ -1,5 +1,6 @@
<?php <?php
require_once '+getenv.php'; require_once '+getenv.php';
$instruction_files = glob("+instructions/*.txt"); $instruction_files = glob("+instructions/*.txt");
function file_language($file) { return pathinfo($file)['filename']; } function file_language($file) { return pathinfo($file)['filename']; }
?> ?>
@ -8,7 +9,7 @@
<head> <head>
<?php include "+components/page-head.php" ?> <?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/instructions.php"> <link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/instructions.php">
<link rel="stylesheet" href="css/common-dark.css"> <link rel="stylesheet" href="css/common-dark.css">
<link rel="stylesheet" href="css/instructions.css"> <link rel="stylesheet" href="css/instructions.css">
<style type="text/css"> <style type="text/css">
@ -29,7 +30,7 @@
"> ">
<meta property="og:title" content="How to join Session Communities"> <meta property="og:title" content="How to join Session Communities">
<meta property="og:description" content="Learn how to use sessioncommunities.online to join"> <meta property="og:description" content="Learn how to use sessioncommunities.online to join">
<meta property="og:url" content="https://sessioncommunities.online/instructions.php"> <meta property="og:url" content="<?=$SITE_CANONICAL_URL?>/instructions.php">
<meta property="og:type" content="article"> <meta property="og:type" content="article">
<title>Instructions — sessioncommunities.online</title> <title>Instructions — sessioncommunities.online</title>
</head> </head>

@ -3,6 +3,8 @@
If you're hosting your own version of the site, please replace this file! If you're hosting your own version of the site, please replace this file!
*/ */
require_once '+getenv.php';
$HIGHLIGHTED_FIELDS = ["ip", "datetime", "resource", "status", "bytes", "referer", "user-agent"]; $HIGHLIGHTED_FIELDS = ["ip", "datetime", "resource", "status", "bytes", "referer", "user-agent"];
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
@ -10,7 +12,7 @@
<head> <head>
<?php include "+components/page-head.php" ?> <?php include "+components/page-head.php" ?>
<link rel="canonical" href="https://sessioncommunities.online/privacy.html"> <link rel="canonical" href="<?=$SITE_CANONICAL_URL?>/privacy.html">
<title>Privacy — sessioncommunities.online</title> <title>Privacy — sessioncommunities.online</title>
<meta name="description" content="Read what data sessioncommunities.online collects"> <meta name="description" content="Read what data sessioncommunities.online collects">
<meta property="og:title" content="sessioncommunities.online — Privacy"> <meta property="og:title" content="sessioncommunities.online — Privacy">