⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tpl_public_view_image.php

📁 一款文件上传程序
💻 PHP
字号:
<!-- tpl_public_view_image.php -->
<?php
global $UPL;
if ( !isset ( $page_title ) )   $page_title = 'Uploader';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<base href="<?=$UPL['SETTINGS']['uploader_url']?>" />
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<title><?=$fname;?> - Uploader v6</title>
<link rel="stylesheet" type="text/css" href="templates/default2/style.css" media="all">
<script type="text/javascript" src="templates/default2/javascript.js"></script>
<script type="text/javascript">
function resizeMe ( image )
{
	if ( !image ) return false;
	var container = getObj ( 'container' );
	if ( !container ) return false;
	if ( image.width >= 740 ) container.style.width = ( image.width + 45 ) + 'px';
	image.parentNode.style.width = image.width + 'px';
	image.parentNode.style.margin = '0px auto 0px auto';
}
</script>
</head>
<body>
    <noscript>
        <p style="text-align:center;font-size:1.2em;color:red;font-weight:bold;">Please enable Javascript to properly access this service.</p>
    </noscript>
    <div id="container">
        <div id="container2">
			<div id="top">
				Welcome <span style="color:#FF8000;"><?=$UPL['USER']['username']?>!</span>
			</div>
			<div id="menu">
				<div id="menu_links">
					<div style="float:left;">
						<a href=".">Main</a>
						<a href="public.php">Public Upload</a>
						<?php /* show browse link if user is logged in or public browsing is enabled */ if ( $UPL['USER']['logged_in'] || $UPL['SETTINGS']['browsing'] == 'any' ) : ?>
						<a href="browse.php">Members</a>
						<?php endif; ?>
						<?php /* If user is logged in, show this menu */ if ( $UPL['USER']['logged_in'] ) : ?>
						<a href="myfiles.php">My Files</a>
						<a href="upload.php">Upload</a>
						<?php /* Otherwise, show this menu instead */ else: ?>
						<a href="account.php?action=login">Login</a>
						<a href="account.php?action=register">Register</a>
						<?php endif; ?>
					</div>

					<?php /* If user is logged in, show this menu */ if ( $UPL['USER']['logged_in'] ) : ?>
					<div style="float:right;">
						<a href="usercp.php">UserCP</a>
						<a href="account.php?action=logout" onclick="return confirm('Confirm logout?');">Logout</a>
					</div>
					<?php endif;?>
				</div>
			</div>

            <div id="content">
				<?php if ( isset ( $upload_info ) && is_array ( $upload_info ) ) : ?>
				<p style="padding:5px 5px 15px 0px;color:#505050;">
					This image was uploaded by <span style="color:#000;"><?=$upload_info['upload_name']==''?'an Anonymous user':htmlentities($upload_info['upload_name'])?></span>.
					<br />
					<?php if ( count ( $prev_link ) ) : ?>
					<a href="<?=$prev_link['file_url']?>" class="special" title="<?=$prev_link['file_name']?>">&laquo; Previous</a> -
					<?php endif; ?>
					<a href="<?=$upload_info['view_upload_url']?>" class="special">View all images in this set</a>
					<?php if ( count ( $next_link ) ) : ?>
					- <a href="<?=$next_link['file_url']?>" class="special" title="<?=$next_link['file_name']?>">Next image &raquo;</a>
					<?php endif; ?>
				</p>
				<?php endif; ?>


                <div style="border: 1px solid #e0e0e0;padding:6px;text-align:center;">
					<img src="<?=$furl?>" alt="<?=$fname?>" title="<?=$fname?>" onload="resizeMe(this);" />
				</div>
				<div class="spacer"></div>
            </div>
        </div>
    </div>
    <div id="credit">
        <!-- This script is copyrighted! You may not remove this. -->
		Powered by Uploaderv6.2 &copy; <a href="http://www.celerondude.com/page_php">www.celerondude.com</a>
    </div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -