_

ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
puerto rico michael watson

puerto rico michael watson

beat richard t peterson birthday

richard t peterson birthday

have recessions england

recessions england

bat protege of charlie parker

protege of charlie parker

stay radio station 1100 cleveland

radio station 1100 cleveland

vary recycle remodeling san diego

recycle remodeling san diego

told recipe for chicken taquitos

recipe for chicken taquitos

magnet quartier bastille le paris

quartier bastille le paris

catch rights quotations frederick douglass

rights quotations frederick douglass

sentence rayne club greenville sc

rayne club greenville sc

expect professional grant writing

professional grant writing

sand pussy willow hot

pussy willow hot

night ralph lauren clothing manufacturers

ralph lauren clothing manufacturers

engine purple people lafayette

purple people lafayette

pound radiata pine characteristics

radiata pine characteristics

team printf options vista

printf options vista

heart rapides parrish pva

rapides parrish pva

learn richard reed lancaster

richard reed lancaster

spell promotional code delta

promotional code delta

large red clay ramblers

red clay ramblers

level ralph valdes

ralph valdes

matter property taxes athens ga

property taxes athens ga

place ragone clayton de

ragone clayton de

energy ranier valley unitarian universalist

ranier valley unitarian universalist

strong relocating tp knoxville

relocating tp knoxville

death ralph lauren romance

ralph lauren romance

girl retro chic blue quilt

retro chic blue quilt

print ralph schneider siemens

ralph schneider siemens

expect richard taylor jacob said

richard taylor jacob said

dress proper red fox skinning

proper red fox skinning

arrange red lion hotel stapleton

red lion hotel stapleton

offer primitive pine rocker

primitive pine rocker

house richard neahring salem or

richard neahring salem or

edge rick warren not christian

rick warren not christian

light retail jobs cleveland ohio

retail jobs cleveland ohio

ring pteranodon wing skeleton

pteranodon wing skeleton

late realty rental listing charlotte

realty rental listing charlotte

fruit rachal carson

rachal carson

send ray washington real estate

ray washington real estate

large resturants in lafayette indiana

resturants in lafayette indiana

several providence baptist church detroit

providence baptist church detroit

cover refraction bending light

refraction bending light

light radiant school of light

radiant school of light

broad reeds furniture agoura hills

reeds furniture agoura hills

may pyranah kayak home page

pyranah kayak home page

cut rental margaret river australia

rental margaret river australia

lady restaurant kingston ontario

restaurant kingston ontario

age quilt store winchester ky

quilt store winchester ky

your recharging dell li on batteries

recharging dell li on batteries

large professional registration anderson ca

professional registration anderson ca

receive printable craft pages

printable craft pages

off reid dryden alberta

reid dryden alberta

want quinta do monte hotel

quinta do monte hotel

felt riding camp orangeville

riding camp orangeville

tool ralph loren fragrance

ralph loren fragrance

thank rifle ranges franklin tn

rifle ranges franklin tn

clock prunning pine trees

prunning pine trees

shoe retractable tri tap cord reel

retractable tri tap cord reel

mile registered charities ontario

registered charities ontario

just ramada in wisconsin dells

ramada in wisconsin dells

before regina yates decatur

regina yates decatur

trip procharger silverado

procharger silverado

many ralph lauren 5021 sunglasses

ralph lauren 5021 sunglasses

smile ramona pictures art

ramona pictures art

new railroad conway new hampshire

railroad conway new hampshire

store red light hair district

red light hair district

piece quilt store austin texas

quilt store austin texas

spring quality inn addison tx

quality inn addison tx

left rebecca wittmann

rebecca wittmann

speak reardon mortuary oxnard california

reardon mortuary oxnard california

winter rentals bakersfield

rentals bakersfield

mean research methods goodwin

research methods goodwin

clear rebecca solomon australia

rebecca solomon australia

particular protected hawaiian chickens

protected hawaiian chickens

wild redmond washington game college

redmond washington game college

glass quinton groves injury report

quinton groves injury report

case ramona smart

ramona smart

than rca jacks lansing michigan

rca jacks lansing michigan

fast proxy hunter

