16 Commits

Author SHA1 Message Date
SuperDev
04c00a157c Update index.php 2023-01-13 11:17:09 -06:00
SuperDev
bca44182fb Update index.php 2023-01-13 11:09:28 -06:00
SuperDev
fad79747bd Update index.php 2023-01-13 11:07:36 -06:00
SuperDev
0a29401e41 Update index.php 2023-01-13 11:06:04 -06:00
SuperDev
d7628753d7 Update index.php 2023-01-13 11:04:03 -06:00
SuperDev
22f2d2b2e2 Update index.php 2023-01-13 11:01:57 -06:00
SuperDev
64b54065cd Update index.php 2023-01-13 10:56:27 -06:00
SuperDev
4df34419ad Update index.php 2023-01-13 10:55:44 -06:00
SuperDev
dc359685c3 Update index.php 2023-01-12 21:37:41 -06:00
SuperDev
3515bd3497 Update index.php 2023-01-12 21:36:16 -06:00
SuperDev
b322c02812 Update index.php 2023-01-12 21:25:29 -06:00
SuperDev
64bcb98017 Update index.php 2023-01-12 21:18:52 -06:00
SuperDev
4fa76dbf3d Update index.php 2023-01-12 21:11:07 -06:00
SuperDev
915c16aaab Update config.php 2023-01-12 21:07:07 -06:00
SuperDev
94d1c97f95 Update index.php 2023-01-12 21:02:29 -06:00
SuperDev
def87c330f Update config.php 2023-01-12 20:52:25 -06:00
2 changed files with 2 additions and 12 deletions

View File

@@ -66,19 +66,8 @@ return $bytes . ' B';
// get size of folders in a folder // get size of folders in a folder
$plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR)); $plugin_count = count(glob('../../plugins/*', GLOB_ONLYDIR));
// Update checker
$PATCH_URL = 'https://raw.githubusercontent.com/Supernova3339/anonfiles/main/';
$version_filename = 'latest.txt?token=GHSAT0AAAAAAB4S7HM4SZGF7VWPABQO3KRSY5FDV4Q'; # REMOVE TOKEN
// Get version // Get version
$ch = curl_init($PATCH_URL . $version_filename); // todo: make this work
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$str = curl_exec($ch);
curl_close($ch);
$server_version = str_to_version_info($str);
?> ?>
<?=template_admin_header('Dashboard', 'dashboard')?> <?=template_admin_header('Dashboard', 'dashboard')?>

View File

@@ -52,6 +52,7 @@ define('plausible_embed', $plausibleembed);
define('plausibleembedtoken', $plausibleembedtoken); define('plausibleembedtoken', $plausibleembedtoken);
/* version */ /* version */
define('version', 'v1.0.0'); // DO NOT FORGET TO CHANGE THIS define('version', 'v1.0.0'); // DO NOT FORGET TO CHANGE THIS
$github_api_url = "https://api.github.com/repos/Supernova3339/anonupload/releases/latest"; // this is how tag gets pulled for latest version
?> ?>