Browse Source

vault not needed since i can use git for this now

computer_glamour 9 giờ trước cách đây
mục cha
commit
13179139a7

+ 0 - 5
vault/gifs/README.md

@@ -1,5 +0,0 @@
-# Collection of nice retro gifs i found on the internet
-
-If original authors of them want them removed from there please contact me via [here](https://computer.glamour.ovh/bsod.gif)
-
-pc.gif is a gif that was edited by my friend who changed color scheme of an existing gif to be more pink :3

BIN
vault/gifs/bg.gif


BIN
vault/gifs/capri.gif


BIN
vault/gifs/clippy.gif


BIN
vault/gifs/computer-pixel.gif


BIN
vault/gifs/fish.gif


BIN
vault/gifs/netscape.gif


BIN
vault/gifs/pc.gif


BIN
vault/gifs/pink_guy.gif


BIN
vault/gifs/shutdown.gif


BIN
vault/gifs/start_button.gif


BIN
vault/gifs/this-is-the-end.gif


BIN
vault/gifs/welcome.gif


+ 0 - 88
vault/index.php

@@ -1,88 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>The Vault</title>
-
-    <link rel="stylesheet" href="../style.css">
-<script src="https://unpkg.com/cursor-effects@latest/dist/browser.js"></script>
-
-<script>
-window.addEventListener("load", (event) => {
-  new cursoreffects.ghostCursor();
-});
-</script>
-
-</head>
-
-<body>
-    <div class="container bio interests">
-    <h1>✨️ The Vault ✨️</h1>
-    <p>This is my public file dump, you can find here everything and nothing at the same time. I throw in here things that I either found on the internet, what some people have shared with me or some of my own inventions. Please use it accordingly, authors of the thingies are listed in README files.</p>
-            <?php
-                function listDirectoryContents($dir, $basePath = '') {
-                    $items = array_diff(scandir($dir), array('..', '.', 'index.php'));
-                    
-                    if (empty($items)) {
-                        return;
-                    }
-                    
-                    // Separate directories and files
-                    $directories = array();
-                    $files = array();
-                    
-                    foreach ($items as $item) {
-                        $fullPath = $dir . '/' . $item;
-                        if (is_dir($fullPath)) {
-                            $directories[] = $item;
-                        } else {
-                            $files[] = $item;
-                        }
-                    }
-                    
-                    // Sort both arrays
-                    sort($directories);
-                    sort($files);
-                    
-                    // Combine with directories first
-                    $sortedItems = array_merge($directories, $files);
-                    
-                    echo '<ul>';
-                    foreach ($sortedItems as $item) {
-                        $fullPath = $dir . '/' . $item;
-                        $isDir = is_dir($fullPath);
-                        $icon = $isDir ? '📁 ' : '📄 ';
-                        $link = htmlspecialchars($item);
-                        $relativePath = $basePath ? $basePath . '/' . $item : $item;
-                        
-                        if ($isDir) {
-                            echo "<li>{$icon}{$link}";
-                            listDirectoryContents($fullPath, $relativePath);
-                            echo "</li>";
-                        } else {
-                            $href = htmlspecialchars($relativePath);
-                            echo "<li><a href=\"{$href}\" class=\"no-button\">{$icon}{$link}</a></li>";
-                        }
-                    }
-                    echo '</ul>';
-                }
-                
-                $currentDir = dirname(__FILE__);
-                listDirectoryContents($currentDir);
-            ?>
-    </div>
-
-    <footer>
-        <p class="center"><img src="../favicon.ico">(c) computer_glamour</p>
-        <img src="../buttons/-18.gif" class="footer-button">
-        <img src="../buttons/xmpp.gif" class="footer-button">
-        <img src="../buttons/notread.gif" class="footer-button">
-        <img src="../buttons/right2repair.gif" class="footer-button">
-    </footer>
-
-</body>
-
-</html>
-

+ 0 - 7
vault/nodes-effect/README.md

@@ -1,7 +0,0 @@
-# Thanks to Ramses Revengeday 
-
-For sharing this invention with me.
-
-https://revenge.day/
-
-original file: https://share.datakra.sh/wOdi9/ZeBOYawO10.html

+ 0 - 224
vault/nodes-effect/nodes.html

@@ -1,224 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8" />
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>nodes</title>
-  <style>
-    :root {
-      --node-color: #ff00ff;
-      --bg-1: #05010a;
-      --bg-2: #13051d;
-      --line-alpha: 0.28;
-    }
-
-    * {
-      box-sizing: border-box;
-    }
-
-    html, body {
-      margin: 0;
-      width: 100%;
-      height: 100%;
-      overflow: hidden;
-      background:
-        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.08), transparent 30%),
-        radial-gradient(circle at 80% 30%, rgba(255, 0, 255, 0.06), transparent 24%),
-        linear-gradient(160deg, var(--bg-1), var(--bg-2));
-      font-family: Inter, Arial, sans-serif;
-    }
-
-    canvas {
-      display: block;
-      width: 100vw;
-      height: 100vh;
-      cursor: crosshair;
-    }
-  </style>
-</head>
-<body>
-  <canvas id="network"></canvas>
-  
-
-
-  <script>
-    const canvas = document.getElementById('network');
-    const ctx = canvas.getContext('2d');
-
-    const CONFIG = {
-      nodeCount: 90,
-      nodeColor: '#ff00ff',
-      nodeRadiusMin: 2.2,
-      nodeRadiusMax: 5.5,
-      linkDistance: 150,
-      mouseInfluence: 190,
-      attractionStrength: 0.02,
-      returnStrength: 0.012,
-      friction: 0.92,
-      pulseSpeed: 0.0025,
-      wobble: 0.18,
-    };
-
-    let width = 0;
-    let height = 0;
-    let dpr = Math.min(window.devicePixelRatio || 1, 2);
-    let time = 0;
-
-    const mouse = {
-      x: 0,
-      y: 0,
-      active: false,
-    };
-
-    class Node {
-      constructor() {
-        this.homeX = Math.random() * width;
-        this.homeY = Math.random() * height;
-        this.x = this.homeX;
-        this.y = this.homeY;
-        this.vx = 0;
-        this.vy = 0;
-        this.radius = CONFIG.nodeRadiusMin + Math.random() * (CONFIG.nodeRadiusMax - CONFIG.nodeRadiusMin);
-        this.seed = Math.random() * Math.PI * 2;
-      }
-
-      update(t) {
-        const dxHome = this.homeX - this.x;
-        const dyHome = this.homeY - this.y;
-
-        this.vx += dxHome * CONFIG.returnStrength;
-        this.vy += dyHome * CONFIG.returnStrength;
-
-        const wobbleX = Math.cos(t * CONFIG.pulseSpeed + this.seed) * CONFIG.wobble;
-        const wobbleY = Math.sin(t * CONFIG.pulseSpeed * 0.85 + this.seed) * CONFIG.wobble;
-        this.vx += wobbleX * 0.03;
-        this.vy += wobbleY * 0.03;
-
-        if (mouse.active) {
-          const dx = mouse.x - this.x;
-          const dy = mouse.y - this.y;
-          const dist = Math.hypot(dx, dy) || 0.0001;
-
-          if (dist < CONFIG.mouseInfluence) {
-            const force = (1 - dist / CONFIG.mouseInfluence) * CONFIG.attractionStrength * 28;
-            this.vx += (dx / dist) * force;
-            this.vy += (dy / dist) * force;
-          }
-        }
-
-        this.vx *= CONFIG.friction;
-        this.vy *= CONFIG.friction;
-        this.x += this.vx;
-        this.y += this.vy;
-      }
-
-      draw(t) {
-        const pulse = 1 + Math.sin(t * 0.004 + this.seed) * 0.16;
-        const r = this.radius * pulse;
-
-        ctx.beginPath();
-        ctx.arc(this.x, this.y, r, 0, Math.PI * 2);
-        ctx.fillStyle = CONFIG.nodeColor;
-        ctx.shadowColor = CONFIG.nodeColor;
-        ctx.shadowBlur = 16;
-        ctx.fill();
-        ctx.shadowBlur = 0;
-
-        ctx.beginPath();
-        ctx.arc(this.x, this.y, r * 2.1, 0, Math.PI * 2);
-        ctx.fillStyle = 'rgba(255, 0, 255, 0.05)';
-        ctx.fill();
-      }
-    }
-
-    let nodes = [];
-
-    function resize() {
-      width = window.innerWidth;
-      height = window.innerHeight;
-      dpr = Math.min(window.devicePixelRatio || 1, 2);
-
-      canvas.width = width * dpr;
-      canvas.height = height * dpr;
-      canvas.style.width = width + 'px';
-      canvas.style.height = height + 'px';
-      ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
-
-      nodes = Array.from({ length: CONFIG.nodeCount }, () => new Node());
-    }
-
-    function drawLinks() {
-      for (let i = 0; i < nodes.length; i++) {
-        for (let j = i + 1; j < nodes.length; j++) {
-          const a = nodes[i];
-          const b = nodes[j];
-          const dx = b.x - a.x;
-          const dy = b.y - a.y;
-          const dist = Math.hypot(dx, dy);
-
-          if (dist < CONFIG.linkDistance) {
-            const alpha = (1 - dist / CONFIG.linkDistance) * 0.65;
-            ctx.beginPath();
-            ctx.moveTo(a.x, a.y);
-            ctx.lineTo(b.x, b.y);
-            ctx.strokeStyle = `rgba(255, 0, 255, ${alpha * 0.65})`;
-            ctx.lineWidth = 1;
-            ctx.stroke();
-          }
-        }
-      }
-    }
-
-    function animate(timestamp) {
-      time = timestamp;
-      ctx.clearRect(0, 0, width, height);
-
-      const gradient = ctx.createRadialGradient(
-        mouse.active ? mouse.x : width * 0.5,
-        mouse.active ? mouse.y : height * 0.5,
-        0,
-        width * 0.5,
-        height * 0.5,
-        Math.max(width, height) * 0.7
-      );
-      gradient.addColorStop(0, 'rgba(255, 0, 255, 0.06)');
-      gradient.addColorStop(1, 'rgba(255, 0, 255, 0)');
-      ctx.fillStyle = gradient;
-      ctx.fillRect(0, 0, width, height);
-
-      nodes.forEach(node => node.update(timestamp));
-      drawLinks();
-      nodes.forEach(node => node.draw(timestamp));
-
-      requestAnimationFrame(animate);
-    }
-
-    window.addEventListener('mousemove', (event) => {
-      mouse.x = event.clientX;
-      mouse.y = event.clientY;
-      mouse.active = true;
-    });
-
-    window.addEventListener('touchmove', (event) => {
-      if (event.touches[0]) {
-        mouse.x = event.touches[0].clientX;
-        mouse.y = event.touches[0].clientY;
-        mouse.active = true;
-      }
-    }, { passive: true });
-
-    window.addEventListener('mouseleave', () => {
-      mouse.active = false;
-    });
-
-    window.addEventListener('touchend', () => {
-      mouse.active = false;
-    });
-
-    window.addEventListener('resize', resize);
-
-    resize();
-    requestAnimationFrame(animate);
-  </script>
-</body>
-</html>