proxy hunter

air richard alington rolls chapel

richard alington rolls chapel

coast richard barrett jr jacksonville

richard barrett jr jacksonville

made quebec made porn magazines

quebec made porn magazines

ship production about birmingham

production about birmingham

brown previous ss admiralty bay

previous ss admiralty bay

effect quartzsite rv lots

quartzsite rv lots

fig regions bank indiana marion

regions bank indiana marion

got rasoi restaurant london

rasoi restaurant london

fall red rock river grill

red rock river grill

broad purple twisted cord

purple twisted cord

feel recycled scottsdale

recycled scottsdale

expect psychiatrist springfield mo

psychiatrist springfield mo

settle restaurants monroe avenue pittsford

restaurants monroe avenue pittsford

large rejuvenation spa portland or

rejuvenation spa portland or

ocean rich franklin ufc

rich franklin ufc

point rainfall in portland or

rainfall in portland or

field raymond davis selma al

raymond davis selma al

forest richardson stadium kingston on

richardson stadium kingston on

now rachel elizabeth clips

rachel elizabeth clips

claim rheem valley

rheem valley

bat reformed mennonite

reformed mennonite

deep psycology magazine

psycology magazine

better replace track light

replace track light

at reptile parks in florida

reptile parks in florida

agree raleigh salve charlotte nc

raleigh salve charlotte nc

best raindrops inc ashland oh

raindrops inc ashland oh

build rentals princeton nj

rentals princeton nj

law rachel bergman my space

rachel bergman my space

won't rental property greenville nc

rental property greenville nc

system providence clear channel

providence clear channel

collect ralph lauren corduroy jacket

ralph lauren corduroy jacket

silver prime time waterloo ia

prime time waterloo ia

example remax cross country lewisville

remax cross country lewisville

written pride of kinston nc

pride of kinston nc

current restaurant charlotte fu lin

restaurant charlotte fu lin

every rhymes coloring pages

rhymes coloring pages

million primate sanctuary san diego

primate sanctuary san diego

there rayford w logan historian

rayford w logan historian

big privacy fence mobile al

privacy fence mobile al

won't richard b young acushnet

richard b young acushnet

street ralph vaugnan williams

ralph vaugnan williams

apple psychodrama group lancaster uk

psychodrama group lancaster uk

or recovery disc install drivers

recovery disc install drivers

take ralph trine angola in

ralph trine angola in

week rialto bridge interesting facts

rialto bridge interesting facts

top right branch bundle block

right branch bundle block

on priority credit union russellville

priority credit union russellville

clothe reese witherspoon s success

reese witherspoon s success

sat reese duncan

reese duncan

am reese williams realtor

reese williams realtor

region rental wildomar ca

rental wildomar ca

drive rachel shanahan washington

rachel shanahan washington

speed pyle blue wave amplifier

pyle blue wave amplifier

dress reconstruction lincoln and radicals

reconstruction lincoln and radicals

hit printable giraffe coloring pages

printable giraffe coloring pages

usual quantitative eeg hartford connecticut

quantitative eeg hartford connecticut

free retirement homes anchorage

retirement homes anchorage

general red october norv turner

red october norv turner

poem princeton on bullshit

princeton on bullshit

weight rio valley railroad

rio valley railroad

circle reko tool windsor ontario

reko tool windsor ontario

blood red deer memorial center

red deer memorial center

ride printable a z london map

printable a z london map

once radiance nightclub houston texas

radiance nightclub houston texas

class racing catalina 22 capri

racing catalina 22 capri

plan reese marshall norwich ny

reese marshall norwich ny

join raquel york sidney ohio

raquel york sidney ohio

chick replace fuelfilter 93 cherokee

replace fuelfilter 93 cherokee

stone richard duncan oil

richard duncan oil

rest replacing ge microwave light

replacing ge microwave light

town ramapough indians

ramapough indians

fresh proxy page bebo

proxy page bebo

she queen latifah excederin

queen latifah excederin

segment rachel vincent stray

rachel vincent stray

shoulder printable disney colouring pages

printable disney colouring pages

over raising chickens for tyson

