mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-06 06:27:33 +02:00
p3
This commit is contained in:
@@ -14,13 +14,13 @@ class CronUtil:
|
||||
|
||||
try:
|
||||
f = open(cronPath, 'r').read()
|
||||
print f
|
||||
except BaseException, msg:
|
||||
print "0,CyberPanel," + str(msg)
|
||||
print(f)
|
||||
except BaseException as msg:
|
||||
print("0,CyberPanel," + str(msg))
|
||||
return 1
|
||||
|
||||
except BaseException, msg:
|
||||
print "0,CyberPanel," + str(msg)
|
||||
except BaseException as msg:
|
||||
print("0,CyberPanel," + str(msg))
|
||||
|
||||
@staticmethod
|
||||
def saveCronChanges(externalApp, finalCron, line):
|
||||
@@ -40,9 +40,9 @@ class CronUtil:
|
||||
with open(cronPath, 'w') as file:
|
||||
file.writelines(data)
|
||||
|
||||
print "1,None"
|
||||
except BaseException, msg:
|
||||
print "0," + str(msg)
|
||||
print("1,None")
|
||||
except BaseException as msg:
|
||||
print("0," + str(msg))
|
||||
|
||||
@staticmethod
|
||||
def remCronbyLine(externalApp, line):
|
||||
@@ -68,9 +68,9 @@ class CronUtil:
|
||||
|
||||
counter = counter + 1
|
||||
|
||||
print "1," + removedLine
|
||||
except BaseException, msg:
|
||||
print "0," + str(msg)
|
||||
print("1," + removedLine)
|
||||
except BaseException as msg:
|
||||
print("0," + str(msg))
|
||||
|
||||
@staticmethod
|
||||
def addNewCron(externalApp, finalCron):
|
||||
@@ -80,9 +80,9 @@ class CronUtil:
|
||||
with open(CronPath, "a") as file:
|
||||
file.write(finalCron + "\n")
|
||||
|
||||
print "1,None"
|
||||
except BaseException, msg:
|
||||
print "0," + str(msg)
|
||||
print("1,None")
|
||||
except BaseException as msg:
|
||||
print("0," + str(msg))
|
||||
|
||||
@staticmethod
|
||||
def CronPrem(mode):
|
||||
|
||||
Reference in New Issue
Block a user