+ 0 - 223
vault/nodes-effect/nodes.html.txt

@@ -1,223 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-  <meta charset="UTF-8" />
-  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-  <title>nodes</title>
-  <style>
-    :root {
-      --node-color: #ff00ff;
-      --bg-1: #05010a;
-      --bg-2: #13051d;
-      --line-alpha: 0.28;
-    }
-
-    * {
-      box-sizing: border-box;
-    }
-
-    html, body {
-      margin: 0;
-      width: 100%;
-      height: 100%;
-      overflow: hidden;
-      background:
-        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.08), transparent 30%),
-        radial-gradient(circle at 80% 30%, rgba(255, 0, 255, 0.06), transparent 24%),
-        linear-gradient(160deg, var(--bg-1), var(--bg-2));
-      font-family: Inter, Arial, sans-serif;
-    }
-
-    canvas {
-      display: block;
-      width: 100vw;
-      height: 100vh;
-      cursor: crosshair;
-    }
-  </style>
-</head>
-<body>
-  <canvas id="network"></canvas>
-  
-
-  <script>
-    const canvas = document.getElementById('network');
-    const ctx = canvas.getContext('2d');
-
-    const CONFIG = {
-      nodeCount: 90,
-      nodeColor: '#ff00ff',
-      nodeRadiusMin: 2.2,
-      nodeRadiusMax: 5.5,
-      linkDistance: 150,
-      mouseInfluence: 190,
-      attractionStrength: 0.02,
-      returnStrength: 0.012,
-      friction: 0.92,
-      pulseSpeed: 0.0025,
-      wobble: 0.18,
-    };
-
-    let width = 0;
-    let height = 0;
-    let dpr = Math.min(window.devicePixelRatio || 1, 2);
-    let time = 0;
-
-    const mouse = {
-      x: 0,
-      y: 0,
-      active: false,
-    };
-
-    class Node {
-      constructor() {
-        this.homeX = Math.random() * width;
-        this.homeY = Math.random() * height;
-        this.x = this.homeX;
-        this.y = this.homeY;
-        this.vx = 0;
-        this.vy = 0;
-        this.radius = CONFIG.nodeRadiusMin + Math.random() * (CONFIG.nodeRadiusMax - CONFIG.nodeRadiusMin);
-        this.seed = Math.random() * Math.PI * 2;
-      }
-
-      update(t) {
-        const dxHome = this.homeX - this.x;
-        const dyHome = this.homeY - this.y;
-
-        this.vx += dxHome * CONFIG.returnStrength;
-        this.vy += dyHome * CONFIG.returnStrength;
-
-        const wobbleX = Math.cos(t * CONFIG.pulseSpeed + this.seed) * CONFIG.wobble;
-        const wobbleY = Math.sin(t * CONFIG.pulseSpeed * 0.85 + this.seed) * CONFIG.wobble;
-        this.vx += wobbleX * 0.03;
-        this.vy += wobbleY * 0.03;
-
-        if (mouse.active) {
-          const dx = mouse.x - this.x;
-          const dy = mouse.y - this.y;
-          const dist = Math.hypot(dx, dy) || 0.0001;
-
-          if (dist < CONFIG.mouseInfluence) {
-            const force = (1 - dist / CONFIG.mouseInfluence) * CONFIG.attractionStrength * 28;
-            this.vx += (dx / dist) * force;
-            this.vy += (dy / dist) * force;
-          }
-        }
-
-        this.vx *= CONFIG.friction;
-        this.vy *= CONFIG.friction;
-        this.x += this.vx;
-        this.y += this.vy;
-      }
-
-      draw(t) {
-        const pulse = 1 + Math.sin(t * 0.004 + this.seed) * 0.16;
-        const r = this.radius * pulse;
-
-        ctx.beginPath();
-        ctx.arc(this.x, this.y, r, 0, Math.PI * 2);
-        ctx.fillStyle = CONFIG.nodeColor;
-        ctx.shadowColor = CONFIG.nodeColor;
-        ctx.shadowBlur = 16;
-        ctx.fill();
-        ctx.shadowBlur = 0;
-
-        ctx.beginPath();
-        ctx.arc(this.x, this.y, r * 2.1, 0, Math.PI * 2);
-        ctx.fillStyle = 'rgba(255, 0, 255, 0.05)';
-        ctx.fill();
-      }
-    }
-
-    let nodes = [];
-
-    function resize() {
-      width = window.innerWidth;
-      height = window.innerHeight;
-      dpr = Math.min(window.devicePixelRatio || 1, 2);
-
-      canvas.width = width * dpr;
-      canvas.height = height * dpr;
-      canvas.style.width = width + 'px';
-      canvas.style.height = height + 'px';
-      ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
-
-      nodes = Array.from({ length: CONFIG.nodeCount }, () => new Node());
-    }
-
-    function drawLinks() {
-      for (let i = 0; i < nodes.length; i++) {
-        for (let j = i + 1; j < nodes.length; j++) {
-          const a = nodes[i];
-          const b = nodes[j];
-          const dx = b.x - a.x;
-          const dy = b.y - a.y;
-          const dist = Math.hypot(dx, dy);
-
-          if (dist < CONFIG.linkDistance) {
-            const alpha = (1 - dist / CONFIG.linkDistance) * 0.65;
-            ctx.beginPath();
-            ctx.moveTo(a.x, a.y);
-            ctx.lineTo(b.x, b.y);
-            ctx.strokeStyle = `rgba(255, 0, 255, ${alpha * 0.65})`;
-            ctx.lineWidth = 1;
-            ctx.stroke();
-          }
-        }
-      }
-    }
-
-    function animate(timestamp) {
-      time = timestamp;
-      ctx.clearRect(0, 0, width, height);
-
-      const gradient = ctx.createRadialGradient(
-        mouse.active ? mouse.x : width * 0.5,
-        mouse.active ? mouse.y : height * 0.5,
-        0,
-        width * 0.5,
-        height * 0.5,
-        Math.max(width, height) * 0.7
-      );
-      gradient.addColorStop(0, 'rgba(255, 0, 255, 0.06)');
-      gradient.addColorStop(1, 'rgba(255, 0, 255, 0)');
-      ctx.fillStyle = gradient;
-      ctx.fillRect(0, 0, width, height);
-
-      nodes.forEach(node => node.update(timestamp));
-      drawLinks();
-      nodes.forEach(node => node.draw(timestamp));
-
-      requestAnimationFrame(animate);
-    }
-
-    window.addEventListener('mousemove', (event) => {
-      mouse.x = event.clientX;
-      mouse.y = event.clientY;
-      mouse.active = true;
-    });
-
-    window.addEventListener('touchmove', (event) => {
-      if (event.touches[0]) {
-        mouse.x = event.touches[0].clientX;
-        mouse.y = event.touches[0].clientY;
-        mouse.active = true;
-      }
-    }, { passive: true });
-
-    window.addEventListener('mouseleave', () => {
-      mouse.active = false;
-    });
-
-    window.addEventListener('touchend', () => {
-      mouse.active = false;
-    });
-
-    window.addEventListener('resize', resize);
-
-    resize();
-    requestAnimationFrame(animate);
-  </script>
-</body>
-</html>

