本文整理汇总了PHP中_ob_send函数的典型用法代码示例。如果您正苦于以下问题:PHP _ob_send函数的具体用法?PHP _ob_send怎么用?PHP _ob_send使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_ob_send函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _err
function _err($msg = '')
{
@ob_end_clean();
ob_start();
echo '<?', 'xml version="1.0" encoding="utf-8"?', '>', "\n", '<TiptelIPPhoneTextScreen>', "\n", '<Title>', __('Fehler'), '</Title>', "\n", '<Text>', tiptelXmlEsc(__('Fehler') . ': ' . $msg), '</Text>', "\n", '</TiptelIPPhoneTextScreen>', "\n";
_ob_send();
}
示例2: _err
function _err($msg = '')
{
@ob_end_clean();
ob_start();
echo '<html>', "\n";
echo '<head><title>' . __('Fehler') . '</title></head>', "\n";
echo '<body><b>' . __('Fehler') . '</b>: ' . $msg . '</body>', "\n";
echo '</html>', "\n";
_ob_send();
}
示例3: _err
function _err($msg = "")
{
@ob_end_clean();
ob_start();
echo "<html>\n";
echo "<head><title>" . __("Fehler") . "</title></head>\n";
echo "<body><b>" . __("Fehler") . "</b>: " . $msg . "</body>\n";
echo "</html>\n";
_ob_send();
}
示例4: preg_replace
if (!$type) {
$mac = preg_replace('/[^\\dA-Z]/', '', strToUpper(trim(@$_REQUEST['m'])));
$user_name = $db->executeGetOne('SELECT `user` FROM `users` WHERE `id`=\'' . $db->escape($user_id) . '\'');
$enumbers = gs_user_external_numbers_get($user_name);
if (isGsError($enumbers)) {
_err('Fehler beim Abfragen.');
}
ob_start();
echo '<?', 'xml version="1.0" encoding="utf-8"?', '>', "\n", '<SnomIPPhoneMenu>', "\n", '<Title>' . __("externe Nummern") . '</Title>', "\n\n";
foreach ($enumbers as $extnumber) {
echo '<MenuItem>', "\n", '<Name>', snom_xml_esc($extnumber), '</Name>', "\n", '<URL>', $url_snom_menu, '?t=forward&m=', $mac, '&u=', $user, '</URL>', "\n", '</MenuItem>', "\n\n";
# in XML the & must normally be encoded as & but not for
# the stupid Snom!
}
defineBackMenu();
echo '</SnomIPPhoneMenu>', "\n";
_ob_send();
}
#################################### INITIAL SCREEN }
function defineBackMenu()
{
global $user, $type, $mac, $url_snom_menu;
$args = array();
$args[] = 'm=' . $mac;
$args[] = 'u=' . $user;
$args[] = 't=forward';
echo '<SoftKeyItem>', '<Name>#</Name>', '<URL>', $url_snom_menu, '?', implode('&', $args), '</URL>', '</SoftKeyItem>', "\n";
echo '<SoftKeyItem>', '<Name>F1</Name>', '<Label>', snom_xml_esc(__('Zurück')), '</Label>', '<URL>', $url_snom_menu, '?', implode('&', $args), '</URL>', '</SoftKeyItem>', "\n";
echo '<SoftKeyItem>', '<Name>F4</Name>', '<Label>', snom_xml_esc(__('Zurück')), '</Label>', '<URL>', $url_snom_menu, '?', implode('&', $args), '</URL>', '</SoftKeyItem>', "\n";
# Snom does not understand & !
}