ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
corporate security carrers

corporate security carrers

I donato hotel ontario canada

donato hotel ontario canada

farm laserjet 9050 service manual

laserjet 9050 service manual

list tina kaplan california

tina kaplan california

very ocala hourse shows

ocala hourse shows

forward mattress dealers b c

mattress dealers b c

told harbour view elementry

harbour view elementry

by recital dancewear

recital dancewear

sight yiddish policeman s unit

yiddish policeman s unit

use agie sinker edm service

agie sinker edm service

see yahara nursery wi

yahara nursery wi

help retractable gate cheap

retractable gate cheap

lie johan paulik screen test

johan paulik screen test

fig shark attakcs south padre

shark attakcs south padre

left hayward rs 750

hayward rs 750

gather tempura in the antarctic

tempura in the antarctic

hair doug jenkins crab

doug jenkins crab

fig ski doo gear bag

ski doo gear bag

late us101 cancellation

us101 cancellation

sail used tappan appliance parts

used tappan appliance parts

very 1991 del s w6

1991 del s w6

drive autonettoyant personne handicap

autonettoyant personne handicap

method teacup poodles in bisbane

teacup poodles in bisbane

last jewish holiday dvd

jewish holiday dvd

man k2 silencer

k2 silencer

state harley davidson technik details

harley davidson technik details

perhaps lakeshore pbs station commercial

lakeshore pbs station commercial

pitch p90 hi caps

p90 hi caps

skill liberty baez

liberty baez

market osiris creepers

osiris creepers

with booking flights to india

booking flights to india

fruit home stereo control amp

home stereo control amp

other zac efron literotica

zac efron literotica

whether nathalie ciappara

nathalie ciappara

on 3 dimensional angel charms

3 dimensional angel charms

straight printable employment verification forms

printable employment verification forms

heavy texas insider

texas insider

cost k floor pink diddley

k floor pink diddley

finish eileen roche s magazine

eileen roche s magazine

pitch novi veterinary clinic

novi veterinary clinic

jump mcdonalds causes obesity

mcdonalds causes obesity

rub corinna mid city tote

corinna mid city tote

table tia samson

tia samson

suffix royal tenebaums soundtrack

royal tenebaums soundtrack

pose texas candle company

texas candle company

could kinzua dam operation

kinzua dam operation

measure 2a 20bc

2a 20bc

card georgia christenson

georgia christenson

pretty seven oaks golf course

seven oaks golf course

offer english consonant spelling conventions

english consonant spelling conventions

apple can am qualifier 250

can am qualifier 250

done red fish recipre

red fish recipre

case issabelle mo

issabelle mo

stay staples phot contest

staples phot contest

base foster county nrcs

foster county nrcs

human dawn h caldwell photo

dawn h caldwell photo

shall ray cassingham wa

ray cassingham wa

rich newspaper antarctica treaty

newspaper antarctica treaty

discuss jack stringfellow

jack stringfellow

salt pet zebra equine

pet zebra equine

table carebridge eap pa

carebridge eap pa

bone sir cumference books

sir cumference books

bank csv ldifde

csv ldifde

bit canon c330d copier

canon c330d copier

bread valid measurement mapping techniques

valid measurement mapping techniques

low reinstatement acade oc progress

reinstatement acade oc progress

book silver hairbrush museum

silver hairbrush museum

home traditional target archery decal

traditional target archery decal

carry carmina barona

carmina barona

root isatori reviews

isatori reviews

bat deltona fl high school

deltona fl high school

should cannula sinks

cannula sinks

consider quickstep wielerploeg

quickstep wielerploeg

half sherriff goslin company

sherriff goslin company

round willowbrook ballroom chicago

willowbrook ballroom chicago

hundred hogg calf roping saddles

hogg calf roping saddles

else usb esd protection

usb esd protection

check pressure washing concentrate zep

pressure washing concentrate zep

whose kids college mscc

kids college mscc

bat anydvd 6 1 7 0 warez

anydvd 6 1 7 0 warez

store moisture cure extrusion process

moisture cure extrusion process

quart riley rink macnhester vt

riley rink macnhester vt

mix alki stone house

alki stone house

section dominique leutwiler

dominique leutwiler

dress ketchikan coffee

ketchikan coffee

after beheaded biker

beheaded biker

best veronica hassan

