From e4bb60adff166113cdc03d47a202f3435d41e2e1 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Sun, 25 Feb 2024 22:16:37 +0100 Subject: [PATCH] padlist: remove moved to https://github.com/fsr/padlist --- pkgs/padlist/default.nix | 10 ----- pkgs/padlist/index.php | 79 ---------------------------------------- 2 files changed, 89 deletions(-) delete mode 100644 pkgs/padlist/default.nix delete mode 100644 pkgs/padlist/index.php diff --git a/pkgs/padlist/default.nix b/pkgs/padlist/default.nix deleted file mode 100644 index e3f4640..0000000 --- a/pkgs/padlist/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ stdenvNoCC, ... }: -stdenvNoCC.mkDerivation { - name = "padlister"; - src = ./.; - phases = [ "unpackPhase" "installPhase" ]; - installPhase = '' - mkdir -p $out - cp -r $src/index.php $out - ''; -} diff --git a/pkgs/padlist/index.php b/pkgs/padlist/index.php deleted file mode 100644 index 60bf364..0000000 --- a/pkgs/padlist/index.php +++ /dev/null @@ -1,79 +0,0 @@ -getMessage(); - die(); -} - -$query = 'SELECT "Notes".title, "Notes"."updatedAt", "Notes"."shortid", "Users".profile FROM "Notes" JOIN "Users" ON "Notes"."ownerId" = "Users".id WHERE (permission = \'freely\' OR permission = \'editable\' OR permission = \'limited\') AND strpos(content, \'tags: listed\')>0 ORDER BY "Notes"."updatedAt" DESC'; -try { - $stmt = $dbh->query($query); - $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); -} catch (PDOException $e) { - echo "Error: " . $e->getMessage(); - die(); -} - -function formatDateString($stringDate) -{ - $datetime = DateTime::createFromFormat('Y-m-d H:i:s.uP', $stringDate); - $formattedDate = $datetime->format('d.m.Y H:i'); - return $formattedDate; -} -?> - - - - - - - - - Pad lister - - - - - -
-

- - - - - - - - - - - - - - - -
TitelOwnerLast edit
- - - username ?> - - -
-

-
- - -