chore: remove useless stuff

Stray bits of config, MacOS dashboard widget...
This commit is contained in:
Emmanuel BENOîT 2024-12-31 17:41:29 +01:00
parent 46df0f2d61
commit 3922a78de9
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg
60 changed files with 6 additions and 4929 deletions
scripts/site/main

View file

@ -1,18 +0,0 @@
<?php
class page_handler {
var $engines = array('xml');
function xml($input) {
$data = new data_leaf('MacWidget', config::getParam('widgetURL'));
$data->setAttribute('latest', config::getParam('latestWidget'));
$data->setAttribute('oldestOk', config::getParam('oldestWidget'));
return $data;
}
}
?>

View file

@ -1,18 +0,0 @@
<?php
class page_handler {
public $engines = array('page');
public $noTracking = true;
public function handle($input) {
$key = strtolower($input['k']);
if (!$key || strlen($key) != 32 || preg_match('/[^a-z0-9]/', $key)) {
$this->data = "X";
} else {
$this->data = "Key is $key";
}
$this->output = "pcheck";
}
}
?>

View file

@ -33,7 +33,7 @@ class page_layout {
}
public function header($pg, $lg) {
if ($pg == "ppipn" || $pg == "pcheck") {
if ($pg == "ppipn") {
return;
}
@ -53,7 +53,7 @@ class page_layout {
}
public function footer($pg, $lg) {
if ($pg == "ppipn" || $pg == "pcheck") {
if ($pg == "ppipn") {
echo $this->pageContents;
return;
}