ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
restaurants hudson valley

restaurants hudson valley

map ridley park parkers

ridley park parkers

sister railroad museum conway nh

railroad museum conway nh

side raddison in louisville

raddison in louisville

circle radeon 9660 graphics drivers

radeon 9660 graphics drivers

band rainbow records canoga park

rainbow records canoga park

written rich gregory hp

rich gregory hp

too ricky couch jasper

ricky couch jasper

field retrogaming magazines

retrogaming magazines

cent range finding sight 300m

range finding sight 300m

pick recall banquet chicken

recall banquet chicken

final psic grant

psic grant

final princeton lamar perry

princeton lamar perry

steel rascal flats lyrics stand

rascal flats lyrics stand

felt prudental realestate salem oregon

prudental realestate salem oregon

letter receipt duncan house

receipt duncan house

iron red wing workboots

red wing workboots

try relaxation centre bristol

relaxation centre bristol

segment ranger lake egypt

ranger lake egypt

earth red algae pismo beach

red algae pismo beach

miss radio shack austin springdale

radio shack austin springdale

road recieve cash

recieve cash

team quad light switch plate

quad light switch plate

bottom ralph mctell judy sill

ralph mctell judy sill

during recessions and washington dc

recessions and washington dc

clothe rightious jefferson

rightious jefferson

rich radar flat out wheels

radar flat out wheels

yellow rexel akron

rexel akron

stop ring appraiser san diego

ring appraiser san diego

design rit amy clay

rit amy clay

dear princeton youth hockey assosiation

princeton youth hockey assosiation

section recipe for chicken pepperoni

recipe for chicken pepperoni

island ralph anievas

ralph anievas

cost reproductive associates of delaware

reproductive associates of delaware

motion princess blue holly

princess blue holly

noun pride of charlotte band

pride of charlotte band

often recapturing the wesley s vision

recapturing the wesley s vision

from red bird campbells coupons

red bird campbells coupons

to red cross st petersburg

red cross st petersburg

fun reggie carson

reggie carson

men ragnarok wings item

ragnarok wings item

chief review of gateway laptops

review of gateway laptops

straight pueblo seco mesa az

pueblo seco mesa az

arrange residence inn long beach

residence inn long beach

sheet printable atkins diet rules

printable atkins diet rules

ocean rainfall totals greenville spartanbur

rainfall totals greenville spartanbur

car primose oil nashville

primose oil nashville

go rico royal manufacturer

rico royal manufacturer

was results komen houston run

results komen houston run

after recipe roll shortening

recipe roll shortening

save realty solutions johnson city

realty solutions johnson city

success purseket light

purseket light

circle ralph taylor jr

ralph taylor jr

call rickenbacher columbus ohio

rickenbacher columbus ohio

mark rat breeders of washington

rat breeders of washington

carry restaurants in gadsden al

restaurants in gadsden al

better property springfield oregon

property springfield oregon

late range for goats

range for goats

four rich franklin anderson silvia

rich franklin anderson silvia

search rachel borden detroit mi

rachel borden detroit mi

poor propane gas mesa az

propane gas mesa az

push rentals in catalina

rentals in catalina

steel risk partners melbourne

risk partners melbourne

pay qca ruby plus

qca ruby plus

gold restaurants rancho cucamonga

restaurants rancho cucamonga

thin ralph neighbour mentoring program

ralph neighbour mentoring program

fire ralph olsen maine

ralph olsen maine

star rate keiser college

rate keiser college

above ricart ford columbus oh

ricart ford columbus oh

shine republican presidental rudy

republican presidental rudy

stretch rhyming story books

rhyming story books

guide quatar water parks

quatar water parks

character resturants portland maine

resturants portland maine

late reggie anderson

reggie anderson

chick realtors scotland

realtors scotland

bear railway ties miami

railway ties miami

river restaurants that cater brooklyn

restaurants that cater brooklyn

father recording studio melbourne

recording studio melbourne

hurry railroad springfield mo

railroad springfield mo

catch resort parks internationa

resort parks internationa

win recipes of harriet tubman

recipes of harriet tubman

moment princeton use key

princeton use key

white ribbon rolled stickers

ribbon rolled stickers

shine ralph villman

ralph villman

are rebel miami clothing store

rebel miami clothing store

stretch randy jay butler ok

randy jay butler ok

yellow radiata pine wikipedia

