<?php
+/**
+ * Configuration for `startseite.malte70.de`
+ */
+
+
+/**
+ * Search engine type
+ *
+ * Valid values: "Google" | "searX"
+ */
+//$SearchEngine = "Google";
+$SearchEngine = "searX";
+
+
+/**
+ * Search engine "searX": Instance
+ */
+//$SearchSearXInstance = "https://searxng.world";
+$SearchSearXInstance = "https://searx.rt3x.de";
+
+/**
+ * Website links
+ *
+ * - `$Links` is an array containing an Array of website links for each line to display.
+ * - Each website link is an Array containing two strings:
+ * The link's title and URL
+ *
+ */
$Links = Array();
$Links[] = Array(
// Array("twitter", "https://twitter.com" ),
Array("mdn", "https://developer.mozilla.org/de/" ),
);
-?>
//"js/settings.js",
"js/main.js" // onLoad logic
),
- "Search" => "searX", // Google/searX
+ "Search" => $SearchEngine, // Google/searX
"Footer" => Array(
"CopyrightYear" => date("Y"),
"AuthorName" => "malte70",
* this array using `array_rand()`
*/
$search_placeholders = Array(
- "something",
- "the answer",
- "42",
- "foo bar",
- "awesome stuff"
+ "something",
+ "the answer",
+ "42",
+ "foo bar",
+ "awesome stuff"
);
$i = array_rand($search_placeholders);
$placeholder = $search_placeholders[$i];
<?php else: ?>
<section id="google-search">
- <form action="https://searx.rt3x.de/search" method="GET">
+ <form action="<?=$SearchSearXInstance?>/search" method="GET">
<p>
<!--<span class="red">//</span>-->
<span class="red">find</span>
<a id="settings_dialog_show" href="javascript:whoami.settings2();">Settings v2</a>
<p>
*/ ?>
- <p>
+ <p>
<button type="button" id="settings">Settings…</button>
</p>
<p>