Switched to neutral /root as the virtual file system!
This commit is contained in:
2
apps.php
2
apps.php
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$appsDir = "/home/surillya/.apps/";
|
||||
$appsDir = "/root/.apps/";
|
||||
$symlinkPath = "/usr/thos/apps";
|
||||
$apps = [];
|
||||
|
||||
|
@ -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', '/');
|
||||
|
2
file.php
2
file.php
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$rootDir = realpath("/home/surillya");
|
||||
$rootDir = realpath("/root");
|
||||
|
||||
$query = $_GET['q'] ?? '';
|
||||
|
||||
|
@ -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
|
||||
|
@ -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.");
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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";
|
||||
|
Reference in New Issue
Block a user