• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP html_end函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中html_end函数的典型用法代码示例。如果您正苦于以下问题:PHP html_end函数的具体用法?PHP html_end怎么用?PHP html_end使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了html_end函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: html_end

			$(window).load(function() {

				// Get folder name from hidden input
				// (Essential for LocalStorage!)
				setFolderName();

				if (FolderName != undefined && FolderName != "") {
								
					// Delete all items from localstorage
					deleteItemsFromLS("");

					// Go to login
					window.location.href = "../offline/cache.php?sign=out";

				} else {

					console.log("Error FolderName is undefined!");
				}
			});
		});
	</script>

	<input type="hidden" id="FolderName" value="<?php 
echo $cookie_path;
?>
" />

<?php 
html_end(false);
开发者ID:esironal,项目名称:OfflineWebApp,代码行数:29,代码来源:signout.php


示例2: do_purge_tweets

function do_purge_tweets(array $querybin, $dt_start, $dt_end)
{
    // Purge tweets
    $num_del = tweet_purge($querybin, $dt_start, $dt_end);
    // Show result
    $response_mediatype = choose_mediatype(['application/json', 'text/html']);
    switch ($response_mediatype) {
        case 'application/json':
            respond_with_json(['purge-tweets' => $num_del]);
            break;
        case 'text/html':
            $script_url = $_SERVER['SCRIPT_URL'];
            $components = explode('/', $script_url);
            array_pop($components);
            $query_bin_info = implode('/', $components);
            array_pop($components);
            $query_bin_list = implode('/', $components);
            html_begin("Query bin tweets: {$querybin['bin']}: purge", [["Query Bins", $query_bin_list], [$querybin['bin'], $query_bin_info], ["Purge"]]);
            $hB = isset($dt_end) ? dt_format_html($dt_end) : "";
            if (isset($dt_start)) {
                $hA = dt_format_html($dt_start);
                if (isset($dt_end)) {
                    $dt_desc_html = "tweets from {$hA} to {$hB}";
                } else {
                    $dt_desc_html = "tweets from {$hA} to last tweet";
                }
            } else {
                if (isset($dt_end)) {
                    $dt_desc_html = "tweets from first tweet to {$hB}";
                } else {
                    $dt_desc_html = "all tweets";
                }
            }
            echo <<<END

<p>Purged {$dt_desc_html}.</p>

<p>Number of tweets deleted: {$num_del['tweets']}</p>

END;
            html_end();
            break;
        default:
            print "{$num_del['tweets']} tweets purged from {$querybin['bin']}\n";
            foreach ($num_del as $name => $num) {
                print "  Table {$name}: {$num} rows deleted\n";
            }
            break;
    }
}
开发者ID:pwikstrom,项目名称:dmi-tcat,代码行数:50,代码来源:querybin.php


示例3: error_handler

/**
 * Default error handler
 *
 * This handler will not receive E_ERROR, E_PARSE, E_CORE_*, or E_COMPILE_*
 *  errors.
 *
 * E_USER_* are triggered by us and will contain an error constant in $p_error
 * The others, being system errors, will come with a string in $p_error
 *
 * @access private
 * @param integer $p_type    Contains the level of the error raised, as an integer.
 * @param string  $p_error   Contains the error message, as a string.
 * @param string  $p_file    Contains the filename that the error was raised in, as a string.
 * @param integer $p_line    Contains the line number the error was raised at, as an integer.
 * @param array   $p_context To the active symbol table at the point the error occurred (optional).
 * @return void
 * @uses lang_api.php
 * @uses config_api.php
 * @uses compress_api.php
 * @uses database_api.php (optional)
 * @uses html_api.php (optional)
 */
