|
Server : LiteSpeed System : Linux srv526460274 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : kerao9884 ( 1082) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/CyberCP/baseTemplate/ |
Upload File : |
import requests
import json
ab = {'package': 'helo world', 'Themename': 'blue-green-theme'}
url= "http://cyberpanel.net/version.txt"
#url= "https://api.github.com/repos/usmannasir/CyberPanel-Themes/git/commits/def351a6eb4c103fb2dd2acf52396d4ef6111eee"
res=requests.get(url)
# sha=res.json()[0]['sha']
a= res.json()['version']
print(a)
print(res)
u = "https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v%s"%a
r= requests.get(u)
print(r.text)
# l ="https://api.github.com/repos/usmannasir/CyberPanel-Themes/git/trees/%s"%sha
# fres=requests.get(l)
#
# print(fres.json())
# # tott = len(fres.json()['tree'])
#
# finalData['tree']=[]
# for i in range(tott):
# if(fres.json()['tree'][i]['type']=="tree"):
# finalData['tree'].append(fres.json()['tree'][i]['path'])
#
# print(finalData['tree'])