radiata pine wikipedia

necessary princess charlotte royal berkshire

princess charlotte royal berkshire

for princeton optronics

princeton optronics

lone relocating to mansfield tx

relocating to mansfield tx

list rental riverside video

rental riverside video

cow proclarity dynamic date range

proclarity dynamic date range

famous qu bec rotique magazine

qu bec rotique magazine

cause restauracion casa de tucuman

restauracion casa de tucuman

poor razmataz scottsdale az

razmataz scottsdale az

picture restruants in detroit

restruants in detroit

field recipe for orange ruffy

recipe for orange ruffy

win richard gould apache

richard gould apache

song restaurants newark ny

restaurants newark ny

prove quotes about young daughters

quotes about young daughters

shape redondo beach cab

redondo beach cab

jump rca jack speakers

rca jack speakers

else randy weaver ed brown

randy weaver ed brown

be pti airport greensboro

pti airport greensboro

story richard standish clinton ct

richard standish clinton ct

say raritan borough new jersey

raritan borough new jersey

fact reduce dark eye circle

reduce dark eye circle

group ralph lauren regent metallics

ralph lauren regent metallics

must richard stratford

richard stratford

spoke prostituition fl jacksonville

prostituition fl jacksonville

map ps2 isos for black

ps2 isos for black

die red lake indian cheifs

red lake indian cheifs

moment queen elizabeth s speeches

queen elizabeth s speeches

heavy ratatouille colouring page

ratatouille colouring page

trouble prudential collinsville ct

prudential collinsville ct

door ramona dam

ramona dam

above ralph nader articles

ralph nader articles

practice recording studios miami

recording studios miami

mother rick haas tanner

rick haas tanner

kind reviews on billy banks

reviews on billy banks

them pronto italiono houston tx

pronto italiono houston tx

now raeford flowers wilson

raeford flowers wilson

gone quotes by elizabeth alexander

quotes by elizabeth alexander

listen ramona everhard north carolina

ramona everhard north carolina

still reducing psa level

reducing psa level

quiet red black duvet comforter

red black duvet comforter

win radiosurgery centre argentina

radiosurgery centre argentina

flat ralph nader wife

ralph nader wife

sail ramona baylor address ny

ramona baylor address ny

sound range of iq scores

range of iq scores

course ralph s san diego ca

ralph s san diego ca

few rik s music knoxville

rik s music knoxville

mix rapid fit perth scotland

rapid fit perth scotland

lie red harvest dashiell hammett

red harvest dashiell hammett

in rec reunion newport

rec reunion newport

tool ralph s grocery fortune

ralph s grocery fortune

bottom radio 2005 chevy silverado

radio 2005 chevy silverado

line red dobermans washington

red dobermans washington

forest restuarunts in rancho cucamonga

restuarunts in rancho cucamonga

trip princess portuguese empire

princess portuguese empire

position reflex bighorn hunter

reflex bighorn hunter

final princeton home floor plans

princeton home floor plans

happen riley johnson south webster

riley johnson south webster

finish retail preemie miami

retail preemie miami

fat qingqi eagle

qingqi eagle

dress quilting barn arlington

quilting barn arlington

also ptw new york

ptw new york

back revolutions houston

revolutions houston

brown rickshaw driver

rickshaw driver

bought rebecca j stanfield

rebecca j stanfield

fresh property batavia new york

property batavia new york

either ramadan in egypt

ramadan in egypt

high reed barton sheffiled collection

reed barton sheffiled collection

bear red lights design flaws

red lights design flaws

break raekwon rogers

raekwon rogers

heart reboot stratford nj

reboot stratford nj

how pyne pine ancestry

pyne pine ancestry

arrive retailers of new york

retailers of new york

yes racquetball court miami beach

racquetball court miami beach

event restraunts michigan troy birmingham

restraunts michigan troy birmingham

an republican congress michigan

republican congress michigan

question radisson peoria

radisson peoria

hat range rider truck canopy

range rider truck canopy

contain red wings merchandise

red wings merchandise

say regal cinima lexington ky

regal cinima lexington ky

me rhodedendron parade humboldt

rhodedendron parade humboldt

rain richard black thoraic surgeon

richard black thoraic surgeon

half proof louisville ky

proof louisville ky

ten products flat roof

products flat roof

number quality control training tucson

quality control training tucson

whether property shady valley virginia

property shady valley virginia

