3 Commits

Author SHA1 Message Date
SuperDev
78f5305c38 Revert "Apply fixes from StyleCI" 2023-01-19 11:46:03 -06:00
SuperDev
3dc11557a0 Merge pull request #27 from Supernova3339/analysis-O3AJLk
Apply fixes from StyleCI
2023-01-19 11:45:50 -06:00
StyleCI Bot
edfec973b8 Apply fixes from StyleCI 2023-01-19 17:45:32 +00:00
2 changed files with 12 additions and 2 deletions

View File

@@ -66,8 +66,19 @@ return $bytes . ' B';
// get size of folders in a folder
$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
// todo: make this work
$ch = curl_init($PATCH_URL . $version_filename);
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')?>

View File

@@ -52,7 +52,6 @@ define('plausible_embed', $plausibleembed);
define('plausibleembedtoken', $plausibleembedtoken);
/* version */
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
?>