Location: PHPKode > projects > TVEz - Media Library > tvez-0.2.1/html/movies/views/print_links.php
<?php

# ------------------------------------------------------------------------------
#
# The links to edit, play and view the imdb page
#
# ------------------------------------------------------------------------------
#
# Copyright (C) 2003 Christian Eheim and Alex Pachikov
#                                                                               
# This file is part of TVEz (tvez.sourceforge.net).
#                                                                               
# TVEz 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.
#                                                                               
# TVEz 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.
#                                                                               
# You should have received a copy of the GNU General Public License
# along with TVEz; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#                                                                               
# ------------------------------------------------------------------------------
#
# Created on 02/12/2003 by Christian Eheim (hide@address.com)
#
# LAST MODIFIED:
# $Date: 2004/08/31 08:13:44 $
# $Revision: 1.5 $
# $Author: pachikov $
#
# ------------------------------------------------------------------------------

	# Only show the play link if the user is looged in
	if (isset($_SESSION['tvezAccess']) || !$LOGIN_ENABLED) {
		echo '<a href="player/plcontrol.php?tvst=play '.$movie["path"].'" target="playlist"><img src="player/images/play.gif" border="0" alt="'.localize_string("Play '==1=='", $movie["title"]).'" title="'.localize_string("Play '==1=='",$movie["title"]).'"></a>';
		echo '&nbsp;';
	}
	echo '<a href="'.$IMDB_HTTP.'/Title?'.$movie["id"].'" target="_blank"><img src="images/icons/layout.gif" border="0" alt="'.localize_string("Database").'" title="'.localize_string("IMDB Info").'"></a>';
	echo '&nbsp;';
	# Only show the edit link if the user is an admin
	if ( (isset($_SESSION['tvezAccess']) && $_SESSION['tvezAccess'] == "admin")
			|| !$LOGIN_ENABLED )
		echo '<a href="'.$_REQUEST['PHP_SELF'].'?content=admin&page=movies&edit='.$movie["id"].'"><img alt="'.localize_string("Edit").'" src="images/icons/broken.gif" border="0" title="'.localize_string("Edit this movie").'"></a>';
	if ($view != "large") {
		echo '&nbsp;';
		echo '<a href="'.$_REQUEST['PHP_SELF'].'?content=movies&page=movies&field=id&search='.$movie["id"].'&view=large"><img alt="'.localize_string("Picture").'" src="images/icons/index.gif" border="0" title="'.localize_string("Large Image View").'"></a>
	';
	}

?>
Return current item: TVEz - Media Library