ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
rhyme and blues music

rhyme and blues music

like raena lynn colby

raena lynn colby

path recessed lights wholesale

recessed lights wholesale

new randy lund portland oregon

randy lund portland oregon

for rental late fees washington

rental late fees washington

temperature ralph tota jr

ralph tota jr

will rca flat screen television

rca flat screen television

enough restaurants palm springs ca

restaurants palm springs ca

matter queen elizabeth 60 anniversery

queen elizabeth 60 anniversery

teeth red carnation hotels london

red carnation hotels london

hunt ragtime jack radcliffe

ragtime jack radcliffe

process princeton university admi

princeton university admi

human red mullet temperature range

red mullet temperature range

shell richard bishop greenfield ma

richard bishop greenfield ma

experience repair solar yard lights

repair solar yard lights

will property arhives for delaware

property arhives for delaware

song psych hospitals central illinois

psych hospitals central illinois

space rhonda henderson

rhonda henderson

winter registering an alberta company

registering an alberta company

keep puttanesca recipe fitness magazine

puttanesca recipe fitness magazine

add range rover expansion valve

range rover expansion valve

ago ridgecrest youth retreat

ridgecrest youth retreat

sleep reducing teller turnover

reducing teller turnover

stand radar flagstaff arizona

radar flagstaff arizona

every richardson david brent

richardson david brent

mind replica working cash registers

replica working cash registers

famous princess strawberry shortcake hentai

princess strawberry shortcake hentai

fly rare postcard shop london

rare postcard shop london

try realy young sex

realy young sex

thick religious institutions darwin

religious institutions darwin

told recipe rolled cookies chocolate

recipe rolled cookies chocolate

we red lion helena montana

red lion helena montana

occur prussian blue music

prussian blue music

sent radio stattions sutton ak

radio stattions sutton ak

watch railroad ties charlotte nc

railroad ties charlotte nc

front price colt 45 alcohol

price colt 45 alcohol

cook residence inn new jersey

residence inn new jersey

eat redfin realton huntington beach

redfin realton huntington beach

noon rick hollingsworth enterprise alabama

rick hollingsworth enterprise alabama

young rafting stories

rafting stories

share renton washington inmates

renton washington inmates

surface propellant vendors

propellant vendors

pass raymond corcel miami

raymond corcel miami

ear pyrimids of egypt

pyrimids of egypt

why righteous jefferson

righteous jefferson

name ragland alabama obituaries

ragland alabama obituaries

woman red vs blue ringtones

red vs blue ringtones

chick quilted fabric kansas

quilted fabric kansas

hill restaurant bakersfield

restaurant bakersfield

close ragnarok has black screen

ragnarok has black screen

verb regetta restaurant lexington ky

regetta restaurant lexington ky

select residence inn in cleveland

residence inn in cleveland

read rentals in charlotte nc

rentals in charlotte nc

left prostitution athens georgia

prostitution athens georgia

four registered nurse grants

registered nurse grants

seed raumschiff enterprise

raumschiff enterprise

low rapid river michigan news

rapid river michigan news

girl recipe chicken apricot

recipe chicken apricot

found railroad workers alberta

railroad workers alberta

heard refraction of light physics

refraction of light physics

their quechua indians

quechua indians

share rhode warriors lacrosse

rhode warriors lacrosse

huge regional hospital columbus georgia

regional hospital columbus georgia

discuss radison wharf bay

radison wharf bay

original pub cleaners birmingham

pub cleaners birmingham

play regent light

regent light

shall religous stores riverside ca

religous stores riverside ca

written racetracks in new england

racetracks in new england

morning rebecca ann wilson chapman

rebecca ann wilson chapman

cut rigin of valentine s day

rigin of valentine s day

fast ralph smith jr 1969

ralph smith jr 1969

danger purpose of fog lights

purpose of fog lights

possible resident evil apo

resident evil apo

roll rick saloman paris hilton

rick saloman paris hilton

speed rapper black haze

rapper black haze

hard red accordion blues

red accordion blues

picture princeton hospital princeton nj

princeton hospital princeton nj

problem prophecy george washington

prophecy george washington

most prophet kevin williams

prophet kevin williams

match receipe using chicken tenders

receipe using chicken tenders

women rentals wilsonville or

rentals wilsonville or

dress ralph lauren chaps suitcase

ralph lauren chaps suitcase

voice princeton middle school bowler

princeton middle school bowler

spend redondo beach employment agencies

redondo beach employment agencies

season racist remarks by blacks

racist remarks by blacks

receive rentals athens ga

rentals athens ga

broad professional interior designer phoenix

professional interior designer phoenix

mountain right hand page called what

right hand page called what

look rainbow 6 new york

rainbow 6 new york

appear ring bell cancer remission

ring bell cancer remission

toward refurbished dell xps laptops

refurbished dell xps laptops

bone richard bryant army wives

richard bryant army wives

triangle raina ashley washington

raina ashley washington

cat raku indian mask

raku indian mask

particular reigster newspaper orange county

reigster newspaper orange county

particular ratcliff architecture

ratcliff architecture

tone richard moss phoenix

richard moss phoenix

say raising sunflowers

raising sunflowers

bear rider training course washington

rider training course washington

control proserve austin

proserve austin

coast ralph robbins joyce short

ralph robbins joyce short

man reiki magazine

reiki magazine

spot richard chip williams sentenced

richard chip williams sentenced

busy richarde campbell

richarde campbell

coat ralph lauren paisley bedding

ralph lauren paisley bedding

week refurbishment los angeles

refurbishment los angeles

problem providence hermitage tn

providence hermitage tn

wrote richard jefferson grow up

richard jefferson grow up

govern principle properties louisville

principle properties louisville

crowd rae bodine story

rae bodine story

wish reseda california

reseda california

base prodrive austin martin

prodrive austin martin

remember rep kathy watson

rep kathy watson

house pueblo indians weapons crafts

pueblo indians weapons crafts

solve raymonf feist home page

raymonf feist home page

we raphael eytan egypt

raphael eytan egypt

at province on james bay

province on james bay

continue ramona bennett atlanta georgia

ramona bennett atlanta georgia

ride reseach cover page

reseach cover page

art receipe for homemade clay

receipe for homemade clay

row range rover maintaince

range rover maintaince

us restaurants in tucson az

restaurants in tucson az

yellow redneck magazine

redneck magazine

I providence high school charlotte

providence high school charlotte

gather rebecca s m stories

rebecca s m stories

your privacy fence sections

privacy fence sections

sure rick ankiel story

rick ankiel story

one pub tenancy wales

pub tenancy wales

there renter laws washington

renter laws washington

fight rainbow royal gorge

rainbow royal gorge

element rafter ranch sulphur springs

rafter ranch sulphur springs

value puddingstone camp ground california

puddingstone camp ground california

free raymond peterson ca

raymond peterson ca

hour restaurant tram melbourne

restaurant tram melbourne

safe raydeon 8500 driver update

raydeon 8500 driver update

create rhinestone rosie seattle washington

rhinestone rosie seattle washington

truck princes cruise ship rolls

princes cruise ship rolls

beauty restaraunts tempe

restaraunts tempe

copy reload 308 winchester

reload 308 winchester

or replacing a ceiling light

replacing a ceiling light

teeth princeton nj hyatt

princeton nj hyatt

their richard hodges hollister

richard hodges hollister

other radioactive plumes lake huron

radioactive plumes lake huron

protect restaurants in tuscaloosa alabama

restaurants in tuscaloosa alabama

young recipes cranbery orange relish

recipes cranbery orange relish

rather records aberdeen scotland

records aberdeen scotland

hunt psc 1400 printer driver

psc 1400 printer driver

east rainsoft of charleston

rainsoft of charleston

run priscilla taylor naked

priscilla taylor naked

from restaurants in florence az

restaurants in florence az

trade rheumatology associates montgomery

rheumatology associates montgomery

talk railroad hero garden grove

railroad hero garden grove

office protaras capo bay

protaras capo bay

consonant ralph torrie

ralph torrie

go rapid repairs charleston

rapid repairs charleston

apple prototypes in pomona ca

prototypes in pomona ca

those richard franklin orren sr

richard franklin orren sr

run promotion codes dell

promotion codes dell

lake red door pics scotland

red door pics scotland

by rates daycare columbus

rates daycare columbus

above rentals in detroit mi

rentals in detroit mi

check prima care lewisville texas

prima care lewisville texas

between ralph loren kids

ralph loren kids

real resale president mobile radios

resale president mobile radios

suit pto sales bakersfield ca

pto sales bakersfield ca

wrong red vs blue podcast

red vs blue podcast

gone restaurants in laveen