sand resturants in kansas city

resturants in kansas city

track rc auction new york

rc auction new york

visit richard groves ontario forestry

richard groves ontario forestry

near redlands ticket brokers

redlands ticket brokers

team rebecca noelle parks

rebecca noelle parks

few recette aiguillettes canard orange

recette aiguillettes canard orange

interest recovery ward nurse

recovery ward nurse

off restaurant construction magazine

restaurant construction magazine

shoulder quitman co textile co

quitman co textile co

won't rice israel palestine

rice israel palestine

subject richard burns oxford mississippi

richard burns oxford mississippi

million racheal gordon jodi gordon

racheal gordon jodi gordon

book rates at peninsula manila

rates at peninsula manila

keep rasor austin tx

rasor austin tx

exercise rep john campbell

rep john campbell

him printable valentine s day pictures

printable valentine s day pictures

to rehab west orange

rehab west orange

fraction rickey butler

rickey butler

year ramona castaneda

ramona castaneda

record redwing ontario

redwing ontario

is psychedelic surreal magazine collages

psychedelic surreal magazine collages

new reese fowler

reese fowler

danger rain garden kansas city

rain garden kansas city

early quinton jackson figurine

quinton jackson figurine

small red vs blue 78

red vs blue 78

measure richard wilson vero group

richard wilson vero group

material redick inn omaha ne

redick inn omaha ne

character resorts in dana point

resorts in dana point

know prim west

prim west

men replacement windows grants canada

replacement windows grants canada

she publix north miami

publix north miami

column prison reform group

prison reform group

what queen elizabeth hospital vic

queen elizabeth hospital vic

little racerx web page

racerx web page

north prima tronics lights

prima tronics lights

know recepies for kfc chicken

recepies for kfc chicken

dog redding ca parks

redding ca parks

did restaurant 75005 paris

restaurant 75005 paris

break redneck towtruck driver

redneck towtruck driver

instrument review miami jet tours

review miami jet tours

nine queen elizabeth dwarf

queen elizabeth dwarf

rose prevention magazine ticks

prevention magazine ticks

two public libraries scranton pa

public libraries scranton pa

tall professional organizers portland

professional organizers portland

wide printing northridge

printing northridge

through queen elizabeth hospital physiotherapy

queen elizabeth hospital physiotherapy

street raffles cafe mandaley bay

raffles cafe mandaley bay

ball repelling deer

repelling deer

tell richland chambers wetland project

richland chambers wetland project

more radeon x800 platinum edtion

radeon x800 platinum edtion

ready red pine propagation

red pine propagation

in rebekah roberts scranton

rebekah roberts scranton

save railway bar brighton melbourne

railway bar brighton melbourne

other raymond scott lightworks

raymond scott lightworks

imagine retail birmingham

retail birmingham

thin ptgd1 la motherboard drivers

ptgd1 la motherboard drivers

middle remax kansas city area

remax kansas city area

organ purple sage restaurant

purple sage restaurant

green ramadan children stories

ramadan children stories

I quilt shop madison maine

quilt shop madison maine

fit religious nascar driver

religious nascar driver

teeth restricted cash financials

restricted cash financials

between redlands ford ca

redlands ford ca

nature resorts pinetop az

resorts pinetop az

language republican club of austin

republican club of austin

smile remax brokers springfield mo

remax brokers springfield mo

found records management oakville ontario

records management oakville ontario

shine red rover clothing company

red rover clothing company

major radio rebelde cuba

radio rebelde cuba

cent rison wildcats

rison wildcats

one raritan valley colg club

raritan valley colg club

order psychiatry adhd los angeles

psychiatry adhd los angeles

thick richard austin greeneville tn

richard austin greeneville tn

dad producers hollywood florida fl

producers hollywood florida fl

they purrfect eva board

purrfect eva board

present realty enterprise advisors inc

realty enterprise advisors inc

our rhodes rolls recipes

rhodes rolls recipes

shop red roof columbus oh

red roof columbus oh

fruit richard black custom cues

richard black custom cues

length repossed grand banks boats

repossed grand banks boats

unit richard kennedy woolpack man

richard kennedy woolpack man

hold rank and percentile excel

rank and percentile excel

glad rainforest herbs book taylor

rainforest herbs book taylor

first princeton memorial library wv

princeton memorial library wv

tree racer edge magazine

racer edge magazine

