function writefile($klikit, $fn, $_l_cssfilter, $cfg, $parser = "") { if (isset($GLOBALS['current_ext'])) { global $current_ext; } else { $current_ext = ""; } if (!isset($_l_cssfilter)) { $_l_cssfilter = array(); } # PERFORM PHP ARRAY TO CSS CONVERSION # PERFORM MACHINE-LANGUAGE TRANSLATION # PERFORM WRITE FILE if (isset($klikit)) { #echo $parser;die(); if (strlen($parser) > 0 && file_exists($parser)) { include $parser; } else { $strklikit = ""; } if (!is_array($klikit)) { $strklikit = $klikit; if (!isset($_GET['get_css_from_html']) && isset($_REQUEST['ele']) && strlen($_REQUEST['ele']) > 0) { $fn = filesystemcode($_REQUEST['ele'], "b", "c"); } } else { $strklikit = prepare_write($klikit, $_l_cssfilter); } } else { $strklikit = ""; } # PERFORM RAW TEXT WRITEBACK METHOD AND MACHINELANGUAGE TRANSLATION if (is_string($strklikit) && strlen($strklikit) > 0) { if (isset($fn) && strlen($fn) > 0) { if (isset($_POST['trlback']) && $_POST['trlback'] == "on" && $_l_cssfilter != false && count($_l_cssfilter) > 0 && function_exists("machine_lang")) { $strklikit = machine_lang($strklikit, $_l_cssfilter, $cfg, true); } return file_put_contents(html_entity_decode($fn), $strklikit); } } }
function ele_content($klikit) { global $_l_cssfilter, $quick_ele_counter; if (isset($quick_ele_counter)) { $quick_ele_counter++; } else { $quick_ele_counter = 0; } if ($quick_ele_counter == 1) { if (isset($_GET['ele'])) { $fromthis = html_entity_decode($_GET['ele']); if (!isset($klikit[html_entity_decode($_GET['cat'])])) { $klikit[html_entity_decode($_GET['cat'])] = ''; } if (!isset($klikit[html_entity_decode($_GET['cat'])][$fromthis])) { $klikit[html_entity_decode($_GET['cat'])][$fromthis] = ''; } if (isset($_GET) && isset($_GET['fn']) && strlen($_GET['fn']) > 0) { if ($GLOBALS['skip_css_specific'] == false) { $arr[0] = array(";", ",", ":", ";\n;\n"); $arr[1] = array(";\n", ", ", ": ", ";\n"); } else { $arr[0] = ''; $arr[1] = ''; } } else { $arr[0] = ''; $arr[1] = ''; } # echo "<pre>";print_r($klikit);die(); if ($_l_cssfilter == false || count($_l_cssfilter) < 1 || !function_exists("machine_lang") || isset($_COOKIE['translate_editfield']) && $_COOKIE['translate_editfield'] != "on") { $return = htmlentities(str_replace($arr[0], $arr[1], $klikit[html_entity_decode($_GET['cat'])][$fromthis])); } else { $return = htmlentities(machine_lang(html_entity_decode(str_replace($arr[0], $arr[1], $klikit[html_entity_decode($_GET['cat'])][$fromthis])), $GLOBALS['_l_cssfilter'])); } } # echo "<pre>";print_r($return);die(); return $return; } return ""; }