|
|
@ -118,6 +118,18 @@ def status(): |
|
|
|
return 'start' |
|
|
|
return 'start' |
|
|
|
return 'stop' |
|
|
|
return 'stop' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getConfAppStart(): |
|
|
|
|
|
|
|
pstart = mw.getServerDir() + '/php/app_start.php' |
|
|
|
|
|
|
|
return pstart |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def phpPrependFile(version): |
|
|
|
|
|
|
|
app_start = getConfAppStart() |
|
|
|
|
|
|
|
if not os.path.exists(app_start): |
|
|
|
|
|
|
|
tpl = mw.getPluginDir() + '/php/conf/app_start.php' |
|
|
|
|
|
|
|
content = mw.readFile(tpl) |
|
|
|
|
|
|
|
content = contentReplace(content, version) |
|
|
|
|
|
|
|
mw.writeFile(app_start, content) |
|
|
|
|
|
|
|
|
|
|
|
def start(): |
|
|
|
def start(): |
|
|
|
file_tpl = getPluginDir() + '/conf/xhprof.conf' |
|
|
|
file_tpl = getPluginDir() + '/conf/xhprof.conf' |
|
|
@ -203,11 +215,6 @@ def setXhPort(): |
|
|
|
return mw.returnJson(True, '修改成功!') |
|
|
|
return mw.returnJson(True, '修改成功!') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getConfAppStart(): |
|
|
|
|
|
|
|
pstart = mw.getServerDir() + '/php/app_start.php' |
|
|
|
|
|
|
|
return pstart |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def installPreInspection(): |
|
|
|
def installPreInspection(): |
|
|
|
path = mw.getServerDir() + '/php' |
|
|
|
path = mw.getServerDir() + '/php' |
|
|
|
if not os.path.exists(path): |
|
|
|
if not os.path.exists(path): |
|
|
|