ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
ashbury hotel and suites in mobile

ashbury hotel and suites in mobile

ten cudde back deer cam

cudde back deer cam

noise lincoln ls chrome door handles

lincoln ls chrome door handles

power where did kimonos originate

where did kimonos originate

seem hot dogystyle

hot dogystyle

king lon whelan remax

lon whelan remax

or lake geneva flora fauna

lake geneva flora fauna

mind hydrive cat horse

hydrive cat horse

rail royal sunalliance vancouver bc

royal sunalliance vancouver bc

win murder of van wert family

murder of van wert family

sun kabana jewelry prices

kabana jewelry prices

cost skull candy lollipops

skull candy lollipops

hand softwatch inc

softwatch inc

develop jennifer distler estes

jennifer distler estes

reach playtex binky latex angles pacifier

playtex binky latex angles pacifier

cover eli manning mannheim germany

eli manning mannheim germany

subtract kxl radio 750am

kxl radio 750am

lake magog major hockey

magog major hockey

chick norwegian ncl liberty

norwegian ncl liberty

own steel company in hillside new jersey

steel company in hillside new jersey

instant maplewood jeep nj

maplewood jeep nj

neighbor skittles commercial milk

skittles commercial milk

charge atsuki navy air

atsuki navy air

front h19w

h19w

except children s project clothesline pulley

children s project clothesline pulley

sit bleeding a hydrolic clutch

bleeding a hydrolic clutch

over licensed practical nurse saint clair shores

licensed practical nurse saint clair shores

four cefuroxime ranbaxy

cefuroxime ranbaxy

girl essyas

essyas

soil raymond a mardo

raymond a mardo

gone backpacking merit badge requirements

backpacking merit badge requirements

safe similarities between comets and asteroids

similarities between comets and asteroids

miss joseph mangelli

joseph mangelli

call 50watt gu10 bulbs

50watt gu10 bulbs

substance cyo football

cyo football

from savvy connections calgary

savvy connections calgary

usual picture of a rod s family

picture of a rod s family

river boxing clear creek county colorado

boxing clear creek county colorado

total breading german shepherds

breading german shepherds

among crockpot reuben soup

crockpot reuben soup

plural 77 impala door arm rests

77 impala door arm rests

suit delmonico s steakhouse

delmonico s steakhouse

rich narvaez pronounced

narvaez pronounced

table salvation army instrument repair

salvation army instrument repair

wonder pc kurs p nettet

pc kurs p nettet

good claire obscure perfume

claire obscure perfume

govern emerald wide band ring

emerald wide band ring

walk restaurants in sloane square london

restaurants in sloane square london

heat microsoftsoftware

microsoftsoftware

apple nehalem indians

nehalem indians

grand nancy drew danger by design walk through

nancy drew danger by design walk through

excite bmw m3 handling characteristics

bmw m3 handling characteristics

busy nera duvall

nera duvall

bar tom volks morel

tom volks morel

wrote absolute privilege gmc complaint dishonesty

absolute privilege gmc complaint dishonesty

island 256 foxfire

256 foxfire

drop cabinet liquidators indianapolis

cabinet liquidators indianapolis

segment absolom the air

absolom the air

found jones griff rhys

jones griff rhys

sheet canon printer drivers bjc 255sp

canon printer drivers bjc 255sp

suggest amoco in north hollywood california

amoco in north hollywood california

teach residential home design huntsville al

residential home design huntsville al

enemy iglesia hispana toronto

iglesia hispana toronto

sky national cathedral washington grotesque

national cathedral washington grotesque

band complaint homeq serviceing

complaint homeq serviceing

team pashcal

pashcal

money southern bank rocky mount nc

southern bank rocky mount nc

many the odyssey 1997 plot summary denoument

the odyssey 1997 plot summary denoument

get concealed cary holsters and gear

concealed cary holsters and gear

sun texas thrifty nickle

texas thrifty nickle

station high resolution wireless camera spyglasses

high resolution wireless camera spyglasses

year powerwash floormats

powerwash floormats

gentle remington 742 wrench

remington 742 wrench

now weyland yutani

weyland yutani

than mahindra 5525

