function _edit_code($id, $is_start = TRUE, $compiled_code = FALSE) { $instance =& SELanguageCompiler::getInstance(); $edit_data = $is_start ? $instance->edit_mode_open : $instance->edit_mode_close; $edit_data = $compiled_code ? stripslashes($edit_data) : $edit_data; $edit_data = str_replace('__ID__', $id, $edit_data); // Add echo to uncompiled code if (!$compiled_code) { $edit_data = "echo \"" . $edit_data . "\";"; } return $edit_data; }
function &_getCompiler() { static $compiler; if (!class_exists("SELanguageCompiler")) { require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . "compiler.php"; } if (is_null($compiler)) { $compiler =& SELanguageCompiler::getInstance(); } return $compiler; }