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
$appsDir = "/home/surillya/.apps/";
$appsDir = "/root/.apps/";
$symlinkPath = "/usr/thos/apps";
$apps = [];

View File

@ -1,6 +1,6 @@
<?php
// 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)
define('VIRTUAL_ROOT', '/');

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
<?php
define('THOS_STATE_FILE', '/home/surillya/.thos_state.json');
define('THOS_STATE_FILE', '/root/.thos_state.json');
function thos_load_state() {
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>
<div id="wallpapers" class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<?php
$wallpaperDir = "/home/surillya/Pictures/";
$wallpaperDir = "/root/Pictures/";
$images = glob($wallpaperDir . "*.{jpg,jpeg,png,gif,webp}", GLOB_BRACE);
foreach ($images as $img) {
require_once "vfs.php";