function error_handler($p_type, $p_error, $p_file, $p_line, array $p_context)
{
    global $g_error_parameters, $g_error_handled, $g_error_proceed_url;
    global $g_error_send_page_header;
    # check if errors were disabled with @ somewhere in this call chain
    if (0 == error_reporting()) {
        return;
    }
    $t_lang_pushed = false;
    $t_db_connected = false;
    if (function_exists('db_is_connected')) {
        if (db_is_connected()) {
            $t_db_connected = true;
        }
    }
    $t_html_api = false;
    if (function_exists('html_end')) {
        $t_html_api = true;
    }
    # flush any language overrides to return to user's natural default
    if ($t_db_connected) {
        lang_push(lang_get_default());
        $t_lang_pushed = true;
    }
    $t_method_array = config_get_global('display_errors');
    if (isset($t_method_array[$p_type])) {
        $t_method = $t_method_array[$p_type];
    } else {
        if (isset($t_method_array[E_ALL])) {
            $t_method = $t_method_array[E_ALL];
        } else {
            $t_method = 'none';
        }
    }
    # build an appropriate error string
    $t_error_location = 'in \'' . $p_file . '\' line ' . $p_line;
    $t_error_description = '\'' . $p_error . '\' ' . $t_error_location;
    switch ($p_type) {
        case E_WARNING:
            $t_error_type = 'SYSTEM WARNING';
            break;
        case E_NOTICE:
            $t_error_type = 'SYSTEM NOTICE';
            break;
        case E_STRICT:
            $t_error_type = 'STRICT NOTICE';
            break;
        case E_RECOVERABLE_ERROR:
            # This should generally be considered fatal (like E_ERROR)
            $t_error_type = 'SYSTEM ERROR';
            break;
        case E_DEPRECATED:
            $t_error_type = 'DEPRECATED';
            break;
        case E_USER_ERROR:
            $t_error_type = 'APPLICATION ERROR #' . $p_error;
            $t_error_description = error_string($p_error);
            if ($t_method == DISPLAY_ERROR_INLINE) {
                $t_error_description .= ' (' . $t_error_location . ")\n" . error_string(ERROR_DISPLAY_USER_ERROR_INLINE);
            }
            break;
        case E_USER_WARNING:
            $t_error_type = 'APPLICATION WARNING #' . $p_error;
            $t_error_description = error_string($p_error) . ' (' . $t_error_location . ')';
            break;
        case E_USER_NOTICE:
            # used for debugging
            $t_error_type = 'DEBUG';
            break;
        case E_USER_DEPRECATED:
            # Get the parent of the call that triggered the error to facilitate
            # debugging with a more useful filename and line number
            $t_stack = debug_backtrace();
            $t_caller = $t_stack[2];
            $t_error_type = 'WARNING';
            $t_error_description = error_string($p_error) . ' (in ' . $t_caller['file'] . ' line ' . $t_caller['line'] . ')';
            if ($t_method == DISPLAY_ERROR_INLINE && php_sapi_name() != 'cli') {
                # Enqueue messages for later display with error_print_delayed()
//.........这里部分代码省略.........
开发者ID:spring,项目名称:spring-website,代码行数:101,代码来源:error_api.php


示例4: luser_newform

function luser_newform()
{
    $refresh = luser_loginstart("Enter email address");
    // Display table headings
    echo "<div align=\"center\">\n";
    printf('<FORM name="newform" method="post" action="%s">%s', sanitizeInput($_SERVER['PHP_SELF']), "\n");
    printf('<INPUT type="hidden" name="reqtype" value="newsubmit">%s', "\n");
    echo "<TABLE width=\"400\" CLASS=\"mail\" BORDER=0 WIDTH=100% CELLSPACING=2 CELLPADDING=2>\n";
    echo " <THEAD>\n";
    echo "  <TH COLSPAN=2>Please enter your email address.<br>A new password will be emailed to you.</TH>\n";
    echo " </THEAD>\n";
    echo " <TR>\n";
    echo "  <TD ALIGN=\"LEFT\">Email Address:</TD>\n";
    echo "  <TD><input name=\"luser\" size=\"30\" maxlength=\"1024\"></TD>\n";
    echo " </TR>\n";
    echo " <TR>\n";
    printf('  <TD colspan="2" align="center"><INPUT type="submit" name="submit" value="Create Account"></TD>%s', "\n");
    echo " </TR>\n";
    echo "</TABLE>\n</FORM>";
    echo "</div>\n";
    html_end();
}
开发者ID:rafaelbsd,项目名称:1.2.0,代码行数:22,代码来源:luser_login.php


示例5: main


//.........这里部分代码省略.........
        $redirect_uri = http_get('redirect_uri', session_get('redirect_uri'));
        $code = http_get('code', session_get('code'));
        $access_token = http_get('access_token', session_get('access_token'));
        $token_type = http_get('token_type', session_get('token_type'));
        $grand_type = http_get('grand_type', session_get('grand_type'));
    }
    session_set('client_id', $client_id);
    session_set('client_secret', $client_secret);
    session_set('AuthorizeURL', $authorizeURL);
    session_set('TokenURL', $tokenURL);
    session_set('scope', $scope);
    session_set('state', $state);
    session_set('redirect_uri', $redirect_uri);
    session_set('code', $code);
    session_set('access_token', $access_token);
    session_set('token_type', $token_type);
    session_set('grand_type', $grand_type);
    if ('Authorization Request' == http_get('action')) {
        // Mandatory
        $query = array('response_type' => 'code', 'client_id' => $client_id);
        // Optional
        if (strlen($redirect_uri) > 0) {
            $query['redirect_uri'] = $redirect_uri;
        }
        if (strlen($scope) > 0) {
            $query['scope'] = $scope;
        }
        if (strlen($state) > 0) {
            $query['state'] = $state;
        }
        redirect($authorizeURL, $query);
        // Redirect to authorization URL
        exit;
    }
    if ('Access Token Request' == http_get('action')) {
        $request = array('grant_type' => $grand_type, 'client_id' => $client_id);
        if (strlen($redirect_uri) > 0) {
            $request['redirect_uri'] = $redirect_uri;
        }
        if (strlen($state) > 0) {
            $request['state'] = $state;
        }
        if (strlen($code) > 0) {
            $request['code'] = $code;
        }
        if (strlen($client_secret) > 0) {
            $request['client_secret'] = $client_secret;
        }
        $headers = array();
        post($tokenURL, $request, $headers);
        exit;
    }
    html_start();
    echo "<h1>OAuth2 Client</h1>\n";
    if (isset($_GET['error'])) {
        echo "<h2>Error</h2>\n";
        echo "<h3>" . htmlentities($_GET['error']) . "</h3>\n";
        global $oauth2_errors;
        if (isset($oauth2_errors[$_GET['error']])) {
            echo htmlentities($oauth2_errors[$_GET['error']]);
        } else {
            echo "Unknown error.\n";
        }
        if (isset($_GET['error_description'])) {
            echo "<h3>error_description</h3>\n";
            echo htmlentities($_GET['error_description']);
        }
        if (isset($_GET['error_uri'])) {
            echo "<h3>error_uri</h3>\n";
            $link = htmlentities($_GET['error_uri']);
            echo "<a href='{$link}'><code>{$link}</code></code></a>\n";
        }
    }
    echo "<form method='get'>\n";
    echo "<h2>Configuration</h2>\n";
    form_input('client_id', $client_id);
    form_input('client_secret', $client_secret);
    form_input('AuthorizeURL', $authorizeURL);
    form_input('TokenURL', $tokenURL);
    form_input('redirect_uri', $redirect_uri);
    echo "<h2>Parameters</h2>\n";
    form_input('code', $code);
    form_input('scope', $scope);
    form_input('access_token', $access_token);
    form_input('token_type', $token_type);
    form_select('grand_type', $grand_type, array('authorization_code' => 'authorization_code', 'client_credentials' => 'client_credentials'));
    echo "<h2>Actions</h2>\n";
    echo "<h3>OAuth2 Requests</h3>\n";
    form_submit('action', 'Authorization Request');
    form_submit('action', 'Access Token Request');
    echo "<h3>Form</h3>\n";
    form_submit('', 'Update');
    echo "</form>\n";
    echo "<h3>Load defaults</h2>\n";
    global $defaults;
    foreach ($defaults as $option => $settings) {
        echo "<li><a href='client.php?load_defaults={$option}'>{$option}</a></li>\n";
    }
    html_end();
}
开发者ID:pmeulen,项目名称:oauth2-client,代码行数:101,代码来源:client.php


示例6: error_handler


//.........这里部分代码省略.........
    $t_method_array = config_get('display_errors');
    if (isset($t_method_array[$p_type])) {
        $t_method = $t_method_array[$p_type];
    } else {
        $t_method = 'none';
    }
    # build an appropriate error string
    switch ($p_type) {
        case E_WARNING:
            $t_error_type = 'SYSTEM WARNING';
            $t_error_description = $p_error;
            break;
        case E_NOTICE:
            $t_error_type = 'SYSTEM NOTICE';
            $t_error_description = $p_error;
            break;
        case E_USER_ERROR:
            $t_error_type = "APPLICATION ERROR #{$p_error}";
            $t_error_description = error_string($p_error);
            break;
        case E_USER_WARNING:
            $t_error_type = "APPLICATION WARNING #{$p_error}";
            $t_error_description = error_string($p_error);
            break;
        case E_USER_NOTICE:
            # used for debugging
            $t_error_type = 'DEBUG';
            $t_error_description = $p_error;
            break;
        default:
            #shouldn't happen, just display the error just in case
            $t_error_type = '';
            $t_error_description = $p_error;
    }
    $t_error_description = nl2br($t_error_description);
    if ('halt' == $t_method) {
        $t_old_contents = ob_get_contents();
        # ob_end_clean() still seems to call the output handler which
        #  outputs the headers indicating compression. If we had
        #  PHP > 4.2.0 we could use ob_clean() instead but as it is
        #  we need to disable compression.
        compress_disable();
        if (ob_get_length()) {
            ob_end_clean();
        }
        # don't send the page header information if it has already been sent
        if ($g_error_send_page_header) {
            html_page_top1();
            if ($p_error != ERROR_DB_QUERY_FAILED) {
                html_page_top2();
            } else {
                html_page_top2a();
            }
        }
        print '<br /><div align="center"><table class="width50" cellspacing="1">';
        print "<tr><td class=\"form-title\">{$t_error_type}</td></tr>";
        print "<tr><td><p class=\"center\" style=\"color:red\">{$t_error_description}</p></td></tr>";
        print '<tr><td><p class="center">';
        if (null === $g_error_proceed_url) {
            print lang_get('error_no_proceed');
        } else {
            print "<a href=\"{$g_error_proceed_url}\">" . lang_get('proceed') . '</a>';
        }
        print '</p></td></tr>';
        if (ON == config_get('show_detailed_errors')) {
            print '<tr><td>';
            error_print_details($p_file, $p_line, $p_context);
            print '</td></tr>';
            print '<tr><td>';
            error_print_stack_trace();
            print '</td></tr>';
        }
        print '</table></div>';
        if ($g_error_handled && !is_blank($t_old_contents)) {
            print '<p>Previous non-fatal errors occurred.  Page contents follow.</p>';
            print '<div style="border: solid 1px black;padding: 4px">';
            print $t_old_contents;
            print '</div>';
        }
        if ($p_error != ERROR_DB_QUERY_FAILED) {
            html_page_bottom1();
        } else {
            html_body_end();
            html_end();
        }
        exit;
    } else {
        if ('inline' == $t_method) {
            print "<p style=\"color:red\">{$t_error_type}: {$t_error_description}</p>";
        } else {
            # do nothing
        }
    }
    if ($t_lang_pushed) {
        lang_pop();
    }
    $g_error_parameters = array();
    $g_error_handled = true;
    $g_error_proceed_url = null;
}
开发者ID:amjadtbssm,项目名称:website,代码行数:101,代码来源:error_api.php