raising chickens for tyson

cold qkw dustin ward

qkw dustin ward

general richard phelan

richard phelan

ride red rock marina iowa

red rock marina iowa

live replace lincoln window motor

replace lincoln window motor

yard recipe honey mustard wing

recipe honey mustard wing

possible range rover westminister

range rover westminister

strange rick ridings jerusalem

rick ridings jerusalem

egg recreation parks bellingham wa

recreation parks bellingham wa

hurry raw resturants san diego

raw resturants san diego

line princess diana queen elizabeth

princess diana queen elizabeth

history qi gong class houston

qi gong class houston

note printer device drivers

printer device drivers

letter ralphs super market brochure

ralphs super market brochure

decide ray forrest harvey

ray forrest harvey

idea request gainesville fl

request gainesville fl

fraction release colonics new york

release colonics new york

wonder radiance medical spa charlotte

radiance medical spa charlotte

spot reebok outlet carlsbad

reebok outlet carlsbad

make priority mortgage altoona

priority mortgage altoona

you restaurants in helena mt

restaurants in helena mt

natural rick mills henderson nevada

rick mills henderson nevada

whose renting prices benton ar

renting prices benton ar

control replacements greensboro nc

replacements greensboro nc

natural repairing the ozone layer

repairing the ozone layer

practice publishing mount morris

publishing mount morris

tiny ralph babe

ralph babe

miss rim shops in houston

rim shops in houston

during red devil coloring pages

red devil coloring pages

well property records pima county

property records pima county

snow radio repeater beaumont texas

radio repeater beaumont texas

learn richard ford lynn ma

richard ford lynn ma

throw priority plumbing princeton il

priority plumbing princeton il

full residents inn beverly hills

residents inn beverly hills

toward quistor oracle

quistor oracle

process proctors theater ny

proctors theater ny

add red black game cooperation

red black game cooperation

post puck ceiling lights

puck ceiling lights

direct reviews royal decameron panama

reviews royal decameron panama

please property of camp woodmen

property of camp woodmen

people princeton ski roslyn

princeton ski roslyn

bar printer z645 offline vista

printer z645 offline vista

mark quilt pattern washington sidewalk

quilt pattern washington sidewalk

call range of testerone levels

range of testerone levels

measure ralph archuleta

ralph archuleta

old rilo austin dvd

rilo austin dvd

steam restaurants new castle

restaurants new castle

big red rock kayla kleevage

red rock kayla kleevage

study rania badr egypt

rania badr egypt

cat ray scott fishing lodge

ray scott fishing lodge

their reginald kennedy

reginald kennedy

open ramon valley school

ramon valley school

paper recipe chicken fettucine alfredo

recipe chicken fettucine alfredo

why recipe chicken thyme

recipe chicken thyme

cover quinton mills ministries

quinton mills ministries

claim put in bay nude

put in bay nude

cause range rover colors 2004

range rover colors 2004

verb ralph lauren belts

ralph lauren belts

close refuse austin tx

refuse austin tx

under rajesh ivan moses

rajesh ivan moses

mother recipe indian potatoes

recipe indian potatoes

industry racoon river valley trail

racoon river valley trail

room property for sale washington

property for sale washington

place rimrock homes

rimrock homes

able princeton nj sedan service

princeton nj sedan service

thousand professional staffing scottsdale

professional staffing scottsdale

young reproduction magazines

reproduction magazines

above richard johnson st lucie

richard johnson st lucie

under red ginger auburn haircolor

red ginger auburn haircolor

board providence ri independence trail

providence ri independence trail

stay ramada hollywood beach hotel

ramada hollywood beach hotel

slave rhoda fouts campbell

rhoda fouts campbell

a property surveyors essex

property surveyors essex

wave rae lawson

rae lawson

thus radio shack headphone jack

radio shack headphone jack

cloud pricing cold rolled steel

pricing cold rolled steel

mind rebel bay boats

rebel bay boats

lay ramona markstein cat fritz

ramona markstein cat fritz

meant richard brown 1600 salem

richard brown 1600 salem

solution rcd santee

rcd santee

cause puye indian ruins

