Warning: unlink(/tmp/taglib.felt.php): No such file or directory in /var/www/felt-lang.com/src/coders/phpcoder.class.php on line 89

Warning: unlink(/tmp/lookups.felt.php): No such file or directory in /var/www/felt-lang.com/src/coders/phpcoder.class.php on line 89

Warning: unlink(/tmp/twitterbootstrap.felt.php): No such file or directory in /var/www/felt-lang.com/src/coders/phpcoder.class.php on line 89

Warning: unlink(/tmp/taglib.felt.php): No such file or directory in /var/www/felt-lang.com/src/coders/phpcoder.class.php on line 89

Warning: unlink(/tmp/pageparts.felt.php): No such file or directory in /var/www/felt-lang.com/src/coders/phpcoder.class.php on line 89
*** FELT-ERROR ***Could not open input file: /tmp/pageparts.felt.php 1: function build_main_menu(&$env) 2: {$env['menubar'] = tb_navbar('sitenav', array(tb_navicon(), tb_brand("F.E.L.T."), tb_collapse_menu(array(tb_alink(array(icon('actions/go-home'), "Home"), "/"), tb_navdropdown(array(icon('emblems/emblem-favorite'), "FELT"), array(tb_alink("About FELT", "/page/feltinfo"), tb_alink("Licence", "/page/licence"), _lt__gt_('li', array('class' => 'divider')), _lt__gt_('li', array('class' => 'dropdown-submenu'), _lt__gt_('a', array('href' => "/page/install"), "Installing FELT..."), _lt__gt_('ul', array('class' => 'dropdown-menu'), tb_alink("For CLI/Scripting", "/page/install-cli"), tb_alink("For Web Development", "/page/install-web"))), _lt__gt_('li', array('class' => 'dropdown-submenu'), _lt__gt_('a', array('href' => "#"), "Coding Guidelines"), _lt__gt_('ul', array('class' => 'dropdown-menu'), tb_alink("FELT Syntax Rules", "/ref/syntax"), tb_alink("Coding for PHP", "/ref/codephp"), tb_alink("Coding for JavaScript", "/ref/codejs"), tb_alink("Coding for Node.js", "/ref/codenodejs"), tb_alink("Coding for CSS", "/ref/codecss"))), tb_alink("FELT Roadmap & Wish-list!", "/page/roadmap"), _lt__gt_('li', array('class' => 'divider')), tb_alink("A-Z Quick Reference", "/page/atoz"), tb_alink("FELT 'man' Page", "/ref/felt"))), tb_navdropdown(array(icon('apps/accessories-text-editor'), "Reference"), array(make_reference_submenu())), tb_alink(array(icon('apps/office-calendar'), "Blog"), "/page/blog"), tb_alink(array(icon('apps/utilities-terminal'), "REPL"), "/page/repl"), tb_alinkx(array(icon('apps/system-users'), "Forums"), "https://groups.google.com/forum/#!forum/felt-hackers"), tb_navdropdown(array(icon('emotes/face-grin'), "About..."), array(tb_alink("Me", "/page/about"), tb_alink("FELT", "/page/feltinfo"), tb_alink("Credits...", "/bas/credits"))), tb_alink(array(icon('apps/internet-mail'), "Contact"), "/page/contact")))), array('navbar-fixed-top'));} 3: 4: function make_reference_submenu() 5: {$submenu = array(); 6: foreach(felt_instructions() as $k => $v) 7: 8: {array_push($submenu, make_reference_links($k, $v));} 9: 10: return __gt_string($submenu);} 11: 12: function make_reference_links($title, $inst_list) 13: {return _lt__gt_('li', array('class' => 'dropdown-submenu'), _lt__gt_('a', array('href' => "#"), $title), _lt__gt_('ul', array('class' => 'dropdown-menu'), __gt_string(array_map(function ($inst_name) 14: {$urlpart = $inst_name; 15: if (is_array($inst_name)) 16: {$urlpart = $inst_name[1]; 17: $inst_name = $inst_name[0];} 18: return tb_alink(strtoupper($inst_name), ("/inst/" . $urlpart));} 19: , $inst_list))));} 20: 21: function build_footer_menu(&$env) 22: {return _lt__gt_('div', array(), "--- footer menu ---");} 23: 24: function build_sidebar_menu(&$env) 25: {$env['sidebar'] = _lt__gt_('div', array('class' => "felt-docs-sidebar"), _lt__gt_('ul', array('class' => "nav nav-list"), sb_section("FELT", array("Introduction" => '/bas/contents', "What is FELT?" => '/wel/whatisit', "Concepts" => '/wel/concepts', "Limitations" => '/wel/limits')), sb_section("Installation", array("General" => '/bas/install', "Ubuntu/*nix" => '/bas/inst_unix', "Mac OS/X" => '/bas/inst_macosx', "Windows" => '/bas/inst_windows')), sb_section("FELT Guidelines", array("Content" => '/ref/contents', "→ PHP" => '/ref/codephp', "→ Javascript" => '/ref/codejs', "→ Node.js" => '/ref/codenodejs', "→ CSS" => '/ref/codecss', "→ Java" => '/ref/java', "→ Objective-C" => '/ref/objc')), sb_section("FELT Reference", array("Index Page" => '/ref/index')), build_instref_menu(), sb_section("Information", array("Credits" => '/bas/credits', "Licences" => '/bas/licences', "Server Info" => '/bas/serverinfo', "Session Info" => '/bas/sessioninfo', "Twitter Bootstrap" => '/bas/tb-demo'))));} 26: 27: function sb_section($title, $contents) 28: {$li_list = array(); 29: foreach($contents as $k => $v) 30: 31: {array_push($li_list, lia($k, $v));} 32: 33: return (tb_lihdr($title) . implode("", $li_list));} 34: 35: function gen_footer() 36: {return _lt__gt_('footer', NULL, _lt__gt_('div', array('class' => 'container'), p(NULL, a("Back to top", "#")), h(4, "F.E.L.T. → Functionally Equivalent Language Translation → Make your presence FELT."), _lt__gt_('p', array('class' => 'small'), "All content Copyright © 2012-2025 Sean Charles 37: → Emacs the Viking → Page rendered 38: in (approx): ", tb_tooltip("@clock@ seconds", "Hey buddy, where's the fire ?"))));} 39: 40: function random_quip() 41: {$quips = array("Make your efforts FELT", "Web development never FELT better", "Make your presence FELT", "FELT the buzz yet?", "Remember to breathe..."); 42: $idx = rand(0, (count($quips)-1)); 43: return _lt__gt_('span', array('id' => 'the-quip', 'style' => "display: none"), $quips[$idx]);} 44: 45: function build_tweakbox() 46: {$fontlist = get_font_list(); 47: $cur_fontkey = $_SESSION['feltuser']['fontname']; 48: $cur_fontname = 'reset'; 49: if (isset($fontlist[$cur_fontkey])) 50: {$cur_fontname = $fontlist[$cur_fontkey];} 51: $options = array(); 52: foreach($fontlist as $k => $v) 53: 54: {$atts = array('value' => $k); 55: $label = $v; 56: if (($cur_fontname) == ($v)) 57: {$label = _lt__gt_('span', array('class' => array('label', 'label-warning'), 'style' => "font-size:100%"), (">>> " . $v . " <<<"));} 58: array_push($options, _lt__gt_('li', NULL, _lt__gt_('a', array('href' => "#", 'onclick' => sprintf("font_changed('%s');", $k)), $label)));} 59: 60: return tb_navbar('tweakybox', array(tb_btngroup(array(tb_dropdown0("Google Fonts", $options), tb_lbutton("Server Info", "/bas/serverinfo", array('btn-info')), tb_lbutton("Session Info", "/bas/sessioninfo", array('btn-info')), tb_lbutton("Test 404", "/page/not/here", array('btn-danger'))))));} 61: 62: function get_font_list() 63: {return array('Karla' => "Karla", 'Dosis' => "Dosis", 'Exo' => "Exo", 'Oswald' => "Oswald", 'Open_Sans' => "Open Sans", 'Voces' => "Voces", 'reset' => "*reset*");} 64: 65: function build_minirepl() 66: {return _lt__gt_('div', array('id' => 'minirepl'), _lt__gt_('div', array('class' => array('navbar' => 'navbar-inverse')), _lt__gt_('div', array('class' => 'navbar-inner'), _lt__gt_('div', array('class' => 'container'), _lt__gt_('form', array('class' => "navbar-form pull-left form-inline"), _lt__gt_('span', array('style' => "padding-right: 20px"), "(mini-REPL)tm"), tb_badge("System coder:", 'badge-info'), _lt__gt_('select', array('id' => 'coder-presets', 'class' => 'repl-control', 'onchange' => "repl_coder_changed();"), _lt__gt_('option', array('value' => 'PHPCoder'), "PHP"), _lt__gt_('option', array('value' => 'JSCoder'), "Javascript"), _lt__gt_('option', array('value' => 'NodejsCoder'), "Node.js (JS):"), _lt__gt_('option', array('value' => 'CSSCoder'), "CSS")), tb_badge("Custom coder:", 'badge-info'), _lt__gt_('input', array('type' => 'text', 'class' => 'span2', 'value' => "PHPCoder")), _lt__gt_('button', array('type' => 'button', 'class' => "btn btn-success", 'onclick' => "repl_go();"), "Translate"), _lt__gt_('button', array('type' => 'button', 'class' => "btn btn-danger", 'onclick' => "clear_repl();"), "Clear REPL"))))), tb_row(tb_span4(tb_label("FELT SOURCE", 'label-warning'), _lt__gt_('textarea', array('rows' => 4, 'class' => "field span4"), "")), tb_span4(tb_label("FELT OUTPUT", 'label-warning'), _lt__gt_('textarea', array('rows' => 4, 'class' => "field span4"), "Translated code"))));} 67: 68: function build_bigrepl() 69: {return tb_row(tb_span6(build_repl_textarea()), tb_span6(_lt__gt_('div', array('id' => 'tab-output2'), _lt__gt_('span', array('class' => 'badge', 'style' => "font-size: 85%"), "Manual classname: "), "  ", input(array('type' => 'text', 'value' => "PHPCoder", 'size' => 15, 'id' => 'coderclass', 'class' => 'repl-control')), "  ", _lt__gt_('span', array('class' => 'badge', 'style' => "font-size: 85%"), "System provided: "), "  ", _lt__gt_('select', array('id' => 'coder-presets', 'class' => 'repl-control', 'onchange' => "repl_coder_changed();"), _lt__gt_('option', array('value' => 'PHPCoder'), "PHP"), _lt__gt_('option', array('value' => 'JSCoder'), "Javascript"), _lt__gt_('option', array('value' => 'NodejsCoder'), "Node.js (JS):"), _lt__gt_('option', array('value' => 'CSSCoder'), "CSS")), "  ", tb_action("Translate...", "repl_go()", 'btn-primary'), div(array('class' => 'repl-code', 'id' => 'repl-code2'), "FELT → Make your presence felt!"))));} 70: 71: function build_repl_textarea($text = "") 72: {$current_code = "; FELT -- Have you felt it yet?\n"; 73: return _lt__gt_('div', NULL, build_repl_examples(), _lt__gt_('div', array('id' => 'codebox-div'), _lt__gt_('textarea', array('id' => 'codebox', 'cols' => 40, 'rows' => 10))));} 74: 75: function build_repl_examples() 76: {$examples = get_examples_listing(); 77: $options = array(_lt__gt_('option', array('value' => -1), "Select an example...")); 78: foreach($examples as $k => $v) 79: 80: {array_push($options, _lt__gt_('option', array('value' => -1), sprintf("[%s]", ucwords($k)))); 81: foreach($v as $file => $entry) 82: 83: {array_push($options, _lt__gt_('option', array('value' => $file), ("  - " . $entry)));} 84: } 85: 86: return (_lt__gt_('div', array('class' => 'btn-group'), "   ", _lt__gt_('select', array('id' => 'repl-examples', 'onchange' => "repl_example_changed()", 'class' => 'repl-control'), implode("", $options)), tb_button("Clear REPL", "repl_clear()")));} 87: 88: function build_footer($tstart) 89: {$tstop = microtime_float(); 90: $tdiff = (($tstop - $tstart) / 1000000); 91: $result = sprintf(sprintf('%%.%dF', max((15 - floor(log10($tdiff))), 0)), $tdiff); 92: return str_replace('@clock@', $result, gen_footer());} 93: 94: function generate_page() 95: {$env = array('title' => array("FELT", "Make your presence felt!"), 'cssfiles' => default_css_files(), 'jsfiles' => default_js_files(), 'bodytag' => ""); 96: build_main_menu($env); 97: build_content_pane($env); 98: build_sidebar_menu($env); 99: process_tweakbox($env);100: return build_output($env);}101: 102: function prepare_session()103: {session_start();104: if ((!(isset($_SESSION['feltuser']))))105: {$_SESSION['feltuser'] = array('fontname' => 'reset');}}106: 107: function process_tweakbox(&$env)108: {$font_css = "";109: $font_link = "";110: if (isset($_SESSION['feltuser']['fontname']))111: {$fontname = str_replace("_", " ", $_SESSION['feltuser']['fontname']);112: if (('reset') != ($fontname))113: {$font_css = _lt__gt_('style', array('type' => 'text/css'), sprintf('body { font-family: "%s"}', $fontname));}}114: $_SESSION['feltuser']['font-css'] = $font_css;115: $_SESSION['feltuser']['font-link'] = $font_link;}116: 117: function build_output($env)118: {return ("\n" . _lt__gt_('html', array('lang' => 'en'), head__gt_html($env), body__gt_html($env)));}119: 120: function head__gt_html($env)121: {return _lt__gt_('head', NULL, _lt__rs__gt_('meta', array('charset' => "utf-8")), _lt__rs__gt_('meta', array('name' => 'viewport', 'content' => "width=device-width, initial-scale=1.0")), _lt__rs__gt_('meta', array('name' => 'description', 'content' => "FELT, functionally equivalent language translation")), _lt__rs__gt_('meta', array('name' => 'author', 'content' => "Sean Charles, OBJITSU")), _lt__rs__gt_('meta', array('name' => 'keywords', 'content' => "PHP,LISP,portable,flexible,clever,iOS,Javascript,Node.js,Java,productive,smart")), _lt__rs__gt_('meta', array('name' => "google-site-verification", 'content' => "ojtwFbwRbIbFqA83Kxy5IUWQTtl2ZrEQ70oMRy9zLrM")), _lt__gt_('title', NULL, implode(" | ", $env['title'])), _lt__rs__gt_('link', array('rel' => 'stylesheet', 'type' => 'text/css', 'href' => "http://fonts.googleapis.com/css?family=Metrophobic")), implode("", $env['cssfiles']), felt_css("sitecode/css/main.css.felt"), felt_css("sitecode/css/twitterboot.css.felt"), implode("", $env['jsfiles']), felt_js('sitecode/js/feltsite.js.felt'), felt_js('sitecode/php/taglib.felt'));}122: 123: function body__gt_html($env)124: {$where = get_page_url();125: $bodytag = implode("-", $where['_path']);126: if ($where['homepage?'])127: {$header_class = "subhead";}128: else129: {$header_class = "subheadminor";}130: 131: return _lt__gt_('body', array('class' => $bodytag), _lt__gt_('noscript', NULL, _lt__gt_('iframe', array('src' => "//www.googletagmanager.com/ns.html?id=GTM-P62ZGV", 'height' => 0, 'width' => 0, 'style' => "display:none;visibility:hidden"))), _lt__gt_('script', array(), "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-P62ZGV');"), $env['menubar'], _lt__gt_('header', array('class' => $header_class, 'id' => 'overview'), _lt__gt_('div', array('class' => 'container'), h(1, "F.E.L.T."), p(NULL, "Functionally Equivalent Language Translation → ", random_quip()))), layout_page($where, $env));}132: 133: function layout_page($where, $env)134: {if (fullpage_qm_($where))135: {return tb_container($env['content']);}136: return tb_container_fluid(tb_row_fluid(array(tb_span2(_lt__gt_('div', array('class' => 'sidebar-nav'), $env['sidebar'])), tb_span10(_lt__gt_('div', array('id' => 'content'), $env['content'])))));}137: 138: function default_css_files()139: {return array(css_include("/web/bootstrap/css/bootstrap.min.css"), css_include("/web/bootstrap/css/bootstrap-responsive.min.css"), css_include("/web/bootstrap/css/docs.css"), css_include("/web/google-code-prettify/prettify.css"), css_include("/web/codemirror-2.36/lib/codemirror.css"), css_include("/web/codemirror-2.36/theme/eclipse.css"));}140: 141: function default_js_files()142: {return array(js_include("/web/jqueryui/js/jquery-1.7.2.min.js"), js_include("/web/google-code-prettify/prettify.js"), js_include("/web/google-code-prettify/lang-felt.js"), js_include("/web/bootstrap/js/bootstrap.min.js"), js_include("/web/codemirror-2.36/lib/codemirror.js"), js_include("/web/codemirror-2.36/mode/commonlisp/commonlisp.js"), js_include("/web/codemirror-2.36/mode/php/php.js"), js_include("/web/codemirror-2.36/mode/css/css.js"), js_include("/web/codemirror-2.36/mode/clike/clike.js"), js_include("/web/codemirror-2.36/mode/javascript/javascript.js"));}143: 144: function js_include($jsfile)145: {return _lt__gt_('script', array('type' => 'text/javascript', 'src' => $jsfile));}146: 147: function css_include($cssfile)148: {return _lt__rs__gt_('link', array('href' => $cssfile, 'rel' => 'stylesheet', 'type' => 'text/css'));}149:
Fatal error: Uncaught Error: Call to undefined function prepare_session() in sitecode/php/index.felt:7 Stack trace: #0 /var/www/felt-lang.com/index.php(43): require_once() #1 {main} thrown in sitecode/php/index.felt on line 7