示例7: html_page_bottom1a

/**
 * Print the part of the page that comes below the page content but leave off
 *  the menu.  This is used during the login process and other times when the
 *  user may not be authenticated.
 * @param string $p_file should always be the __FILE__ variable.
 * @return null
 */
function html_page_bottom1a($p_file = null)
{
    if (null === $p_file) {
        $p_file = basename($_SERVER['SCRIPT_NAME']);
    }
    //	echo "###.html_bottom_banner ";
    html_bottom_banner();
    //	echo "###.html_footer ";
    html_footer();
    //	echo "###.html_body_end ";
    html_body_end();
    //	echo "###.html_end ";
    html_end();
}
开发者ID:heaerie,项目名称:myroomexpense,代码行数:21,代码来源:html_api.php


示例8: html_page_bottom1a

/**
 * Print the part of the page that comes below the page content but leave off
 * the menu.  This is used during the login process and other times when the
 * user may not be authenticated.
 * @param string $p_file Should always be the __FILE__ variable.
 * @return void
 */
function html_page_bottom1a($p_file = null)
{
    if (null === $p_file) {
        $p_file = basename($_SERVER['SCRIPT_NAME']);
    }
    error_print_delayed();
    html_bottom_banner();
    html_footer();
    html_body_end();
    html_end();
}
开发者ID:vipjaven,项目名称:mantisbt,代码行数:18,代码来源:html_api.php