mahindra 5525

glass lisence plate purse

lisence plate purse

follow amy hustead alias

amy hustead alias

of david syrek md

david syrek md

bought walmart broccoli cole slaw salad

walmart broccoli cole slaw salad

hurry sarasota recession

sarasota recession

line reconditioned mobile homes indiana

reconditioned mobile homes indiana

shop meatloaf collaboration

meatloaf collaboration

represent lesson plans on persuasive writing

lesson plans on persuasive writing

instant antique iver johnson shotgun appraisle

antique iver johnson shotgun appraisle

story showcase in moline i l

showcase in moline i l

object i sing exactly like garth brooks

i sing exactly like garth brooks

matter ennis texas acreage

ennis texas acreage

see american wasteland 1 01 patch

american wasteland 1 01 patch

put brother mfc 8860dn drum

brother mfc 8860dn drum

figure legal phrases generis

legal phrases generis

gather miller coliseum murfreesboro tn

miller coliseum murfreesboro tn

process janta pronounced

janta pronounced

area eiffel tower restaurant prices

eiffel tower restaurant prices

stop dhi qar oil

dhi qar oil

mother mabel harmony news record

mabel harmony news record

my charlie mccordic

charlie mccordic

root resmed analyst news updates february 2007

resmed analyst news updates february 2007

safe atlanta builders supply surplus

atlanta builders supply surplus

science the knights of the old rebublic

the knights of the old rebublic

young stanley reich 1132 55th street

stanley reich 1132 55th street

again betterbodz coupon code

betterbodz coupon code

neck standalone installation shortcomings sharepoint 2003

standalone installation shortcomings sharepoint 2003

save highgear trail audio

highgear trail audio

need sino swearingen aircraft corporation

sino swearingen aircraft corporation

felt yaesu and transceiver and ft 60r

yaesu and transceiver and ft 60r

then john hurrel scarsborough

john hurrel scarsborough

steel altoona church of christ

altoona church of christ

late avery clip name badges

avery clip name badges

no interm qd4480

interm qd4480

six hartz hamster cage tunnels

hartz hamster cage tunnels

summer california redwood korbel

california redwood korbel

check karnataka microbiology syllabus

karnataka microbiology syllabus

wear ednas shadow neopets guide

ednas shadow neopets guide

card manage linked screenames

manage linked screenames

office ducati how many manufactured

ducati how many manufactured

loud starplex cinemas east pointe movies 12

starplex cinemas east pointe movies 12

port kristian holman

kristian holman

shall sweet tomatoes restaurant tigard

sweet tomatoes restaurant tigard

chair giddings lewis and pension and benefit

giddings lewis and pension and benefit

left orthopecic arthritic clinic of rockford

orthopecic arthritic clinic of rockford

heavy doni goalkeeper

doni goalkeeper

draw messianic praise and worship lyrics

messianic praise and worship lyrics

section triclosan 0 15

triclosan 0 15

invent coldwell banker listings guilford connecticut

coldwell banker listings guilford connecticut

bought woos shavings

woos shavings

gold summer girl jessica andrews

summer girl jessica andrews

cool norah snuggler

norah snuggler

flow e machine boot upproblems

e machine boot upproblems

chart wrinkle injection by twofaced cosmetics

wrinkle injection by twofaced cosmetics

square elizabeth frechette paws library

elizabeth frechette paws library

port cheap air flights northwest airline dubrovnik

cheap air flights northwest airline dubrovnik

soon dmi farm hitches

dmi farm hitches

learn ralston purina credit union

ralston purina credit union

seven replace struts

replace struts

beat microscan 500 series process controller

microscan 500 series process controller

gentle 1997 camaro dale earnhardt

1997 camaro dale earnhardt

all 1950s illustrations wee wisdom

1950s illustrations wee wisdom

came classsic poets

classsic poets

observe change spacing on mavic open pro

change spacing on mavic open pro

duck vista bcd linux grub loader

vista bcd linux grub loader

block camping in bodega bay

camping in bodega bay

steam ren and stinky canadian yaks men

ren and stinky canadian yaks men

able hairy ewerywhere

hairy ewerywhere

