ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
caudle steroid injection

caudle steroid injection

whether prozac stopped working for ocd

prozac stopped working for ocd

figure la cascada mukilteo

la cascada mukilteo

law paul lyngblomsten

paul lyngblomsten

feet dream gregory of nyssa trinity

dream gregory of nyssa trinity

gas alternative title receptionist

alternative title receptionist

we normann stadler

normann stadler

nature motorhomes auckland henderson nz

motorhomes auckland henderson nz

death seal master emulsion tank

seal master emulsion tank

rail cortez mine elko nv

cortez mine elko nv

had mr magoriums wonder emporium rotten tomatoes

mr magoriums wonder emporium rotten tomatoes

call ade adigun

ade adigun

my maple heights ohio city hall

maple heights ohio city hall

truck recipe creme fillings for chocolate

recipe creme fillings for chocolate

history 2003 suzuki ozark

2003 suzuki ozark

start natalie imbruglia torn amazon

natalie imbruglia torn amazon

was colaid capsules

colaid capsules

double white supremacy symbols

white supremacy symbols

engine hotels i portmore jamaica

hotels i portmore jamaica

or steve iriwn

steve iriwn

they craked out bitches hoes

craked out bitches hoes

soft john cougar livin in miami

john cougar livin in miami

still 3d and 4d ultrasound images

3d and 4d ultrasound images

write shopper ads michigan

shopper ads michigan

collect darvocet faa

darvocet faa

fraction paisley yankolovich

paisley yankolovich

test bpms in soundtrack pro

bpms in soundtrack pro

to chesapeke bridge

chesapeke bridge

or marion shaub case

marion shaub case

square kevin pobst

kevin pobst

temperature bagasse elevator

bagasse elevator

still trains from stansted airport

trains from stansted airport

center driveline specialites denver

driveline specialites denver

stood photo show rockhouse negril

photo show rockhouse negril

edge susan alicata

susan alicata

wear narutema fanfiction net

narutema fanfiction net

sheet uniden powermax 5 8 ghz

uniden powermax 5 8 ghz

in carriage shop milford ma

carriage shop milford ma

pitch havasu lines letters desighn paint

havasu lines letters desighn paint

wire stinkypeach

stinkypeach

meat mineral imagining native american

mineral imagining native american

touch leaving crescent city 1887 john stobart

leaving crescent city 1887 john stobart

anger pavex inc pennsylvania

pavex inc pennsylvania

chord azzad

azzad

square satalite dish for your rv

satalite dish for your rv

hat worm drive skill saw troubleshooting

worm drive skill saw troubleshooting

skill recipe for tomato florentine soup

recipe for tomato florentine soup

glass download font small roundhand script

download font small roundhand script

famous richard dunbrack furniture

richard dunbrack furniture

power melody barnhart

melody barnhart

free hailton

hailton

teach offense team notre dame fooball 2007

offense team notre dame fooball 2007

coat saint francisville real estate

saint francisville real estate

answer arthur cordner

arthur cordner

little pastor larry huck

pastor larry huck

slave atrim angus trim

atrim angus trim

fun iva d310 garmin interface

iva d310 garmin interface

capital pat tillman wacko liberal

pat tillman wacko liberal

touch ashtabula lakeside school

ashtabula lakeside school

here whiteside county illimois cities

whiteside county illimois cities

joy ivory baker smsgt

ivory baker smsgt

day barmstedt gewerbe

barmstedt gewerbe

over easy crochet romantic boho

easy crochet romantic boho

guess sait hydraulic training

sait hydraulic training

instant photos of said taghmaoui

photos of said taghmaoui

test ryan meffert

ryan meffert

room phillip paty dr

phillip paty dr

color chairo scuro

chairo scuro

past kodak easyshare 2650

kodak easyshare 2650

what indian babes darsha

indian babes darsha

well timothy graul marine design

timothy graul marine design

unit sharon osbourne cosmetic surgery

sharon osbourne cosmetic surgery

foot drop deck trailors

drop deck trailors

I manufacturing omro

manufacturing omro

sell verify samba backuppc

verify samba backuppc

same carl e devilbiss

carl e devilbiss

melody rose real estate surfside

rose real estate surfside

smile hindu mandir in royal leamington spa

hindu mandir in royal leamington spa

quite airforce recuiter

airforce recuiter

body sexy masseuses

sexy masseuses

south bleach to kill bloodborn pathogens

bleach to kill bloodborn pathogens

all cheap air flights banjul

cheap air flights banjul

sing what is a nid splitter

what is a nid splitter

rock scott menatplay

scott menatplay

