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


PHP getDoctype函数代码示例

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


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

示例1: getAvailableLanguages

    $langArray = getAvailableLanguages();
    foreach ($langArray as $shortLang => $largeLang) {
        convertFiles($shortLang, $ConvertedFilesArray);
    }
    //Refresh the JS cache
    refreshJSCache();
} else {
    convertFiles($_SESSION['language'], $ConvertedFilesArray);
}
$idComplement = isset($_GET['entry']) && isset($_GET['entryId']) ? $_GET['entryId'] : '';
if ($idComplement != "") {
    $sql = "SELECT Name FROM `" . $_SESSION['Application_host'] . "`.`T_entry` WHERE Is_public = 'YES' AND Id = " . $idComplement . " ";
    $data = getDataFromSQL($sql, __FILE__, "function", __FUNCTION__);
    $titleComplement = $data[0]['Name'] != '' ? ' - ' . $data[0]['Name'] : '';
}
echo getDoctype(true) . "\n";
?>
<html <?php 
echo getHTMLTagContent();
?>
>
	<head>
<?php 
include "html/application_" . $_SESSION['language'] . ".php";
include "html/mailfunctions_" . $_SESSION['language'] . ".php";
?>
    <?php 
echo getMetaTags();
?>
    <!-- RSS Flow -->
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php 
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:index.php

示例2: isset

$conv_length = !$parted ? $conv_length : "";
$conv_temp = !$parted ? $conv_temp : "";
$got_converter = isset($_GET['c']) ? $_GET['c'] : '';
$converter = isset($converter) ? $converter : $got_converter;
$selected = $converter != '';
$show_coords_conv = isset($show_coords_conv) ? $show_coords_conv : false;
$got_geodesic = isset($_GET['g']) ? $_GET['g'] : '';
$geodesic = isset($geodesic) ? $geodesic : $got_geodesic;
$geodesic = urldecode(stripslashes($geodesic));
$readonly = isset($_GET['readonly']) ? $_GET['readonly'] == 'true' ? 'true' : 'false' : 'false';
$conv_iso = isset($_GET['i']) ? $_GET['i'] : '';
if (!$parted) {
    include "../conf/config.php";
    include "../func/function.php";
    include "declaration.php";
    echo getDoctype(false) . "\n";
    ?>
<html <?php 
    echo getHTMLTagContent();
    ?>
>
  <head>
    <script type="text/javascript" charset="UTF-8" src="<?php 
    echo getScriptJS(__FILE__);
    ?>
"></script>
<?php 
    include "application_" . $_SESSION['language'] . ".php";
    include "mailfunctions_" . $_SESSION['language'] . ".php";
    ?>
    <?php 
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:31,代码来源:converter.php

示例3: sendMail

function sendMail($mail_dest, $subject, $mail_body, $from_email = "", $add_cc_email = "", $send_a_copy = true)
{
    $mail_subject = "[" . $_SESSION['Application_name'] . "]" . " " . $subject;
    if ($from_email == "") {
        $from_email = $_SESSION['Application_mail'];
    }
    $reply_email = $from_email;
    $header_date = date("D, j M Y H:i:s");
    //-0600"); // avec offset horaire
    //HTML Content
    $css = 'body
          {
            font-family: arial, sans-serif;
            font-size: 9pt;
            background-color: white; 
            color: black;
          }
          
          a
          {
            text-decoration: none;
            color: #34558A;
            border-bottom: dotted 1px #458EFF;
          }
          
          a:hover
          {
            color: #FFA713;
            border-bottom: dotted 1px #FFA713;
          }';
    $html_text_body = getDoctype(false) . '<html ' . getHTMLTagContent() . '><head>' . getMetaTags() . '<style type="text/css">' . $css . '</style><title>' . $subject . '</title></head><body>' . $mail_body . '</body></html>';
    //TXT Content
    $plain_text_body = HTML2TxtMail($mail_body);
    $mime_boundary = md5(uniqid(mt_rand()));
    $mime_boundary_header = chr(34) . $mime_boundary . chr(34);
    $mail_header = 'From: ' . $from_email . "\n";
    if ($add_cc_email != "") {
        $mail_header .= 'Cc: ' . $add_cc_email . "\n";
    }
    if ($send_a_copy) {
        $mail_header .= 'Bcc: ' . $_SESSION['Application_mail'] . "\n";
    }
    $mail_header .= 'Reply-To: ' . $reply_email . "\n";
    $mail_header .= 'Return-Path: ' . $reply_email . "\n";
    $mail_header .= 'MIME-Version: 1.0' . "\n";
    $mail_header .= 'Content-Type: multipart/alternative;' . "\n";
    $mail_header .= '     boundary=' . $mime_boundary . "\n";
    $mail_header .= 'X-Mailer: PHP/' . phpversion() . "\n";
    $mail_header .= 'Date: ' . $header_date . "\n";
    //-----------------------------------------------
    // TXT
    //-----------------------------------------------
    $mail_body = 'This is a multi-part message in MIME format.' . "\n\n";
    $mail_body .= '--' . $mime_boundary . "\n";
    $mail_body .= 'Content-Type: text/plain; charset=UTF-8' . "\n";
    $mail_body .= 'Content-Transfer-Encoding: 8bit' . "\n\n";
    $mail_body .= $plain_text_body . "\n\n";
    //-----------------------------------------------
    // HTML
    //-----------------------------------------------
    $mail_body .= '--' . $mime_boundary . "\n";
    $mail_body .= 'Content-Type: text/html; charset=UTF-8' . "\n";
    $mail_body .= 'Content-Transfer-Encoding: 8bit' . "\n\n";
    $mail_body .= $html_text_body . "\n\n";
    $mail_body .= '--' . $mime_boundary . '--' . "\n";
    return mail($mail_dest, $mail_subject, $mail_body, $mail_header);
}
开发者ID:GrottoCenter,项目名称:GrottoCenter,代码行数:67,代码来源:function.php


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