<?php

include "../include/db.php";
include "../include/general.php";
include "../include/collections_functions.php";
# External access support (authenticate only if no key provided, or if invalid access key provided)
$k = getvalescaped("k", "");
if ($k == "" || !check_access_key_collection(getvalescaped("collection", "", true), $k)) {
    include "../include/authenticate.php";
}
include "../include/resource_functions.php";
include "../include/search_functions.php";
$collection = getvalescaped("collection", "", true);
$errors = "";
$done = false;
# Fetch collection data
$cinfo = get_collection($collection);
if ($cinfo === false) {
    exit("Collection not found.");
}
# Check access
if (!$cinfo["request_feedback"]) {
    exit("Access denied.");
}
# Check that comments have been added.
$comments = get_collection_comments($collection);
if (count($comments) == 0 && $feedback_resource_select == false) {
    $errors = $lang["feedbacknocomments"];
}
if (getval("save", "") != "") {
    # Save comment
<?php
include_once dirname(__FILE__)."/../include/db.php";
include_once dirname(__FILE__)."/../include/general.php";
include_once dirname(__FILE__)."/../include/collections_functions.php";
# External access support (authenticate only if no key provided, or if invalid access key provided)
$k=getvalescaped("k","");if (($k=="") || (!check_access_key_collection(getvalescaped("collection","",true),$k))) {include_once dirname(__FILE__)."/../include/authenticate.php";}
if (checkperm("b")){exit($lang["error-permissiondenied"]);}
include_once dirname(__FILE__)."/../include/research_functions.php";
include_once dirname(__FILE__)."/../include/resource_functions.php";
include_once dirname(__FILE__)."/../include/search_functions.php";
include_once dirname(__FILE__) . '/../include/render_functions.php';


// copied from collection_manage to support compact style collection adds (without redirecting to collection_manage)
$addcollection=getvalescaped("addcollection","");
if ($addcollection!="")
	{
	# Add someone else's collection to your My Collections
	add_collection($userref,$addcollection);
	set_user_collection($userref,$addcollection);
	refresh_collection_frame();
	
   	# Log this
	daily_stat("Add public collection",$userref);
	}
/////

#Remove all from collection
$emptycollection = getvalescaped("emptycollection","",true);
if($emptycollection!='' && getvalescaped("submitted","")=='removeall' && getval("removeall","")!="" && collection_writeable($emptycollection))
    {
Example #3
0
<?php

include "../../../include/db.php";
include "../../../include/general.php";
include "../../../include/resource_functions.php";
include "../../../include/collections_functions.php";
include "../../../include/search_functions.php";
# Get variables and check key is valid.
$ref = getvalescaped("ref", "");
$key = getvalescaped("key", "");
$size = getvalescaped("size", "pre");
$transition = (int) getvalescaped("transition", 4);
$width = getvalescaped("width", "");
$player_width = $width;
# Check key is valid
if (!check_access_key_collection($ref, $key)) {
    exit($lang["embedslideshow_notavailable"]);
}
# Load watermark settings
$use_watermark = check_use_watermark();
?>
<html>
<head>
<link href="../css/embedslideshow.css" rel="stylesheet" type="text/css" media="screen,projection,print" /> 
<script src="../../../lib/js/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>

<div class="embedslideshow_player">
<div class="embedslideshow_preview" id="embedslideshow_preview" style="width:<?php 
echo $width;
Example #4
0
<?php

include "../include/db.php";
include "../include/general.php";
include "../include/resource_functions.php";
//for checking scr access
include "../include/search_functions.php";
include "../include/collections_functions.php";
# External access support (authenticate only if no key provided, or if invalid access key provided)
$s = explode(" ", getvalescaped("search", ""));
$k = getvalescaped("k", "");
if ($k == "" || !check_access_key_collection(str_replace("!collection", "", $s[0]), $k)) {
    include "../include/authenticate.php";
}
# Disable info box for external users.
if ($k != "") {
    $infobox = false;
} else {
    #note current user collection for add/remove links
    $user = get_user($userref);
    $usercollection = $user['current_collection'];
}
# Disable checkboxes for external users.
if ($k != "") {
    $use_checkboxes_for_selection = false;
}
$search = getvalescaped("search", "");
hook("moresearchcriteria");
# create a display_fields array with information needed for detailed field highlighting
$df = array();
$all_field_info = get_fields_for_search_display(array_unique(array_merge($sort_fields, $thumbs_display_fields, $list_display_fields, $xl_thumbs_display_fields, $small_thumbs_display_fields)));
Example #5
0
<?php
include "../include/db.php";
include "../include/general.php";
include "../include/resource_functions.php"; //for checking scr access
include "../include/search_functions.php";
include "../include/collections_functions.php";

# External access support (authenticate only if no key provided, or if invalid access key provided)
$s=explode(" ",getvalescaped("search",""));
$k=getvalescaped("k","");if (($k=="") || (!check_access_key_collection(str_replace("!collection","",$s[0]),$k))) {include "../include/authenticate.php";}

 # Disable info box for external users.
if ($k!="") {$infobox=false;}
else {
       #note current user collection for add/remove links
       $user=get_user($userref);$usercollection=$user['current_collection'];
}
# Disable checkboxes for external users.
if ($k!="") {$use_checkboxes_for_selection=false;}

$search=getvalescaped("search","");

hook("moresearchcriteria");

# create a display_fields array with information needed for detailed field highlighting
$df=array();


$all_field_info=get_fields_for_search_display(array_unique(array_merge($sort_fields,$thumbs_display_fields,$list_display_fields,$xl_thumbs_display_fields,$small_thumbs_display_fields)));

# get display and normalize display specific variables
Example #6
0
<?php

include "include/db.php";
include "include/general.php";
include "include/collections_functions.php";
if (getval("rp", "") != "") {
    # quick redirect to reset password
    $rp = getvalescaped("rp", "");
    $topurl = "pages/user/user_change_password.php?rp=" . $rp;
    redirect($topurl);
}
# External access support (authenticate only if no key provided, or if invalid access key provided)
$k = getvalescaped("k", "");
if ($k == "" || !check_access_key_collection(getvalescaped("c", ""), $k) && !check_access_key(getvalescaped("r", ""), $k)) {
    include "include/authenticate.php";
}
if (!hook("replacetopurl")) {
    $topurl = "pages/" . $default_home_page;
    if ($use_theme_as_home) {
        $topurl = "pages/themes.php";
    }
    if ($use_recent_as_home) {
        $topurl = "pages/search.php?search=" . urlencode("!last" . $recent_search_quantity);
    }
}
/* end hook replacetopurl */
if (getval("c", "") != "") {
    # quick redirect to a collection (from e-mails, keep the URL nice and short)
    $c = getvalescaped("c", "");
    $topurl = "pages/search.php?search=" . urlencode("!collection" . $c) . "&k=" . $k;
    if ($k != "") {
<?php
include "../include/db.php";
include "../include/general.php";

include "../include/collections_functions.php";
# External access support (authenticate only if no key provided, or if invalid access key provided)
$k=getvalescaped("k","");if (($k=="") || (!check_access_key_collection(getvalescaped("collection","",true),$k))) {include "../include/authenticate.php";}

include "../include/resource_functions.php";
include "../include/search_functions.php";

$collection=getvalescaped("collection","",true);
$errors="";
$done=false;

# Fetch collection data
$cinfo=get_collection($collection);if ($cinfo===false) {exit("Collection not found.");}

# Check access
if (!$cinfo["request_feedback"]) {exit("Access denied.");}

# Check that comments have been added.
$comments=get_collection_comments($collection);
if (count($comments)==0 && $feedback_resource_select==false) {$errors=$lang["feedbacknocomments"];}

if (getval("save","")!="")
	{
	# Save comment
	$comment=trim(getvalescaped("comment",""));
	send_collection_feedback($collection,$comment);
Example #8
0
<?php

include "../include/db.php";
include "../include/general.php";
include "../include/resource_functions.php";
//for checking scr access
include "../include/search_functions.php";
include "../include/collections_functions.php";
# External access support (authenticate only if no key provided, or if invalid access key provided)
$k = getvalescaped("k", "");
if ($k == "" || !check_access_key_collection(str_replace("!collection", "", getvalescaped("search", "")), $k)) {
    include "../include/authenticate.php";
}
# Disable info box for external users.
if ($k != "") {
    $infobox = false;
} else {
    #note current user collection for add/remove links
    $user = get_user($userref);
    $usercollection = $user['current_collection'];
}
# Disable checkboxes for external users.
if ($k != "") {
    $use_checkboxes_for_selection = false;
}
$search = getvalescaped("search", "");
hook("moresearchcriteria");
# create a display_fields array with information needed for detailed field highlighting
$df = array();
$all_field_info = get_fields_for_search_display(array_unique(array_merge($sort_fields, $thumbs_display_fields, $list_display_fields, $xl_thumbs_display_fields, $small_thumbs_display_fields)));
# get display and normalize display specific variables