$.pfcEditor.getPage('phpinfo').config.url = '<?php echo Router::pagelink('phpinfo'); ?> '; $.pfcEditor.getPage('adminer').config.url = '<?php echo Router::pagelink('adminer'); ?> '; $.pfcEditor.getPage('adminer').multi = <?php echo Config::isAdminerMultiPage ? 'true' : 'false'; ?> ; $.pfcEditor.getPage('webterminal').config.url = '<?php echo Router::pagelink('webterminal'); ?> '; //sections //SOURCES <?php foreach (['sources', 'sandbox', 'editor'] as $srcs) { ?> $.pfcEditor.addSection('#pfc-sources-<?php echo $srcs; ?> -href',$pfcEditorSources.factory({secid:'pfc-sources-<?php echo $srcs; ?>
Email: <input type="text" name="email"> <input type="submit" value="Reset password"> </form> <br> <a href="#">Login form</a> </div> <script type="text/javascript" src="vendor/jquery/jquery.js"></script> <script type="text/javascript" src="vendor/jquery_form/jquery.form.js"></script> <script type="text/javascript"> function refreshServerTime() { $.get("<?php echo Router::applinkajax('server-time'); ?> ",{},function(data){ $('.pfc-editor-server-time').html(data); setTimeout(function(){ refreshServerTime(); },400); }).fail(function(){ refreshServerTime(); }); } function login_form(json) { $('.error').hide(); $('.banned').hide();
<nav> <a id="pfc-editor-logo" href="#">[[:pfc <em>lite</em></a> <ul id="pfc-editor-menu"> <li><a class="pfc-editor-active-section-href" id="pfc-sources-sources-href" href="#pfc-sources-sources">sources</a></li> <li><a id="pfc-sources-sandbox-href" href="#pfc-sources-sandbox">sandbox</a></li> <li><a id="pfc-editor-adminer-href" class="pfc-editor-page-href" href="#">adminer</a></li> <li><a id="pfc-editor-webterminal-href" class="pfc-editor-page-href" href="#">terminal</a></li> <li><a id="pfc-editor-notestxt-href" class="pfc-editor-file-href" href="#">notes.txt</a></li> <li><a id="pfc-sources-my-home-href" href="#pfc-sources-my-home">my home</a></li> </ul> <span style="float:right;display:block;padding-right:10px;color:#ddd">:]]</span> <a id="pfc-editor-logout-href" class="pfc-editor-page-href" href="<?php echo Router::applinkaction('logout'); ?> ">logout</a> <a id="pfc-editor-help-href" class="pfc-editor-page-href pfc-editor-help-href" href="#">help</a> <a id="pfc-editor-tools-href" class="pfc-editor-page-href" href="#pfc-editor-tools">tools</a> <a id="pfc-editor-config-href" class="pfc-editor-page-href" href="#">settings</a> <a id="pfc-sources-editor-href" class="pfc-editor-page-href" href="#pfc-sources-editor">editor</a> <br style="clear: both"> </nav>
use PFC\Editor\AppCryptor; use PFC\Editor\App; use PFC\Editor\Router; /* $ssl = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? true:false; $sp = strtolower($_SERVER['SERVER_PROTOCOL']); $protocol = substr($sp, 0, strpos($sp, '/')) . (($ssl) ? 's' : ''); $request = str_replace(Project::$WEB_URL,'',$protocol.'://'. $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);//we dont care about rewriting get part $ret = explode('?',$request); $form_action = $ret[0]; $site = str_replace('/pfc-config', '', $ret[0]); */ ?> <h2 style="padding-bottom: 5px">Editor Settings</h2> <form id="pfc-editor-config" method="post" action="<?php echo Router::pagelinkaction('pfc-editor/editor-config', 'save-config'); ?> "> <div id="pfc-editor-config-accordicon"> <a class="accordicon-head" href="#pfc-editor-config-basic">Basic</a> <div class="pfc-editor-config-basic accordicon-body"> <div class="fleft formPrimitiveRow"> <div class="fleft formPrimitiveTitle"> Name: </div> <div class="fleft formPrimitiveCell"> <input type="text" name="name" value="<?php echo AppConfig::name; ?> ">