Технология построения интерактивных Web-ресурсов. Мартынов А.И - 22 стр.

UptoLike

Составители: 

22
header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header ('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header ('Cache-Control: no-cache, must-revalidate');
header ('Pragma: no-cache');
$func_name = $_GET['rs'];
if (! empty($_GET['rsargs'])) {
$args = $_GET['rsargs'];
} else {
$args = array();
}
} else {
$func_name = $_POST['rs'];
if (!empty($_POST['rsargs'])) {
$args = $_POST['rsargs'];
} else {
$args = array();
}
}
if (!in_array($func_name, $sajax_export_list) ||
!method_exists($this, $func_name)) {
return(false);
} else {
echo '+:';
$result = call_user_func_array(array($this, $func_name), $args);
echo "var res = " . trim(sajax_get_js_repr($result)) . "; res;";
return(true);
}
}
};
?>