本文整理汇总了PHP中dohead函数的典型用法代码示例。如果您正苦于以下问题:PHP dohead函数的具体用法?PHP dohead怎么用?PHP dohead使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dohead函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('IN_F2BLOG')) {
die('Access Denied.');
}
//输出头部信息
dohead($title, $page_url);
require 'admin_menu.php';
?>
<form action="" method="post" name="seekform">
<div id="content">
<div class="contenttitle"><?php
echo $title;
?>
<div class="page">
<?php
view_page($page_url);
?>
</div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="searchtool">
<?php
echo $strBlueFind;
?>
<input type="text" name="seekname" size="8" value="<?php
echo $seekname;
示例2: check_login
<?php
$PATH = "../";
include "./function.php";
check_login();
//输出头部信息
$parentM = 0;
$mtitle = $strCheckUpdate;
$title = $strCheckUpdate;
dohead($title, "");
require 'admin_menu.php';
?>
<body>
<div id="content">
<div class="contenttitle"><?php
echo $title;
?>
</div>
<div id="updateInfo" style="margin:10px;"></div>
<script>
var CVersion="<?php
echo blogVersion;
?>
"
</script>
<script src="http://www.f2blog.com/f2update.php?language=<?php
echo $settingInfo['language'];
?>
示例3: md5
<?php
@set_time_limit(0);
require_once "function.php";
//必须在本站操作
$server_session_id = md5("rssimport" . session_id());
if (($_GET['action'] == "save" || $_GET['action'] == "operation") && $_POST['client_session_id'] != $server_session_id) {
die('Access Denied.');
}
// 验证用户是否处于登陆状态
check_login();
$parentM = 7;
$mtitle = $strRssImport;
//输出头部信息
dohead($strRssImport, "");
require 'admin_menu.php';
if ($_GET['action'] == "save") {
$autocate = $_POST['autocate'];
$curtime = $_POST['curtime'];
$rss_file = $_FILES["rssfile"]["tmp_name"];
$fileName = $_FILES["rssfile"]["name"];
$filetype = getFileType($fileName);
$path = "../backup";
$rssname = upload_rssfile($rss_file, $path, $filetype);
if (strstr($rssname, ".gz")) {
$rsscontent = gzreadfromfile("../backup/{$rssname}");
} else {
$rsscontent = readfromfile("../backup/{$rssname}");
}
$rssCate = $autocate == 0 ? $_POST['rssCate'] : "";
$array_insert = rssAnalyse($rsscontent, $rssCate, $curtime);
示例4: set_time_limit
<?php
set_time_limit(0);
$PATH = "./";
include "{$PATH}/function.php";
// 验证用户是否处于登陆状态
check_login();
//保存参数
$action = $_GET['action'];
//需要操作的表名:
$arrTableName = array("logs", "categories", "comments", "dailystatistics", "guestbook", "setting", "keywords", "links", "members", "modsetting", "modules", "trackbacks", "filters", "attachments", "visits", "tags");
//输出头部信息
dohead($strDataToolsTitle, "");
?>
<script style="javascript">
<!--
function onclick_update(form) {
if (isNull(form.backup, '<?php
echo $strErrNull;
?>
')) return false;
form.save.disabled = true;
form.action = "<?php
echo "{$PHP_SELF}?action=save";
?>
";
form.submit();
}
-->
</script>
示例5: write_file
$filename = $backup . ("_v" . $p . ".sql");
$message = "{$strDataBackupAlert1}{$p}{$strDataBackupAlert2}{$filename}";
} else {
$filename = $backup . ".sql";
$message = $strDataBackupSuccess;
}
$msg = write_file($dump, $filename);
if ($msg == "") {
$ActionMessage .= $message;
} else {
$ActionMessage .= "{$strDataBackupBad}";
}
}
}
//输出头部信息
dohead($strDataBackupTitle, "");
?>
<script style="javascript">
<!--
function onclick_update(form) {
if (isNull(form.backup, '<?php
echo $strErrNull;
?>
')) return false;
form.save.disabled = true;
form.action = "<?php
echo "{$PHP_SELF}?action=save";
?>
";
form.submit();
示例6: check_login
<?php
@set_time_limit(0);
require_once "function.php";
// 验证用户是否处于登陆状态
check_login();
$parentM = 7;
$mtitle = $strRssExport;
//输出头部信息
dohead($strRssExport, "");
require 'admin_menu.php';
if (!function_exists("gzopen")) {
$isgzip = "0";
$gzopen = "0";
$strBackupOption = $strBackupOption3;
} else {
$isgzip = "1";
$gzopen = "1";
$strBackupOption = $strBackupOption1;
}
$ActionMessage = !empty($_SESSION['rssMessage']) ? $_SESSION['rssMessage'] : "";
?>
<script style="javascript">
<!--
function onclick_update(form) {
if (isNull(form.backup, '<?php
echo $strErrNull;
?>
')) return false;
form.save.disabled = true;
示例7: filesize
$file_size = filesize($file_path);
$temp_buffer = fread($file_handle, $file_size);
fclose($file_handle);
header("Content-type: application/zip");
header("Content-disposition: attachment; filename={$file_name}");
echo $temp_buffer;
exit;
} else {
echo "<script language=\"Javascript\"> \n";
echo "alert(\"{$strFileNoExists}\");";
echo "</script>";
}
$action = "";
}
//输出头部信息
dohead($strDataRestoreTitle, "");
//读取备份文件
$basedir = "../backup/";
$handle = opendir("{$basedir}");
while ($file = readdir($handle)) {
if (is_file($basedir . $file) && strpos($basedir . $file, ".sql") > 0) {
$name = substr($file, 0, strlen($file) - 4);
if (strpos($name, "_v1") > 0 or !strpos($name, "_v")) {
if (!strpos($name, "_v")) {
$data_file[] = $name;
$data_size[] = formatFileSize(filesize($basedir . $file));
$data_date[] = filemtime($basedir . $file);
$data_totUnit[] = 0;
} else {
$data_file[] = $name;
$data_date[] = filemtime($basedir . $file);