-
Notifications
You must be signed in to change notification settings - Fork 2
/
pview_usergal.sc
36 lines (33 loc) · 1.26 KB
/
pview_usergal.sc
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
//<?php
// Include plugin language file, check first for site's preferred language
if (file_exists(e_PLUGIN . "pviewgallery/languages/" . e_LANGUAGE . ".php")){
include_once(e_PLUGIN."pviewgallery/languages/".e_LANGUAGE.".php");
}
else {
include_once(e_PLUGIN . "pviewgallery/languages/German.php");
}
require_once(e_PLUGIN."pviewgallery/pview.class.php");
$PView = new PView;
$pv_query = array();
$pv_query = explode(".",e_QUERY);
if ($pv_query[0] == "id") {
$pv_uid = $pv_query[1];
} else {
return "";
}
if ($PView -> getGalleryName($pv_uid)) {
$pv_galLink = "<a href='".e_PLUGIN."pviewgallery/pviewgallery.php?gallery=".$pv_uid."'>".LAN_PVIEW_SC_1."</a>";
} else {
$pv_galLink = LAN_PVIEW_SC_2;
}
if($parm == "inline") {
// create tablrow <tr></tr> for usage inside userdata-table
$pview_usergal = "<tr><td class='forumheader3' style='width:30%'>".LAN_PVIEW_SC_3."</td><td class='forumheader3' style='width:70%'>".$pv_galLink."</td></tr>";
} else {
// create table below userdata-table
$pview_usergal = "<br /><table style='".USER_WIDTH."' class='fborder'><tr>";
$pview_usergal.= "<td class='forumheader3' style='width:40%'>".LAN_PVIEW_SC_3."</td><td class='forumheader3' style='width:60%'>".$pv_galLink."</td>";
$pview_usergal.= "</tr></table>";
}
return $pview_usergal;
//?>