Added get_php_ini.py script
This commit is contained in:
parent
ff9a221ed0
commit
05025fbdb5
4 changed files with 191 additions and 2 deletions
44
templates/admin/edit_phpserver.phtml
Normal file
44
templates/admin/edit_phpserver.phtml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<%inherit file="dashboard.phtml"/>
|
||||
<%block name="extra_css">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ace-builds@1.43.4/css/ace.min.css">
|
||||
</%block>
|
||||
<%block name="content">
|
||||
<h3>${_('Edit php.ini')}</h3>
|
||||
<div class="form">
|
||||
<div id="php_ini">
|
||||
</div>
|
||||
</div>
|
||||
</%block>
|
||||
<%block name="jscript_block">
|
||||
<script src=" https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.min.js"></script>
|
||||
<script>
|
||||
|
||||
$.ajax({
|
||||
url: "${url_for('phpserver_app.get_php_server', php_server_id=php_server_id)}",
|
||||
method: "GET",
|
||||
dataType: "json",
|
||||
data: {},
|
||||
success: function (data) {
|
||||
|
||||
console.log(data);
|
||||
|
||||
if(data.log.error) {
|
||||
|
||||
$('#php_ini').html(data.log.message);
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
error: function (data) {
|
||||
|
||||
alert('Error: '+data.status+' '+data.statusText);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
var editor = ace.edit("php_ini");
|
||||
editor.setTheme("ace/theme/twilight");
|
||||
editor.session.setMode("ace/mode/javascript");
|
||||
|
||||
</script>
|
||||
</%block>
|
||||
Loading…
Add table
Add a link
Reference in a new issue