Switched to neutral /root as the virtual file system!

This commit is contained in:
2025-06-20 19:19:58 +02:00
parent 39b43fef75
commit 0d3ee0a0eb
7 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
$appsDir = "/home/surillya/.apps/"; $appsDir = "/root/.apps/";
$symlinkPath = "/usr/thos/apps"; $symlinkPath = "/usr/thos/apps";
$apps = []; $apps = [];

View File

@ -1,6 +1,6 @@
<?php <?php
// Your actual root directory on the server // Your actual root directory on the server
define('REAL_ROOT', '/home/surillya/'); define('REAL_ROOT', '/root/');
// The user's virtual path (as seen in the OS) // The user's virtual path (as seen in the OS)
define('VIRTUAL_ROOT', '/'); define('VIRTUAL_ROOT', '/');

View File

@ -1,5 +1,5 @@
<?php <?php
$rootDir = realpath("/home/surillya"); $rootDir = realpath("/root");
$query = $_GET['q'] ?? ''; $query = $_GET['q'] ?? '';

View File

@ -412,7 +412,7 @@ if (!$state || !isset($state['localData']) || !json_decode($state['localData'],
<script> <script>
window.THOS = { window.THOS = {
version: '6 Build-32' version: '6 Build-33'
}; };
let timeoutSeconds = 180; let timeoutSeconds = 180;
@ -748,7 +748,7 @@ if (!$state || !isset($state['localData']) || !json_decode($state['localData'],
try { try {
const isValid = /^https:\/\/surillya\.com\//.test(packageFileUrl); const isValid = /^https:\/\/surillya\.com\//.test(packageFileUrl);
const fileName = packageFileUrl.split('/').pop().split('?')[0]; const fileName = packageFileUrl.split('/').pop().split('?')[0];
const outputPath = `/home/surillya/.temp/${fileName}`; const outputPath = `/root/.temp/${fileName}`;
// I HATE UNDERSCORES!!!! // I HATE UNDERSCORES!!!!
// underscore =/= dash // underscore =/= dash

View File

@ -15,10 +15,10 @@ if (!preg_match('/^https:\/\/surillya\.com\//', $url)) {
$verified = 0; $verified = 0;
} }
$targetPath = '/home/surillya/.temp/' . basename($output); $targetPath = '/root/.temp/' . basename($output);
if (!is_dir("/home/surillya/.temp/")){ if (!is_dir("/root/.temp/")){
if (!mkdir("/home/surillya/.temp/", 0755, true)){ if (!mkdir("/root/.temp/", 0755, true)){
fail("Failed to create temporary download directory."); fail("Failed to create temporary download directory.");
} }
} }

View File

@ -1,5 +1,5 @@
<?php <?php
define('THOS_STATE_FILE', '/home/surillya/.thos_state.json'); define('THOS_STATE_FILE', '/root/.thos_state.json');
function thos_load_state() { function thos_load_state() {
if (!file_exists(THOS_STATE_FILE)) return null; if (!file_exists(THOS_STATE_FILE)) return null;

View File

@ -17,7 +17,7 @@
<h1 class="text-3xl font-bold text-pink-400 mb-6">Wallpaper Picker</h1> <h1 class="text-3xl font-bold text-pink-400 mb-6">Wallpaper Picker</h1>
<div id="wallpapers" class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6"> <div id="wallpapers" class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<?php <?php
$wallpaperDir = "/home/surillya/Pictures/"; $wallpaperDir = "/root/Pictures/";
$images = glob($wallpaperDir . "*.{jpg,jpeg,png,gif,webp}", GLOB_BRACE); $images = glob($wallpaperDir . "*.{jpg,jpeg,png,gif,webp}", GLOB_BRACE);
foreach ($images as $img) { foreach ($images as $img) {
require_once "vfs.php"; require_once "vfs.php";