Skip to content

Commit

Permalink
[BpAd] Add Latest 10 uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev0-BH committed Dec 4, 2021
1 parent 340ed70 commit 71a7bba
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/python/Screens/BpAd.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def updateList(self):

#mypixmap = mypath + "icons/statpanel.png"
#png = LoadPixmap(mypixmap)
#name = _("BlackHole Statistics")
#name = _("OpenBh Statistics")
#idx = 5
#res = (name, png, idx)
#self.list.append(res)
Expand Down Expand Up @@ -285,12 +285,12 @@ def updateList(self):
res = (name, png, idx)
self.list.append(res)

#mypixmap = mypath + "icons/nabuploads.png"
#png = LoadPixmap(mypixmap)
#name = _("Latest 10 Uploads")
#idx = 8
#res = (name, png, idx)
#self.list.append(res)
mypixmap = mypath + "icons/nabuploads.png"
png = LoadPixmap(mypixmap)
name = _("Latest 10 Uploads")
idx = 8
res = (name, png, idx)
self.list.append(res)

self["list"].list = self.list

Expand Down Expand Up @@ -326,9 +326,9 @@ def KeyOk(self):
elif self.sel == 7:
self.url = "http://bhaddons.openbh.net/index.php?op=outcat&cat=Picons"
self.title = "OpenBh Picons Packages"
#elif self.sel == 8:
# self.url = "http://bhaddons.openbh.net/index.php?op=" + catver
# self.title = "Latest 10 Uploads"
elif self.sel == 8:
self.url = "http://bhaddons.openbh.net/index.php?op=" + catver
self.title = "Latest 10 Uploads"

downfile = "/tmp/cpanel.tmp"
if fileExists(downfile):
Expand Down Expand Up @@ -811,7 +811,7 @@ def __init__(self, session):

def statshow(self):
if fileExists("/tmp/cpanel.tmp"):
strview = _("BlackHole Image Statistics:\n\n_____________________________________\n")
strview = _("OpenBh Image Statistics:\n\n_____________________________________\n")
step = 0
f = open("/tmp/cpanel.tmp", 'r')

Expand Down

0 comments on commit 71a7bba

Please sign in to comment.