function loadAppFunc($func, $m = '') { $m = empty($m) && defined('M') ? M : $m; if (empty($m)) { return false; } return _func($func, 'module' . DIRECTORY_SEPARATOR . $m . DIRECTORY_SEPARATOR . 'function'); }
<?php if (!defined('_VALID_BBC')) { exit('No direct script access allowed'); } if (!isset($_POST['Submit'])) { _func('editor'); $config = array('id' => 'script', 'height' => '250px', 'syntax' => 'php'); ?> <form action="" method="POST" enctype="multipart/form-data" id="form" target="output"> <table width="100%" height="100%" border=0 cellpadding="0" cellspacing="0"> <tr> <td style="height:100px;"> <?php echo editor_code($config, '', array(), false); ?> </td> </tr> <tr bgcolor=#f0f0f0> <td style="height:10px;"> <input type=submit name="Submit" value="Execute"> <select name="actionscript"> <option>php</option> <option>none</option> </select> <label><input type="checkbox" name="use_template" value="1" title="use template"> Use Template</label> <label><input type="checkbox" title="New Window" onclick="document.getElementById('form').target = this.checked ? '_blank' : 'output';"> New Window</label> </td> </tr> <tr> <td>
echo createoption($ar); ?> </select> <div class="input-group"> <input name=submit type=submit value="submit" class="btn btn-default" /> </div> </div> </div> <iframe src="" frameborder="0" style="width: 100%;height: 450px;" name="output"></iframe> </td> </tr> </table> </form> <?php } else { _func('path'); if ($_POST['submit'] == 'submit') { if (empty($_POST['files'])) { echo 'Please insert the file or path and separate by new line'; } else { $template = @$_POST['template']; $files = array(); $r = explode("\n", $_POST['files']); foreach ($r as $f) { $f = trim($f); if (!empty($f)) { if (!file_exists($f)) { $f = _ROOT . $f; } if (file_exists($f)) { if (is_file($f)) {