-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs.php
68 lines (56 loc) · 2.02 KB
/
js.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?
/*
* mnlfolio
* by Morgan Cugerone - http://ipositives.net
*
* For more information, visit:
* http://morgan.cugerone.com/mnlfolio
*
* Licensed under the Creative Commons Attribution 2.5 License - http://creativecommons.org/licenses/by/2.5/
* - Free for use in both personal and commercial projects
* - Attribution requires leaving author name, author link, and the license info intact.
*
* Thanks: Jan Odvarko (http://odvarko.cz) for developing this wonderful piece of jscolor code
* Dan Coulter ([email protected] / http://phpflickr.com) for bringing this great phpflickr interface
* To every friends and relatives who supported and helped me in the achievement of this project.
*/
?>
Mnlfolio.thumbsBySetPage = <? echo ($nRows*$nColumns); ?>;
Mnlfolio.rows = <? echo $nRows; ?>;
Mnlfolio.columns = <? echo $nColumns; ?>;
<?
if(isset($boolSetIdByPost) && $boolSetIdByPost && !empty($_POST['setid']))
$setId = $_POST['setid'];
else if(!empty($_GET['setid']))
$setId = $_GET['setid'];
if (isset($setId)) {
$accountSet = explode(".",$setId);
if(count($accountSet) == 2) {
$account = $accountSet[0];
$set = $accountSet[1];
$f = $objectsInstances[$account];
?>
Mnlfolio.setId='<? echo $setId; ?>';
<?
$photos = $f->photosets_getPhotos($set);
// Loop through the photos and output the html
$i=0;
foreach ($photos['photoset']['photo'] as $photo) {
$photoInfo = $f->photos_getInfo($photo['id'],NULL);
?>
Mnlfolio.idPhotos[<? echo $i; ?>] = '<? echo $photo['id'] ?>';
<?
$i++;
}
$totalPage = ceil($i/($nColumns*$nRows));
?>
Mnlfolio.setSize = <? echo $i; ?>;
Mnlfolio.totalSetPage = <? echo $totalPage; ?>;
<?
}
}
?>
Mnlfolio.boolEnableKeyboardControl = <? echo $nColumns; ?>;
Mnlfolio.boolEnableScrollWheelControl = <? echo isset($boolEnableScrollWheelControl) ? "false" : "false"; ?>;
Mnlfolio.boolTweakSaveImageAs = <? echo $boolTweakSaveImageAs; ?>;
Mnlfolio.mnlfbodybgcolor = <? echo $boolTweakSaveImageAs; ?>;