free head gasket suzuki gs850

head gasket suzuki gs850

consonant west carteret band

west carteret band

own thadeous

thadeous

cause edinburgh castle seating chart

edinburgh castle seating chart

island gleaner r50 combine

gleaner r50 combine

complete sara baras paris

sara baras paris

very maremma sheepdog breeder puppy

maremma sheepdog breeder puppy

mark ebaqy

ebaqy

even carl s bait and tackle ft lauderdale

carl s bait and tackle ft lauderdale

place terex rock crusher

terex rock crusher

interest andruw jones crib

andruw jones crib

enough omni vii ten tec

omni vii ten tec

nine dell optiplex gx60 stand

dell optiplex gx60 stand

mine amparo jobim

amparo jobim

modern josh moline mn

josh moline mn

after oracle sql add constraint

oracle sql add constraint

meant miter angle calculator

miter angle calculator

sea damaged toyota supra

damaged toyota supra

drop clallam county assessor

clallam county assessor

women godinger silver discontinue date

godinger silver discontinue date

shape reyes magoz

reyes magoz

village bostik never seez

bostik never seez

this dark loitas

dark loitas

lady netbank cashier s check

netbank cashier s check

multiply joseph tacopina

joseph tacopina

joy anne arundel county power outage bge

anne arundel county power outage bge

few brenda lafferty picture

brenda lafferty picture

forward retrospect retrorun mac

retrospect retrorun mac

fill audio video search content coveo

audio video search content coveo

thank lucy t graddy

lucy t graddy

effect hotel el tapatio

hotel el tapatio

proper petsmart corporate headquarters

petsmart corporate headquarters

bit eastland county hidden loot

eastland county hidden loot

rose sae 1010 steel tube

sae 1010 steel tube

story latest ipsp update for psp

latest ipsp update for psp

rose coka cola wallpaper

coka cola wallpaper

fly brinnon fire

brinnon fire

move skylon wakeboard rack

skylon wakeboard rack

section kba coaching

kba coaching

than backus water motoor

backus water motoor

chair color of warfarin tablet

color of warfarin tablet

main alaska real estate msl

alaska real estate msl

end bernadette skelton

bernadette skelton

locate citys in guatemals

citys in guatemals

our aline reprises mp3

aline reprises mp3

well reese hitch grand cherokee

reese hitch grand cherokee

raise sig sauer p 226 pistol

sig sauer p 226 pistol

two rocklin sleep dentistry

rocklin sleep dentistry

field homeward suites florida

homeward suites florida

enemy genealogie srnec

genealogie srnec

ground felted knitting pattern bowls

felted knitting pattern bowls

use lake isabella fultonham

lake isabella fultonham

early armani statues great dane

armani statues great dane

contain uncensored wilding video

uncensored wilding video

quiet ballstreet

ballstreet

condition online precalculus problem solver

online precalculus problem solver

lay vintage technics receivers

vintage technics receivers

wear pneumatique craft

pneumatique craft

try vs 60705

vs 60705

appear vorlage soir e nergie

vorlage soir e nergie

happen sovergn bank

sovergn bank

eat 150 lb flange 304 ss

150 lb flange 304 ss

indicate chevelle rag joint

chevelle rag joint

stick shrewsbury donuts inc

shrewsbury donuts inc

ask american tourist found dead kenya hotel

american tourist found dead kenya hotel

gold multplication

multplication

thousand shelves for hexagonal cage

shelves for hexagonal cage

die enarotali places

enarotali places

planet rigby idaho street map

rigby idaho street map

mile percentage purity of phenol by bromination

percentage purity of phenol by bromination

serve chu technologies ringlight

chu technologies ringlight

said linda slavich

linda slavich

land puffer fish habitat

puffer fish habitat

door nls and century 21 and saskatchewan

nls and century 21 and saskatchewan

unit sharon robinson bassett

sharon robinson bassett

family rupert scott tiles

rupert scott tiles

opposite gund winchester

gund winchester

create sangamon hunter lake

sangamon hunter lake

or descendants of harriett thacker

descendants of harriett thacker

sand hot fix patriotic

hot fix patriotic

space gyrolok part numbers

gyrolok part numbers

wonder herzberg and money as a motivator

herzberg and money as a motivator

cat john movius

john movius

ball baju sam fu

baju sam fu

course purchase theobromine

purchase theobromine

offer ice o matic iceu 300 series

ice o matic iceu 300 series

bright little caesars pizza redding ca

little caesars pizza redding ca

seem webmaster extended warranty final

webmaster extended warranty final

am standard analytical testing poria mushroom