restaurants in laveen

dear restraining order forms ontario

restraining order forms ontario

captain ralph todaro

ralph todaro

low qkw lois madison

qkw lois madison

write riding giant chicken texas

riding giant chicken texas

job quail season in kansas

quail season in kansas

mother providence first light infantry

providence first light infantry

million proel power cord cable

proel power cord cable

baby professional gas range

professional gas range

like recon running lights

recon running lights

could princess of wales rose

princess of wales rose

out recipes indians used

recipes indians used

listen recycle electromnics portland oregon

recycle electromnics portland oregon

sit red lobster west hills

red lobster west hills

country red pine lodge canada

red pine lodge canada

corner respondeat superior independant contractor

respondeat superior independant contractor

after resin black bears

resin black bears

inch public domain hunter thompson

public domain hunter thompson

smell quai de javel paris

quai de javel paris

me regal cinnema foothill branch

regal cinnema foothill branch

rose revitalization tax exemption vernon

revitalization tax exemption vernon

flat recipes pine nut tart

recipes pine nut tart

act radford little rock

radford little rock

lake quilt shop sturgeon bay

quilt shop sturgeon bay

divide restaurants enola pa

restaurants enola pa

equate rentals in newport oregon

rentals in newport oregon

suffix prince ozone protour midplus

prince ozone protour midplus

land ramona mama

ramona mama

neck reef sorrento valley

reef sorrento valley

symbol private automated branch exchange

private automated branch exchange

above quaker farms seaforth ontario

quaker farms seaforth ontario

would province of alberta infrastructure

province of alberta infrastructure

phrase proctor silex coffeemake

proctor silex coffeemake

good regina leeds

regina leeds

hour richard thornton bushfire crc

richard thornton bushfire crc

live randy velarde oakland

randy velarde oakland

got rio grande arlington virginia

rio grande arlington virginia

phrase ralph larsen

ralph larsen

spot radio wards airline models

radio wards airline models

care retrospect software for vista

retrospect software for vista

early richard hunter raleigh attorney

richard hunter raleigh attorney

nose proofreading orange county

proofreading orange county

answer rialto theater joliet il

rialto theater joliet il

began religous stores poughkeepsie

religous stores poughkeepsie

been ps 226 brooklyn

ps 226 brooklyn

pick richard g scott satan

richard g scott satan

copy red lion lounge vail

red lion lounge vail

you realty executives coolidge

realty executives coolidge

ease range hood ventilation island

range hood ventilation island

too princeton farmers market

princeton farmers market

never recycling chicken

recycling chicken

even redskins pink ribbon jersey

redskins pink ribbon jersey

insect regal cinema palm springs

regal cinema palm springs

quick reasting sunflower seeds

reasting sunflower seeds

discuss pueblo indian bowl birrds

pueblo indian bowl birrds

caught raptor shift light corvette

raptor shift light corvette

ten quinton rampage jackson t shirts

quinton rampage jackson t shirts

insect redhead pr london

redhead pr london

ship q 985 rockford

q 985 rockford

gas princeton nurseries

princeton nurseries

carry rdi anchorage

rdi anchorage

trip recent arrests charleston sc

recent arrests charleston sc

fell resume plus nashville tn

resume plus nashville tn

pattern record miami dade

record miami dade

say rainbow lens home page

rainbow lens home page

fast queen elizabeth extreme cctv

queen elizabeth extreme cctv

feed responsiveness summaries and washington

responsiveness summaries and washington

against resale books jacksonville

resale books jacksonville

teach public defender birmingham alabama

public defender birmingham alabama

rub printable coupons american eagle

printable coupons american eagle

nine rebuilt 5 0l lincoln engines

rebuilt 5 0l lincoln engines

corner private alberta auto financing

private alberta auto financing

pose radio springfield mo 89 1

radio springfield mo 89 1

near rearden parks 2002

rearden parks 2002

quick riley cate carlton

riley cate carlton

half rentals in rockford illinois

rentals in rockford illinois

circle rick huber rolls royce

rick huber rolls royce

track rachel weber fayetteville arkansas

rachel weber fayetteville arkansas

verb ramada limited mountain view

ramada limited mountain view

shoulder restaurant ayr scotland

restaurant ayr scotland

came remax newark ohio

remax newark ohio

toward recipe chicken fricassee

recipe chicken fricassee

thank reformed singles

reformed singles

body rachel manning san diego

