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


PHP displayHeader函数代码示例

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


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

示例1: main

/**
 * main 
 * 
 * @return void
 */
function main()
{
    displayHeader();
    if (isset($_POST['submit1'])) {
        displayStepTwo();
    } elseif (isset($_POST['submit2'])) {
        displayStepThree();
    } elseif (isset($_POST['submit3'])) {
        displayStepFour();
    } elseif (isset($_POST['submit4'])) {
        displayStepFive();
    } elseif (isset($_POST['submit5'])) {
        setupDatabase();
    } elseif (file_exists('inc/config_inc.php')) {
        displayAlreadyInstalled();
        displayStepOne();
        displayFooter();
        return;
    } else {
        displayStepOne();
    }
}
开发者ID:sauravpratihar,项目名称:fcms,代码行数:27,代码来源:install.php

示例2: error

<?php

require "label.php";
if (!verifyAdmin()) {
    error("Fatal error, you don't have permission to perform this action.  Please login first");
}
$dbLink = @mysql_connect($dbHost, $dbUser, $dbPasswd);
mysql_create_db($dbName, $dbLink);
mysql_select_db($dbName);
$query1 = "CREATE TABLE member\r\n\t(\r\n       \tuser_id SMALLINT UNSIGNED NOT NULL auto_increment,\r\n       \tusername varchar(30) NOT NULL default '',\r\n  \t   \tpasswd varchar(30) NOT NULL default '',\r\n  \t\tnama varchar(30) NOT NULL default '',\r\n  \t\temail varchar(40) NOT NULL default '',\r\n  \t\ttgl_lahir varchar(30) NOT NULL default '',\r\n  \t\tnomor_id varchar(30) NOT NULL default '',\r\n  \t\tnomor_ktp varchar(30) NOT NULL default '',\r\n  \t\talamat text,\r\n  \t\tkota varchar(30) NOT NULL default '',\r\n  \t\tkodepos int(255) NOT NULL default '12345',\r\n  \t\tnomor_telp varchar(30) default NULL,\r\n  \t\tsuami_istri varchar(30) NOT NULL default '',\r\n  \t\tnama_pasangan varchar(30) NOT NULL default '',\r\n  \t\tpekerjaan varchar(30) NOT NULL default '',\r\n  \t\tagama varchar(30) NOT NULL default '',\r\n  \t\tdik_akhir varchar(30) NOT NULL default '',  \r\n  \t\tnama_ahli_waris varchar(30) NOT NULL default '',\r\n  \t\thub_ahli_waris varchar(30) NOT NULL default '',\r\n  \t\tnama_bank varchar(30) NOT NULL default '',\r\n  \t\tcabang varchar(30) NOT NULL default '',\r\n  \t\tnama_nasabah varchar(30) NOT NULL default '',\r\n  \t\tnomor_rek varchar(60) default NULL,\r\n  \t\tnama_sponsor varchar(30) NOT NULL default '',\r\n  \t\tid_sponsor varchar(30) NOT NULL default '',\r\n  \t\tusername_sponsor varchar(30) NOT NULL default '',\r\n  \t\tusername_upline varchar(30) NOT NULL default '',\r\n  \t\temail_sponsor varchar(30) NOT NULL default '',\r\n  \t\ttanggal_join int(255) NOT NULL default '0',\r\n  \t\tip_add varchar(20) NOT NULL default '',\r\n  \t\tstat varchar(20) NOT NULL default '',\r\n  \t\thits int(255) NOT NULL default '0',\r\n  \t\tPRIMARY KEY  (user_id)\r\n\t)TYPE=MyISAM ";
$query2 = "CREATE TABLE news\r\n\t(\r\n       user_id SMALLINT UNSIGNED NOT NULL auto_increment,\r\n  \t   judul varchar(100) NOT NULL default '',\r\n       tanggal varchar(25) NOT NULL default '',\r\n       isi_berita text,\r\n       PRIMARY KEY  (user_id)\r\n\t)TYPE=MyISAM ";
mysql_query($query1) or error(mysql_error());
mysql_query($query2) or error(mysql_error());
mysql_close();
displayHeader("All tables have been created");
echo "<p align=\"center\"><font size=\"4\">Selamat, Table database selesai dibuat ! </font></a></p>\n";
echo "<p align=\"center\"><font size=\"4\">Selanjutnya masukkan data member perdana anda dengan cara klik <a href=\"admin_input_data.php\">disini</font></a></p>\n";
echo "<p align=\"center\"><a href=\"admin_menu.php\"><b>Back to Admin</b></a></p>\n";
displayFooter();
开发者ID:rblagahit,项目名称:IndoMLM,代码行数:19,代码来源:create_database.php