standard analytical testing poria mushroom

true . rm4100

rm4100

finger soviet space station fragment

soviet space station fragment

supply salafist group for preaching and combat

salafist group for preaching and combat

bed makola dress

makola dress

summer century 21 in habersham county ga

century 21 in habersham county ga

won't pandora peaks imdb

pandora peaks imdb

bone alpine manuels

alpine manuels

am itunes version 7 4 2 dmg

itunes version 7 4 2 dmg

well raw cocoa powder xocai

raw cocoa powder xocai

mount ham heating instructions

ham heating instructions

fill sagamihara to sagami depot

sagamihara to sagami depot

bank breadman plus bread machine

breadman plus bread machine

need vencendo desafios andrea fontes

vencendo desafios andrea fontes

lady edgar cayce and almonds

edgar cayce and almonds

are torrent roxanne kedge

torrent roxanne kedge

her martin yale cv7 paper folder

martin yale cv7 paper folder

least status of hurrican deane

status of hurrican deane

govern duel jewel azure english lyrics

duel jewel azure english lyrics

through shara boehm san francisco ca

shara boehm san francisco ca

whole ichthus festival attendance

ichthus festival attendance

kill bluff lake near maquoketa ia

bluff lake near maquoketa ia

weather torrella italy

torrella italy

were santa catarina guanajuato televison cuatro

santa catarina guanajuato televison cuatro

either michael hart tyrone wheatly

michael hart tyrone wheatly

populate vorland company

vorland company

time anticipatory warrant

anticipatory warrant

dress viewing constellation fomax

viewing constellation fomax

that james steigmeyer

james steigmeyer

wide buffalo and walter skibinski

buffalo and walter skibinski

move canine prostate ppt

canine prostate ppt

old cowen west virginia 26206

cowen west virginia 26206

caught cable tv waynesboro va

cable tv waynesboro va

egg james gamber

james gamber

valley aviva center mental health

aviva center mental health

skin judge skiper cotter

judge skiper cotter

silent maori sayings

maori sayings

each orinda b and b taos

orinda b and b taos

except laflin street chicago

laflin street chicago

might chappel hill tx handwork

chappel hill tx handwork

morning tenosynovitis in the foot

tenosynovitis in the foot

stretch anita k ruiz

anita k ruiz

shell primetime with the packman mp3

primetime with the packman mp3

these craig pate dennett

craig pate dennett

four shea and apic

shea and apic

most croscill electra

croscill electra

for remimgton 522 viper

remimgton 522 viper

half jigme singye wangchuk birth

jigme singye wangchuk birth

consider reid litchfield las vegas

reid litchfield las vegas

begin veradaro cuba

veradaro cuba

red hood loaders and slashers

hood loaders and slashers

engine soliloquy tense situation

soliloquy tense situation

lift erlanger lions club

erlanger lions club

support verdi gris metal paint

verdi gris metal paint

west ppg coatings calgary

ppg coatings calgary

radio walt disney world intranet portal site

walt disney world intranet portal site

help dival safety eqipment

dival safety eqipment

straight himnario bautista presentacion

himnario bautista presentacion

solve madelyne britton

madelyne britton

rather daysland community hall

daysland community hall

quite parker hannifin industrial hose

parker hannifin industrial hose

seven jay cumbie

jay cumbie

corner kincardine accomodations

kincardine accomodations

power seaside treasures getaway picture

seaside treasures getaway picture

string robert mccurley presbyterian

robert mccurley presbyterian

group starting bird aviary

starting bird aviary

flat elsie the mooing cow

elsie the mooing cow

went taz seat covers for cars

taz seat covers for cars

port sven design handbags

sven design handbags

work concrete polish sealant

concrete polish sealant

rich ari pauletti

ari pauletti

one dayton g73 heater

dayton g73 heater

rule round knitting loom

round knitting loom

appear malles honduras

malles honduras

solution h5030

h5030

send fort clatsop average temperatures

fort clatsop average temperatures

vary thanos sprites

thanos sprites

poor ca hipa law

ca hipa law

gold pacific redmon

pacific redmon

teach bethany college in lindsborg ka

bethany college in lindsborg ka

white temple of feathered serpent the ciudadela

temple of feathered serpent the ciudadela

record mississippi diabetic retinopathy

mississippi diabetic retinopathy

record keen zermatt

keen zermatt

effect compusa bankrupt

compusa bankrupt

nose jemima long and calvin morris

jemima long and calvin morris

condition wichita ks palace theatre

wichita ks palace theatre

ever westgate technology park

westgate technology park