veronica hassan

mile movie theaters bismarck nd

movie theaters bismarck nd

quart l45 s7409 wireless

l45 s7409 wireless

triangle 11256 zip code

11256 zip code

dress david zimmerman greensboro

david zimmerman greensboro

do richard bland dorms

richard bland dorms

smell armenias religon

armenias religon

parent sea crest condominiums oceanside

sea crest condominiums oceanside

proper agere 2512

agere 2512

remember jennifer schroeder mo

jennifer schroeder mo

job quiltfest jacksonville

quiltfest jacksonville

trouble cardemand

cardemand

decimal executone 2x4 expansion card

executone 2x4 expansion card

said tractor trailer acceleration rate

tractor trailer acceleration rate

populate retail store directory

retail store directory

paper print of chambered nautilus

print of chambered nautilus

match ross kenneth grossman

ross kenneth grossman

oxygen tennessee weekend get away

tennessee weekend get away

change ati splitfire

ati splitfire

figure vineland nj carlos roman

vineland nj carlos roman

thousand smiths medical tijuana mx

smiths medical tijuana mx

region chantix no prescription

chantix no prescription

toward sppol

sppol

expect trx force trainer

trx force trainer

grow peter cavanaugh construction attorney

peter cavanaugh construction attorney

small vijaytv online

vijaytv online

ago scinctific caculator

scinctific caculator

I mlb playball crack

mlb playball crack

symbol skaneateles new york triathlon

skaneateles new york triathlon

talk dwc girls

dwc girls

told mario danelo dead

mario danelo dead

ocean unblock vhs tape

unblock vhs tape

lie micheal gondry

micheal gondry

share oxyura dominica

oxyura dominica

draw clarksburg wva newspaper

clarksburg wva newspaper

engine jeannie women of walmart

jeannie women of walmart

war measurement pole hectacre

measurement pole hectacre

ago animal heirarchy

animal heirarchy

keep paul teutel standee

paul teutel standee

one labcorp of delaware

labcorp of delaware

broke skyboat song

skyboat song

which yamaha xt specs

yamaha xt specs

spend bevco wine beer

bevco wine beer

edge karen mcgraw and superintendent

karen mcgraw and superintendent

edge food channnel

food channnel

swim hannha montana fan club

hannha montana fan club

main glaucoma calhoun

glaucoma calhoun

dictionary bov malta murder

bov malta murder

imagine clearpoint technologies

clearpoint technologies

gas fuzzy chair film festival

fuzzy chair film festival

clock shop vac strength

shop vac strength

determine 2008 mustangs cobra gallery

2008 mustangs cobra gallery

two unique foose camaro

unique foose camaro

straight natural berkley ready to assemble crib

natural berkley ready to assemble crib

boy torture in nazi camps

torture in nazi camps

require diebold safe company chicago

diebold safe company chicago

eat tina turner fringes

tina turner fringes

appear andy knox token access

andy knox token access

spring aktiviranje windows xp

aktiviranje windows xp

box dealing with spurious hanging

dealing with spurious hanging

rest ancient jost crest

ancient jost crest

row poule lenti

poule lenti

brown punched tin lamp shade

punched tin lamp shade

rose triquetra cake topper

triquetra cake topper

go gryphon investors nursefinders

gryphon investors nursefinders

govern makita 18058

makita 18058

compare pushpin letter

pushpin letter

old razr icon mac

razr icon mac

electric bloomberg insurance hoax

bloomberg insurance hoax

sentence equestrian development oldsmar road

equestrian development oldsmar road

come netzeronet

netzeronet

music seethem2

seethem2

body wilsonart colors

wilsonart colors

are krps radio

krps radio

off mgh fleor tendon repair

mgh fleor tendon repair

hurry eqivelent frations

eqivelent frations

with matilde or sanz

matilde or sanz

do cessna amphibie

cessna amphibie

spell irvings shoe fly

irvings shoe fly

organ infant rdg

infant rdg

led algonac michigan engineer

algonac michigan engineer

join pimps of gore

pimps of gore

planet swan realty deland fl

swan realty deland fl

quotient alex parks introduction

alex parks introduction

rich eve myres

eve myres

rose resistor 2215 information

resistor 2215 information

apple jeanne leblanc waterford ct

jeanne leblanc waterford ct