示例3: define

 define("READ_ONLY", !is_writeable(SQLiteDb));
 /*
 if(!is_writeable(SQLiteDb)){	
 	displayError($traduct->get(8));
 	exit;
 }
 */
 error_reporting($tempError);
 if (WITH_AUTH) {
     include_once INCLUDE_LIB . "SQLiteAuth.class.php";
     $SQLiteManagerAuth =& new SQLiteAuth();
 }
 $query = "SELECT count(*) FROM database";
 if ($db->query($query)) {
     if (!$db->fetch_array()) {
         displayHeader("");
         $noDb = true;
         include_once INCLUDE_LIB . "add_database.php";
         if (empty($action) || $error) {
             exit;
         }
     }
 }
 // check if exist ':memory: database
 $query = "SELECT * FROM database WHERE location LIKE ':memory:'";
 if ($db->query($query)) {
     $tempMem = $SQLiteFactory->sqliteGetInstance(':memory:');
 }
 $tabDb = $db->array_query($query, SQLITE_ASSOC);
 if ($dbsel) {
     $tabInfoDb = $db->array_query("SELECT * FROM database WHERE id={$dbsel}", SQLITE_ASSOC);
开发者ID:racontemoi,项目名称:mamp,代码行数:31,代码来源:config.inc.php

示例4: header

        header("Location: admin_menu.php");
    } elseif ($action == "logout") {
        session_start();
        session_unregister("admin_Name");
        session_unregister("admin_Passwd");
        displayHeader("Admin Logout");
        echo "<p align=\"center\"><font size=\"4\">Anda Telah Logout Dengan Sukses !</font></p>\n";
        echo "<p align=\"center\"><a href=\"index.php\"><b>Home</b></a></p>\n";
        displayFooter();
    }
} else {
    if (verifyAdmin()) {
        header("Location: admin_menu.php");
    }
    echo "<p align=\"center\"><img src=\"./banner.jpg\"  border=\"0\" ></a></p>\n";
    displayHeader("Admin Login");
    echo "<p align=\"center\"><font size=\"4\">Admin Login</font></p>\n";
    echo "<div align=\"center\">\n";
    echo "  <center>\n";
    echo "  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
    echo "  <form method=\"post\" action=\"{$PHP_SELF}?action=login\">\n";
    echo "    <tr>\n";
    echo "      <td width=\"80\" height=\"25\">Admin</td>\n";
    echo "      <td width=\"160\" height=\"25\"><input type=\"text\" name=\"admin_Name\" size=\"20\" maxlength=\"50\"></td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td width=\"80\" height=\"25\">Password</td>\n";
    echo "      <td width=\"160\" height=\"25\"><input type=\"password\" name=\"admin_Passwd\" size=\"20\" maxlength=\"12\"></td>\n";
    echo "    </tr>\n";
    echo "    <tr>\n";
    echo "      <td width=\"8\" height=\"25\"></td>\n";
开发者ID:rblagahit,项目名称:IndoMLM,代码行数:31,代码来源:admin.php

示例5: SQLiteDbOption

        case "add_trigger":
            if ($workDb->isReadable()) {
                $action = "add";
                include_once INCLUDE_LIB . "triggerproperties.php";
            }
            break;
        case "add_function":
            if ($workDb->isReadable()) {
                $action = "add";
                include_once INCLUDE_LIB . "functproperties.php";
            }
            break;
        case "options":
            if ($workDb->isReadable()) {
                include_once INCLUDE_LIB . "SQLiteDbOption.class.php";
                $Option =& new SQLiteDbOption($workDb);
                if ($_SERVER['REQUEST_METHOD'] == 'POST' || isset($_REQUEST['attach_action']) && $_REQUEST['attach_action'] == 'del') {
                    echo "<script  type=\"text/javascript\">parent.left.location='left.php?dbsel=" . $GLOBALS["dbsel"] . "';</script>";
                }
            }
            break;
    }
} elseif (isset($GLOBALS["action"]) && $GLOBALS["action"] == "auth") {
    displayHeader("main");
    $SQLiteManagerAuth->manageAuth();
}
if (isset($redirect) && !empty($redirect)) {
    ob_end_clean();
    echo $redirect;
}
@ob_end_flush();
开发者ID:racontemoi,项目名称:mamp,代码行数:31,代码来源:main.php