+ 0 - 5
vault/php-makrdown-blog/README.md

@@ -1,5 +0,0 @@
-# PHP Markdown blog
-
-In order for it to work you need do download Parsedown library for example with composer and put it according to the location listed in source code.
-
-made by: computer_glamour

+ 0 - 79
vault/php-makrdown-blog/blog.php.txt

@@ -1,79 +0,0 @@
-<?php
-declare(strict_types=1);
-
-// ========================
-// CONFIG
-// ========================
-$blogDir = __DIR__ . '/posts/';
-$defaultPost = 'index';
-
-// ========================
-// SECURITY: sanitize input
-// ========================
-$post = $_GET['b'] ?? $defaultPost;
-
-// allow only safe filenames
-if (!preg_match('/^[a-zA-Z0-9_-]+$/', $post)) {
-    http_response_code(400);
-    die('Invalid post name.');
-}
-
-$mdFile = $blogDir . $post . '.md';
-
-if (!file_exists($mdFile)) {
-    http_response_code(404);
-    $mdContent = "# 404\n\nPost not found.";
-} else {
-    $mdContent = file_get_contents($mdFile);
-}
-
-// ========================
-// MARKDOWN PARSER
-// ========================
-require_once __DIR__ . '/../vendor/Parsedown.php';
-require_once __DIR__ . '/../vendor/ParsedownExtra.php';
-
-
-
-$parser = new ParsedownExtra();
-$parser->setSafeMode(false);       // allow HTML in markdown
-$parser->setMarkupEscaped(false);  // don't escape HTML
-
-$htmlContent = $parser->text($mdContent);
-?>
-<!DOCTYPE html>
-<html lang="pl">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1">
-  <title>Blog</title>
-    <link rel="stylesheet" href="../style.css">
-<script src="https://unpkg.com/cursor-effects@latest/dist/browser.js"></script>
-
-<script>
-window.addEventListener("load", (event) => {
-  new cursoreffects.ghostCursor();
-});
-</script>
-
-    </style>
-</head>
-<body>
-
-
-<main class="container interests">
-  <?= $htmlContent ?>
-</main>
-
-    <footer>
-        <p class="center"><img src="../favicon.ico">(c) computer_glamour</p>
-    
-    <img src="../buttons/-18.gif" class="footer-button">
-    <img src="../buttons/xmpp.gif" class="footer-button">
-    <img src="../buttons/notread.gif" class="footer-button">
-    <img src="../buttons/right2repair.gif" class="footer-button">
-
-    </footer>
-
-</body>
-</html>