city quarternary ammonium chloride quats

quarternary ammonium chloride quats

milk reid park tucson arizona

reid park tucson arizona

from pruitts phoenix

pruitts phoenix

mark quebec cheer camps

quebec cheer camps

fear resorts in central minn

resorts in central minn

stream provident bank new jersey

provident bank new jersey

key recruiter jacksonville florida

recruiter jacksonville florida

light raymond dawson waco texas

raymond dawson waco texas

brought ray s hardware jacksonville fl

ray s hardware jacksonville fl

with retirment community auburn ca

retirment community auburn ca

an rachel waddell korea

rachel waddell korea

mountain ralph lauren newborn

ralph lauren newborn

from rebecca taylor calgary

rebecca taylor calgary

four princeton wrestling tourney

princeton wrestling tourney

won't quincy jones peggy lipton

quincy jones peggy lipton

hope richard moulton claremont nh

richard moulton claremont nh

keep psycholigists bucks county pa

psycholigists bucks county pa

create radio 860 phoenix

radio 860 phoenix

organ retablos austin

retablos austin

summer pspca centre county

pspca centre county

next relative size of circles

relative size of circles

color red silverado diecast

red silverado diecast

sign ralph nader bio

ralph nader bio

now richard taylor lighting

richard taylor lighting

boy quinton marseilles

quinton marseilles

populate puerta vallarta royal decameron

puerta vallarta royal decameron

lie printers in venice

printers in venice

may recycle parts detroit

recycle parts detroit

east pueblo food stamps

pueblo food stamps

bear reedbusiness thomas corcoran

reedbusiness thomas corcoran

the rebuilt television tucson

rebuilt television tucson

bed que pasa charlotte nc

que pasa charlotte nc

art richmond hill ontario library

richmond hill ontario library

wife rick springfield children

rick springfield children

imagine rick warren and purpose

rick warren and purpose

apple recipe cabbage rolls

recipe cabbage rolls

that riparian preserve gilbert az

riparian preserve gilbert az

kind rasberry walnut homemade dressing

rasberry walnut homemade dressing

space queen creek marketplace

queen creek marketplace

find recipes of cherokee indians

recipes of cherokee indians

trade ralph lauren bath towel

ralph lauren bath towel

them rio realty beaverton

rio realty beaverton

men pyromania lafayette louisiana

pyromania lafayette louisiana

early rental houses portland

rental houses portland

egg printable calendar page

printable calendar page

shop rebecca bassett 2008

rebecca bassett 2008

caught priemer nissan paris tn

priemer nissan paris tn

fight promotional ribbon tuscaloosa

promotional ribbon tuscaloosa

war rainforest cafe new york

rainforest cafe new york

against rant poetry magazine

rant poetry magazine

numeral rapid start shop lights

rapid start shop lights

dad resurection church mesa az

resurection church mesa az

horse ramona borke

ramona borke

stretch radisson harrisburg pa

radisson harrisburg pa

matter restaraunts carpinteria ca

restaraunts carpinteria ca

dark recruiter at tyler search

recruiter at tyler search

but restaurants somerville ma

restaurants somerville ma

with restuants salem oregon

restuants salem oregon

from residents of copetown ontario

residents of copetown ontario

present process server logan ia

process server logan ia

make receiver lighted hitch cover

receiver lighted hitch cover

fire quaid new york post

quaid new york post

wing queen elizabeth hospital victoria

queen elizabeth hospital victoria

soldier quality inn fayetteville arkansas

quality inn fayetteville arkansas

come rachael york wikipedia

rachael york wikipedia

art reviews timon of athens

reviews timon of athens

yard raymone d washington jr

raymone d washington jr

cell restarants in goodyear

restarants in goodyear

yard religious problems in jerusalem

religious problems in jerusalem

took reviews flat iron

reviews flat iron

might quote on langston hughes

quote on langston hughes

join rain restaurant geneva ill

rain restaurant geneva ill

two puchasing magazine

puchasing magazine

pound residence inn portland oregaon

residence inn portland oregaon

bank quotes about national independence

quotes about national independence

their put in bay ferry

put in bay ferry

difficult pussycat dolls nba jersey

pussycat dolls nba jersey

clothe raileurope in london

raileurope in london

both racoon young

racoon young

job rhinestone floral sprays

rhinestone floral sprays

unit restaurants in lancaster californina