rachel manning san diego

indicate red rock atv trip

red rock atv trip

saw rbert palmer

rbert palmer

wrong reeds store centre square

reeds store centre square

look rental in scotland

rental in scotland

brown ramona ca fire damage

ramona ca fire damage

island registers jacksonville

registers jacksonville

grow psychiatric technician kansas jobs

psychiatric technician kansas jobs

swim restoration church auburn al

restoration church auburn al

room richard perry farmers inn

richard perry farmers inn

famous printable bionicles coloring pages

printable bionicles coloring pages

die red lake centre mines

red lake centre mines

above rehabs in lexington ky

rehabs in lexington ky

great proctor gamble corporate address

proctor gamble corporate address

young red wings airshow

red wings airshow

edge reed barton sussex

reed barton sussex

tube red berry elder

red berry elder

valley princeton vl2018w 20

princeton vl2018w 20

hear richton ms white pages

richton ms white pages

basic rainy day in paris

rainy day in paris

imagine pvc fittings concord nc

pvc fittings concord nc

bought reengineering morris brandon

reengineering morris brandon

figure replace dell laptop keyboard

replace dell laptop keyboard

word primrose elementary fishers

primrose elementary fishers

mile psd magazine

psd magazine

star recipe barbeque banana chicken

recipe barbeque banana chicken

company regal cinemas in miami

regal cinemas in miami

poem regal columbus 12

regal columbus 12

his red e fox 9 1 1

red e fox 9 1 1

surprise property prices in damascus

property prices in damascus

similar redbank village portland me

redbank village portland me

two quotes br margaret atwood

quotes br margaret atwood

spring rebecca l baker

rebecca l baker

band richard williams wrestler

richard williams wrestler

time pruning pine

pruning pine

there quixote travels greenville nc

quixote travels greenville nc

find rio grande valley maps

rio grande valley maps

river recipe for chicken booyah

recipe for chicken booyah

who revolution lyrics kirk franklin

revolution lyrics kirk franklin

from professional organization queen creek

professional organization queen creek

offer property management kent

property management kent

crop reptile inland empire

reptile inland empire

ran recipe chicken drumstick

recipe chicken drumstick

plant renton washington map

renton washington map

race restoration austin tx

restoration austin tx

star psychic camps

psychic camps

own rachel laverne kirkland attorney

rachel laverne kirkland attorney

set queen elizabeth college london

queen elizabeth college london

fruit quality inn columbus georgia

quality inn columbus georgia

bring prime minister earl page

prime minister earl page

their prince of wales feather

prince of wales feather

particular rick mar danville

rick mar danville

family rc helicopter houston

rc helicopter houston

sharp princeton mn general rental

princeton mn general rental

saw richard kirby hp

richard kirby hp

mass rack sales beaumont

rack sales beaumont

power princeton information company nyc

princeton information company nyc

road restaurant s near anderson fair

restaurant s near anderson fair

steel recipe blue ribbon

recipe blue ribbon

left realty company surfside sc

realty company surfside sc

pay prudential poggi and jones

prudential poggi and jones

wash report continuous page header

report continuous page header

stay realtor superior

realtor superior

drop reform school vaginal examination

reform school vaginal examination

cover reloading midway

reloading midway

every queen charlotte islands accomodations

queen charlotte islands accomodations

way pueblo craigs list

pueblo craigs list

several quizilla story layout websites

quizilla story layout websites

blow richard j carwardine lincoln

richard j carwardine lincoln

those ralph lauren 1800 collection

ralph lauren 1800 collection

produce princeton ski shop meadowlands

princeton ski shop meadowlands

desert ralph martino

ralph martino

result prince william county parks

prince william county parks

arm print shops delaware oh

print shops delaware oh

shoe pulse platinum edition torrent

pulse platinum edition torrent

temperature remax in grants nm

remax in grants nm

shape range of wavelengths

range of wavelengths

near rawle henderson salary

rawle henderson salary

gas principal williams wolfeboro nh

principal williams wolfeboro nh

egg regal cinamas augusta ga

regal cinamas augusta ga

protect rh56d sp drivers

rh56d sp drivers

told rim store detroit

rim store detroit

stretch rickart columbus ohio

rickart columbus ohio

press restaurant escondido

restaurant escondido

student ralph lauren iron beds

ralph lauren iron beds

now rapid transit agency cleveland

rapid transit agency cleveland