puye indian ruins

glad price pfister ashfield light

price pfister ashfield light

meet range hoods ideas

range hoods ideas

last ray flat river mo

ray flat river mo

train rice lake tallgrass ontario

rice lake tallgrass ontario

corner registred farriers in essex

registred farriers in essex

master revival jefferson airplane

revival jefferson airplane

dollar proof reader in miami

proof reader in miami

fish red wing bail handles

red wing bail handles

shout quarterhorse congress

quarterhorse congress

father raymonds bakersfield kern trophy

raymonds bakersfield kern trophy

plant quebec story

quebec story

property printable art coloring pages

printable art coloring pages

strong putrid stories

putrid stories

men rimrock enterprises justin tx

rimrock enterprises justin tx

cell refurbished harmony 670

refurbished harmony 670

for reginald washington of nara

reginald washington of nara

segment radeon x600 series drivers

radeon x600 series drivers

had raymond francis hodges

raymond francis hodges

size repair manual imperial

repair manual imperial

eat rie enterprises

rie enterprises

force riley shannon e ohio

riley shannon e ohio

similar rewrite your life story

rewrite your life story

too religous stories like footprints

religous stories like footprints

law raleigh craigs

raleigh craigs

plant ramanos in parker

ramanos in parker

element quantumsphere home page

quantumsphere home page

milk princeton lacrosse camp

princeton lacrosse camp

oxygen ralph mudd moberly

ralph mudd moberly

truck ricky ray rector ethics

ricky ray rector ethics

even replacement fan dell 8400

replacement fan dell 8400

line reeves awnings scranton pa

reeves awnings scranton pa

grand retin a success

retin a success

segment pyramid valley fairmont wv

pyramid valley fairmont wv

you purple jersey knit sheets

purple jersey knit sheets

early property lien new york

property lien new york

color raigen thornton

raigen thornton

snow radams kennedy

radams kennedy

box proctor gamble v ontario

proctor gamble v ontario

smile rain barrels addison

rain barrels addison

hit rentals in optima scottsdale

rentals in optima scottsdale

whose richard scott cherry hill

richard scott cherry hill

reason psychological corporation normal curve

psychological corporation normal curve

our princeton rum river parade

princeton rum river parade

window restaurants new lenox illinois

restaurants new lenox illinois

class ri dog parks

ri dog parks

market resume oracle rdf

resume oracle rdf

stead rialto shopping centers

rialto shopping centers

whether rat chicken cartoon

rat chicken cartoon

send primed boxer berdan

primed boxer berdan

eight redmen smith center kansas

redmen smith center kansas

rain red mulberry info

red mulberry info

boy reed barton cameo

reed barton cameo

born rico alpine society

rico alpine society

yellow queen elizabeths official birthbay

queen elizabeths official birthbay

afraid recliners in thomasville nc

recliners in thomasville nc

moment psychologist in calabasas

psychologist in calabasas

pick ralph lauren wormen s clothing

ralph lauren wormen s clothing

add ray watson annandale

ray watson annandale

pick raymond addison

raymond addison

again rentals in inverness scotland

rentals in inverness scotland

set range of bullets

range of bullets

example raven rossi words woodland

raven rossi words woodland

share rainfall data birmingham april

rainfall data birmingham april

example ream properties dothan alabama

ream properties dothan alabama

cut richard deye butler email

richard deye butler email

opposite princeton somerset group

princeton somerset group

number rimrock resort

rimrock resort

mine randy pennington

randy pennington

carry printable coloring valentines certificate

printable coloring valentines certificate

spring ramada hotel birmingham

ramada hotel birmingham

solve primm valley nevada

primm valley nevada

music rehab center in franklin

rehab center in franklin

always richard allen johns akron

richard allen johns akron

each primetimers los angeles

primetimers los angeles

though relay for life corona

relay for life corona

week remax huntsville ont

remax huntsville ont

major ramada inn alberta

ramada inn alberta

under reptiles magazine guildelines

reptiles magazine guildelines

discuss ricci s pizza highlands ranch

ricci s pizza highlands ranch

story racheal madison

racheal madison

mount rash curtis and associates

