コード例 #1
0
ファイル: functs.php プロジェクト: OptimalInternet/uCore
function AjaxEcho($text = null)
{
    // only reset field if this is performed inside an ajax routine (javascript)
    if (!utopia::IsAjaxRequest()) {
        return false;
    }
    if (!$text) {
        return true;
    }
    $text = trim($text, "\n;");
    echo "\n{$text};";
    return true;
}