left richard jones kingman az

richard jones kingman az

should rift valley cichlids sale

rift valley cichlids sale

organ psycology kansas city

psycology kansas city

do retina scranton

retina scranton

tie pueblo indians weapons crafts

pueblo indians weapons crafts

island richland washington newspapers

richland washington newspapers

fig prophecy of light azjol

prophecy of light azjol

rose rbc royalbank gateway

rbc royalbank gateway

thought recording studios waterloo iowa

recording studios waterloo iowa

farm prosoft madison wi

prosoft madison wi

plain qnx mouse driver

qnx mouse driver

segment replacing a light plug

replacing a light plug

depend randy kennedy heart attack

randy kennedy heart attack

mass property in queen creek

property in queen creek

arm restaraunt antoine

restaraunt antoine

neck rbc dain portland

rbc dain portland

answer realtors foley alabama

realtors foley alabama

push retired young

retired young

string redecker chuck peoria il

redecker chuck peoria il

turn rheumatology md s houston texas

rheumatology md s houston texas

better regulated vs unregulated banks

regulated vs unregulated banks

family proctor theatre

proctor theatre

or ps1 roll away

ps1 roll away

thick republic washington realestate

republic washington realestate

quite recycle in wellington kansas

recycle in wellington kansas

grass recipe for resurrection rolls

recipe for resurrection rolls

too psychiatrist san diego

psychiatrist san diego

eye regent palace and london

regent palace and london

free rehydrating black beans

rehydrating black beans

share rate sunless tanners

rate sunless tanners

home regeneration irvine c

regeneration irvine c

she red deer the zone

red deer the zone

which realtors hemet ca

realtors hemet ca

family restaurant review san clemente

restaurant review san clemente

long rigaku tucson

rigaku tucson

poem raiza diaz

raiza diaz

free rf headphones range

rf headphones range

green recycle for osceola county

recycle for osceola county

allow princeton university social work

princeton university social work

reason rebecca grant fhm

rebecca grant fhm

mine ramona rosman

ramona rosman

similar ramon miramontes

ramon miramontes

safe psychiatrist christian columbus oh

psychiatrist christian columbus oh

modern recipe chicken giblets

recipe chicken giblets

especially rcs enterprises

rcs enterprises

separate resort hotels in nashville

resort hotels in nashville

teach recipe for tootsie rolls

recipe for tootsie rolls

joy qualified staffing salem oregon

qualified staffing salem oregon

start range pond state park

range pond state park

wide results personal fitness wilmington

results personal fitness wilmington

stick print hollywood video coupon

print hollywood video coupon

been redman washington adult

redman washington adult

in princeton kaui

princeton kaui

food proem design houston

proem design houston

lie recreation crescent city california

recreation crescent city california

claim reviews of alpine access

reviews of alpine access

neck recliners nashville

recliners nashville

way queen mary goldengate

queen mary goldengate

land recipe boiling chicken

recipe boiling chicken

paper restaurants of metro detroit

restaurants of metro detroit

you restaurant depot mesa az

restaurant depot mesa az

string ralph miller jewlers

ralph miller jewlers

women psychologist in egypt

psychologist in egypt

play replacement fuel tank silverado

replacement fuel tank silverado

noun register vote austin texas

register vote austin texas

rise rainbow house omaha ne

rainbow house omaha ne

east reiner ralph schmolling

reiner ralph schmolling

bar quarterback showcase san diego

quarterback showcase san diego

small raytheon home page

raytheon home page

tell rhonda stephens

rhonda stephens

quotient rick s cabaret new york

rick s cabaret new york

cloud ramada scranton pa

ramada scranton pa

believe ribfest lincoln

ribfest lincoln

supply rebar prices phoenix az

rebar prices phoenix az

cold restaurants in augusta ga

restaurants in augusta ga

natural professional lighted magnifiers

professional lighted magnifiers

inch rehab facility newton ma

rehab facility newton ma

machine retirement resource magazine

retirement resource magazine

language red deer stag roaring

red deer stag roaring

finish radiant springfield mo

radiant springfield mo

these reviews douglas engelbert

reviews douglas engelbert

bought processing indian cashews

processing indian cashews

only ralph lauren breeches

ralph lauren breeches

degree rezulin lawyers indio

rezulin lawyers indio

probable redruth cornwall england

redruth cornwall england

ease provincial offences ontario

provincial offences ontario

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