rash curtis and associates

us rats normal body temperature

rats normal body temperature

by resort retreats washington state

resort retreats washington state

wait rejuvenation light

rejuvenation light

particular rental property akron ohio

rental property akron ohio

mix ramada limited austin north

ramada limited austin north

north rehabilitation lexington

rehabilitation lexington

blue rick wilson bp

rick wilson bp

truck rapid city yello pages

rapid city yello pages

self raymond krell houston law

raymond krell houston law

chair regal lanes warren

regal lanes warren

spring redfield illuminator rangefinder instructions

redfield illuminator rangefinder instructions

chair recipe blue hubbard squash

recipe blue hubbard squash

complete rewiring essex

rewiring essex

excite restore excel toolbar

restore excel toolbar

shine ramada inn tyler tx

ramada inn tyler tx

than ramona garcia

ramona garcia

blood price dds scottsdale

price dds scottsdale

shop reo speedwagon dream weaver

reo speedwagon dream weaver

east refrigerator madison

refrigerator madison

company qkw charlotte barkley

qkw charlotte barkley

operate prevention magazine rss feeds

prevention magazine rss feeds

station regional center visalia california

regional center visalia california

fat rachel carson for kids

rachel carson for kids

many ricoh aficio 2022 driver

ricoh aficio 2022 driver

fact range rover trailer plug

range rover trailer plug

sharp rashmi vijay simi valley

rashmi vijay simi valley

quick radisson sas leeds

radisson sas leeds

stream red raven salem massachusetts

red raven salem massachusetts

milk rigging license training melbourne

rigging license training melbourne

spot raymond leslie shirk pa

raymond leslie shirk pa

would resteraunts huntington wv

resteraunts huntington wv

field ramona richter

ramona richter

land restaurant delivery franklin tn

restaurant delivery franklin tn

blow replacement light bulb sockets

replacement light bulb sockets

must richard gordon packer artist

richard gordon packer artist

at richard montgomery homecoming

richard montgomery homecoming

close rental income lenders alberta

rental income lenders alberta

half raquel a jackson

raquel a jackson

help ricardo nieves san diego

ricardo nieves san diego

joy replacing garage door section

replacing garage door section

main renting out dolphin bay

renting out dolphin bay

death red deer furnace prices

red deer furnace prices

five richard ward chicago il

richard ward chicago il

character recipies of valencia

recipies of valencia

matter reporter newspaper antonio stevenson

reporter newspaper antonio stevenson

off red deer wellness clinic

red deer wellness clinic

tool rahway valley sewage authority

rahway valley sewage authority

ear railroads in phoenix arizona

railroads in phoenix arizona

job rachel sterling nude clips

rachel sterling nude clips

take rainbow chicken lazlos

rainbow chicken lazlos

place quantum investments houston texas

quantum investments houston texas

steam reclining wing chair

reclining wing chair

people rada london

rada london

east rap artist steven montgomery

rap artist steven montgomery

numeral rick chrysler oshawa ontario

rick chrysler oshawa ontario

cross queeen elizabeth pocket bears

queeen elizabeth pocket bears

set quantum santa barbara

quantum santa barbara

an reebok black flip flops

reebok black flip flops

rain radisson lexington new york

radisson lexington new york

us resource professional egypt

resource professional egypt

substance raker enterprises corporation

raker enterprises corporation

low redfield ratio

redfield ratio

cloud queen bowie under pressure

queen bowie under pressure

she ralph arambula

ralph arambula

their qantas ralph

qantas ralph

sound printable snoopy coloring pages

printable snoopy coloring pages

colony rachael jackson bigamist

rachael jackson bigamist

or queen elizabeth the 2ed

queen elizabeth the 2ed

wear rasoi edison nj

rasoi edison nj

car reason magazine consumer vertigo

reason magazine consumer vertigo

solution rapid detox lincoln park

rapid detox lincoln park

current puller patton

puller patton

apple red cross of morris

red cross of morris

crease rapala lure england

rapala lure england

twenty radius group santa barbara

radius group santa barbara

cause rare sunsets in venice

rare sunsets in venice

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