Location: PHPKode > scripts > PhotoblogX > photoblogx-master/index.php
<?php
	session_cache_limiter('private, must-revalidate');
	$cache_limit = session_cache_limiter();
	session_cache_expire(30);
	$cache_expire = session_cache_expire();
	session_start();
?><html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="author" content="PhotoblogX" /><?php
			require_once('pbadmin/printhead.php');
		?><link href="css/main.css" type="text/css" rel="stylesheet" />
		<!--[if IE 6]> 
			<link href="css/ie.css" type="text/css" rel="stylesheet" />
		<![endif]-->
		<!--[if IE 7]>
			<link href="css/ie.css" type="text/css" rel="stylesheet" />
		<![endif]-->
		<!--[if IE 8]>
			<link href="css/ie.css" type="text/css" rel="stylesheet" />
		<![endif]-->
		<!--[if IE 9]>
			<link href="css/ie.css" type="text/css" rel="stylesheet" />
		<![endif]-->
		<link href="css/colorbox.css" type="text/css" rel="stylesheet" media="screen" />
		
		<link rel="alternate" href="feed.php" title="RSS feed" type="application/rss+xml" />
		
		<script src="http://code.jquery.com/jquery-1.8.3.js" type="text/javascript"></script>
		<script src="js/tooltip.js" type="text/javascript"></script>
		<script src="js/resize.js" type="text/javascript"></script>
		<script src="js/colorbox.js" type="text/javascript"></script>
		<script type="text/javascript">
			function start() {
				$('#main_photo').ImageResize({ height: 460, width: 700 });
				$('#main_photo').fadeIn(3000);
			};
			function showform() {
				$('#make_comment').fadeIn(1000);
			};
			function hideform() {
				$('#make_comment').fadeOut(1000);
			};
			function showcomments() {
				$('#comments_display').fadeIn(1000);
			};
			function hidecomments() {
				$('#comments_display').fadeOut(1000);
			};
			$(document).ready(function (){
				$('a[title],input[title],img[title]').Tooltip();
				$('#main_photo').hide();
				$('#make_comment').hide();
				$('#comments_display').hide();
				$('.back, .forward, input').fadeTo(500, 0.40).css('background-color','#333333')
				$('.back, .forward').hover(
					function () {
						$(this).fadeTo(500, 0.90).css('background-color','#111111');
					},
					function () {
						$(this).fadeTo(500, 0.40).css('background-color','#333333');
				});
				$('input').focusin(function() {
					$(this).fadeTo(500, 0.90).css('background-color','#666');
				});
				$('input').focusout(function() {
					$(this).fadeTo(500, 0.40).css('background-color','#444');
				});
				$('.photo_colorbox').colorbox({transition:"fade", opacity: .95});
				$('#insert-comment').live('click', function(){
					var id_comment = $('input#comment').attr("value");
					var name_comment = $('input#name-comment').attr("value");
					var mail_comment = $('input#mail-comment').attr("value");
					var content_comment = $('input#content-comment').attr("value");
					var captcha = $('input#captcha-comment').attr("value");
					$.ajax({
						type: 'GET',
						url: 'comment.php',
						data: { comment_id : id_comment, comment_name : name_comment, comment_mail : mail_comment, comment_content : content_comment, comment_captcha : captcha },
						dataType: 'json',
						success: function(response) {
							if (response == null) {
								$("div#comment").html("<p>Either You didn't fill needed fields or captcha was wrong.</p><p>Refresh Page or type F5 to add comment properly.</p>");
							} else if (response.comment.insert == "yes") {
								var comment_name = response.comment.name;
								var comment_content = response.comment.content;
								var comment_number = response.comment.number;
								$("div#comment").html('<p>Comment succesfully sent.</p><p>Name: '+comment_name+'</p><p>Comment: '+comment_content+'</p><br />');
								$(".comments-number").html('<a href="javascript: void(0)" onclick="showcomments();" title="Watch comments" alt="Watch Comments">&nbsp;Watch comments ('+comment_number+')</a>');
								$("#comments_display").prepend('<p>Name:&nbsp;'+comment_name+'</p><p>Comment:&nbsp;'+comment_content+'<p><br />');
								$(".hide-comment").html('<p><a href="javascript: void(0);" onclick="hidecomments();" title="Hide comments" alt="Hide comments">Hide comments</a></p><br />');
							}
						}
					});
					return false;
				});
			});
		</script>
		
	</head>
	<body onload="start();">
			<div class="header" id="header-margin">
				<p><a href="index.php"<?php require_once('pbadmin/titleprint.php'); ?></p>
			</div>
			<div id="links">
				<p><a href="index.php" title="Start Page" alt="Start Page">Start Page</a>&nbsp;|&nbsp;<a href="archive.php" title="Archive of Photos" alt="Archive of Photos">Archive of Photos</a>&nbsp;|&nbsp;<a href="about.php" title="About" alt="About">About</a></p>
			</div>
			<br /><?php
				include('photo.php');
			?><div class="footer" id="footer-margin"><?php
				include('footer.php');
			?></div>
			<br />
			<div id="login_index">
			<p><a href="feed.php" title="Subscribe To Feed" alt="Subscribe To Feed">Subscribe To Feed</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="pbadmin/index.php" title="Log In to Admin Area" alt="Log In to Admin Area">Log In to Admin Area</a></p><br />
			</div>
			<br />
	</body>
</html>
Return current item: PhotoblogX