示例9: html_end

		<h4 class="heading">Welcome</h4>
		<p>You can now proceed to <a href="submit.php">submit new task</a>, or to <a href="results.php">view results</a> of your previous tasks.</p>
		<br />
		<form method="post" action="index.php">
			<button type="submit" name="logout" type="button" class="btn btn-danger">Log out</button>
		</form>
		<?php 
} else {
    ?>
	<h4 class="heading">Log in</h4>
	<form class="form-horizontal" method="post" action="index.php">
		<fieldset>
			<div class="form-group">
				<label for="password" class="col-lg-2 col-xs-2 control-label">Password:</label>
				<div class="col-lg-4 col-xs-6">
					<input type="password" class="form-control" id="password" name="password">
				</div>
			</div>

			<div class="form-group">
				<div class="col-xs-12">
					<button type="submit" name="login" class="btn btn-success btn-lg">Log in</button>
				</div>
			</div>
		</fieldset>
	</form>
<?php 
}
// finalize
html_end("home");
开发者ID:holasjuraj,项目名称:diplomovka,代码行数:30,代码来源:index.php


示例10: ForbiddenAccess

function ForbiddenAccess($path = "../../")
{
    ?>
	<!DOCTYPE html>
	<html lang="en">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="description" content="Demo web app" />
		<link rel="stylesheet" href="<?php 
    echo $path;
    ?>
css/bootstrap.min.css" />
		<link rel="stylesheet" href="<?php 
    echo $path;
    ?>
css/demo.css" />
		<title>Demo webapp</title>
		<script type="text/javascript" src="<?php 
    echo $path;
    ?>
js/webapp/static/cots/jquery-2.0.3.min.js"></script>
		<script type="text/javascript" src="<?php 
    echo $path;
    ?>
js/webapp/static/cots/bootstrap.min.js"></script>
		<script type="text/javascript" src="<?php 
    echo $path;
    ?>
js/webapp/static/ihm/interface.js"></script>
		<script>
			console.log("-------------------------------");
			console.log("        Forbidden access");
			console.log("-------------------------------");
			$(function() {
				$(window).load(function() {
					$('#SplashScreen').center();
					window.setTimeout("window.location.href = \"<?php 
    echo $path;
    ?>
index.php\"", 3000);
				});
			});
		</script>
	</head>
	<body>
	<img id="SplashScreen" alt="Optum" width="171" height="73" src="<?php 
    echo $path;
    ?>
img/optum_logo.png" />
	<?php 
    html_end();
    exit;
}
开发者ID:esironal,项目名称:OfflineWebApp,代码行数:55,代码来源:utils_ihm.php