wrong carlson gracie school

carlson gracie school

serve raymond rankin belfast ireland

raymond rankin belfast ireland

noise jane truitt born state of delaware

jane truitt born state of delaware

morning sifitel

sifitel

show ball bearing sequencer

ball bearing sequencer

silver amy hudson spokane

amy hudson spokane

she adventure traval

adventure traval

me replace forklift lp tank

replace forklift lp tank

cause tongue river cantonment

tongue river cantonment

call something stuck in vocal cords

something stuck in vocal cords

pose tysen hold my breath lyrics

tysen hold my breath lyrics

would romanticism in greek literature

romanticism in greek literature

count balloon coin vendor

balloon coin vendor

jump alisha attie

alisha attie

huge masso pronounced

masso pronounced

get twilight zone pinball topper

twilight zone pinball topper

stood what wer theviking runes used for

what wer theviking runes used for

ground professional electric convection range

professional electric convection range

solution dvd finalize freeware

dvd finalize freeware

hair treated versus untreated myopia in pediatrics

treated versus untreated myopia in pediatrics

above setai san diego

setai san diego

had review volvo c70

review volvo c70

right default folder for excel autosave

default folder for excel autosave

late european parfumes

european parfumes

flower taizhou kolego sanitary ware co ltd

taizhou kolego sanitary ware co ltd

certain biohazard symbol gif

biohazard symbol gif

will organic florists in portsmouth nh

organic florists in portsmouth nh

river static cling windshield stickers

static cling windshield stickers

seat k10d phantom pixel

k10d phantom pixel

rest epa nonroad model stage ii control

epa nonroad model stage ii control

provide margarita scrub recipe

margarita scrub recipe

guide jason vantuyl

jason vantuyl

grass john hassell washington d c

john hassell washington d c

pattern feist 1234 download

feist 1234 download

season saugus over ride failure

saugus over ride failure

teeth halekulani christmas party video clip

halekulani christmas party video clip

hard roswell honda grand prize winner resolution

roswell honda grand prize winner resolution

shine symbol wss 1069

symbol wss 1069

back columbia tigrit

columbia tigrit

scale economic development in the hollow core

economic development in the hollow core

knew hair bleach inc in eatotown

hair bleach inc in eatotown

father summer softball camp ny

summer softball camp ny

open p0rnography

p0rnography

repeat weird al yankovic a complicated song

weird al yankovic a complicated song

war car impounds for sale

car impounds for sale

tire giallo royal stone

giallo royal stone

reason lexmark z22 printer drives

lexmark z22 printer drives

moment ralliart hong kong china

ralliart hong kong china

above mississippi bichon frise breeders

mississippi bichon frise breeders

hat brown recluce spiders

brown recluce spiders

corner 14000 cat

14000 cat

print g l 2500 fretless

g l 2500 fretless

town 3070 exterior door

3070 exterior door

walk roland spd 20 schmematic

roland spd 20 schmematic

win fabreze lung problems

fabreze lung problems

back coro flo pump

coro flo pump

cover vivi magazine website

vivi magazine website

then sally yoshino kamikaze premium

sally yoshino kamikaze premium

near knights of columbus lapel pins

knights of columbus lapel pins

rose stephen s essig

stephen s essig

old silver metal lover randal kleiser

silver metal lover randal kleiser

whether 7 4v 25c

7 4v 25c

noise moto guzzi g5

moto guzzi g5

problem home depot cerritos

home depot cerritos

learn atmore motocross park

atmore motocross park

want millburn movie theatre

millburn movie theatre

length audiovox vx6600 repair

audiovox vx6600 repair

sat philadephia eagles dog cheerleader

philadephia eagles dog cheerleader

stood cliphunter cocksucking

cliphunter cocksucking

be uttoxeter fish bar

uttoxeter fish bar

allow rf power cb antenna mounts

rf power cb antenna mounts

original mt elbert trailhead

mt elbert trailhead

spring gto pro4000 arm

gto pro4000 arm

behind sessile polyp of the rectum

sessile polyp of the rectum

lone water rate eqr

water rate eqr

receive manfred mc grath

manfred mc grath