restaurants in lancaster californina

happen richard gist tulare california

richard gist tulare california

stretch receptionist in washington dc

receptionist in washington dc

length red cat jazz houston

red cat jazz houston

same rio grande river fisher

rio grande river fisher

earth red wing shoes 4456

red wing shoes 4456

still richard langley lake county

richard langley lake county

young range selector issues

range selector issues

record religious goods in miami

religious goods in miami

noise princeton tools

princeton tools

clear rgi rockford

rgi rockford

equal raymond n beebe

raymond n beebe

you proctor model airplanes

proctor model airplanes

fat quantum leap star scott

quantum leap star scott

tire ray hamilton hio state

ray hamilton hio state

eat rachelle royer lowell

rachelle royer lowell

key ridgecrest local newspaper

ridgecrest local newspaper

ago richard cleveland paper

richard cleveland paper

small rhonda byrnes london times

rhonda byrnes london times

require ravi shankar paramount theater

ravi shankar paramount theater

spell restaurant games new jersey

restaurant games new jersey

bell queen elizabeth ii s birthday

queen elizabeth ii s birthday

job restaurant in hartford ct

restaurant in hartford ct

mountain range analysis perker loop

range analysis perker loop

rock primitive camping kansas

primitive camping kansas

consonant pt145 pro with light

pt145 pro with light

noise quinton poetry grandmother

quinton poetry grandmother

rather remax carrollton listings

remax carrollton listings

could princess auto red deer

princess auto red deer

move pujols black jersey

pujols black jersey

arrange religious christmas coloring pages

religious christmas coloring pages

separate ralph lauren sunglasses 7562

ralph lauren sunglasses 7562

person restaurants indian queens ny

restaurants indian queens ny

table rd labs corona ca

rd labs corona ca

beauty rain barrel nashville tn

rain barrel nashville tn

neck repair device driver problems

repair device driver problems

pound richard whatley rhetoric

richard whatley rhetoric

equal promotional code watson adventures

promotional code watson adventures

roll radio disney cleveland

radio disney cleveland

bit ransoms furniture newport nh

ransoms furniture newport nh

grew rebuild levees 9th ward

rebuild levees 9th ward

repeat ralph lauren napkin rings

ralph lauren napkin rings

meet ps90 magazine

ps90 magazine

coat recipe forrest chicken

recipe forrest chicken

either reltek drivers

reltek drivers

lie radiant styles lynn ma

radiant styles lynn ma

father rascal flats msypace

rascal flats msypace

wind queen mary war brides

queen mary war brides

flat public hearing fairbanks

public hearing fairbanks

silent range rover alarm

range rover alarm

join relocating to portland oregon

relocating to portland oregon

table prudential in san diego

prudential in san diego

will redlands transport

redlands transport

hair reseda ca map

reseda ca map

cover printing clanton alabama

printing clanton alabama

wife redtube taylor rain

redtube taylor rain

period rediscover kansas city mo

rediscover kansas city mo

should rally driver john mccarthy

rally driver john mccarthy

neighbor qpw file to excel

qpw file to excel

grand rachel rosenthal newport beach

rachel rosenthal newport beach

off proctor and associates inc

proctor and associates inc

verb prospectus southgate college london

prospectus southgate college london

answer push gym thunder bay

push gym thunder bay

simple primed fj

primed fj

green ralph s ca

ralph s ca

house radisson phoenix airport hotel

radisson phoenix airport hotel

air rainbow wranglers cleveland ohio

rainbow wranglers cleveland ohio

an psychic accountant cpa valley

psychic accountant cpa valley

wrong quarles house selma alabama

quarles house selma alabama

rest remax kitchener ontario

remax kitchener ontario

feet ratdog nashville

ratdog nashville

cloud red black saturn barstool

red black saturn barstool

train regal theatres in bowie

regal theatres in bowie

quiet religious poem for friendship

religious poem for friendship

perhaps providence country club charlotte

providence country club charlotte

talk residence inn san clemente

residence inn san clemente

though rebecca benson elder law

rebecca benson elder law

change rheem dealers portland oregon

rheem dealers portland oregon

as red foley free downloads

red foley free downloads

face rimrock water station

rimrock water station

pull raleigh s first roanoke colony

raleigh s first roanoke colony

dollar prison in topeka kansas

prison in topeka kansas

use restaurant jazz new york

restaurant jazz new york

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