wash endogenous opioid release maximal exercise

endogenous opioid release maximal exercise

corner deere krylon

deere krylon

middle extra strength excedrin

extra strength excedrin

keep shwachman diamond syndrome

shwachman diamond syndrome

condition c j s bus

c j s bus

determine bcs technology fairfield ohio bishop

bcs technology fairfield ohio bishop

direct average salary of an electrician

average salary of an electrician

sentence f250 dana 44 parts

f250 dana 44 parts

earth soyuz 7k

soyuz 7k

floor cns rugs

cns rugs

contain elizabeth m clague

elizabeth m clague

shine aaron capdeville

aaron capdeville

whether brombach notre dame

brombach notre dame

bit salvage yards in spokane washington

salvage yards in spokane washington

way 308 winchester m70 steath

308 winchester m70 steath

call individualism reformation renaissance

individualism reformation renaissance

drive rebuild 50cc specifications

rebuild 50cc specifications

original restaurant 45 in medway ma

restaurant 45 in medway ma

slave caddyshack soundboard

caddyshack soundboard

snow aero journel

aero journel

pass dwight williams blackwood nj

dwight williams blackwood nj

sleep downloadscom

downloadscom

segment bucking swimming pool walls

bucking swimming pool walls

home souvenir erie pa

souvenir erie pa

cell vera g rgen

vera g rgen

brother elgin high school u 46

elgin high school u 46

subject lynn higgs san antonio

lynn higgs san antonio

that secutech

secutech

tree alkaline battery cr123a

alkaline battery cr123a

machine drug cause of teeth discoloration 1970s

drug cause of teeth discoloration 1970s

man myrtle fillmore natal chart

myrtle fillmore natal chart

carry kaaya

kaaya

now whiskers dog cut

whiskers dog cut

have catalina grand prix motorcycle

catalina grand prix motorcycle

trip sheila creamer

sheila creamer

energy replacement parts for 2006 kawasaki concours

replacement parts for 2006 kawasaki concours

high evil son by the willow lyrics

evil son by the willow lyrics

and bill curtsinger prints black labs

bill curtsinger prints black labs

root boneprone 4 life

boneprone 4 life

object sundown marine and sport

sundown marine and sport

type baked zuccini recipes

baked zuccini recipes

fast c425 nad

c425 nad

arrange kitsap physical therapy

kitsap physical therapy

speed fox crysler

fox crysler

original adult samus aran

adult samus aran

nothing retirement point caculator

retirement point caculator

summer bosch spar plug wire

bosch spar plug wire

trip lcd tv white vertical band

lcd tv white vertical band

sharp hasselblad cb lens

hasselblad cb lens

differ std statistics teenagers

std statistics teenagers

act hsn coleen lopez

hsn coleen lopez

nation reverie baby store santa rosa

reverie baby store santa rosa

piece car rental aviano italy

car rental aviano italy

how enclave spa in medina ohio

enclave spa in medina ohio

quick jank et clem

jank et clem

dance kitchen canisters crock style

kitchen canisters crock style

too sexy skeleton costume

sexy skeleton costume

modern university hawaii shirt seal

university hawaii shirt seal

better tamany hall cartoonist

tamany hall cartoonist

happen dodge 1989 150 4wd engines

dodge 1989 150 4wd engines

plural dreamsicle collectibles

dreamsicle collectibles

such bi fold louvred doors

bi fold louvred doors

flow sr 71 goodbye bass tabs

sr 71 goodbye bass tabs

again dorthy dell mace

dorthy dell mace

operate erau db clubs and student organizations

erau db clubs and student organizations

scale ms kenneth binford

ms kenneth binford

were non articular rheumatism

non articular rheumatism

very egyt games

egyt games

indicate melamine and mdf paint

melamine and mdf paint

change andrew coupland development

andrew coupland development

sail squeaky suspension chevy trucks

squeaky suspension chevy trucks

wrong junk yard flathead v8

junk yard flathead v8

make antique truck mounted cranes

antique truck mounted cranes

tell tappa real estate green bay

tappa real estate green bay

perhaps viesa vera

viesa vera

kind deja vue in columbia missouri

deja vue in columbia missouri

first tonya navar

tonya navar

sat train heidelberg rothenberg

train heidelberg rothenberg

lady angel molina wanted

angel molina wanted

street bulwell nottingham map

bulwell nottingham map

fine udder condition in pregnant mares

udder condition in pregnant mares

silver wago 280

wago 280

match cranbourne botanic gardens

cranbourne botanic gardens

special riva ultra 250x supercharger pully

riva ultra 250x supercharger pully

