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


PHP DisplayHead函数代码示例

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


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

示例1: showIndex

function showIndex($min)
{
    DisplayHead(_UPLOADHISTORY);
    // Display Activity
    displayActivity($min);
    DisplayFoot();
}
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:7,代码来源:history.php

示例2: header

    header("Location: dir.php?dir=" . urlencode($current));
}
// -----------------------------------------------------------------------------
if ($dir == "") {
    unset($dir);
}
if (isset($dir)) {
    if (ereg("(\\.\\.)", $dir)) {
        unset($dir);
    } else {
        $dir = $dir . "/";
    }
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
DisplayHead(_DIRECTORYLIST);
?>
<script language="JavaScript">
function MakeTorrent(name_file)
{
    window.open (name_file,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=600,height=430')
}
function ConfirmDelete(file)
{
    return confirm("<?php 
echo _ABOUTTODELETE;
?>
: " + file)
}
function checkCheck(thisIn)
{
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:dir.php

示例3: substr

    $af->time_left = _INCOMPLETE;
}
if ($af->percent_done < 1) {
    $graph_width = "1";
} else {
    $graph_width = $af->percent_done;
}
if ($af->percent_done >= 100) {
    $af->percent_done = 100;
    $background = "#0000ff";
}
if (strlen($torrent) >= 39) {
    $torrent = substr($torrent, 0, 35) . "...";
}
$hd = getStatusImage($af);
DisplayHead(_DOWNLOADDETAILS, false, "5", $af->percent_done . "% ");
?>
    <div align="center">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td align="center">
<?php 
if ($error != "") {
    echo "<img src=\"images/error.gif\" width=16 height=16 border=0 title=\"ERROR\" align=\"absmiddle\">";
}
echo $torrent . "<font class=\"tiny\"> (" . formatBytesToKBMGGB($af->size) . ")</font>";
?>
        </td>
        <td align="right" width="16"><img src="images/<?php 
echo $hd->image;
?>
开发者ID:aungthiha-richard,项目名称:torrentflux,代码行数:31,代码来源:downloaddetails.php

示例4: uiSettings

function uiSettings()
{
    global $cfg;
    // load global settings + overwrite per-user settings
    loadSettings();
    // display
    DisplayHead("Administration - UI Settings");
    // Admin Menu
    displayMenu();
    // Main Settings Section
    ?>
	<div align="center">
	<table width="100%" border="1" bordercolor="<?php 
    echo $cfg["table_admin_border"];
    ?>
" cellpadding="2" cellspacing="0" bgcolor="<?php 
    echo $cfg["table_data_bg"];
    ?>
">
	<tr><td bgcolor="<?php 
    echo $cfg["table_header_bg"];
    ?>
" background="themes/<?php 
    echo $cfg["theme"];
    ?>
/images/bar.gif">
	<img src="images/properties.png" width="18" height="13" border="0">&nbsp;&nbsp;<font class="title">UI Settings</font>
	</td></tr><tr><td align="center">

	<div align="center">

		 <table cellpadding="5" cellspacing="0" border="0" width="100%">
			<form name="theForm" action="admin.php?op=updateUiSettings" method="post">



		<tr><td colspan="2" align="center" bgcolor="<?php 
    echo $cfg["table_header_bg"];
    ?>
"><strong>Index-Page</strong></td></tr>

		<tr>
			<td align="left" width="350" valign="top"><strong>Select index-page</strong><br>
			Select the index-Page.
			</td>
			<td valign="top">
				<?php 
    printIndexPageSelectForm();
    ?>
			</td>
		</tr>

		<tr>
			<td align="left" width="350" valign="top"><strong>index-page settings</strong><br>
			Select the columns in transfer-list on index-Page.<br>(only for b4rt-index-page)
			</td>
			<td valign="top">
				<?php 
    printIndexPageSettingsForm();
    ?>
			</td>
		</tr>

		<tr>
			<td align="left" width="350" valign="top"><strong>Width</strong><br>
			Specify the width of the index-page. (780):
			</td>
			<td valign="bottom">
				<input name="ui_dim_main_w" type="Text" maxlength="5" value="<?php 
    echo $cfg["ui_dim_main_w"];
    ?>
" size="5">
			</td>
		</tr>
		<tr>
			<td align="left" width="350" valign="top"><strong>Display Links</strong><br>
			Display Links on the index-page. (true):
			</td>
			<td valign="bottom">
				<select name="ui_displaylinks">
						<option value="1">true</option>
						<option value="0" <?php 
    if (!$cfg["ui_displaylinks"]) {
        echo "selected";
    }
    ?>
>false</option>
				</select>
			</td>
		</tr>
		<tr>
			<td align="left" width="350" valign="top"><strong>Display Users</strong><br>
			Display Users on the index-page. (true):
			</td>
			<td valign="bottom">
				<select name="ui_displayusers">
						<option value="1">true</option>
						<option value="0" <?php 
    if (!$cfg["ui_displayusers"]) {
        echo "selected";
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:101,代码来源:admin.php

示例5: shell_exec

    (at your option) any later version.

    TorrentFlux is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with TorrentFlux; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
include_once "config.php";
include_once "functions.php";
$result = shell_exec("w");
$result2 = shell_exec("free -mo");
DisplayHead(_SERVERSTATS);
echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>";
echo displayDriveSpaceBar(getDriveSpace($cfg["path"]));
echo "</td></tr></table>";
?>

<br>

<div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php 
echo $cfg["main_bgcolor"];
?>
; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible">

<?php 
echo "<pre>";
echo $result;
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:who.php

示例6: or

 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
include_once "config.php";
include_once "functions.php";
$result = shell_exec("df -h " . $cfg["path"]);
$result2 = shell_exec("du -sh " . $cfg["path"] . "*");
DisplayHead(_DRIVESPACE);
echo "<table width=\"740\" border=0 cellpadding=0 cellspacing=0><tr><td>";
echo displayDriveSpaceBar(getDriveSpace($cfg["path"]));
echo "</td></tr></table>";
?>

<br>
<div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php 
echo $cfg["main_bgcolor"];
?>
; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible">

<?php 
echo "<pre>";
echo $result;
echo "<br><hr><br>";
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:drivespace.php

示例7: or

 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
// includes
include_once "config.php";
include_once "functions.php";
if (isset($_REQUEST["u"])) {
    DisplayHead("dereferrer", false, '0;URL=' . $_REQUEST["u"]);
    ?>
    <br>
    <div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php 
    echo $cfg["main_bgcolor"];
    ?>
; position:relative; width:740; height:500; padding-left: 5px; padding-right: 5px; z-index:1; overflow: scroll; visibility: visible">
<?php 
    echo '<br><br><strong>';
    echo 'forwarding to <a href="' . $_REQUEST["u"] . '">' . $_REQUEST["u"] . '</a> ...';
    echo '</strong><br><br>';
    DisplayFoot(false, false);
} else {
    header("location: index.php");
    exit;
}
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:dereferrer.php

示例8: License

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
include "config.php";
include "functions.php";
DisplayHead(_MOVE_FILE_TITLE, false);
if (isset($_GET['start']) && $_GET['start'] == true) {
    ?>
    <form method="POST" action="move.php" name="move_form">
    <p><?php 
    echo _MOVE_FILE;
    ?>
<input disabled="true" type="text" name="T1" size="91" value="<?php 
    echo $_GET['path'];
    ?>
"></p>
    <p>
    <?php 
    echo _MOVE_STRING;
    ?>
    <br>
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:move.php

示例9: License

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
include_once "config.php";
include_once "functions.php";
DisplayHead("Cookie Help", false);
?>
<script language="JavaScript">
    function closeme()
    {
        self.close();
    }
</script>
<BR />
<div align="center">[ <a href="#" onClick="closeme();">close</a> ]</div>
<BR />
<div align="left" id="BodyLayer" name="BodyLayer" style="border: thin solid <?php 
echo $cfg["main_bgcolor"];
?>
; position:relative; width:580; padding-left: 5px; padding-right: 5px; z-index:1; visibility: visible">
<strong>How to get Cookie information....</strong>
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:cookiehelp.php

示例10: die

    }
} else {
    die("fatal error torrent file not specified");
}
$torrent_cons = "";
if ($af->running == 1 && $alias != "") {
    $torrent_pid = getTorrentPid($alias);
    $torrent_cons = netstatConnectionsByPid($torrent_pid);
    $torrent_hosts = netstatHostsByPid($torrent_pid);
}
$torrentLabel = htmlentities($torrent, ENT_QUOTES);
if (strlen($torrentLabel) >= 39) {
    $torrentLabel = substr($torrent, 0, 35) . "...";
}
$hd = getStatusImage($af);
DisplayHead(_ID_HOSTS, false, "15", $af->percent_done . "% ");
?>
    <div align="center">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td align="center">
<?php 
if ($error != "") {
    echo "<img src=\"images/error.gif\" width=16 height=16 border=0 title=\"ERROR\" align=\"absmiddle\">";
}
echo $torrentLabel . "<font class=\"tiny\"> (" . $torrent_cons . " " . _ID_HOSTS . ")</font>";
?>
        </td>
        <td align="right" width="16">
        	<a href="downloaddetails.php?torrent=<?php 
echo $torrent;
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:downloadhosts.php

示例11: ShowCookies

function ShowCookies()
{
    global $cfg, $db;
    DisplayHead($cfg["user"] . "'s " . _PROFILE);
    $cid = @$_GET["cid"];
    // Cookie ID
    // Used for when editing a cookie
    $hostvalue = $datavalue = "";
    if (!empty($cid)) {
        // Get cookie information from database
        $cookie = getCookie($cid);
        $hostvalue = " value=\"" . $cookie['host'] . "\"";
        $datavalue = " value=\"" . $cookie['data'] . "\"";
    }
    ?>
<SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function popUp(name_file)
    {
        window.open (name_file,'help','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=800,height=600')
    }
    // End -->
</script>
<div align="center">[<a href="?">Return to Profile</a>]</div>
<br />
<div align="center">
    <form action="?op=<?php 
    echo !empty($cid) ? "modCookie" : "addCookie";
    ?>
"" method="post">
    <input type="hidden" name="cid" value="<?php 
    echo $cid;
    ?>
" />
    <table border="1" bordercolor="<?php 
    echo $cfg["table_admin_border"];
    ?>
" cellpadding="2" cellspacing="0" bgcolor="<?php 
    echo $cfg["table_data_bg"];
    ?>
">
        <tr>
            <td colspan="3" bgcolor="<?php 
    echo $cfg["table_header_bg"];
    ?>
" background="themes/<?php 
    echo $cfg["theme"];
    ?>
/images/bar.gif">
                <img src="images/properties.png" width=18 height=13 border=0 align="absbottom">&nbsp;<font class="title">Cookie Management</font>
            </td>
        </tr>
        <tr>
            <td width="80" align="right">&nbsp;Host:</td>
            <td>
                <input type="Text" size="50" maxlength="255" name="host"<?php 
    echo $hostvalue;
    ?>
><BR />
            </td>
            <td>
                www.host.com
            </td>
        </tr>
        <tr>
            <td width="80" align="right">&nbsp;Data:</td>
            <td>
                <input type="Text" size="50" maxlength="255" name="data"<?php 
    echo $datavalue;
    ?>
><BR />
            </td>
            <td>
                uid=123456;pass=a1b2c3d4e5f6g7h8i9j1
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td colspan="2">
                <input type="Submit" value="<?php 
    echo !empty($cid) ? _UPDATE : "Add";
    ?>
">
            </td>
        </tr>
<?php 
    // We are editing a cookie, so have a link back to cookie list
    if (!empty($cid)) {
        ?>
        <tr>
            <td colspan="3">
                <center>[ <a href="?op=editCookies">back</a> ]</center>
            </td>
        </tr>
<?php 
    } else {
        ?>
        <tr>
            <td colspan="3">
                <table border="1" bordercolor="<?php 
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:101,代码来源:profile.php

示例12: unset

            unset($trans_tbl["&quot;"]);
        }
        return strtr($string, $trans_tbl);
    }
}
// Just to be safe ;o)
if (!defined("ENT_COMPAT")) {
    define("ENT_COMPAT", 2);
}
if (!defined("ENT_NOQUOTES")) {
    define("ENT_NOQUOTES", 0);
}
if (!defined("ENT_QUOTES")) {
    define("ENT_QUOTES", 3);
}
DisplayHead("RSS Torrents");
// Get RSS feeds from Database
$arURL = GetRSSLinks();
// create lastRSS object
$rss = new lastRSS();
// setup transparent cache
$rss->cache_dir = $cfg["torrent_file_path"];
$rss->cache_time = $cfg["rss_cache_min"] * 60;
// 1200 = 20 min.  3600 = 1 hour
$rss->strip_html = false;
// don't remove HTML from the description
echo "<a name=\"top\"></a><div align=\"center\">";
echo "<table border=1 cellspacing=0 width=\"760\" cellpadding=5><tr>";
echo "<td bgcolor=\"" . $cfg["table_header_bg"] . "\">RSS Feeds (jump list):";
echo "<ul>";
// Loop through each RSS feed
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:readrss.php

示例13: License

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
include "config.php";
include "functions.php";
DisplayHead('Uncompressing File', false);
echo "<body bgcolor=" . $cfg["main_bgcolor"] . " leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>";
if (isset($_GET['file']) && $_GET['file'] != "") {
    echo '<form method="POST" name="pass_form">';
    echo '<p>Please enter password for the file: <input type="text" name="passwd" size="60"></p>';
    echo '<p><input type="submit" value="   OK   " name="OK"></p>';
    echo '<input type="hidden" name="file" value="' . str_replace('%2F', '/', urlencode($cfg['path'] . $_GET['file'])) . '">';
    echo '<input type="hidden" name="dir" value="' . str_replace('%2F', '/', urlencode($cfg['path'] . $_GET['dir'])) . '">';
    echo '<input type="hidden" name="type" value="' . $_GET['type'] . '">';
    echo '<input type="hidden" name="exec" value="true">';
    echo '</form>';
}
if (isset($_POST['exec']) && $_POST['exec'] == true) {
    $passwd = $_POST['passwd'];
    if ($passwd == "") {
        $passwd = "-";
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:uncomp.php

示例14: check_html

        $force_read = 1;
    } else {
        $force_read = 0;
    }
    $message = check_html($message, "nohtml");
    SaveMessage($to_user, $cfg['user'], htmlentities($message), $to_all, $force_read);
    header("location: readmsg.php");
} else {
    $rmid = getRequestVar('rmid');
    if (!empty($rmid)) {
        list($from_user, $message, $ip, $time) = GetMessage($rmid);
        $message = _DATE . ": " . date(_DATETIMEFORMAT, $time) . "\n" . $from_user . " " . _WROTE . ":\n\n" . $message;
        $message = ">" . str_replace("\n", "\n>", $message);
        $message = "\n\n\n" . $message;
    }
    DisplayHead(_SENDMESSAGETITLE);
    ?>

<form name="theForm" method="post" action="message.php">
<table border="0" cellpadding="3" cellspacing="2" width="100%">
<tr>
    <td bgcolor="<?php 
    echo $cfg["table_data_bg"];
    ?>
" align="right"><font size=2 face=Arial><?php 
    echo _TO;
    ?>
:</font></td>
    <td bgcolor="<?php 
    echo $cfg["table_data_bg"];
    ?>
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:message.php

示例15: License

 modify it under the terms of the GNU General Public License (GPL)
 as published by the Free Software Foundation; either version 2
 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.

 To read the license please visit http://www.gnu.org/copyleft/gpl.html

*******************************************************************************/
// contributed by NovaKing -- thanks duder!
include_once "config.php";
include_once "functions.php";
DisplayHead("View NFO");
$file = $_GET["path"];
$folder = htmlspecialchars(substr($file, 0, strrpos($file, "/")));
if (($output = @file_get_contents($cfg["path"] . $file)) === false) {
    $output = "Error opening NFO File.";
}
?>
<div align="center" style="width: 740px;">
<a href="<?php 
echo "viewnfo.php?path={$file}&dos=1";
?>
">DOS Format</a> :-:
<a href="<?php 
echo "viewnfo.php?path={$file}&win=1";
?>
">WIN Format</a> :-:
开发者ID:BackupTheBerlios,项目名称:tf-b4rt-svn,代码行数:31,代码来源:viewnfo.php


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