+ 0 - 84
vault/php-makrdown-blog/index.php.txt

@@ -1,84 +0,0 @@
-<?php
-declare(strict_types=1);
-
-$postsDir = __DIR__ . '/posts/';
-$posts = [];
-
-// scan markdown files
-foreach (glob($postsDir . '*.md') as $file) {
-    $filename = basename($file, '.md');
-    $content = file_get_contents($file);
-
-    // extract first markdown H1
-    if (preg_match('/^#\s+(.+)$/m', $content, $matches)) {
-        $title = trim($matches[1]);
-    } else {
-        $title = $filename;
-    }
-
-    $posts[] = [
-        'slug' => $filename,
-        'title' => $title,
-        'time' => filemtime($file),
-    ];
-}
-
-// sort newest first
-usort($posts, fn($a, $b) => $b['time'] <=> $a['time']);
-?>
-<!DOCTYPE html>
-<html lang="pl">
-<head>
-  <meta charset="UTF-8">
-  <meta name="viewport" content="width=device-width, initial-scale=1">
-  <title>Blog</title>
-    <link rel="stylesheet" href="../style.css">
-<script src="https://unpkg.com/cursor-effects@latest/dist/browser.js"></script>
-
-<script>
-window.addEventListener("load", (event) => {
-  new cursoreffects.ghostCursor();
-});
-</script>
-
-</head>
-<body>
-<div class="container bio">
-  <h1>📝 Blog 💻</h1>
-
-<img src="../shutdown.gif" class="small-pic">
-<p class="center">Blog posts:</p>
-  <?php if (empty($posts)): ?>
-    <p>Brak wpisów.</p>
-  <?php else: ?>
-    <ul class="post-list">
-      <?php foreach ($posts as $post): ?>
-          <a href="/blog/blog.php?b=<?= htmlspecialchars($post['slug']) ?>">
-            <?= htmlspecialchars($post['title']) ?>
-          </a>
-          <time datetime="<?= date('c', $post['time']) ?>">
-            <?= date('Y-m-d', $post['time']) ?>
-          </time>
-            <br>
-      <?php endforeach; ?>
-    </ul>
-  <?php endif; ?>
-<p class="center">Other thingies:</p>
-          <a href="/blog/video_games.php">Video Game ranking          </a>
-            <br>
-
-</div>
-</main>
-
-    <footer>
-        <p class="center"><img src="../favicon.ico">(c) computer_glamour</p>
-    
-    <img src="../buttons/-18.gif" class="footer-button">
-    <img src="../buttons/xmpp.gif" class="footer-button">
-    <img src="../buttons/notread.gif" class="footer-button">
-    <img src="../buttons/right2repair.gif" class="footer-button">
-
-    </footer>
-
-</body>
-</html>

