Email: <input type="text" name="email">
                <input type="submit" value="Reset password">
            </form>  
            <br>   
            <a href="#">Login form</a>                  
            </div>                   
           </div>
              
                <script type="text/javascript" src="<?php 
echo AppConfig::$assetsUrl;
?>
assets/libs/jquery/jquery.js"></script>
                <script type="text/javascript">
                    function refreshServerTime() {
                        $.get("<?php 
echo App::applinkajax('server-time');
?>
",{},function(data){
                            $('.pfc-editor-server-time').html(data);
                            setTimeout(function(){
                                refreshServerTime();
                            },400);
                        }).fail(function(){
                                refreshServerTime();
                        });
                    }
                    
                    $(function(){
                        refreshServerTime();
                    });
                </script>                      
			<nav>
                <a id="pfc-editor-logo" href="#editor-home">[[: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>                    
                </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 \PFC\Editor\App::applinkaction('logout');
?>
">logout</a>
                <a id="pfc-editor-help-href" class="pfc-editor-page-href pfc-editor-help-href" href="#editor-help">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="#editor-config">config</a>                
              
                
              <a id="pfc-sources-editor-href" class="pfc-editor-page-href" href="#pfc-sources-editor">editor</a>
                <br style="clear: both">
			</nav>
<?php

$t = isset($_GET['template']) ? $_GET['template'] : $_POST['template'];
$t = str_replace('#', '', $t);
$t = str_replace('_', '/', $t);
\PFC\Editor\App::bufferOn();
require \PFC\Editor\APPLICATION_PATH . '/components/tools/snippets/' . $t . '.php';
$code = \PFC\Editor\App::bufferEnd();
echo \PFC\TemplateFactory\TemplateFactory::translatePHP($code);
use PFC\Editor\Config as AppConfig;
use PFC\Editor\AppCryptor;
use PFC\Editor\App;
/*
            $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 Config</h2>
        <form id="pfc-editor-config" method="post" action="<?php 
echo App::pagelinkaction('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;
?>
">
                $.pfcEditor.getPage('editor-about').config.url = '<?php 
echo \PFC\Editor\App::pagelink('editor-about');
?>
';
                $.pfcEditor.getPage('editor-config').config.url = '<?php 
echo \PFC\Editor\App::pagelink('editor-config');
?>
';
                $.pfcEditor.getPage('editor-help').config.url = '<?php 
echo \PFC\Editor\App::pagelink('editor-help');
?>
';
                
                                
                $.pfcEditor.getPage('phpinfo').config.url = '<?php 
echo \PFC\Editor\App::pagelink('phpinfo');
?>
';
                
                //sections
                
                $.pfcEditor.getSection('pfc-sources-editor').config.opendirs = [
                        <?php 
foreach (\PFC\Editor\Config\Sources::$paths as $k => $s) {
    if ($s['section'] == 'editor') {
        ?>
                                                {
                                                    //id: '<?php 
        echo $s['name'];
        ?>
',