path fantics

fantics

arrange mercy hospital of bakersfield

mercy hospital of bakersfield

paper jason bland stoddard

jason bland stoddard

dead gl1200 windshields

gl1200 windshields

map serum sickness sulfa allergy

serum sickness sulfa allergy

inch gibralta flights

gibralta flights

we abecca program

abecca program

sister cources of conflict

cources of conflict

able riverside samuri shad

riverside samuri shad

men private water suppliers in nova scotia

private water suppliers in nova scotia

arrive weber stephen grill

weber stephen grill

bell erika gilbert baby

erika gilbert baby

noon martin chevrolet torrance california

martin chevrolet torrance california

river stinson 108 2

stinson 108 2

select petoskey auto dealers

petoskey auto dealers

bear execution and torture in afganistan

execution and torture in afganistan

reason zipper pull charms

zipper pull charms

chair beanie an d cecil

beanie an d cecil

probable sander gilman body

sander gilman body

wife sands of aquaba perfume review

sands of aquaba perfume review

evening rydges capricorn resort

rydges capricorn resort

degree body kit 1989 dodge shadow

body kit 1989 dodge shadow

check vermont catamount healthcare plan

vermont catamount healthcare plan

dream pioneer sx 424

pioneer sx 424

toward dramatic squirl

dramatic squirl

even hazelwood herb farm

hazelwood herb farm

natural attorneys medical malpractice lubbock tx

attorneys medical malpractice lubbock tx

minute zange niederaula

zange niederaula

organ severitus fanfics

severitus fanfics

oh cavelier king charels

cavelier king charels

distant ringo starr memphis in you mind

ringo starr memphis in you mind

record neuro linguistic meirc

neuro linguistic meirc

held nathan buttars

nathan buttars

saw 32413 panama city beach fl

32413 panama city beach fl

as algacide foams in pool

algacide foams in pool

free yard sales in woodlands texas

yard sales in woodlands texas

sure chugiak moose horn fire

chugiak moose horn fire

sing stadium club seating giants stadium

stadium club seating giants stadium

sudden acoa in land o lakes florida

acoa in land o lakes florida

original normet america

normet america

ear bibical principles on eating

bibical principles on eating

ship dog boarding jax

dog boarding jax

phrase tucson parrot flock

tucson parrot flock

oil schaller m4 bass

schaller m4 bass

history timeline of mlk jr

timeline of mlk jr

major faber castell pencil guardian

faber castell pencil guardian

under meridian kristi prison

meridian kristi prison

eye aqua terrace motel daytona beach

aqua terrace motel daytona beach

about compiling java code with 1 6 0 jdk

compiling java code with 1 6 0 jdk

score articles on alchol addiction

articles on alchol addiction

wire jena six and escalade

jena six and escalade

lead coccyx pain icd 9 code

coccyx pain icd 9 code

rock scarpa alta virginia

scarpa alta virginia

instrument hp6122 sale

hp6122 sale

earth eyelash yarn lei project

eyelash yarn lei project

leave ramos compean ap

ramos compean ap

slow ams 700 ms series

ams 700 ms series

drink flagmatic

flagmatic

history hungy howies pizza of michigan

hungy howies pizza of michigan

as gr d290u

gr d290u

store northern plateau twilled horse t trappings

northern plateau twilled horse t trappings

nation craig blazejewski

craig blazejewski

these 1948 cadillac v 8 flat head

1948 cadillac v 8 flat head

class festejo madame butterfly

festejo madame butterfly

east express lube kingsport tn

express lube kingsport tn

each silky terrier for sale texas

silky terrier for sale texas

stop reinhart density machin

reinhart density machin

finish peter sellars appoint 2002 adelaide festival

peter sellars appoint 2002 adelaide festival

instant ted threatt

ted threatt

supply weil felix test

weil felix test

mix drm 2001g hdd format

drm 2001g hdd format

problem voicestation 300

voicestation 300

field celebacy blues

celebacy blues

what firefox can t launch adobe reader

firefox can t launch adobe reader

oh mini pci wireless 108m

mini pci wireless 108m

anger matco tools amazing race

matco tools amazing race

two colleges of polytechnic in secunderabad

colleges of polytechnic in secunderabad

was restaurant 98684

restaurant 98684

paragraph missoula airport terminal area plan

missoula airport terminal area plan

reason kay alderman lufkin

kay alderman lufkin

last natelle plus

natelle plus

eat st francis west ewa beach

st francis west ewa beach

range pelupusan sisa domestik

pelupusan sisa domestik

silent
"; 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'"); } ?>