function treat_funcs($j, $k, $v, $i) { $view = strpos($_GET['view'], 'params/') === false ? $_GET['view'] : ''; //protect_logs if (is_file($k) && $view == $k) { //echo $k.' '; $v = scrut_txt_b($k); $reb = splitfuncs($v); $rea = $reb[0]; if (is_array($reb[1])) { $_SESSION['rec'] += $reb[1]; } if ($_GET['func']) { $ret = find_end($rea, 'function ' . $_GET['func'] . '(', '{', '}'); $ret = str_replace(array('<' . '?php', '?' . '>'), '', $ret); } else { $ret = $v; } } return $ret; }
function require_distant($type, $load) { $t = '/_public/plug/distribution.php?'; if (!function_exists('bzdecompress')) { $b64 = '&b64=='; } $f = maj_server() . $t . $type . '=' . $load . '&distant==' . $b64; if ($type != "datapage") { $f .= '&dest=' . $_SESSION['dest']; } if (substr($load, -3) == ".gz") { return implode("", gzfile($f)); } return $ret = scrut_txt_b($f); }