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


PHP sendcacheheaders函数代码示例

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


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

示例1: showsaveform

function showsaveform()
{
    //Show 'SAVE FORM' only when click the 'Save so far' button the first time, or when duplicate is found on SAVE FORM.
    global $thistpl, $errormsg, $thissurvey, $surveyid, $clang, $clienttoken, $relativeurl, $thisstep;
    sendcacheheaders();
    doHeader();
    foreach (file("{$thistpl}/startpage.pstpl") as $op) {
        echo templatereplace($op);
    }
    echo "\n\n<!-- JAVASCRIPT FOR CONDITIONAL QUESTIONS -->\n" . "\t<script type='text/javascript'>\n" . "\t<!--\n" . "function checkconditions(value, name, type, evt_type)\n" . "\t{\n" . "\t}\n" . "\t//-->\n" . "\t</script>\n\n";
    echo "<form method='post' action='{$relativeurl}/index.php'>\n";
    //PRESENT OPTIONS SCREEN
    if (isset($errormsg) && $errormsg != "") {
        $errormsg .= "<p>" . $clang->gT("Please try again.") . "</p>";
    }
    foreach (file("{$thistpl}/save.pstpl") as $op) {
        echo templatereplace($op);
    }
    //END
    echo "<input type='hidden' name='sid' value='{$surveyid}' />\n";
    echo "<input type='hidden' name='thisstep' value='", $thisstep, "' />\n";
    echo "<input type='hidden' name='token' value='", $clienttoken, "' />\n";
    echo "<input type='hidden' name='saveprompt' value='Y' />\n";
    echo "</form>";
    foreach (file("{$thistpl}/endpage.pstpl") as $op) {
        echo templatereplace($op);
    }
    echo "</html>\n";
    exit;
}
开发者ID:ddrmoscow,项目名称:queXS,代码行数:30,代码来源:save.php

示例2: sendcacheheaders

/*
 * LimeSurvey
 * Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
 * All rights reserved.
 * License: GNU/GPL License v2 or later, see LICENSE.php
 * LimeSurvey is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 *
 * $Id: listcolumn.php 11664 2011-12-16 05:19:42Z tmswhite $
 */
include_once "login_check.php";
sendcacheheaders();
if (!isset($surveyid)) {
    $surveyid = returnglobal('sid');
}
if (!isset($column)) {
    $column = returnglobal('column');
}
if (!isset($order)) {
    $order = returnglobal('order');
}
if (!isset($sql)) {
    $sql = $_SESSION['sql'];
}
if (!$surveyid) {
    //NOSID
    exit;
开发者ID:rkaldung,项目名称:LimeSurvey,代码行数:30,代码来源:listcolumn.php

示例3: display_first_page

/**
 * Shows the welcome page, used in group by group and question by question mode
 */
function display_first_page()
{
    global $clang, $thistpl, $token, $surveyid, $thissurvey, $navigator, $publicurl;
    sendcacheheaders();
    doHeader();
    echo templatereplace(file_get_contents("{$thistpl}/startpage.pstpl"));
    echo "\n<form method='post' action='{$publicurl}/index.php' id='limesurvey' name='limesurvey' autocomplete='off'>\n";
    echo "\n\n<!-- START THE SURVEY -->\n";
    echo templatereplace(file_get_contents("{$thistpl}/welcome.pstpl")) . "\n";
    if ($thissurvey['anonymized'] == "Y") {
        echo templatereplace(file_get_contents("{$thistpl}/privacy.pstpl")) . "\n";
    }
    $navigator = surveymover();
    echo templatereplace(file_get_contents("{$thistpl}/navigator.pstpl"));
    if ($thissurvey['active'] != "Y") {
        echo "<p style='text-align:center' class='error'>" . $clang->gT("This survey is currently not active. You will not be able to save your responses.") . "</p>\n";
    }
    echo "\n<input type='hidden' name='sid' value='{$surveyid}' id='sid' />\n";
    if (isset($token) && !empty($token)) {
        echo "\n<input type='hidden' name='token' value='{$token}' id='token' />\n";
    }
    echo "\n<input type='hidden' name='lastgroupname' value='_WELCOME_SCREEN_' id='lastgroupname' />\n";
    //This is to ensure consistency with mandatory checks, and new group test
    $loadsecurity = returnglobal('loadsecurity');
    if (isset($loadsecurity)) {
        echo "\n<input type='hidden' name='loadsecurity' value='{$loadsecurity}' id='loadsecurity' />\n";
    }
    echo "\n</form>\n";
    echo templatereplace(file_get_contents("{$thistpl}/endpage.pstpl"));
    doFooter();
}
开发者ID:karime7gezly,项目名称:OpenConextApps-LimeSurvey,代码行数:34,代码来源:index.php


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