当前位置: 首页>>代码示例>>PHP>>正文


PHP header_html函数代码示例

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


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

示例1: displayTwextra


//.........这里部分代码省略.........
    $msg_cnt = $message_history[0]['msg_cnt'];
    $msg_pages = ceil($msg_cnt / 20);
    $msg_current = ceil($message_from / 20) + 1;
    $msg_page_of_pages = "Page {$msg_current} of {$msg_pages}";
    $model = new TwextraModel();
    $user_info = $model->get_user_info($message_history[0]['message_id']);
    $display_remote_ip = trim($_SERVER['REMOTE_ADDR']);
    logger($script_path . "  display_remote_ip: ", $display_remote_ip);
    //don't count twitter bot access for correct view count..
    if ($_SERVER['REMOTE_ADDR'] == '128.242.241.134') {
        //$view_inc = false;
        return;
    }
    $screen_name = trim($user_info['screen_name']);
    //screen name of poster
    $name = trim($user_info['name']);
    $location = trim($user_info['location']);
    $description = trim($user_info['description']);
    $user_image_url = trim($user_info['user_image_url']);
    $message_totals = $model->get_message_totals();
    //round to nearest thousand:
    $message_totals = $message_totals - $message_totals % 1000;
    //$message_totals = $message_totals - $search_count_offset;
    $message_totals = number_format($message_totals);
    //format into human readable form
    if (isset($_SESSION['profile_image_url'])) {
        $message_created_by = "";
        //redundant, was used to concatenate profile_image_url
    }
    $message_created_by = " <span style='float:left'>&nbsp;&nbsp;Search results (Total: {$msg_cnt})</span>";
    $message_created_by .= "&nbsp;&nbsp;&nbsp;&nbsp;<span style='float:right'>\n\t\t<input type='text' name='search' size='{$search_len_size}' maxlength='{$search_len_max}' value='{$search}' id='search' ></input>\n\t\t<input class='button_del' type='submit' value='Search Twextra' name='submit'  />\n\t\t<input type='hidden' name='screen_name' value='{$screen_name}' />\n\t\t</span>";
    $message_created_by .= "<br style='clear:both; width:100%' />";
    //test
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div class='p5_main'>\n";
    //p5_main
    $message .= "<div class='p5_main_inner'>\n";
    //p5_main_inner
    $message .= "<div class='p5_tweet'>";
    //p5_tweet
    $message .= "<h4>&nbsp;&nbsp;Search over {$message_totals} messages</h4>";
    $message .= "<form method='post' action='/searchTwextra.php'>";
    $message .= "<p style='text-align:center;font-weight:bold;' >{$message_created_by}</p>";
    $message .= "</form>";
    if ($msg_cnt > 0) {
        $message .= "<table class='p5_message_history' >";
        $message .= "\n\t<tr>\n\t<th class='p5_th'>ID</th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=prefix&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tMessage</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=created&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tCreated</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=last_viewed&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tLast Viewed</a></th>\n\t<th class='p5_th'><a href='{$hostname}/searchTwextra.php?order=views&message_from=0&more&asc_desc={$asc_desc}&toggle&screen_name={$screen_name}&search={$search}'>\n\tViews</a></th>\n\t</tr>\n\t";
        $message_history_row = 'p5_message_history_row_odd';
        $message_from_more = $message_from + 20;
        $message_from_less = $message_from - 20;
        if ($message_from_less < 0) {
开发者ID:raj4126,项目名称:twextra,代码行数:67,代码来源:searchTwextra.php

示例2: display_content

function display_content($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>Contacting Twextra</h3>";
    $message .= "If you have any problems, questions, or feedback send email to: ";
    $message .= "<br /><br />contact@twextra.com";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:58,代码来源:contact.php

示例3: display_about

function display_about($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>About Twextra</h3>";
    $message .= "Ever wish you could write a message longer than 140 characters on\nTwitter or Linkedin?  Well, that's exactly what Twextra enables,\nplus much more.  Take a look at Twextra's features:\n<ul style='margin:0px 0px 10px 25px'>\n<li>\n<span style='background-color:yellow;'>Super-size</span> - With Twextra you can create huge messages of up to\n<i>100,000 characters</i>.\n</li>\n\n<li>\n<span style='background-color:yellow;'>Rich-text</span> - Create messages with formatting such as<i> bold, italic,\nunderline, colored-text, emoticons, </i>etc.\n</li>\n<li>\n<span style='background-color:yellow;'>Multi-media</span> - Embed <i>videos</i> and <i>images</i> into your messages to enable more interesting communication.\n</li>\n</ul>\n\nGive Twextra a try today!";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    //$message .= phpinfo();
    $message .= "</body>\n</html>\n";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:58,代码来源:about.php

示例4: display_maintenance_page

function display_maintenance_page($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin:80px auto;width:768px;font-size:1.0em;' >\n";
    //p5_main
    $message .= "<h3 style='background-color:#ee1111;width:350px;padding-left:20px;' >Twextra is Down for Maintenance</h3>";
    $message .= "Twextra is currently down for maintenance.  Please check back in a few hours.";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:57,代码来源:maintenance_page.php

示例5: windex

function windex()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    //    if (isset($_REQUEST['weditor'])) {
    //        $user = 'raj4126';
    //        $note = $_REQUEST['weditor'];
    //        $tag = $_REQUEST['tag'];
    //        $action = $_REQUEST['action'];
    //        $wid = $_REQUEST['wid'];
    //        print_r($_REQUEST); exit;
    //        $model = new TwextraModel();
    //        $model->saveNote($user, $note, $tag, $action, $wid);
    //    }
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n<head>\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n</head>\n<body>\n<div class='wrapper'>\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='float:left;clear:both;margin-left:auto;margin-right:auto;width:800px;'>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=create'>Create a webnote</a></div>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=display'>Display webnotes</a></div>\n<div style='margin-left:100px;'><a href='{$hostname}/webnotes/wrouter.php?wroute=search'>Search webnotes</a></div>\n</div>";
    echo $message;
    echo $footer;
    $message = "\n</div>\n</div>\n</body>\n</html>";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:57,代码来源:index.php

示例6: display_privacy

function display_privacy($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<div class='info2'>\n<h2>Privacy Policy</h2>\n<div class='info'>\nOur Privacy Policy is designed to assist you in understanding how we collect and use the personal information you provide to us and to assist you in making informed decisions when using our site and our products and services.\n</div>\n<h3>What Information Do We Collect?</h3>\n<div class='info'>\nWhen you visit our Web site you may provide us with two types of information: personal information you knowingly choose to disclose that is collected on an individual basis and Web site use information collected on an aggregate basis as you and others browse our Web site.\n</div>\n<h3>  1.\tPersonal Information You Choose to Provide</h3>\n\n<h4>Registration Information</h4>\n\n<div class='info'>\nYou will provide us information about yourself when you register to be a member of twextra.com, register for certain services, or register for email newsletters and alerts. You may also provide additional comments on how you see twextra.com servicing your needs and interests.\n</div>\n<h4>  Email Information</h4>\n<div class='info'>\nIf you choose to correspond with us through email, we may retain the content of your email messages together with your email address and our responses. \n</div>\n<h3>  2.\tWeb Site Use Information</h3>\n<div class='info'>\nSimilar to other commercial Web sites, our Web site utilizes a standard technology called \"cookies\" (see explanation below, \"What Are Cookies?\") and Web server logs to collect information about how our Web site is used. Information gathered through cookies and Web server logs may include the date and time of visits, the pages viewed, time spent at our Web site, and the Web sites visited just before and just after our Web site.  We, our advertisers and ad serving companies may also use small technology or pieces of code to determine which advertisements and promotions users have seen and how users responded to them.\n</div>\n<h3>How Do We Use the Information That You Provide to Us?</h3>\n\n<div class='info'>\nBroadly speaking, we use personal information for purposes of administering and expanding our business activities, providing customer service and making available other products and services to our customers and prospective customers. Occasionally, we may also use the information we collect to notify you about important changes to our Web site, new services and special offers we think you will find valuable. You may notify us at any time if you do not wish to receive these offers by emailing us at contact@twextra.com.\n</div>\n<h3>   What Are Cookies?</h3>\n<div class='info'>\nA cookie is a very small text document, which often includes an anonymous unique identifier. When you visit a Web site, that site's computer asks your computer for permission to store this file in a part of your hard drive specifically designated for cookies. Each Web site can send its own cookie to your browser if your browser's preferences allow it, but (to protect your privacy) your browser only permits a Web site to access the cookies it has already sent to you, not the cookies sent to you by other sites.  Some of our business partners (e.g., advertisers) use cookies that originate from their sites. We have no access or control over those cookies.  \n</div>\n\n<h3>   How Do We Use Information We Collect from Cookies?</h3>\n<div class='info'>\nAs you use our Web site, the site uses its cookies to differentiate you from other users. In some cases, we also use cookies to prevent you from logging in more than is necessary for security. Cookies, in conjunction with our Web server's log files, allow us to calculate the aggregate number of people visiting our Web site and which parts of the site are most popular. This helps us gather feedback in order to constantly improve our Web site and better serve our customers.\n</div>\n<h3>   Sharing Information with Third Parties</h3>\n\n<div class='info'>\nWe may enter into alliances, partnerships or other business arrangements with third parties who may be given access to personal information including your name, address, telephone number and email for the purpose of providing you information regarding products and services that we think will be of interest to you. In connection with alliances, partnerships or arrangements, we may also provide certain information to third parties if we have determined that the information will be used in a responsible manner by a responsible third party. For example, some of our partners operate stores or provide services on our site, while others power offerings developed by us for your use. We may also use third parties to facilitate our business, including, but not limited to, sending email and processing credit card payments. In connection with these offerings and business operations, our partners and other third parties may have access to your personal information for use in connection with business activities. As we develop our business, we may buy or sell assets or business offerings. Customer, email, and visitor information is generally one of the transferred business assets in these types of transactions. We may also transfer such information in the course of corporate divestitures, mergers, or any dissolution.\n</div>\n<h3>   Notice of New Services and Changes</h3>\n<div class='info'>\nOccasionally, we may also use the information we collect to notify you about important changes to our Web site, new services and special offers we think you will find valuable. As our customer, you will be given the opportunity to notify us of your desire not to receive these offers by sending us an email request at contact@twextra.com.\n</div>\n<h3>  How Do We Protect Your Information? How Do We Secure Information Transmissions?</h3>\n<div class='info'>\nEmail is not recognized as a secure medium of communication. For this reason, we request that you do not send private information to us by email. Some of the information you may enter on our Web site may be transmitted securely via Secure Sockets Layer SSL encryption services. Pages utilizing this technology will have URLs that start with HTTPS instead of HTTP. Please contact contact@twextra.com if you have any questions or concerns.\n</div>\n<h3>  How Can You Access and Correct Your Information?</h3>\n\n<div class='info'>\nYou may request access to all your personally identifiable information that we collect online and maintain in our database by emailing \ncontact@twextra.com.\n</div>\n<h3>  Certain Disclosures</h3>\n<div class='info'>\nWe may disclose your personal information if required to do so by law or subpoena or if we believe that such action is necessary to (a) conform to the law or comply with legal process served on us or affiliated parties; (b) protect and defend our rights and property, our site, the users of our site, and/or our affiliated parties; (c) act under circumstances to protect the safety of users of our site, us, or third parties.\n</div>\n<h3>  What About Other Web Sites Linked to Our Web Site?</h3>\n<div class='info'>\nWe are not responsible for the practices employed by Web sites linked to or from our Web site nor the information or content contained therein. Often links to other Web sites are provided solely as pointers to information on topics that may be useful to the users of our Web site. \nPlease remember that when you use a link to go from our Web site to another Web site, our Privacy Policy is no longer in effect. Your browsing and interaction on any other Web site, including Web sites which have a link on our Web site, is subject to that Web site's own rules and policies. Please read over those rules and policies before proceeding.\n</div>\n<h3>  Your Consent</h3>\n\n<div class='info'>\nBy using our Web site you consent to our collection and use of your personal information as described in this Privacy Policy. If we change our privacy policies and procedures, we will post those changes on our Web site to keep you aware of what information we collect, how we use it and under what circumstances we may disclose it.\n</div>\n</div>\n";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:56,代码来源:privacy.php

示例7: search_display

function search_display()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n\n<head>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n\n</head>\n\n<body>\n\n<div class='wrapper'>\n\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='float:left;clear:both;margin-left:auto;margin-right:auto;width:800px;'><form method='post' \n\naction='/webnotes/wrouter.php' accept-charset=\"utf-8\" >\n\n\t<input type='hidden' name='wroute' id='wroute' value='searchdisplay'> </input>\n\n\n\n\t<input id='tag' name='tag' style='width: 768px; border:solid black 1px;'></input> \n\n<div><input type='submit' name='save' id='save' value='Search' class='button'></input></div>\n\n\n\n</form></div>";
    echo $message;
    echo $footer;
    $message = "\n\n</div>\n\n</div>\n\n</body>\n\n</html>";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:47,代码来源:search.php

示例8: display_howto

function display_howto($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;padding-top:20px;' >\n";
    //p5_main
    $message .= "<h2 style='text-decoration:underline;'>How To</h2>";
    $message .= "<div>Here you will find help for the more advanced features of Twextra.</div>";
    //
    $message .= '<ol style="clear:both;font-size:1.0em;padding-bottom:30px;border-bottom:1px solid black;" >
<li> <a href="#embed_video">Embedding Videos Into Twextra</a></li>
<li> <a href="#embed_image">Embedding Images Into Twextra</a></li>
<li> <a href="#contents">Creating A Table Of Contents In Twextra</a></li> 
<li> <a href="#embed_html">Embedding HTML Code Into Twextra</a></li> 
</ol>
';
    $message .= '
<ol style="clear:both;margin-top:50px;font-size:1.5em;" >
<a name="embed_video"></a>
<li> Embedding Videos Into Twextra
<p><object width="576" height="462"><param name="movie" value="http://www.youtube.com/v/Ju2X-Q22krg?fs=1&amp;hl=en_US"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/Ju2X-Q22krg?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" 
allowfullscreen="true" width="576" height="462"></embed></object>
</p>
</li>
<a name="embed_image"></a>
<li> Embedding Images Into Twextra
<p>
<object width="576" height="462"><param name="movie" value="http://www.youtube.com/v/qRecMbTu3ek?fs=1&amp;hl=en_US">
</param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/qRecMbTu3ek?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" 
allowscriptaccess="always" allowfullscreen="true" width="576" height="462"></embed></object>
</p>
</li>
<a name="contents"></a>
<li> Creating A Table Of Contents In Twextra 
<p>
<object width="576" height="462"><param name="movie" value="http://www.youtube.com/v/ICLBsumCFNA?fs=1&amp;hl=en_US"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/ICLBsumCFNA?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" 
allowscriptaccess="always" allowfullscreen="true" width="576" height="462"></embed></object>
</p>
</li>
<a name="embed_html"></a>
<li> Embedding HTML Code Into Twextra 
<p>
<object width="576" height="462"><param name="movie" value="http://www.youtube.com/v/YiSD10fuDvQ?fs=1&amp;hl=en_US"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/YiSD10fuDvQ?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" 
allowscriptaccess="always" allowfullscreen="true" width="576" height="462"></embed></object>
</p>
</li>

</ol>
';
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
//.........这里部分代码省略.........
开发者ID:raj4126,项目名称:twextra,代码行数:101,代码来源:howto.php

示例9: header_html

<?php

require_once 'authenticate.php';
$PAGE_HEADER_HTML = header_html();
$PAGE_CSS_IMPORTS_HTML = css_imports_html();
function header_html()
{
    $html = "<div id='page_box'>\n";
    $html .= "<div id='header'>\n";
    $html .= "<h2>Haze Watch</h2>";
    $html .= "<div id='menu'>";
    $html .= "<div class='nav_menu'>\n";
    $html .= "<ul>";
    $html .= "<li><a href='/'>Home</a></li>";
    $html .= "<li><a href='/about.php'>About</a></li>";
    $html .= "<li><a href='/contact.php'>Contact</a></li>";
    $html .= "<li><a href='/publications.php'>Publications</a></li>";
    if (user_authenticated()) {
        $html .= "<li><a href='/import-data.php'>Import</a></li>";
    }
    $html .= "<li><a target='_blank' href='/map.php'>Map</a></li>";
    $html .= "<li><a target='_blank' href='/cgi-bin/carbonmap.py'> Estimates</a></li>";
    $html .= "</ul>";
    $html .= "</div>\n";
    $html .= "<div id='login_menu'>";
    if (user_authenticated()) {
        $name = authenicated_username();
        $name = $name ? " as {$name}" : "";
        $html .= "Logged in{$name}, <a href='/authenticate.php?logout'>Logout</a>";
    } else {
        $html .= "<a href='/login.php'>Login</a>";
开发者ID:unswjasonhu,项目名称:airpollution_modeling,代码行数:31,代码来源:header.php

示例10: empty

$groupcn_dirty = empty($_GET['groupcn']) ? "" : $_GET['groupcn'];
$action_dirty = $_GET['action'];
$verbose_dirty = empty($_GET['verbose']) ? 0 : $_GET['verbose'];
$all_dirty = empty($_GET['all']) ? 0 : $_GET['all'];

include ("../lcs/includes/htmlpurifier/library/HTMLPurifier.auto.php");
$config = HTMLPurifier_Config::createDefault();
$purifier = new HTMLPurifier($config);
//purification des variables
$uid_dirty=$purifier->purify($uid);
$groupcn_dirty=$purifier->purify($groupcn);
$action_dirty=$purifier->purify($action);
$verbose_dirty=$purifier->purify($verbose);
$all_dirty=$purifier->purify($all);

header_html("Gestion de l'authentification d&eacute;port&eacute;e");

$isadmin = is_admin("Annu_is_admin", $login);

if ($isadmin != "Y") {
    echo "<div class='error_msg'>Cette fonctionnalit&#233;, n&#233;cessite les droits d'administrateur de l'annuaire du serveur LCS !</div>";
    include ("../lcs/includes/pieds_de_page.inc.php");
    exit;
}

$ds = ldap_connect($ldap_server, $ldap_port);
if (! $ds) {
    echo "<div class='error_msg'>Erreur de connection &#224; l'annuaire, veuillez contacter <A HREF='mailto:$MelAdminLCS?subject=PB connection a l'annuaire'>l'administrateur du syst&#232;me</A>.</div>\n";
    include ("../lcs/includes/pieds_de_page.inc.php");
    exit;
}
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:delegate_auth_ad.php

示例11: index

function index($tweet = '', $error = '', $message_id = '')
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $show_maintenance_page = $config_params['show_maintenance_page'];
    $fb_app_id = $config_params['fb_app_id'];
    $search_count_offset = $config_params['search_count_offset'];
    if ($show_maintenance_page == 1) {
        maintenance_page();
    }
    if (isset($_REQUEST['screen_name_reply'])) {
        $screen_name_reply = $_REQUEST['screen_name_reply'];
    } else {
        $screen_name_reply = '';
    }
    if (isset($_REQUEST['message_id_reply'])) {
        $message_id_reply = $_REQUEST['message_id_reply'];
    } else {
        $message_id_reply = '';
    }
    logger($script_path . "  index page: ");
    logger($script_path . " cookie:", $_COOKIE);
    //---------------------------------------------------
    $model = new TwextraModel();
    $message_totals = $model->get_message_totals();
    //round to nearest thousand:
    $message_totals = $message_totals - $message_totals % 1000;
    //$message_totals = $message_totals - $search_count_offset;
    $message_totals = number_format($message_totals);
    //format into human readable form
    //---------------------------------------------------
    //get twitter credentials and store in session variables for use in banner
    if (isset($_COOKIE[$cookie_name])) {
        $controller = new TwextraController();
        $result_t = $controller->getTwCredentials($_COOKIE[$cookie_name]);
        //
        $screen_name = $result_t['screen_name'];
        logger($script_path . " result_t:", $result_t);
    }
    $script_path = __FUNCTION__;
    logger($script_path . "  session: ", $_SESSION);
    logger($script_path . "  request: ", $_REQUEST);
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        $model->saveStat();
    }
    //set error flag if a twitter error, or any other error
    if (isset($_REQUEST['error']) && $_REQUEST['error'] == 'twitter_error') {
        $error = "Twitter is returning an error right now. Please try again later. \n\t\tFollow <a href='http://twitter.com/twextradotcom' target='_blank' >@twextradotcom</a> for updates.";
    } else {
        if (isset($_REQUEST['error']) && $_REQUEST['error'] == 'ep4') {
            $error = $ep4;
        } else {
            if (isset($_REQUEST['error'])) {
                $error = urldecode($_REQUEST['error']);
            } else {
                if (isset($_REQUEST['signout'])) {
                    $error = "You are now signed out of Twextra, but you may still be signed in on Twitter.  " . $error;
                    $_SESSION['user'] = '';
                } else {
                    if (isset($_SESSION['error_size'])) {
                        $error = $_SESSION['error_size'];
                        unset($_SESSION['error_size']);
                    }
                }
            }
        }
    }
    if (isset($_SESSION['tweet'])) {
        $tweet = $_SESSION['tweet'];
        unset($_SESSION['tweet']);
    }
    if (!empty($screen_name)) {
        $twitter_checked = 'checked';
        $twextra_checked = '';
    } else {
        if (!empty($screen_name_reply)) {
            $twitter_checked = 'checked';
            $twextra_checked = '';
        } else {
//.........这里部分代码省略.........
开发者ID:raj4126,项目名称:twextra,代码行数:101,代码来源:tw.lib.php

示例12: header_html

            break;
        case "Etape_2":
            // mysql settings ok, go test mysql settings and select database.
            header_html($LANG['install'][77] . " 2");
            step3($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["update"]);
            break;
        case "Etape_3":
            // Create and fill database
            header_html($LANG['install'][77] . " 3");
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            if (empty($_POST["newdatabasename"])) {
                $_POST["newdatabasename"] = "";
            }
            step4($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["databasename"], $_POST["newdatabasename"]);
            break;
        case "Etape_4":
            // finish installation
            header_html($LANG['install'][77] . " 4");
            step7();
            break;
        case "update_1":
            if (empty($_POST["databasename"])) {
                $_POST["databasename"] = "";
            }
            update1($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["databasename"]);
            break;
    }
}
footer_html();
开发者ID:ryukansent,项目名称:Thesis-SideB,代码行数:31,代码来源:install.php

示例13: notes_display

function notes_display()
{
    if (session_id() == "") {
        session_start();
    }
    logger($script_path . " index start:");
    validate_access_webnotes();
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $hostname = $config_params['hostname'];
    $watch_demo = $config_params['watch_demo'];
    $docroot = $config_params['docroot'];
    $debug = $config_params['debug'];
    $header = header_html();
    //
    $footer = $config_params['footer'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $css = $config_params['css'];
    $google_analytics = $config_params['google_analytics'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $cookie_name = $config_params['cookie_name'];
    $ep4 = $config_params['ep4'];
    $docroot = $_SERVER['DOCUMENT_ROOT'];
    $user = $_SESSION['user'];
    //??
    $user = 'raj4126';
    if ($_REQUEST['action'] == 'searchdisplay') {
        $tag = $_REQUEST['tag'];
        $model = new TwextraModel();
        $notes_all_array = $model->searchNote($user, $tag);
    } else {
        $model = new TwextraModel();
        $notes_all_array = $model->getNotesAll($user);
    }
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    print $doctype;
    print "<html {$html_attribute} >";
    $message = "\n\n<head>\n\n<link rel=\"stylesheet\" type=\"text/css\" href=\"{$css}\" />\n\n<title>Twextra- When you NEED more than 140 characters</title>";
    echo $message;
    $scripts = '';
    $scripts .= "<script type='text/javascript' src='/scripts/jquery/jquery-1.2.6.js'></script>\n";
    echo $scripts;
    $message = "\n\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />\n\n</head>\n\n<body>\n\n<div class='wrapper'>\n\n<div class='page'>";
    echo $message;
    $banner = banner($screen_name, 'banner_index');
    //(user, banner_class)
    echo $banner;
    $message = "<div style='clear:both;margin-left:auto;margin-right:auto;width:800px;'>\n\nYour webnotes are displayed below:";
    $message .= "<table class='w_display_table' >";
    $message .= "<tr class='w_display_tr' >\n\n<th class='w_display_th'>Note</th>\n\n<th class='w_display_th'>Tags</th>\n\n<th class='w_display_th'>Updated</th>\n\n<th class='w_display_th'>Actions</th></tr>";
    foreach ($notes_all_array as $entry) {
        $message .= "<tr class='w_display_tr' >\n\n    <td class='w_display_td'>{$entry['note']}</td>\n\n    <td class='w_display_td' >{$entry['tag']}</td>\n\n    <td class='w_display_td'>{$entry['created']}</td>\n\n    <td class='w_display_td'><a href={$hostname}/webnotes/wrouter.php?wid={$entry['wid']}&wroute=edit >Edit</a>\n\n        <span id='delete' style='color:blue;' onclick=_edit('{$hostname}',{$entry['wid']})>Delete</span>\n\n        <a href={$hostname}/webnotes/wrouter.php?wid={$entry['wid']}&wroute=share>Share</a>\n\n    </td></tr>";
    }
    $message .= "</table>";
    $message .= "</div>";
    echo $message;
    echo $footer;
    $message = "\n\n</div>\n\n</div>\n\n</body>\n\n</html>";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:65,代码来源:display.php

示例14: generate

 public static function generate()
 {
     return header_html() . bal('head', self::get());
 }
开发者ID:philum,项目名称:cms,代码行数:4,代码来源:lib.php

示例15: display_faqs

function display_faqs($screen_name = '')
{
    //configuration parameters:
    $config_params = Config::getConfigParams();
    $css = $config_params['css'];
    $tweet_size_max = $config_params['tweet_size_max'];
    $tweet_size_max_google = $config_params['tweet_size_max_google'];
    $hostname = $config_params['hostname'];
    $doctype = $config_params['doctype'];
    $html_attribute = $config_params['html_attribute'];
    $banner = banner('', 'banner');
    //(user, banner_class)
    $footer = $config_params['footer'];
    //
    $docroot = $config_params['docroot'];
    $godaddy_analytics = $config_params['godaddy_analytics'];
    $debug = $config_params['debug'];
    $enable_stats = $config_params['enable_stats'];
    $script_path = __FUNCTION__;
    //save logs
    if ($enable_stats) {
        $model = new TwextraModel();
        //
        $model->saveStat();
    }
    $header = header_html($prefix);
    //
    //..........................................................
    header("Pragma: no-cache");
    header("cache-Control: no-cache, must-revalidate");
    // HTTP/1.1
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    // Date in the past
    $message = '';
    $message .= $doctype;
    $message .= "<html {$html_attribute} >\n";
    $message .= $header;
    $message .= "<body>\n";
    $message .= "<div class='p5_wrapper'>\n";
    $message .= "<div class='p5_page'>\n";
    $message .= $banner;
    $message .= "<div style='margin-left:auto;margin-right:auto;margin-bottom:20px;width:768px;font-size:0.8em;' >\n";
    //p5_main
    $message .= "<h3>Frequently Asked Questions</h3>";
    $message .= "\n<ol style='clear:both' >\n<li> Are mobile devices supported?\n<p>Yes, most mobile devices are supported including iPhone, Blackberry etc.\nIf your mobile device is not supported, send us an email at contact@twextra.com.\n<p>\n\n<li>Is rich text supported on mobile devices?</li>\n<p>\nRich text is only supported on desktop/laptop computers, or through\nour API.\n</p>\n<li>Is cookie support required in the browser?</li>\n<p>Yes, our application requires that the cookies be enabled in the browser.\n</p>";
    //<li>Why does the language translation not work?</li>
    //<p>You must enable UTF-8 (Unicode) encoding in your browser to use the language translation feature.
    //</p>
    $message .= "\n<li>Can I post messages in languages other than English?</li>\n<p> Yes, you can, provided you have enabled UTF-8 support in your browser.\n</p>\n\n</ol>\n\n";
    $message .= "<br style='clear:both;' />";
    $message .= "</div>\n";
    //p5_main
    $message .= $footer;
    $message .= "</div>\n";
    //page
    $message .= "</div>\n";
    //wrapper
    $message .= $godaddy_analytics;
    $message .= "</body>\n</html>\n";
    echo $message;
}
开发者ID:raj4126,项目名称:twextra,代码行数:61,代码来源:faqs.php


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