示例11: html_start

require_once 'inc/html.inc.php';
html_start();
$h = array();
# show all categorized hosts
if (isset($CONFIG['cat']) && is_array($CONFIG['cat'])) {
    foreach ($CONFIG['cat'] as $cat => $hosts) {
        host_summary($cat, $hosts);
        $h = array_merge($h, $hosts);
    }
}
# search for uncategorized hosts
if (!($chosts = collectd_hosts())) {
    printf('<p class="warn">Error: No Collectd hosts found in <em>%s</em></p>', $CONFIG['datadir']);
}
$uhosts = array_diff($chosts, $h);
# show all uncategorized hosts
if ($uhosts) {
    host_summary('uncategorized', $uhosts);
}
if ($CONFIG['showtime']) {
    echo <<<EOT
<script>
jQuery(document).ready(function() {
  jQuery("time.timeago").timeago();
});
</script>

EOT;
}
html_end(true);
开发者ID:filippocarletti,项目名称:nethserver-cgp,代码行数:30,代码来源:index.php


示例12: error_handler

/**
 * Default error handler
 *
 * This handler will not receive E_ERROR, E_PARSE, E_CORE_*, or E_COMPILE_*
 *  errors.
 *
 * E_USER_* are triggered by us and will contain an error constant in $p_error
 * The others, being system errors, will come with a string in $p_error
 *
 * @access private
 * @param int p_type contains the level of the error raised, as an integer.
 * @param string p_error contains the error message, as a string.
 * @param string p_file contains the filename that the error was raised in, as a string.
 * @param int p_line contains the line number the error was raised at, as an integer.
 * @param array p_context to the active symbol table at the point the error occurred (optional)
 * @uses lang_api.php
 * @uses config_api.php
 * @uses compress_api.php
 * @uses database_api.php (optional)
 * @uses html_api.php (optional)
 */