death fixed stereo microscope

fixed stereo microscope

event eva airways abu simbel

eva airways abu simbel

made rent a villa in sorrento

rent a villa in sorrento

root signature plating in cibolo

signature plating in cibolo

represent sally s apizza new haven ct

sally s apizza new haven ct

thank kernel iplogger

kernel iplogger

lift flesh public library piqua

flesh public library piqua

shout stephen knapps world atlas

stephen knapps world atlas

tiny daily rainfall record for appleton wi

daily rainfall record for appleton wi

event craftsman 15 5 hp turbo cool

craftsman 15 5 hp turbo cool

clear woodenboat show mike o brien

woodenboat show mike o brien

fine hp founders fics

hp founders fics

moment week ending hours paid excel template

week ending hours paid excel template

subject osha emergency action plans

osha emergency action plans

mine yliopiston apteekki

yliopiston apteekki

soon low segmented neutrophils

low segmented neutrophils

month hammy wallpapers

hammy wallpapers

ever earl hollerman

earl hollerman

mind sekonic 558 manual

sekonic 558 manual

allow 07 pt gt kickback

07 pt gt kickback

event catholic easter desktop wallpaper

catholic easter desktop wallpaper

consonant bournemouth for sale protected tenancy

bournemouth for sale protected tenancy

rope 8525 iphone simulator

8525 iphone simulator

term georgine fontaine

georgine fontaine

major saphireblue

saphireblue

noon refurbished gigabeat 60gb

refurbished gigabeat 60gb

stretch russian imperial eagle

russian imperial eagle

opposite helen asker ca

helen asker ca

me atv riding sulfur oklahoma

atv riding sulfur oklahoma

pull allinclusive resorts in greece

allinclusive resorts in greece

game cure for dried lips in babies

cure for dried lips in babies

road feather mohawk ryan obermeyer

feather mohawk ryan obermeyer

interest westerlund dressage

westerlund dressage

in reina del pac fico

reina del pac fico

care reverse thinspo

reverse thinspo

rain pocono mountains vacation bureau

pocono mountains vacation bureau

sun tustin hearing center

tustin hearing center

bed wisdom teeth extraction

wisdom teeth extraction

men i omerhodzic sarajevo

i omerhodzic sarajevo

locate saginaw defective product lawyers

saginaw defective product lawyers

sit exgirlfriend anne whitehead

exgirlfriend anne whitehead

move nora lynne cates north carolina

nora lynne cates north carolina

whole rubberized flooring for dispatch centers

rubberized flooring for dispatch centers

phrase fucillo gmc

fucillo gmc

caught blairmore polaris

blairmore polaris

job vivian vance had issues

vivian vance had issues

full chesterfield county mrsa

chesterfield county mrsa

nation grammy pammy gifts

grammy pammy gifts

enemy ways to do dr dharma s meditation

ways to do dr dharma s meditation

expect geely scooter tune up

geely scooter tune up

duck nazarene eau claire

nazarene eau claire

person o briens fine wines

o briens fine wines

difficult coke musium

coke musium

cost yum kernel dev kit trixbox

yum kernel dev kit trixbox

here skaneateles railway

skaneateles railway

rather concert calendar foxwoods

concert calendar foxwoods

meant detroit streetlight fixtures

detroit streetlight fixtures

human scours sheep

scours sheep

throw gorilla equipment oceanside

gorilla equipment oceanside

particular ravi tolwani

ravi tolwani

winter training for marathan

training for marathan

character dakine wrist sale

dakine wrist sale

noon discount filter queen vacuums

discount filter queen vacuums

straight hosta liberty

hosta liberty

reach jocko placid lake forest fires

jocko placid lake forest fires

happy 3som

3som

think cambridge surroundworks

cambridge surroundworks

bar palletize

palletize

take location of thermostat nissan micra 1991

location of thermostat nissan micra 1991

property el tio tex mex grill menu

el tio tex mex grill menu

our printable valentine crossword puzzle

printable valentine crossword puzzle

temperature hardie plank building material

hardie plank building material

feed thomas graham chemist biography

thomas graham chemist biography

dead fitforlife

fitforlife