BIN
vault/wallpapers/bg.png


+ 0 - 9
vault/xmpp-registration-form/README.md

@@ -1,9 +0,0 @@
-# XMPP registration form
-
-Made by: computer_glamour
-
-Simple PHP script that handles form to register new users on prosody XMPP server
-
-## DISCLAIMER
-
-in order for it to work you need to give `www-data` user sudo privileges to run `prosodyctl` without password

+ 0 - 63
vault/xmpp-registration-form/index.html.txt

@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>✨️computer_glamour✨️</title>
-
-    <link rel="stylesheet" href="../style.css">
-<script src="https://unpkg.com/cursor-effects@latest/dist/browser.js"></script>
-
-<script>
-window.addEventListener("load", (event) => {
-  new cursoreffects.ghostCursor();
-});
-</script>
-
-</head>
-
-<body>
-    <div class="container bio">
-    
-    <h1>Register for XMPP</h1>
-
-    <p>1. Ask for a secret code via email</p>
-<a href="mailto:computer@glamour.ovh?subject=XMPP%20secret%20code%20request&body=Hello,%0A%0AI%20would%20like%20to%20register%20on%20your%20XMPP%20server.%0ACan%20I%20request%20XMPP%20secret%20code?%0A%0AReason%20to%20register:%0A%3CPut%20your%20Reason%20here%20%3E%0A%0ABye,%0A%3Cyour%20nickname%20here%3E">Send Email</a>
-    <p>2. Register in the form below</p>
-    <form action="register.php" method="POST">
-        <label for="username">Username:</label><br>
-        <input type="text" id="username" name="username" required>
-        <br>
-        <label for="password">Password:</label><br>
-        <input type="password" id="password" name="password" required>
-        <br>
-        <label for="captcha">Secret code</label><br>
-        <input type="text" id="captcha" name="captcha" required>
-        <br>
-        <input type="submit" value="Register">
-    </form>
-    <p>3. Download your favorite xmpp app<br><br>
-For Linux i recommend Dino<br>
-For Android i recommend Monocles<br>
-For iPhone i recommend Monal<br>
-With Windows you are on your own :3</p>
-    <p>4. Open your app and type in your username@xmpp.glamour.ovh<br><br>and password that you have typed in the registration form</p>
-    
-  </div>
-  
-    </div>
-
-    <footer>
-       <p class="center"><img src="../favicon.ico">(c) computer_glamour</p>
-    
-    <img src="../buttons/-18.gif" class="footer-button">
-    <img src="../buttons/xmpp.gif" class="footer-button">
-    <img src="../buttons/notread.gif" class="footer-button">
-    <img src="../buttons/right2repair.gif" class="footer-button">
-
-    </footer>
-
-</body>
-
-</html>