space chris ledoux western skies

chris ledoux western skies

heat fletcher allen hospital chaplain

fletcher allen hospital chaplain

except b elana torres

b elana torres

water all r n b singers

all r n b singers

arrive samuel haddad

samuel haddad

week strayer pistols

strayer pistols

corn ut2k4 admin plus

ut2k4 admin plus

talk uranium laser enrichment company

uranium laser enrichment company

eight americas army 2 7 0 download

americas army 2 7 0 download

fear leighton buzzard by pass rally

leighton buzzard by pass rally

bought theater commercials 2006 2007

theater commercials 2006 2007

long melvin w myers dvm

melvin w myers dvm

page mary immaculate heart

mary immaculate heart

often photo zazoum com

photo zazoum com

fruit starr orthodontics matthews nc

starr orthodontics matthews nc

expect aces high boardgame

aces high boardgame

spread kaleen gorman

kaleen gorman

river cogic yes lord

cogic yes lord

sky jewishfringe com

jewishfringe com

element tara orsi nebraska

tara orsi nebraska

young hostels in sydney australia

hostels in sydney australia

rock no roll bed wedges

no roll bed wedges

dear gx240 usb keyboard

gx240 usb keyboard

old vaccine children too much

vaccine children too much

develop 1732 f rd 33470

1732 f rd 33470

smile rocktenn intranet

rocktenn intranet

beauty dvd lg dv246

dvd lg dv246

wild pc f 104 controls

pc f 104 controls

better cronicals of ridick

cronicals of ridick

cat michigan aircraft licensing

michigan aircraft licensing

stood 19 nitten

19 nitten

lead james stanistreet

james stanistreet

decide moteur portail coulissant nice

moteur portail coulissant nice

unit porsche danbury

porsche danbury

gentle bootleggers brewing supply

bootleggers brewing supply

fine south park spontaneous combustion

south park spontaneous combustion

been single stack uspsa

single stack uspsa

soon phil wood camagnolo

phil wood camagnolo

your drawtite brake controllers

drawtite brake controllers

wrong cai aerial

cai aerial

ever tom damron austin texas

tom damron austin texas

carry grease sheetmusic

grease sheetmusic

substance gillian s pier

gillian s pier

major bugs bunny chloe

bugs bunny chloe

and corinthians drinking of alcohol

corinthians drinking of alcohol

clothe eastern financail

eastern financail

success radica official website

radica official website

should homemade anti fog solution

homemade anti fog solution

eat paul gillespie greenlee

paul gillespie greenlee

happen jaci moorhead baby shower

jaci moorhead baby shower

either treo 700p reset

treo 700p reset

off cre basile canal 10

cre basile canal 10

friend eskimo sanitation

eskimo sanitation

wish atopica for sale

atopica for sale

guess ford f150 5 4 4x2

ford f150 5 4 4x2

beat letter writing enclosures

letter writing enclosures

tell staffordshire bull terrier tattoos

staffordshire bull terrier tattoos

bit coleman 542000

coleman 542000

mile rent a hunting dog

rent a hunting dog

fell santiago chile riots

santiago chile riots

course tvchix kimberley wales

tvchix kimberley wales

party cavender chev san antonio

cavender chev san antonio

open amd k6 2 description

amd k6 2 description

caught ww1 austrian imigrants

ww1 austrian imigrants

dream o casey s bed and breakfast

o casey s bed and breakfast

east breakingdown walls islam

breakingdown walls islam

farm brea bennett rapidshare

brea bennett rapidshare

soldier maliseet maine

maliseet maine

soil mouth gape tool

mouth gape tool

key university berkeley senior

university berkeley senior

fish texas u faculty

texas u faculty

milk gregory herne

gregory herne

degree digipen ii

digipen ii

vowel hubzone definition

hubzone definition

feel blacksonblonde

blacksonblonde

low explore janakpur travel guide

explore janakpur travel guide

bring shank hall history

shank hall history

give vy elle diaper bag

vy elle diaper bag

music umbilical hernia surgery recovery

umbilical hernia surgery recovery

allow american lafrance antique extinguisher

american lafrance antique extinguisher

far jeffrey s kooyers

jeffrey s kooyers

strong ec 135 photo

ec 135 photo

cow uk court listings

uk court listings

wrote alaskan serial killer

