Current File : //root/panel/modules/phpexecution/module.zpm
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
    <div class="panel-heading">
        <img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">

        <div class="zmodule_title">
            <@ ModuleName @>
        </div>

        <div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @></div>

    </div>

        <style>
.helpicon {
display: block;
float: right;
border: 1px solid #ccc;
background-color: #f3f3f3;
padding: 5px 10px;
font-size: 12px;
margin-top:-121px;
margin-right:5px;
-webkit-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: -8px 7px 5px 0px rgba(204,204,204,1);
-webkit-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
-moz-box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
box-shadow: 8px 7px 5px 0px rgba(204,204,204,1);
}

</style>
<div class="helpicon">
<a href="<@ helpicon @>" target="_blank"><img src="etc/styles/CstyleX-master/images/help.png" style="float:left;" ><span style="float:left;margin-top:8px;font-weight:bold;font-size:12px;" >Video Tutorial</span></a>
</div>

    <div id="zform_wrapper">
    </div>
    <div id="contentwrapper_phpinfo">
        <div class="zform_wrapper" style="width:100%">
			<h2>PHP File Execution Log</h2>
            <div class="blocked_file"><@ BlockedFiles @></div>
        </div>
    </div>
    <div id="contentwrapper_phpinfo">
        <div class="zform_wrapper" style="width:100%">
			<h2>PHP Allow Files</h2>
            <div class="allowed_files"><@ AllowedFiles @></div>
        </div>
    </div>

</div>
<style>
.each-file-block {
    margin: 10px;
}
button#AllowFile, button#DisAllowFile {
    margin-left: 25px;
}
</style>
<script type="text/javascript">
    $(document).ready(function(){
        $( "button#AllowFile" ).each(function(index) {
            $(this).on("click", function(){
                $("#zform_wrapper").html('');
                var FilePath = $(this).val();
                $(this).parent().remove(); 
                $.ajax({
                    type: 'POST',
                    url: './?module=phpexecution&action=AllowFiles',
                    data:{FilePath:FilePath},
                    success: function(data)
                    {
                        $("#zloader_overlay").hide();
                        $("#zloader").hide();
                        console.log(data);
                        if(data)
                        {
                            $(".allowed_files").html(data);
                            $("#zform_wrapper").prepend('<div class="alert alert-success"><button type="button" Id="close_button" onClick="CloseParent();" class="close" data-dismiss="alert">×</button><p><strong>Success:</strong>Your file has been allowed successfully.</p></div>');
                            var blocked_file = $(".blocked_file").html();
                            if(blocked_file == '')
                            {
                                $(".blocked_file").html('No data available');
                            }
                            location.reload();
                        }
                    },
                    error: function(ts)
                    {
                        $("#zloader_overlay").hide();
                        $("#zloader").hide();
                    }
                });
            }); 
        });
        $( "button#DisAllowFile" ).each(function(index) {
            $(this).on("click", function(){
                $("#zform_wrapper").html('');
                var FilePath = $(this).val();
                $(this).parent().remove(); 
                $.ajax({
                    type: 'POST',
                    url: './?module=phpexecution&action=DisAllowFile',
                    data:{FilePath:FilePath},
                    success: function(data)
                    {
                        $("#zloader_overlay").hide();
                        $("#zloader").hide();
                        console.log(data);
                        if(data)
                        {
                            $(".blocked_file").html(data);
                            $("#zform_wrapper").prepend('<div class="alert alert-success"><button type="button" Id="close_button" onClick="CloseParent();" class="close" data-dismiss="alert">×</button><p><strong>Success:</strong>Your file has been allowed successfully.</p></div>');
                            var allowed_files = $(".allowed_files").html();
                            if(allowed_files == '')
                            {
                                $(".allowed_files").html('No data available');
                            }
                            location.reload();
                        }
                    },
                    error: function(ts)
                    {
                        $("#zloader_overlay").hide();
                        $("#zloader").hide();
                    }
                });
            }); 
        });

    });
</script>