+ 0 - 35
vault/xmpp-registration-form/register.php.txt

@@ -1,35 +0,0 @@
-<?php
-if ($_SERVER['REQUEST_METHOD'] === 'POST') {
-    $username = escapeshellarg(trim($_POST['username'])); // Sanitize input
-    $password = escapeshellarg(trim($_POST['password'])); // Sanitize input
-    $captcha = strtolower(trim($_POST['captcha'])); // Normalize input
-    
-    // Correct answer to the CAPTCHA question
-    $correct_answer = 'XXXXXX'; 
-
-    // Check CAPTCHA answer
-    if ($captcha !== $correct_answer) {
-        echo "Incorrect CAPTCHA answer. Please try again.";
-        exit;
-    }
-
-    // Command to register the user using prosodyctl
-    $command = "sudo /usr/bin/prosodyctl register $username xmpp.glamour.ovh $password"; // Update domain
-
-    // Execute the command
-    $output = array();
-    $return_var = 0; // Variable to capture the command exit status
-
-    exec($command, $output, $return_var);
-
-    // Check if registration was successful
-    if ($return_var === 0) {
-        echo "Registration successful!";
-    } else {
-        echo "Registration failed: " . implode("\n", $output);
-    }
-} else {
-    echo "Invalid request method.";
-}
-?>
-