alaskan serial killer

half celebrity lonliness

celebrity lonliness

stay iex profile

iex profile

exact test match pop up

test match pop up

lead rare records phil

rare records phil

square swanage travel guide

swanage travel guide

reach whittington clock chimes

whittington clock chimes

front lodging sandy oregon

lodging sandy oregon

plane aau track meet schedule

aau track meet schedule

locate babe paley s obituary

babe paley s obituary

supply norwalk ct newpaper

norwalk ct newpaper

paint hydraulic control valve tutorial

hydraulic control valve tutorial

money well known entrepreneurs

well known entrepreneurs

teach poly plus drip deck

poly plus drip deck

press excel quotation text format

excel quotation text format

keep atlantica princess rhodes

atlantica princess rhodes

lie hairdressers clapham

hairdressers clapham

stream radiator ram 1500

radiator ram 1500

caught toyota dealerships in savannah

toyota dealerships in savannah

size tingel bike parts

tingel bike parts

current frontgate christmas catelog

frontgate christmas catelog

where rash on your nose

rash on your nose

touch girls christmas sweaters

girls christmas sweaters

problem bingo magnetic flashboards

bingo magnetic flashboards

unit cessna c 180

cessna c 180

metal carbon diffusion in intermetallics

carbon diffusion in intermetallics

began t mobile mda manual

t mobile mda manual

usual myrtle beach gentelmens club

myrtle beach gentelmens club

company levels of functioning vygotsky

levels of functioning vygotsky

plural exits i 81 va

exits i 81 va

guess your 2checkout order scam

your 2checkout order scam

then rit edu academics

rit edu academics

check zofe gallery

zofe gallery

experience toyota yaris complaints

toyota yaris complaints

cover bathingsuit coverup

bathingsuit coverup

number 5692 east 141st cleveland

5692 east 141st cleveland

meat hotel principesa florence italy

hotel principesa florence italy

type duluth imax

duluth imax

held beirne renee md

beirne renee md

guess lloyds business account

lloyds business account

food resorts near tucson

resorts near tucson

forest voyager episode synopses

voyager episode synopses

season bengkulu cemetries

bengkulu cemetries

stead sylvia stolz german constitution

sylvia stolz german constitution

on lawn tractor id

lawn tractor id

produce plumas lakes community

plumas lakes community

shoe 2006 burnished silver eagle

2006 burnished silver eagle

inch union station lax

union station lax

ten confectii lohn moldova republica

confectii lohn moldova republica

circle 2007 atomic izor ski

2007 atomic izor ski

afraid becca howey my space

becca howey my space

kept castle lock cylinders

castle lock cylinders

saw shx extensions

shx extensions

horse coeur d alene wa shelter

coeur d alene wa shelter

so wollun orchards

wollun orchards

stand goose decoy patterns

goose decoy patterns

reason pinewood hills farm llc

pinewood hills farm llc

captain half life of d amphetamine

half life of d amphetamine

design stargate sg 1 ships

stargate sg 1 ships

joy hallgren pronounced

hallgren pronounced

magnet geoff jenkins foundation

geoff jenkins foundation

melody k9 webprotect

k9 webprotect