示例6: displayLockedOut

/**
 * displayLockedOut 
 * 
 * @return void
 */
function displayLockedOut()
{
    displayHeader();
    echo '
    <div class="err-msg">
        <h2>' . T_('Hold On a Second!') . '</h2>
        <p>' . T_('You have exceeded the number of allowed login attempts.') . '</p>
        <p>' . T_('Your account has been locked for 1 hour.') . '</p>
    </div>';
    displayLogin();
}
开发者ID:sauravpratihar,项目名称:fcms,代码行数:16,代码来源:index.php

示例7: dbConnect

<?php

require "label.php";
dbConnect();
$time = time();
$ip = $REMOTE_ADDR;
$status = "aktif";
mysql_query("INSERT INTO member ( username, passwd, nama, email, tgl_lahir, nomor_id, nomor_ktp, alamat, kota, kodepos, nomor_telp, suami_istri, nama_pasangan, pekerjaan, agama, dik_akhir, nama_ahli_waris, hub_ahli_waris, nama_bank, cabang, nama_nasabah, nomor_rek, nama_sponsor, id_sponsor, username_sponsor, username_upline, email_sponsor, tanggal_join, ip_add, stat, hits )\r\n\t    Values ('{$USERNAME_DEFAULT}','{$password_1}','{$nama_1}','{$email_1}','','{$nomor_id_1}','','{$alamat_1}','{$kota_1}','','{$telpon_1}','','','','','','','','','','','','','','','','','{$time}','{$ip}','{$status}','0' )") or error(mysql_error());
displayHeader("Data Perdana selesai di Input");
echo "<p align=\"center\"><font size=\"4\">Data Perdana selesai di Input,</font></a></p>\n";
echo "<p align=\"center\"><a href=admin_menu.php><b>Back to Admin</b></a></p>\n";
displayFooter();
开发者ID:rblagahit,项目名称:IndoMLM,代码行数:12,代码来源:admin_input_data.php

示例8: displayHeader

<?php

require "menu.inc";
displayHeader("Download");
?>

<tr><td>
<h2>Tarballs</h2>

Several tarballs of the snowball sources are available.

<ul>
<li>
<a href="dist/libstemmer_c.tgz">The C version of the libstemmer library.</a><br/>
This contains all you need to include the snowball stemming algorithms into a
C project of your own.  If you download this, you don't need to use the snowball
compiler, or worry about the internals of the stemmers in any way.
</li>
<li>
<a href="dist/libstemmer_java.tgz">The Java version of the libstemmer library.</a><br/>
This contains all you need to include the snowball stemming algorithms into a
Java project of your own.  If you download this, you don't need to use the snowball
compiler, or worry about the internals of the stemmers in any way.
</li>
<li>
<a href="dist/snowball_code.tgz">Snowball, algorithms, and libstemmer library.</a><br/>
This contains all the source code for snowball (but not the generated source files).
This is useful mainly if you are wanting to work on the algorithms (tweaking them,
or producing new algorithms).
</li>
<li>
开发者ID:assem-ch,项目名称:arabicstemmer-demo,代码行数:31,代码来源:download.php

示例9: displayUpgradeDatabase

/**
 * displayUpgradeDatabase
 * 
 * @return void
 */
function displayUpgradeDatabase()
{
    $fcmsError = FCMS_Error::getInstance();
    $fcmsDatabase = Database::getInstance($fcmsError);
    $fcmsUpgrade = new Upgrade($fcmsError, $fcmsDatabase);
    $latestVersion = $_SESSION['latestVersion'];
    if (!$fcmsUpgrade->upgrade()) {
        // Jacked html, but should work
        displayHeader();
        $fcmsError->displayError();
        displayFooter();
        return;
    }
    if (!$fcmsUpgrade->updateCurrentVersion($latestVersion)) {
        // Jacked html, but should work
        displayHeader();
        $fcmsError->displayError();
        displayFooter();
        return;
    }
    header('Location: upgrade.php?manual=1');
}
开发者ID:lmcro,项目名称:fcms,代码行数:27,代码来源:upgrade.php

示例10: displayLogin

