Example #1
0
&k=<?php 
    echo $k;
    ?>
"  title="<?php 
    echo $lang["fullscreenpreview"];
    ?>
"><img src="../gfx/interface/sp.gif" alt="<?php 
    echo $lang["fullscreenpreview"];
    ?>
" width="22" height="12" /></a></span>
		
		<?php 
    if (!checkperm("b") && $k == "") {
        ?>
		<span class="IconCollect"><?php 
        echo add_to_collection_link($ref, $search);
        ?>
<img src="../gfx/interface/sp.gif" alt="" width="22" height="12" /></a></span>
		<?php 
    }
    ?>

		<?php 
    if (!checkperm("b") && substr($search, 0, 11) == "!collection" && $k == "") {
        ?>
		
		<?php 
        if ($search == "!collection" . $usercollection) {
            ?>
		<span class="IconCollectOut"><?php 
            echo remove_from_collection_link($ref, $search);
Example #2
0
">&lt;&nbsp;<?php 
        echo $lang["backtoresourceview"];
        ?>
</a>
<?php 
    }
    /*end hook replacepreviewbacktoview*/
    if ($k == "") {
        ?>

<?php 
        if (!checkperm("b")) {
            ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php 
            echo add_to_collection_link(htmlspecialchars($ref), htmlspecialchars($search));
            ?>
+&nbsp;<?php 
            echo $lang["action-addtocollection"];
            ?>
</a><?php 
        }
        if ($search == "!collection" . $usercollection) {
            ?>
&nbsp;&nbsp;<?php 
            echo remove_from_collection_link(htmlspecialchars($ref), htmlspecialchars($search));
            ?>
&minus;&nbsp;<?php 
            echo $lang["action-removefromcollection"];
            ?>
</a><?php 
Example #3
0
		$mp3path=get_resource_path($ref,false,"",false,"mp3");
	}
}

include "../include/header.php";
?>

<?php if(!hook("fullpreviewresultnav")){ ?>
<?php if (!hook("replacepreviewbacktoview")){?>
<p style="margin:7px 0 7px 0;padding:0;"><a class="enterLink" href="<?php echo $baseurl_short?>pages/view.php?ref=<?php echo urlencode($ref) ?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>&k=<?php echo urlencode($k)?>&<?php echo hook("viewextraurl") ?>">&lt; <?php echo $lang["backtoview"]?></a>
<?php } /*end hook replacepreviewbacktoview*/ ?>
<?php if ($k=="") { ?>

<?php if (!checkperm("b")) { ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php echo add_to_collection_link(htmlspecialchars($ref),htmlspecialchars($search))?>+&nbsp;<?php echo $lang["action-addtocollection"]?></a><?php } ?>
<?php if ($search=="!collection" . $usercollection) { ?>&nbsp;&nbsp;<?php echo remove_from_collection_link(htmlspecialchars($ref),htmlspecialchars($search))?>&minus;&nbsp;<?php echo $lang["action-removefromcollection"]?></a><?php } ?>
<?php } ?>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="prevLink" onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/preview.php?from=<?php echo urlencode(getval("from",""))?>&ref=<?php echo urlencode($ref) ?>&k=<?php echo urlencode($k)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>&go=previous&<?php echo hook("nextpreviousextraurl") ?>">&lt;&nbsp;<?php echo $lang["previousresult"]?></a>
|
<a  class="upLink" onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/search.php?<?php if (strpos($search,"!")!==false) {?>search=<?php echo urlencode($search)?>&k=<?php echo urlencode($k)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?><?php } ?>&<?php echo hook("searchextraurl") ?>"><?php echo $lang["viewallresults"]?></a>
|
<a class="nextLink" onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/preview.php?from=<?php echo urlencode(getval("from",""))?>&ref=<?php echo urlencode($ref) ?>&k=<?php echo urlencode($k)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>&go=next&<?php echo hook("nextpreviousextraurl") ?>"><?php echo $lang["nextresult"]?>&nbsp;&gt;</a>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<?php

if (!hook("replacepreviewpager")){
Example #4
0
            function add_download_column($ref, $size_info, $downloadthissize)
            {
                global $save_as, $direct_download, $order_by, $lang, $baseurl_short, $baseurl, $k, $search, $request_adds_to_collection, $offset, $archive, $sort;
                if ($downloadthissize) {
                    ?>
<td class="DownloadButton"><?php 
                    if (!$direct_download || $save_as) {
                        global $size_info_array;
                        $size_info_array = $size_info;
                        if (!hook("downloadbuttonreplace")) {
                            ?>
<a id="downloadlink" <?php 
                            if (!hook("downloadlink", "", array("ref=" . $ref . "&k=" . $k . "&size=" . $size_info["id"] . "&ext=" . $size_info["extension"]))) {
                                ?>
href="<?php 
                                echo $baseurl;
                                ?>
/pages/terms.php?ref=<?php 
                                echo urlencode($ref);
                                ?>
&amp;search=<?php 
                                echo urlencode($search);
                                ?>
&amp;k=<?php 
                                echo urlencode($k);
                                ?>
&amp;url=<?php 
                                echo urlencode("pages/download_progress.php?ref=" . $ref . "&size=" . $size_info["id"] . "&ext=" . $size_info["extension"] . "&k=" . $k . "&search=" . urlencode($search) . "&offset=" . $offset . "&archive=" . $archive . "&sort=" . $sort . "&order_by=" . urlencode($order_by));
                                ?>
"<?php 
                            }
                            ?>
 onClick="return CentralSpaceLoad(this,true);"><?php 
                            echo $lang["action-download"];
                            ?>
</a><?php 
                        }
                    } else {
                        ?>
<a id="downloadlink" href="#" onclick="directDownload('<?php 
                        echo $baseurl_short;
                        ?>
pages/download_progress.php?ref=<?php 
                        echo urlencode($ref);
                        ?>
&size=<?php 
                        echo $size_info['id'];
                        ?>
&ext=<?php 
                        echo $size_info['extension'];
                        ?>
&k=<?php 
                        echo urlencode($k);
                        ?>
')"><?php 
                        echo $lang["action-download"];
                        ?>
</a><?php 
                    }
                    unset($size_info_array);
                    ?>
</td><?php 
                } else {
                    if (checkperm("q")) {
                        if (!hook("resourcerequest")) {
                            ?>
<td class="DownloadButton"><?php 
                            if ($request_adds_to_collection) {
                                echo add_to_collection_link($ref, $search, "alert('" . $lang["requestaddedtocollection"] . "');", $size_info["id"]);
                            } else {
                                ?>
<a href="<?php 
                                echo $baseurl_short;
                                ?>
pages/resource_request.php?ref=<?php 
                                echo urlencode($ref);
                                ?>
&k=<?php 
                                echo getval("k", "");
                                ?>
" onClick="return CentralSpaceLoad(this,true);"><?php 
                            }
                            echo $lang["action-request"];
                            ?>
</a></td><?php 
                        }
                    } else {
                        # No access to this size, and the request functionality has been disabled. Show just 'restricted'.
                        ?>
<td class="DownloadButton DownloadDisabled"><?php 
                        echo $lang["access1"];
                        ?>
</td><?php 
                    }
                }
            }
Example #5
0


# ----------------------------- Resource Actions -------------------------------------
hook ("resourceactions") ?>
<?php if ($k=="") { ?>
<?php if (!hook("replaceresourceactions")) {?>
	
	
	<?php if ((!checkperm("b"))
	&&
	
	(!(($userrequestmode==2 || $userrequestmode==3) && $basket_stores_size))
	
	) { ?>
	<li><?php echo add_to_collection_link($ref,$search)?>&gt; <?php echo $lang["action-addtocollection"]?></a></li>
	<?php if ($search=="!collection" . $usercollection) { ?><li><?php echo remove_from_collection_link($ref,$search)?>&gt; <?php echo $lang["action-removefromcollection"]?></a></li><?php } ?>
	<?php } ?>
	
	
	<?php if ($allow_share && ($access==0 || ($access==1 && $restricted_share))) { ?>
		<li><a href="<?php echo $baseurl_short?>pages/resource_email.php?ref=<?php echo urlencode($ref)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>"  onClick="return CentralSpaceLoad(this,true);">&gt; <?php echo $lang["emailresource"]?></a></li>
		<?php if (!$disable_link_in_view) { ?><li><a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl?>/?r=<?php echo urlencode($ref)?>">&gt; <?php echo $lang["link"]?></a></li><?php }} ?>
	<?php if ($edit_access) { ?>
		<li><a href="<?php echo $baseurl_short?>pages/edit.php?ref=<?php echo urlencode($ref)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>"    onClick="return CentralSpaceLoad(this,true);">&gt; 
			<?php echo $lang["action-edit"]?></a></li>
	<?php if (!checkperm("D") and !(isset($allow_resource_deletion) && !$allow_resource_deletion)){?><li><a href="<?php echo $baseurl_short?>pages/delete.php?ref=<?php echo urlencode($ref)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>" onClick="return CentralSpaceLoad(this,true);">&gt; <?php if ($resource["archive"]==3){echo $lang["action-delete_permanently"];} else {echo $lang["action-delete"];}?></a><?php } ?></li>
	<?php if (! $disable_alternative_files) { ?>
	<li><a href="<?php echo $baseurl_short?>pages/alternative_files.php?ref=<?php echo urlencode($ref)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>" onClick="return CentralSpaceLoad(this,true);">&gt;&nbsp;<?php echo $lang["managealternativefiles"]?></a></li><?php } ?>

	<?php } ?>
Example #6
0
		<?php } # end hook thumbscheckboxes?>
		<?php if ($display_resource_id_in_thumbnail && $ref>0) { echo htmlspecialchars($ref); } else { ?>&nbsp;<?php } ?>
		</div>	

		<?php if (!hook("replaceresourcetools")){?>

		<!-- Preview icon -->
		<?php if (!hook("replacefullscreenpreviewicon")){?>
		<span class="IconPreview"><a onClick="return CentralSpaceLoad(this,true);" href="<?php echo $baseurl_short?>pages/preview.php?from=search&ref=<?php echo urlencode($ref)?>&ext=<?php echo $result[$n]["preview_extension"]?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>&k=<?php echo urlencode($k)?>" title="<?php echo $lang["fullscreenpreview"]?>"><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="<?php echo $lang["fullscreenpreview"]?>" width="22" height="12" /></a></span>
		<?php $showkeypreview = true; ?>
		<?php } /* end hook replacefullscreenpreviewicon */?>

		<!-- Add to collection icon -->
		<?php if(!hook("iconcollect")){?>
		<?php if (!checkperm("b") && $k=="" && !$use_checkboxes_for_selection) { ?>
		<span class="IconCollect"><?php echo add_to_collection_link($ref,$search)?><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="" width="22" height="12"/></a></span>
		<?php $showkeycollect = true; ?>
		<?php } ?>
		<?php } # end hook iconcollect ?>

		<!-- Remove from collection icon -->
		<?php if (!checkperm("b") && substr($search,0,11)=="!collection" && $k=="" && !$use_checkboxes_for_selection) { ?>
		<?php if ($search=="!collection".$usercollection){?><span class="IconCollectOut"><?php echo remove_from_collection_link($ref,$search)?><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="" width="22" height="12" /></a></span>
		<?php $showkeycollectout = true; ?>
		<?php } ?>
		<?php } ?>

		<!-- Email icon -->
		<?php if ($allow_share && $k=="") { ?><span class="IconEmail"><a href="<?php echo $baseurl_short?>pages/resource_email.php?ref=<?php echo urlencode($ref)?>&search=<?php echo urlencode($search)?>&offset=<?php echo urlencode($offset)?>&order_by=<?php echo urlencode($order_by)?>&sort=<?php echo urlencode($sort)?>&archive=<?php echo urlencode($archive)?>&k=<?php echo urlencode($k)?>"  onClick="return CentralSpaceLoad(this,true);" title="<?php echo $lang["emailresource"]?>"><img src="<?php echo $baseurl_short?>gfx/interface/sp.gif" alt="" width="16" height="12" /></a></span>
		<?php $showkeyemail = true; ?>
		<?php } ?>