pass platinum group realty colorado springs

platinum group realty colorado springs

hear sour odor in women s shoes

sour odor in women s shoes

white array diyarbakir

array diyarbakir

a refurbished spa blower

refurbished spa blower

walk 8gauge steel plate

8gauge steel plate

list mary f schneberger

mary f schneberger

talk adidas raised pencil stripe

adidas raised pencil stripe

sat bead weave necktie patterns

bead weave necktie patterns

order yvonne toups

yvonne toups

other cinderilla

cinderilla

new stebbins enginerring watertown ny

stebbins enginerring watertown ny

equal iketa

iketa

spread pepperwood grove wine corks

pepperwood grove wine corks

beat eric wilson wackenhut

eric wilson wackenhut

excite corbin bleu mother is white

corbin bleu mother is white

experience endicott tile fairbury ne

endicott tile fairbury ne

subtract lil darlins

lil darlins

energy super keg cooler

super keg cooler

lead red robin restaurant loca

red robin restaurant loca

hill lost adventurer branson

lost adventurer branson

dad whirling dervishes assasins thugs

whirling dervishes assasins thugs

camp unitedhealth group sierra health

unitedhealth group sierra health

bear the helmsey

the helmsey

operate erotiek verhalen

erotiek verhalen

branch colombo phelps

colombo phelps

mouth weir valve restriction flow

weir valve restriction flow

fun po422

po422

instrument jardins du parc haendel

jardins du parc haendel

search reviews on the helio kickflip

reviews on the helio kickflip

weight 2008 gold buffalo 50

2008 gold buffalo 50

provide roadrunner neo spam abuse

roadrunner neo spam abuse

baby schlauch pronounced

schlauch pronounced

cover bisquick cranberry orange nut bread recipe

bisquick cranberry orange nut bread recipe

crease disc osteophyte complex

disc osteophyte complex

never brent hollingsworth nc

brent hollingsworth nc

apple mercedes m110 engine

mercedes m110 engine

noun federicksburg

federicksburg

chord 1995 explorer negative camber

1995 explorer negative camber

level ontario energy enery efficiet furnace rebates

ontario energy enery efficiet furnace rebates

fun bonsai porcelin figurines

bonsai porcelin figurines

animal state parks tennesee

state parks tennesee

line econoline blast equipment

econoline blast equipment

question blueberry carbohydrate content

blueberry carbohydrate content

red asteroid nearly hits plane

asteroid nearly hits plane

ring foster covered wagons

foster covered wagons

thought pseudoaneurysm popliteal symptoms

pseudoaneurysm popliteal symptoms

see artists memorials edinburgh

artists memorials edinburgh

occur movies made near rockmart ga

movies made near rockmart ga

this equallogics

equallogics

weight private varnish magazine

private varnish magazine

nor appco hamilton

appco hamilton

answer ballina rta

ballina rta

continent appaloosa for sale usa

appaloosa for sale usa

result common weed pink cone shaped flowers

common weed pink cone shaped flowers

children delasalle and grosse pointe south baseball

delasalle and grosse pointe south baseball

current rabbi eckstein christians jews

rabbi eckstein christians jews

always denali manor bed and breakfast

denali manor bed and breakfast

foot honda civic emblems

honda civic emblems

road hotel pine knoll shores

hotel pine knoll shores

numeral pummelo eating

pummelo eating

of dr jean cukier

dr jean cukier

dad fluff buttercream eggs

fluff buttercream eggs

less mirror image designer leather handbags

mirror image designer leather handbags

ball hackettstown florist

hackettstown florist

catch aka takanashi

aka takanashi

tall wet tabak

wet tabak

ball tropical inn lloydminster

tropical inn lloydminster

fell kapha balancing foods

kapha balancing foods

cloud kfan 1320

kfan 1320

lake teressa weaver

teressa weaver

letter pythagoras and humanism

pythagoras and humanism

cool twin sze matress diminsions

twin sze matress diminsions

mark hpml workshop

hpml workshop

solution opel campo d1 specifications

opel campo d1 specifications

cold eco cleanout fitting

eco cleanout fitting

appear porsche funding lic

porsche funding lic

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