function error_handler($p_type, $p_error, $p_file, $p_line, $p_context)
{
    global $g_error_parameters, $g_error_handled, $g_error_proceed_url;
    global $g_lang_overrides;
    global $g_error_send_page_header;
    # check if errors were disabled with @ somewhere in this call chain
    if (0 == error_reporting()) {
        return;
    }
    $t_lang_pushed = false;
    $t_db_connected = false;
    if (function_exists('db_is_connected')) {
        if (db_is_connected()) {
            $t_db_connected = true;
        }
    }
    $t_html_api = false;
    if (function_exists('html_end')) {
        $t_html_api = true;
    }
    # flush any language overrides to return to user's natural default
    if ($t_db_connected) {
        lang_push(lang_get_default());
        $t_lang_pushed = true;
    }
    $t_short_file = basename($p_file);
    $t_method_array = config_get_global('display_errors');
    if (isset($t_method_array[$p_type])) {
        $t_method = $t_method_array[$p_type];
    } else {
        if (isset($t_method_array[E_ALL])) {
            $t_method = $t_method_array[E_ALL];
        } else {
            $t_method = 'none';
        }
    }
    # build an appropriate error string
    switch ($p_type) {
        case E_WARNING:
            $t_error_type = 'SYSTEM WARNING';
            $t_error_description = "'{$p_error}' in '{$p_file}' line {$p_line}";
            break;
        case E_NOTICE:
            $t_error_type = 'SYSTEM NOTICE';
            $t_error_description = "'{$p_error}' in '{$p_file}' line {$p_line}";
            break;
        case E_USER_ERROR:
            $t_error_type = "APPLICATION ERROR #{$p_error}";
            $t_error_description = error_string($p_error);
            if ($t_method == DISPLAY_ERROR_INLINE) {
                $t_error_description .= "\n" . error_string(ERROR_DISPLAY_USER_ERROR_INLINE);
            }
            break;
        case E_USER_WARNING:
            $t_error_type = "APPLICATION WARNING #{$p_error}";
            $t_error_description = error_string($p_error);
            break;
        case E_USER_NOTICE:
            # used for debugging
            $t_error_type = 'DEBUG';
            $t_error_description = $p_error;
            break;
        default:
            # shouldn't happen, just display the error just in case
            $t_error_type = '';
            $t_error_description = $p_error;
    }
    $t_error_description = nl2br($t_error_description);
    switch ($t_method) {
        case DISPLAY_ERROR_HALT:
            # disable any further event callbacks
            if (function_exists('event_clear_callbacks')) {
                event_clear_callbacks();
            }
            $t_oblen = ob_get_length();
            if ($t_oblen > 0) {
                $t_old_contents = ob_get_contents();
                if (!error_handled()) {
                    # Retrieve the previously output header
//.........这里部分代码省略.........
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:101,代码来源:error_api.php


示例13: html_page_bottom1a

/**
 * Print the part of the page that comes below the page content but leave off
 * the menu.  This is used during the login process and other times when the
 * user may not be authenticated.
 * @return void
 */
function html_page_bottom1a()
{
    error_print_delayed();
    html_bottom_banner();
    html_footer();
    html_body_end();
    html_end();
}
开发者ID:spring,项目名称:spring-website,代码行数:14,代码来源:html_api.php


示例14: abort_with_error

function abort_with_error($status, $message)
{
    global $argv;
    if (PHP_SAPI !== 'cli') {
        // Invoked by Web server
        http_response_code($status);
        html_begin("Error", []);
        print "<p style=\"color: red;\">";
        print htmlspecialchars($message);
        print "</p>";
        html_end();
        exit(0);
    } else {
        /// Invoked from command line
        fwrite(STDERR, "{$argv['0']}: error: {$message}\n");
        exit(1);
    }
}
开发者ID:pwikstrom,项目名称:dmi-tcat,代码行数:18,代码来源:http_util.php


示例15: get_microtime

<?php 
if ($is_admin == 'super') {
    ?>
<!-- <div style='float:left; text-align:center;'>RUN TIME : <?php 
    echo get_microtime() - $begin_time;
    ?>
<br></div> --><?php 
}
?>

<!-- ie6,7에서 사이드뷰가 게시판 목록에서 아래 사이드뷰에 가려지는 현상 수정 -->
<!--[if lte IE 7]>
<script>
$(function() {
    var $sv_use = $(".sv_use");
    var count = $sv_use.length;

    $sv_use.each(function() {
        $(this).css("z-index", count);
        $(this).css("position", "relative");
        count = count - 1;
    });
});
</script>
<![endif]-->

</body>
</html>
<?php 
echo html_end();
// HTML 마지막 처리 함수 : 반드시 넣어주시기 바랍니다.
开发者ID:ned3y2k,项目名称:youngcart5,代码行数:31,代码来源:tail.sub.php


示例16: report_xml_error

function report_xml_error($title, $xml)
{
    html_start($title, '', '');
    echo process_xml($xml, 'error.xsl');
    html_end();
}
开发者ID:jfmc,项目名称:logen,代码行数:6,代码来源:common.php


示例17: html_page_bottom1a

function html_page_bottom1a($p_file = null)
{
    if (null === $p_file) {
        $p_file = basename($_SERVER['PHP_SELF']);
    }
    html_bottom_banner();
    html_footer($p_file);
    html_body_end();
    html_end();
}
开发者ID:amjadtbssm,项目名称:website,代码行数:10,代码来源:html_api.php


示例18: error_handler

/**
 * Default error handler
 *
 * This handler will not receive E_ERROR, E_PARSE, E_CORE_*, or E_COMPILE_*
 *  errors.
 *
 * E_USER_* are triggered by us and will contain an error constant in $p_error
 * The others, being system errors, will come with a string in $p_error
 *
 * @access private
 * @param int p_type contains the level of the error raised, as an integer.
 * @param string p_error contains the error message, as a string.
 * @param string p_file contains the filename that the error was raised in, as a string.
 * @param int p_line contains the line number the error was raised at, as an integer.
 * @param array p_context to the active symbol table at the point the error occurred (optional)
 * @uses lang_api.php
 * @uses config_api.php
 * @uses compress_api.php
 * @uses database_api.php (optional)
 * @uses html_api.php (optional)
 */
function error_handler($p_type, $p_error, $p_file, $p_line, $p_context)
{
    global $g_error_parameters, $g_error_handled, $g_error_proceed_url;
    global $g_lang_overrides;
    global $g_error_send_page_header;
    # check if errors were disabled with @ somewhere in this call chain
    if (0 == error_reporting()) {
        return;
    }
    $t_lang_pushed = false;
    $t_db_connected = false;
    if (function_exists('db_is_connected')) {
        if (db_is_connected()) {
            $t_db_connected = true;
        }
    }
    $t_html_api = false;
    if (function_exists('html_end')) {
        $t_html_api = true;
    }
    # flush any language overrides to return to user's natural default
    if ($t_db_connected) {
        lang_push(lang_get_default());
        $t_lang_pushed = true;
    }
    $t_short_file = basename($p_file);
    $t_method_array = config_get_global('display_errors');
    if (isset($t_method_array[$p_type])) {
        $t_method = $t_method_array[$p_type];
    } else {
        if (isset($t_method_array[E_ALL])) {
            $t_method = $t_method_array[E_ALL];
        } else {
            $t_method = 'none';
        }
    }
    # build an appropriate error string
    switch ($p_type) {
        case E_WARNING:
            $t_error_type = 'SYSTEM WARNING';
            $t_error_description = "'{$p_error}' in '{$p_file}' line {$p_line}";
            break;
        case E_NOTICE:
            $t_error_type = 'SYSTEM NOTICE';
            $t_error_description = "'{$p_error}' in '{$p_file}' line {$p_line}";
            break;
        case E_USER_ERROR:
            $t_error_type = "APPLICATION ERROR #{$p_error}";
            $t_error_description = error_string($p_error);
            break;
        case E_USER_WARNING:
            $t_error_type = "APPLICATION WARNING #{$p_error}";
            $t_error_description = error_string($p_error);
            break;
        case E_USER_NOTICE:
            # used for debugging
            $t_error_type = 'DEBUG';
            $t_error_description = $p_error;
            break;
        default:
            # shouldn't happen, just display the error just in case
            $t_error_type = '';
            $t_error_description = $p_error;
    }
    $t_error_description = nl2br($t_error_description);
    switch ($t_method) {
        case 'halt':
            # disable any further event callbacks
            if (function_exists('event_clear_callbacks')) {
                event_clear_callbacks();
            }
            $t_oblen = ob_get_length();
            if (error_handled() && $t_oblen > 0) {
                $t_old_contents = ob_get_contents();
            }
            # We need to ensure compression is off - otherwise the compression headers are output.
            compress_disable();
            # then clean the buffer, leaving output buffering on.
            if ($t_oblen > 0) {
//.........这里部分代码省略.........
开发者ID:rahmanjis,项目名称:dipstart-development,代码行数:101,代码来源:error_api.php


示例19: number_format

    $graph->Stroke($filename);
}
// HTML code to display the graph
echo "<TABLE BORDER=\"0\" CELLPADDING=\"10\" CELLSPACING=\"0\" WIDTH=\"100%\">";
echo "<TR>";
echo " <TD ALIGN=\"CENTER\"><IMG SRC=\"" . IMAGES_DIR . "mailscannerlogo.gif\" ALT=\"MailScannr Logo\"></TD>";
echo "</TR>";
echo "<TR>";
//  Check Permissions to see if the file has been written and that apache to read it.
if (is_readable($filename)) {
    echo " <TD ALIGN=\"CENTER\"><IMG SRC=\"" . $filename . "\" ALT=\"Graph\"></TD>";
} else {
    echo "<TD ALIGN=\"CENTER\"> File isn't readable. Please make sure that " . CACHE_DIR . " is readable and writable by MailWatch.";
}
echo "</TR>";
echo "<TR>";
echo "<TD ALIGN=\"CENTER\">";
echo "<TABLE WIDTH=\"500\">";
echo "<TR BGCOLOR=\"#F7CE4A\">";
echo "<TH>Domain</TH>";
echo "<TH>Count</TH>";
echo "<TH>Size</TH>";
echo "</TR>";
for ($i = 0; $i < count($data); $i++) {
    echo "<TR BGCOLOR=\"#EBEBEB\">\n <TD>{$data_names[$i]}</TD>\n <TD ALIGN=\"RIGHT\">" . number_format($data[$i]) . "</TD>\n <TD ALIGN=\"RIGHT\">" . format_mail_size($data_size[$i]) . "</TD>\n</TR>\n";
}
echo "\n  </TABLE>\n </TD>\n</TR>\n</TABLE>";
// Add footer
html_end();
// Close any open db connections
dbclose();
开发者ID:rafaelbsd,项目名称:1.2.0,代码行数:31,代码来源:rep_top_sender_domains_by_volume.php


示例20: html_page_bottom1a

function html_page_bottom1a($p_file = null)
{
    if (!php_version_at_least('4.1.0')) {
        global $_SERVER;
    }
    if (null === $p_file) {
        $p_file = basename($_SERVER['PHP_SELF']);
    }
    html_bottom_banner();
    html_footer($p_file);
    html_body_end();
    html_end();
}
开发者ID:centaurustech,项目名称:BenFund,代码行数:13,代码来源:html_api.php



注:本文中的html_end函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP html_end_box函数代码示例发布时间:2022-05-15
下一篇:
PHP html_encodeTagged函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap