gzuncompress NineSec Team Shell
NineSec Team Shell
Server IP : 172.19.0.3  /  Your IP : 216.73.216.178
Web Server : Apache/2.4
System : Linux 880f91b28fd7 5.15.0-117-generic #127~20.04.1-Ubuntu SMP Thu Jul 11 15:36:12 UTC 2024 x86_64
User : tomlinde ( 155017)
PHP Version : 5.6.40
Disable Function : dl, syslog, opcache_get_status
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/webpages/lima-city/tomlinde/html/gallery_peggy/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/webpages/lima-city/tomlinde/html/gallery_peggy/pictures.xsl~
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
	<html>
		<xsl:choose>
			<xsl:when test="count(//@current) > 0">
				<xsl:call-template name="fullscreen"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="overview"/>
			</xsl:otherwise>
		</xsl:choose>
	</html>
</xsl:template>

<xsl:template name="overview">
	<head>
		<title><xsl:value-of select="//title"/></title>
		<link rel="stylesheet" type="text/css" href="style.css" />
		<link rel="shortcut icon" type="image/x-icon" href="image/favicon.ico" />
	</head>
	<body>
		<div id="title_box">
			<h2><xsl:value-of select="//title"/></h2>
		</div>
		<xsl:call-template name="menu"/>
		<div id="main">
			<xsl:if test="/website/active != 'Other'">
				<xsl:apply-templates select="/website/folder[ @name = /website/active]" />
			</xsl:if>
			<xsl:if test="/website/active = 'Other'">
			<div class="folder">
				<div class="folder_head">Other</div>
				<xsl:for-each select="/website/img">
					<xsl:sort select="." />
					<xsl:apply-templates select="." />
				</xsl:for-each>
			</div>
			</xsl:if>
		</div>
		<xsl:call-template name="menu"/>
	</body>
</xsl:template>

<xsl:template name="fullscreen">
	<head>
		<title>Javascript image test</title>
		<style>
			body {
				background:black;
				width:100%;
				margin:0;
				padding:10px 0 0 0;
			}
		</style>
		<script type="text/javascript">
			<xsl:call-template name="imageArray"/>
		</script>
		<script src="fullscreen.js" type="text/javascript"></script>
		<link rel="shortcut icon" type="image/x-icon" href="image/favicon.ico" />
	</head>
	<body onresize="fitPic()">
		<div id="container" style="text-align:center;">
			<img id="pic" onclick="nextPic()" style="display:none;" onload="fitPic(); updateCache(currentPic, 3);">
				
				<xsl:attribute name="src">
					<xsl:choose>
						<xsl:when test="/website/active = 'Other'">
							pictures/<xsl:value-of select="//img[@current = 'true']" />
						</xsl:when>
						<xsl:otherwise>
							pictures/<xsl:value-of select="/website/active" />/<xsl:value-of select="//img[@current = 'true']" />
						</xsl:otherwise>
					</xsl:choose>
				</xsl:attribute>
			</img>
		</div>
	</body>
</xsl:template>

<xsl:template match="//folder">
	<div class="folder">
		<div class="folder_head">
			<xsl:value-of select="./@name" />
		</div>
		<xsl:for-each select="./img">
			<xsl:sort select="." />
			<xsl:apply-templates select="." />
		</xsl:for-each>
	</div>
</xsl:template>

<xsl:template match="//img">
	<div class="pic_box">
		<a>
		<xsl:attribute name="href">
			index.php?active=<xsl:value-of select="/website/active" />&amp;p=<xsl:value-of select="." />
		</xsl:attribute>
			<img>
				<xsl:attribute name="src">
					cachedImage.php?path=<xsl:value-of select="../@name" />/&amp;name=<xsl:value-of select="." />&amp;size=<xsl:for-each select="/website/cache/size">
						<xsl:sort select="number(substring-before(.,'x'))" data-type="number" />
						<xsl:if test="position() = 1">
							<xsl:value-of select="." />
						</xsl:if>
					</xsl:for-each>
				</xsl:attribute>
			</img>
		</a>
	</div>
</xsl:template>

<xsl:template name="menu">
	<div class="menu">
		<xsl:for-each select="/website/folder">
			<xsl:sort select="./@name" />
			<a>
				<xsl:choose>
					<xsl:when test="./@name = /website/active">
						<xsl:attribute name="class">menu_entry menu_selected</xsl:attribute>
					</xsl:when>
					<xsl:otherwise>
						<xsl:attribute name="class">menu_entry</xsl:attribute>
					</xsl:otherwise>
				</xsl:choose>
				<xsl:attribute name="href">
					index.php?active=<xsl:value-of select="./@name" />
				</xsl:attribute>
				<xsl:value-of select="./@name" />
			</a>
		</xsl:for-each>
<a class="menu_entry" href="http://www.toms-web-design.de">Webmaster</a>
		
		<!--<a href="index.php?active=Other">
			<xsl:choose>
				<xsl:when test="/website/active = 'Other'">
					<xsl:attribute name="class">menu_entry menu_selected</xsl:attribute>
				</xsl:when>
				<xsl:otherwise>
					<xsl:attribute name="class">menu_entry</xsl:attribute>
				</xsl:otherwise>
			</xsl:choose>
		Other</a>
		
		<a class="menu_entry" href="./videos/">videos</a>-->
	</div>
</xsl:template>

<xsl:template name="imageArray">
	var myPics=new Array();
	<xsl:choose>
		<xsl:when test="/website/active = 'Other'">
			<xsl:for-each select="/website/img"><xsl:sort select="." />
				myPics[<xsl:value-of select="position()-1"/>]="<xsl:value-of select="."/>";
				<xsl:if test="./@current = 'true'">currentPic = <xsl:value-of select="position()-1"/>;</xsl:if>
			</xsl:for-each>
		</xsl:when>
		<xsl:otherwise>
			<xsl:for-each select="//img[../@name = /website/active] "><xsl:sort select="." />
				myPics[<xsl:value-of select="position()-1"/>]="<xsl:value-of select="."/>";
				<xsl:if test="./@current = 'true'">currentPic = <xsl:value-of select="position()-1"/>;</xsl:if>
			</xsl:for-each>
		</xsl:otherwise>
	</xsl:choose>
	var activeFolder = "<xsl:value-of select="/website/active"/>";
	
	var cacheSizes = new Array();
	<xsl:for-each select="/website/cache/size"><xsl:sort select="number(substring-before(.,'x'))" data-type="number" />
	cacheSizes[<xsl:value-of select="position()-1"/>]="<xsl:value-of select="."/>";
	</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

NineSec Team - 2022