score
"; die(); } // end check define('IN_COPPERMINE', true); define('INDEX_PHP', true); require('include/init.inc.php'); if ($CONFIG['enable_smilies']) include("include/smilies.inc.php"); /** * Local functions definition */ function html_albummenu($id) { global $template_album_admin_menu, $lang_album_admin_menu; static $template = ''; if ($template == '') { $params = array('{CONFIRM_DELETE}' => $lang_album_admin_menu['confirm_delete'], '{DELETE}' => $lang_album_admin_menu['delete'], '{MODIFY}' => $lang_album_admin_menu['modify'], '{EDIT_PICS}' => $lang_album_admin_menu['edit_pics'], ); $template = template_eval($template_album_admin_menu, $params); } $params = array('{ALBUM_ID}' => $id, ); return template_eval($template, $params); } function get_subcat_data($parent, &$cat_data, &$album_set_array, $level, $ident = '') { global $CONFIG, $HIDE_USER_CAT, $FORBIDDEN_SET,$cpg_show_private_album; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.str_replace('p.',$CONFIG['TABLE_PICTURES'].'.',$FORBIDDEN_SET); } $result = db_query("SELECT cid, name, description, thumb FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '$parent' ORDER BY pos"); if (mysql_num_rows($result) > 0) { $rowset = db_fetch_rowset($result); foreach ($rowset as $subcat) { if ($subcat['cid'] == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category>=" . FIRST_USER_CAT.$album_filter; $result = db_query($sql); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category >= " . FIRST_USER_CAT.$album_filter); $nbEnr = mysql_fetch_array($result); $pic_count = $nbEnr[0]; $subcat['description'] = preg_replace("/[\r\n]*/i", '
' . $ident , bb_decode($subcat['description'])); $link = $ident . "{$subcat['name']}"; if ($album_count) { $cat_data[] = array($link, $ident . $subcat['description'], $album_count, $pic_count); $HIDE_USER_CAT = 0; } else { $HIDE_USER_CAT = 1; } } else { $unaliased_album_filter = str_replace('a.','',$album_filter); $result = db_query("SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE category = {$subcat['cid']}".$unaliased_album_filter); $album_count = mysql_num_rows($result); while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p, {$CONFIG['TABLE_ALBUMS']} as a WHERE p.aid = a.aid AND category = {$subcat['cid']}".$album_filter); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; if ($subcat['thumb']>0) { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$subcat['thumb']}'".$pic_filter; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; $user_thumb = "".$user_thumb.""; } }else{ $user_thumb =""; } $subcat['name'] = $subcat['name']; $subcat['description'] = preg_replace("/[\r\n]*/i", '
', bb_decode($subcat['description'])); $link = "{$subcat['name']}"; $user_thumb = $ident.$user_thumb; if ($pic_count == 0 && $album_count == 0) { $user_thumb = $ident; $cat_data[] = array($link, $subcat['description'],'cat_thumb' =>$user_thumb); } else { // Check if you need to show subcat_level if ($level == $CONFIG['subcat_level']) { $cat_albums = list_cat_albums($subcat['cid']); } else { $cat_albums = ''; } $cat_data[] = array($link, $subcat['description'], $album_count, $pic_count, 'cat_albums' => $cat_albums,'cat_thumb' =>$user_thumb); } } if ($level > 1) get_subcat_data($subcat['cid'], $cat_data, $album_set_array, $level -1, $ident . ""); } } } // List all categories function get_cat_list(&$breadcrumb, &$cat_data, &$statistics) { global $HTTP_GET_VARS, $CONFIG, $ALBUM_SET, $CURRENT_CAT_NAME, $BREADCRUMB_TEXT, $STATS_IN_ALB_LIST, $FORBIDDEN_SET; global $HIDE_USER_CAT,$cpg_show_private_album; global $cat; global $lang_list_categories, $lang_errors; // Build the breadcrumb breadcrumb($cat, $breadcrumb, $BREADCRUMB_TEXT); // Build the category list $cat_data = array(); $album_set_array = array(); get_subcat_data($cat, $cat_data, $album_set_array, $CONFIG['subcat_level']); $album_filter=''; $pic_filter=''; $cat = (int) $cat; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } // Add the albums in the current category to the album set //if ($cat) { if ($cat == USER_GAL_CAT) { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category >= " . FIRST_USER_CAT.$album_filter; $result = db_query($sql); } else { $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); } while ($row = mysql_fetch_array($result)) { $album_set_array[] = $row['aid']; } // while mysql_free_result($result); //} if (count($album_set_array)&&$cat) { $set = ''; foreach ($album_set_array as $album) $set .= $album . ','; $set = substr($set, 0, -1); $current_album_set = "AND aid IN ($set) "; $ALBUM_SET .= $current_album_set; } elseif ($cat) { $current_album_set = "AND aid IN (-1) "; $ALBUM_SET .= $current_album_set; } // Gather gallery statistics if ($cat == 0) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE 1".$album_filter); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_COMMENTS']} as c ". 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON c.pid=p.pid '. 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON a.aid=p.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $comment_count = $nbEnr[0]; mysql_free_result($result); $sql = "SELECT count(*) FROM {$CONFIG['TABLE_CATEGORIES']} WHERE 1"; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $cat_count = $nbEnr[0] - $HIDE_USER_CAT; mysql_free_result($result); $sql = "SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} as p ". 'LEFT JOIN '.$CONFIG['TABLE_ALBUMS'].' as a '. 'ON p.aid=a.aid '. 'WHERE 1'.$pic_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); if (count($cat_data)) { $statistics = strtr($lang_list_categories['stat1'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[cat]' => $cat_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } else { $STATS_IN_ALB_LIST = true; $statistics = strtr($lang_list_categories['stat3'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[comments]' => $comment_count, '[views]' => $hit_count)); } } elseif ($cat >= FIRST_USER_CAT && $ALBUM_SET) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $album_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $picture_count = $nbEnr[0]; mysql_free_result($result); $result = db_query("SELECT sum(hits) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1 $current_album_set"); $nbEnr = mysql_fetch_array($result); $hit_count = (int)$nbEnr[0]; mysql_free_result($result); $statistics = strtr($lang_list_categories['stat2'], array('[pictures]' => $picture_count, '[albums]' => $album_count, '[views]' => $hit_count)); } else { $statistics = ''; } } function list_users() { global $CONFIG, $PAGE, $FORBIDDEN_SET; global $lang_list_users, $lang_errors, $template_user_list_info_box, $cpg_show_private_album; if (defined('UDB_INTEGRATION')) { $result = udb_list_users_query($user_count); } else { // $sql = "SELECT user_id," . " user_name," . " COUNT(DISTINCT a.aid) as alb_count," . " COUNT(DISTINCT pid) as pic_count," . " MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "INNER JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid " . "WHERE approved = 'YES' " . "$FORBIDDEN_SET " . "GROUP BY user_id " . "ORDER BY user_name "; // Fixed correct album count DJMaze $sql = "SELECT user_id, " . "user_name, " . "COUNT(DISTINCT a.aid) as alb_count, " . "COUNT(DISTINCT pid) as pic_count, " . "MAX(pid) as thumb_pid " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p ON (p.aid = a.aid AND approved = 'YES') "; if ($FORBIDDEN_SET != "") $sql .= "WHERE $FORBIDDEN_SET "; $sql .= "GROUP BY user_id " . "ORDER BY user_name"; $result = db_query($sql); $user_count = mysql_num_rows($result); } if (!$user_count) { msg_box($lang_list_users['user_list'], $lang_list_users['no_user_gal'], '', '', '100%'); mysql_free_result($result); return; } $user_per_page = $CONFIG['thumbcols'] * $CONFIG['thumbrows']; $totalPages = ceil($user_count / $user_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $user_per_page; $upper_limit = min($user_count, $PAGE * $user_per_page); $row_count = $upper_limit - $lower_limit; if (defined('UDB_INTEGRATION')) { $rowset = udb_list_users_retrieve_data($result, $lower_limit, $row_count); } else { $rowset = array(); $i = 0; mysql_data_seek($result, $lower_limit); while (($row = mysql_fetch_array($result)) && ($i++ < $row_count)) $rowset[] = $row; mysql_free_result($result); } $user_list = array(); foreach ($rowset as $user) { $user_thumb = ''; $user_pic_count = $user['pic_count']; $user_thumb_pid = $user['thumb_pid']; $user_album_count = $user['alb_count']; if ($user_pic_count) { if ($CONFIG['show_private']){ $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='$user_thumb_pid'"; $result = db_query($sql); if (mysql_num_rows($result)) { $picture = mysql_fetch_array($result); mysql_free_result($result); $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $user_thumb = "\"\""; } } $albums_txt = sprintf($lang_list_users['n_albums'], $user_album_count); $pictures_txt = sprintf($lang_list_users['n_pics'], $user_pic_count); $params = array('{USER_NAME}' => $user['user_name'], '{USER_ID}' => $user['user_id'], '{ALBUMS}' => $albums_txt, '{PICTURES}' => $pictures_txt, ); $caption = template_eval($template_user_list_info_box, $params); $user_list[] = array('cat' => FIRST_USER_CAT + $user['user_id'], 'image' => $user_thumb, 'caption' => $caption, ); } theme_display_thumbnails($user_list, $user_count, '', '', 1, $PAGE, $totalPages, false, true, 'user'); } // List all albums function list_albums() { global $CONFIG, $USER, $USER_DATA, $PAGE, $lastup_date_fmt,$FORBIDDEN_SET; global $cat; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; $pic_subquery=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if (!$nbAlb) return; $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { if ($count > 0) { if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ' '; } } theme_display_album_list($alb_list, $nbAlb, $cat, $PAGE, $totalPages); } /** */ // List category albums // This has been added to list the category albums largely a repetition of code elsewhere // Redone for a cleaner approach function list_cat_albums($cat = 0) { global $CONFIG, $USER, $lastup_date_fmt, $HTTP_GET_VARS, $USER_DATA, $FORBIDDEN_SET; global $lang_list_albums, $lang_errors,$cpg_show_private_album; $PAGE = 1; if ($cat == 0) { return ''; } $alb_per_page = $CONFIG['albums_per_page']; $maxTab = $CONFIG['max_tabs']; $album_filter=''; $pic_filter=''; if (!empty($FORBIDDEN_SET) && !$cpg_show_private_album) { $album_filter = ' and '.str_replace('p.','a.',$FORBIDDEN_SET); $pic_filter = ' and '.$FORBIDDEN_SET; } $sql = "SELECT count(*) FROM {$CONFIG['TABLE_ALBUMS']} as a WHERE category = '$cat'".$album_filter; $result = db_query($sql); $nbEnr = mysql_fetch_array($result); $nbAlb = $nbEnr[0]; mysql_free_result($result); if ($nbAlb == 0) { return; } $totalPages = ceil($nbAlb / $alb_per_page); if ($PAGE > $totalPages) $PAGE = 1; $lower_limit = ($PAGE-1) * $alb_per_page; $upper_limit = min($nbAlb, $PAGE * $alb_per_page); $limit = "LIMIT " . $lower_limit . "," . ($upper_limit - $lower_limit); /* $sql = "SELECT a.aid, a.title, a.description, visibility, filepath, ". "filename, url_prefix, pwidth, pheight ". "FROM {$CONFIG['TABLE_ALBUMS']} as a ". "LEFT JOIN {$CONFIG['TABLE_PICTURES']} as p ON thumb=pid ". "WHERE category = $cat ORDER BY a.pos ".$limit; */ $sql = 'SELECT a.aid, a.title, a.description, visibility, filepath, '. 'filename, url_prefix, pwidth, pheight '. 'FROM '.$CONFIG['TABLE_ALBUMS'].' as a '. 'LEFT JOIN '.$CONFIG['TABLE_PICTURES'].' as p '. 'ON a.thumb=p.pid '. 'WHERE category='.$cat.$album_filter. ' ORDER BY a.pos '. $limit; $alb_thumbs_q = db_query($sql); $alb_thumbs = db_fetch_rowset($alb_thumbs_q); mysql_free_result($alb_thumbs_q); $disp_album_count = count($alb_thumbs); $album_set = ''; foreach($alb_thumbs as $value) { $album_set .= $value['aid'] . ', '; } $album_set = '(' . substr($album_set, 0, -2) . ')'; $sql = "SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload ". "FROM {$CONFIG['TABLE_PICTURES']} ". "WHERE aid IN $album_set AND approved = 'YES' ". "GROUP BY aid"; $alb_stats_q = db_query($sql); $alb_stats = db_fetch_rowset($alb_stats_q); mysql_free_result($alb_stats_q); foreach($alb_stats as $key => $value) { $cross_ref[$value['aid']] = &$alb_stats[$key]; } for ($alb_idx = 0; $alb_idx < $disp_album_count; $alb_idx++) { $alb_thumb = &$alb_thumbs[$alb_idx]; $aid = $alb_thumb['aid']; if (isset($cross_ref[$aid])) { $alb_stat = $cross_ref[$aid]; $count = $alb_stat['pic_count']; } else { $alb_stat = array(); $count = 0; } // Inserts a thumbnail if the album contains 1 or more images $visibility = $alb_thumb['visibility']; if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums'] || $CONFIG['allow_private_albums']==0) { // test for visibility if ($count > 0) { // Inserts a thumbnail if the album contains 1 or more images if ($alb_thumb['filename']) { $picture = &$alb_thumb; } else { $sql = "SELECT filepath, filename, url_prefix, pwidth, pheight " . "FROM {$CONFIG['TABLE_PICTURES']} " . "WHERE pid='{$alb_stat['last_pid']}'"; $result = db_query($sql); $picture = mysql_fetch_array($result); mysql_free_result($result); } $pic_url = get_pic_url($picture, 'thumb'); if (!is_image($picture['filename'])) { $image_info = getimagesize($pic_url); $picture['pwidth'] = $image_info[0]; $picture['pheight'] = $image_info[1]; } $image_size = compute_img_size($picture['pwidth'], $picture['pheight'], $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"{$picture['filename']}\""; } else { // Inserts an empty thumbnail if the album contains 0 images $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } } elseif ($CONFIG['show_private']) { $image_size = compute_img_size(100, 75, $CONFIG['alb_list_thumb_size']); $alb_list[$alb_idx]['thumb_pic'] = "\"\""; } // Prepare everything if ($visibility == '0' || $visibility == (FIRST_USER_CAT + USER_ID) || in_array($visibility, $USER_DATA['groups']) || $USER_DATA['can_see_all_albums']) { $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } elseif ($CONFIG['show_private']) { // uncomment this else block to show private album description $last_upload_date = $count ? localised_date($alb_stat['last_upload'], $lastup_date_fmt) : ''; $alb_list[$alb_idx]['aid'] = $alb_thumb['aid']; $alb_list[$alb_idx]['album_title'] = $alb_thumb['title']; $alb_list[$alb_idx]['album_desc'] = bb_decode($alb_thumb['description']); $alb_list[$alb_idx]['pic_count'] = $count; $alb_list[$alb_idx]['last_upl'] = $last_upload_date; $alb_list[$alb_idx]['album_info'] = sprintf($lang_list_albums['n_pictures'], $count) . ($count ? sprintf($lang_list_albums['last_added'], $last_upload_date) : ""); $alb_list[$alb_idx]['album_adm_menu'] = (GALLERY_ADMIN_MODE || (USER_ADMIN_MODE && $cat == USER_ID + FIRST_USER_CAT)) ? html_albummenu($alb_thumb['aid']) : ''; } } ob_start(); theme_display_album_list_cat($alb_list, $nbAlb, $cat, $PAGE, $totalPages); $cat_albums = ob_get_contents(); ob_end_clean(); return $cat_albums; } /** */ /** * Main code */ if (isset($HTTP_GET_VARS['page'])) { $PAGE = max((int)$HTTP_GET_VARS['page'], 1); $USER['lap'] = $PAGE; } elseif (isset($USER['lap'])) { $PAGE = max((int)$USER['lap'], 1); } else { $PAGE = 1; } if (isset($HTTP_GET_VARS['cat'])) { $cat = (int)$HTTP_GET_VARS['cat']; } // Gather data for categories $breadcrumb = ''; $cat_data = array(); $statistics = ''; $STATS_IN_ALB_LIST = false; $cpg_show_private_album = ($CONFIG['allow_private_albums'])?($CONFIG['show_private']):(true); get_cat_list($breadcrumb, $cat_data, $statistics); pageheader($BREADCRUMB_TEXT ? $BREADCRUMB_TEXT : $lang_index_php['welcome']); $elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY); foreach ($elements as $element) { if (preg_match("/(\w+),*(\d+)*/", $element, $matches)) switch ($matches[1]) { case 'breadcrumb': // Added breadcrumb as a separate listable block from config if (($breadcrumb != '' || count($cat_data) > 0) && $cat !=0 ) theme_display_breadcrumb($breadcrumb, $cat_data); break; case 'catlist': if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics); if (isset($cat) && $cat == USER_GAL_CAT) list_users(); flush(); break; case 'alblist': list_albums(); flush(); break; case 'random': display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastup': display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastalb': display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); break; case 'topn': display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'toprated': display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lastcom': display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'lasthits': display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false); flush(); break; case 'anycontent': if ($cat == 0) { include('anycontent.php'); } flush(); break; } } pagefooter(); ob_end_flush(); // Speed-up the random image query by 'keying' the image table if (time() - $CONFIG['randpos_interval'] > 86400) { $result = db_query("SELECT count(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE 1"); $nbEnr = mysql_fetch_array($result); mysql_free_result($result); $pic_count = $nbEnr[0]; $granularity = floor($pic_count / RANDPOS_MAX_PIC); $result = db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET randpos = ROUND(RAND()*$granularity) WHERE 1"); $result = db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . time() . "' WHERE name = 'randpos_interval'"); } ?>