function displayLogin()
{
    global $main_table_width, $cellspacing, $this_page, $url_seperator;
    // Let's show the header
    displayHeader(word("Login"));
    $formAction = $this_page;
    ?>
		
			<form action="<?php 
    echo $formAction;
    ?>
" method="post">
				<input type="hidden" name="returnPage" value="<?php 
    echo $_GET['return'];
    ?>
">
				<table width="<?php 
    echo $main_table_width;
    ?>
%" cellpadding="<?php 
    echo $cellspacing;
    ?>
" cellspacing="0" border="0">
					<tr>
						<td width="50%" align="right">
							<font size="2">
							<?php 
    echo word("Username");
    ?>
							</font>
						</td>
						<td width="50%">
							<input class="jz_input" type="text" name="username">
						</td>
					</tr>
					<tr>
						<td width="50%" align="right">
							<font size="2">
							<?php 
    echo word("Password");
    ?>
							</font>
						</td>
						<td width="50%">
							<input class="jz_input" type="password" name="admin_pass">
						</td>
					</tr>
					<tr>
						<td width="50%" align="right">
							
						</td>
						<td width="50%">
							<font size="2">
							<input class="jz_checkbox" type="checkbox" name="remember_me"> <?php 
    echo word("Remember me");
    ?>
							</font>
						</td>
					</tr>
					<tr>
						<td width="100%" colspan="2" align="center">
							<input class="jz_submit" type="submit" name="submit_login" value="<?php 
    echo word("Login");
    ?>
">
						</td>
					</tr>
				</table>
			</form>
		<?php 
}
开发者ID:seanfbrown,项目名称:jinzora,代码行数:71,代码来源:display.php

示例11: displayHeader

<?php

require "menu.inc";
displayHeader("License");
?>
<TR><TD>
<p>

All the software given out on this Snowball site is covered by the BSD License (see
<A HREF="http://www.opensource.org/licenses/bsd-license.html">
http://www.opensource.org/licenses/bsd-license.html </A>), with
Copyright (c) 2001, Dr Martin Porter,
and (for the Java developments)
Copyright (c) 2002, Richard Boulton.


</p><p>

Essentially, all this means is that you can do what you like with the code,
except claim another Copyright for it, or claim that it is issued under a different
license. The software is also issued without warranties, which means that if anyone
suffers through its use, they cannot come back and sue you.
You also have to alert anyone to whom you give the Snowball
software to the fact that it is covered by the BSD license.

</p><p>

We have not bothered to insert the licensing arrangement into the
text of the Snowball software.

开发者ID:assem-ch,项目名称:arabicstemmer-demo,代码行数:29,代码来源:license.php

示例12: printLine

<?php 
function printLine($line)
{
    $file = fopen('all_lines.txt', 'a+');
    $dateline = date("Y-m-d G:i:s") . ": {$line}" . "\n ";
    fputs($file, $dateline);
    fclose($file);
}
function displayHeader($heading1, $heading2)
{
    $file = fopen('title.txt', 'a+');
    $str = $heading1 . "\n" . $heading2;
    fputs($file, $str);
    fclose($file);
}
echo displayHeader("Main h1 heading", "Sub h2 heading");
function timeAgo($time)
{
    $get_time = time() - $time;
    if ($get_time < 1) {
        return 'in seconds';
    }
    $condition = array(12 * 30 * 24 * 60 * 60 => 'year', 30 * 24 * 60 * 60 => 'month', 24 * 60 * 60 => 'day', 60 * 60 => 'hour', 60 => 'minute', 1 => 'second');
    foreach ($condition as $secs => $str) {
        $d = $get_time / $secs;
        if ($d >= 1) {
            $r = round($d);
            return $r . ' ' . $str . ($r > 1 ? 's' : '') . ' ago';
        }
    }
}
开发者ID:ramasubbaiya,项目名称:PHP_Term_1_Course_Work,代码行数:31,代码来源:util.php

示例13: displayHeader

<?php

require "menu.inc";
displayHeader("Credits");
?>
<TR><TD>
<p>
Snowball, and most of the current stemming algorithms were written by
Dr Martin Porter, who also prepared the material for the Website.
The Snowball to Java codegenerator, and supporting Java libraries, were
contributed by Richard Boulton.
Dr Andrew Macfarlane, of City University, London, gave much
initial encouragement and proofreading
assistance.
</p>

<p>
The website was established by Richard Boulton, who is still in charge of its
administration.
</p>

<p>
Linguistic assistance for Russian, German and Dutch has been provided by

<a href="http://www.patrickmiles.co.uk/">Patrick Miles</a>
(of the
Patrick Miles Translation Agency, Cambridge, UK). Pat is a distinguished
translator, whose English versions of Chekhov have appeared on the London
stage.
</p>
开发者ID:assem-ch,项目名称:arabicstemmer-demo,代码行数:30,代码来源:credits.php

示例14: displayFooter

     echo "      <p align=\"center\">&nbsp;</p>\n";
     echo "      <p align=\"center\"><b><font size=\"2\" face=\"Tahoma\">Sukses !!! Meng-aktifkan member : {$member['nama']} !</font></b></p>\n";
     echo "      <p align=\"center\"><font size=\"2\" face=\"Tahoma\">\n";
     echo "      <p align=\"center\">&nbsp;</td>\n";
     echo "    </tr>\n";
     echo "  </table>\n";
     echo "  </center>\n";
     echo "</div>\n";
     echo " </body>\n";
     echo "<p align=\"center\"><a href=\"admin_menu.php\"><b>Back to Admin</b></a></p>\n";
     displayFooter();
 } else {
     dbConnect();
     $result = mysql_query("SELECT * FROM member where username='{$user}'") or error(mysql_error());
     $member = mysql_fetch_array($result);
     displayHeader("Member Area > Aktifkan Member");
     //echo "<div align=\"center\">\n";
     echo " <center>\n";
     echo "         <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"549\" id=\"AutoNumber17\">\n";
     echo "           <tr>\n";
     //echo "    <TD align=center width=\"556\">\n";
     //echo "<p style=\"margin-top: 0; margin-bottom: 0\"><b>\n";
     echo "<font face=\"Verdana\" color=\"#000080\">MENGAKTIFKAN MEMBER : <b>{$member['nama']}</b></font></b></p>\n";
     echo "<p style=\"margin-top: 0; margin-bottom: 0\" align=\"justify\">\n";
     echo "<b><font face=\"Verdana\" size=\"2\">Tata caranya :</font></b><ul>\n";
     echo "  <li>\n";
     echo "<p style=\"margin-top: 0; margin-bottom: 0\" align=\"justify\">\n";
     echo "<font face=\"Verdana\" size=\"2\">Masukkan <b>Nomor ID</b> member yang bersangkutan \n";
     echo "pada kolom yang disediakan.</font></li>\n";
     echo "  <li>\n";
     echo "<p style=\"margin-top: 0; margin-bottom: 0\" align=\"justify\">\n";
开发者ID:rblagahit,项目名称:IndoMLM,代码行数:31,代码来源:admin_aktif2.php

示例15: header

<?php

require "label.php";
if (!verifyAdmin()) {
    header("Location: admin.php");
}
displayHeader("Admin > Detail Member");
//$username=ltrim($username);
dbConnect();
$result = mysql_query("SELECT * FROM member where username='{$user}'") or error(mysql_error());
$member = mysql_fetch_array($result);
if (mysql_num_rows($result) != 1) {
    error("Username yang anda cari tidak ada dalam database ");
}
echo "<p style=\"margin-top: 0; margin-bottom: 0\" align=\"center\"><font size=\"2\">Detail Member username = <b>{$member['username']}</b></font></p>\n";
echo "<div align=\"center\">\n";
echo "  <center>\n";
echo "  <table border=\"0\" cellspacing=\"0\" width=\"450\" cellpadding=\"5\"><font size=\"1\" face=\"Tahoma\" >\n";
echo "    <tr class=\"frame\">\n";
echo "      <td width=\"30%\" height=\"25\" align=\"left\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#FFFFFF\"><b></b></font></td>\n";
echo "      <td width=\"70%\" height=\"25\" align=\"left\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#FFFFFF\"><b>Detail Data Member</b></font></td>\n";
echo "    </tr>\n";
$bgColor = "#E6E6E6";
echo "    <tr>\n";
echo "      <td width=\"30%\" height=\"25\" align=\"left\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#000080\">Username</td>\n";
echo "      <td width=\"70%\" height=\"25\" align=\"left\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#000080\">: {$member['username']}</td>\n";
echo "    </tr>\n";
echo "    <tr>\n";
echo "      <td width=\"30%\" height=\"25\" align=\"left\" bgcolor=\"{$bgColor}\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#000080\">Password</td>\n";
echo "      <td width=\"70%\" height=\"25\" align=\"left\" bgcolor=\"{$bgColor}\"><font face=\"verdana\" style=\"font-size: 8pt\" color=\"#000080\">: {$member['passwd']}</td>\n";
echo "    </tr>\n";
开发者ID:rblagahit,项目名称:IndoMLM,代码行数:31,代码来源:admin_detail.php


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