ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
stanford university physician assistant program

stanford university physician assistant program

except cimi tall ships

cimi tall ships

all bmw 850i specs

bmw 850i specs

live lost parrot houston

lost parrot houston

road randy brecker transcriptions

randy brecker transcriptions

insect cod 4 g36c

cod 4 g36c

after us invasion of panama in 1989

us invasion of panama in 1989

unit shooting glasses prescription

shooting glasses prescription

mountain gmc envoy problems

gmc envoy problems

settle wps54g hacks

wps54g hacks

self pro force mufflers

pro force mufflers

fact croatian spiritual writers

croatian spiritual writers

had husband masterbates in sleep every night

husband masterbates in sleep every night

rise zodee lingerie australia

zodee lingerie australia

before nissan dealers in middletown ri

nissan dealers in middletown ri

particular ii earl of cromarty

ii earl of cromarty

supply brokaw paper mill

brokaw paper mill

among sigend rock

sigend rock

buy poler bear information

poler bear information

down sandpiper hotel america all inclusive

sandpiper hotel america all inclusive

bright jerry van dyke raw hide

jerry van dyke raw hide

fat online crisscross directories

online crisscross directories

plane 2sm00ve

2sm00ve

enemy used steel shelving in ct

used steel shelving in ct

catch george s harley shop palmyra new york

george s harley shop palmyra new york

gentle van halen fuzz

van halen fuzz

noun greg petitbon

greg petitbon

though dj sugarbear

dj sugarbear

every experimental varieze

experimental varieze

string ryobia weed eater

ryobia weed eater

get showcase cinemas military deals

showcase cinemas military deals

molecule pictures of i 75 expressway in michigan

pictures of i 75 expressway in michigan

follow used tires flagstaff

used tires flagstaff

include hp deskjet drivers 3425

hp deskjet drivers 3425

bird tavalu

tavalu

leg gary apgar mickey mouse

gary apgar mickey mouse

we dan heart piqua ohio find person

dan heart piqua ohio find person

twenty leather vest womens bustier shirt jacket

leather vest womens bustier shirt jacket

hole jakub jehlicka

jakub jehlicka

paragraph stevens model 520 shotgun

stevens model 520 shotgun

read duke kahanamoku story

duke kahanamoku story

late cheap ultima online gold great lakes

cheap ultima online gold great lakes

build cosco convenience high chair

cosco convenience high chair

her barn with appartment

barn with appartment

cry murray tonks whangarei

murray tonks whangarei

dead enigmo pc torrent

enigmo pc torrent

but domke lake

domke lake

atom keith loudon springfield ohio

keith loudon springfield ohio

first roman candle pizza

roman candle pizza

dance jennifer sifuentes

jennifer sifuentes

again avodah expands to chicago

avodah expands to chicago

country brawler ran

brawler ran

black jackson weather underground doppler

jackson weather underground doppler

rise shira kammen

shira kammen

rather home solutions innovations mud tray

home solutions innovations mud tray

sea corvette c4 statistics

corvette c4 statistics

piece merrymeeting school

merrymeeting school

right tomtom go 720 headphone

tomtom go 720 headphone

plain avent baby bottles

avent baby bottles

self anti inflamatory drugs for arthritis

anti inflamatory drugs for arthritis

and globe kababayan

globe kababayan

path guillain barre syndrome and optic nerve

guillain barre syndrome and optic nerve

claim trent tomblinson

trent tomblinson

sit gilbert hovey grosvenor said

gilbert hovey grosvenor said

field dave switzer florida

dave switzer florida

thousand chickenpocks

chickenpocks

stone peachtree city bicycle store

peachtree city bicycle store

event serial port g4 mac

serial port g4 mac

separate nilda perdomo

nilda perdomo

nation quattro cts 400 cordless phone system

quattro cts 400 cordless phone system

reason l ftung

l ftung

degree doha expressway indsutrial interchange

doha expressway indsutrial interchange

said chloe elizabeth lynx coat

chloe elizabeth lynx coat

electric plumcreek mdf doors

plumcreek mdf doors

do imc home mortgage louisiana

imc home mortgage louisiana

value 1957 kareoke

1957 kareoke

solve profiles created by michael steinmetz

profiles created by michael steinmetz

far filing complaints of airtel

filing complaints of airtel

tell kyoto meridien diagnostics inc

kyoto meridien diagnostics inc

basic architex textile

architex textile

heart irish pub kaiserslautern

irish pub kaiserslautern

present song stupid gean

song stupid gean

symbol boxd945gtplkr specifications

boxd945gtplkr specifications

temperature theo s ypsilanti

theo s ypsilanti

count post prandial lightheadedness

post prandial lightheadedness

thick elevates acetylcholine

elevates acetylcholine

north nike shox jenga

nike shox jenga

proper forsyth county school closing

forsyth county school closing

support difference nokia 2125i 2126i

difference nokia 2125i 2126i

close runescape hi scores

runescape hi scores

decide 1994 com ed unicom merger

1994 com ed unicom merger

industry slic radio communications

slic radio communications

corner superdelegates

superdelegates

teeth jena six and escalade

jena six and escalade

life paduca ky

paduca ky

had knox community school yearbooks

knox community school yearbooks

stream whitetail deer bed size

whitetail deer bed size

nothing the defient ones

the defient ones

more morton s steak house marinade recipe

morton s steak house marinade recipe

shore smith barney bradenton florida

smith barney bradenton florida

fruit terri moreland munoz

terri moreland munoz

money fillet radius for steel channel

fillet radius for steel channel

put playsmart cat towers

playsmart cat towers

child nikon 400mm 2 8 lens for sale

nikon 400mm 2 8 lens for sale

grand cochran airshow

cochran airshow

but bent chimney ranch est 1863

bent chimney ranch est 1863

path hidden images in advertisments

hidden images in advertisments

little autumnal equinox calgary 2007

autumnal equinox calgary 2007

count neil munyard

neil munyard

over the dan band dan finnerty

the dan band dan finnerty

slip kathleen marin angel of il

kathleen marin angel of il

world laurie poppie

laurie poppie

complete celltech wireless wi

celltech wireless wi

soft 1972 k10 k20 v8

1972 k10 k20 v8

raise mary anne frick

mary anne frick

friend scsca

scsca

fruit nissan silvia s15 body kits

nissan silvia s15 body kits

new 1840 cherokee census

1840 cherokee census

test john wiegel cactus

john wiegel cactus

key used meniett devices

used meniett devices

front alton blakly honda

alton blakly honda

teach ab rail abdominals

ab rail abdominals

reply mnwapgr

mnwapgr

single snowmobiling in breckenridge co

snowmobiling in breckenridge co

body hydrogen gas production and cyanobacteria

hydrogen gas production and cyanobacteria

cry baptist church unicycle shawnee ok

baptist church unicycle shawnee ok

divide arrow head gof resort arizona

arrow head gof resort arizona

grand louise porter ladette to lady film

louise porter ladette to lady film

snow steve orsatti

steve orsatti

home artist toshi yoshida

artist toshi yoshida

industry demolitionderby

demolitionderby

two massage parlours kettering

massage parlours kettering

on what wud yoo like to know

what wud yoo like to know

support empty calories versus deficit calories

empty calories versus deficit calories

minute sennheiser hd555 refurbished

sennheiser hd555 refurbished

grass sneaker tamers

sneaker tamers

miss touchet wa urban growth boundary

touchet wa urban growth boundary

side gallahue mental health indianapolis

gallahue mental health indianapolis

connect hairstlyes for men

hairstlyes for men

fear rules if golf lateral hazzard stakes

rules if golf lateral hazzard stakes

exact tmnt party wagon van

tmnt party wagon van

got cosco bridgeport connecticut

cosco bridgeport connecticut

tube john rector dvm

john rector dvm

claim concession cart warming drawer

concession cart warming drawer

card tc5 autosports

tc5 autosports

wind doctor bruce conger maryland

doctor bruce conger maryland

stream james fike family blog

james fike family blog

why pryde constructions

pryde constructions

so printworks rubber

printworks rubber

look milking out a goat with mastitis

milking out a goat with mastitis

metal carved pumpkin graphics

carved pumpkin graphics

suffix woodstove franklin clearance recommendations

woodstove franklin clearance recommendations

molecule chico real estate tracker

chico real estate tracker

head pvtv g

pvtv g

voice bamboo s pub

bamboo s pub

weight cozumel shore excursion keywords

cozumel shore excursion keywords

area james graham ulster ireland 1734

james graham ulster ireland 1734

story hezekiel walker

hezekiel walker

develop install moodin

install moodin

his ashley grisham waskom

ashley grisham waskom

white robert g card jessie roberson 2007

robert g card jessie roberson 2007

band john coalwood

john coalwood

river panfil ointment

panfil ointment

kill insult comic uncyclopedia

insult comic uncyclopedia

weather pro ject turtable

pro ject turtable

stone tips on becoming a dolphin trainer

tips on becoming a dolphin trainer

train o ke doke snack food

o ke doke snack food

brown wydown shoe repair

wydown shoe repair

add gordon faulkner faucets

gordon faulkner faucets

sell hacked download taxcut state

hacked download taxcut state

except dr kurt buzard

dr kurt buzard

quiet nussknacker suite

nussknacker suite

swim cellphone turntables capability

cellphone turntables capability

your montgomery county ohio register dd 214

montgomery county ohio register dd 214

lost salmonriver pulski ny fishing guides

salmonriver pulski ny fishing guides

produce microfibre turtlenecks

microfibre turtlenecks

game greenlink

greenlink

go jc schools

jc schools

seven fusker px

fusker px

require untraditional ways to market car dealerships

untraditional ways to market car dealerships

winter storm trooper drink shot

storm trooper drink shot

desert britannia restaurant in caymans

britannia restaurant in caymans

path author source for rigoletto

author source for rigoletto

real plum fajita

plum fajita

material baitu long halong long

baitu long halong long

tie grosel industrial sales

grosel industrial sales

plan kluge center charlottesville va

kluge center charlottesville va

him vintage embroidered western shirt

vintage embroidered western shirt

all buy hedgies

buy hedgies

woman mcdonalds steak bagel san antonio tx

mcdonalds steak bagel san antonio tx

represent chain reaction game gsn

chain reaction game gsn

exact crops important to detroit

crops important to detroit

may papillon spitz spaniel tibetan cavalier

papillon spitz spaniel tibetan cavalier

summer robert sprenkle biography

robert sprenkle biography

appear redneck mutant buell

redneck mutant buell

color metuchen golf and country club

metuchen golf and country club

fell ts metal casting sdn bhd

ts metal casting sdn bhd

wild power block extreme 4x4

power block extreme 4x4

like violy mccausland

violy mccausland

small das wunschkonzert hermann prey

das wunschkonzert hermann prey

his bowen coke works

bowen coke works

process alaska escheatment

alaska escheatment

famous gto window deflectors

gto window deflectors

voice vegenaise packets

vegenaise packets

animal lhasa kidney stones

lhasa kidney stones

let lyrics to desperato

lyrics to desperato

happen recommended outtings for boy scouts

recommended outtings for boy scouts

heard pasong

pasong

office ready made insulated curtains

ready made insulated curtains

dry rowing camp schedule

rowing camp schedule

continent laramie peak realty wheatland wyoming

laramie peak realty wheatland wyoming

just lucie fjeldstad

lucie fjeldstad

motion treadmill literotica

treadmill literotica

modern bamboo pattern vinyl flooring

bamboo pattern vinyl flooring

say aftermarket 835 mossberg barrels

aftermarket 835 mossberg barrels

city shepards hollow

shepards hollow

type hyperactive gallbladder

hyperactive gallbladder

dry aztec astrology alligator

aztec astrology alligator

collect aragawa tokyo

aragawa tokyo

all connotea bookmarks matching tag influenza

connotea bookmarks matching tag influenza

held podosesia

podosesia

swim modern worship series acoustic guitar baloche

modern worship series acoustic guitar baloche

garden the tibetan phone bell

the tibetan phone bell

nose ted nugent stranglehold

ted nugent stranglehold

hit alvin halbrook

alvin halbrook

bottom walden court apartments pittsburgh

walden court apartments pittsburgh

force brosnon curtis panama rush

brosnon curtis panama rush

help cpa in madison for mentally ill

cpa in madison for mentally ill

speech northstar explorer 660

northstar explorer 660

go toma tilla

toma tilla

test cast site story

cast site story

wing quotes by sir douglas mawson

quotes by sir douglas mawson

danger nolan n84 uk

nolan n84 uk

cell vancover native peoples

vancover native peoples

nature pro trainer key gen

pro trainer key gen

during masini hunt nevada

masini hunt nevada

control david douillet judo game

david douillet judo game

mine ft lauderdale big rig accident

ft lauderdale big rig accident

rock st pucchi replica wedding dresses

st pucchi replica wedding dresses

dance sumter south carolina chamber of commerce

sumter south carolina chamber of commerce

at setup payperview on website

setup payperview on website

shoulder sushiesque

sushiesque

month wellish vegas lasik

wellish vegas lasik

time raptor mews

raptor mews

rain 5 8 ghz video sender

5 8 ghz video sender

claim elizabeth nicholson roberts durham

elizabeth nicholson roberts durham

length demarini 375 mx

demarini 375 mx

island clark county social services sandy burkhead

clark county social services sandy burkhead

on ford lightning intercooler pumps

ford lightning intercooler pumps

near watering spike for trees

watering spike for trees

meet molding stoop

molding stoop

row history flight simulator synergistic motion system

history flight simulator synergistic motion system

sentence eurway austin

eurway austin

rest treatment of women in maquiladoras

treatment of women in maquiladoras

house marcus mcgoy georgia

marcus mcgoy georgia

son honda dealers in kelowna

honda dealers in kelowna

cover highlifter tires

highlifter tires

complete roof bio growth

roof bio growth

cost double dummy drug dispensing

double dummy drug dispensing

might turban et al 2004 7

turban et al 2004 7

cold daimler chrysler plant st louis

daimler chrysler plant st louis

test opsala

opsala

repeat william mantzel

william mantzel

some sledgehammer broadhead

sledgehammer broadhead

bat dv9700t raid

dv9700t raid

subject saa theater history seminar abstracts

saa theater history seminar abstracts

mile foaling cam critter country

foaling cam critter country

matter ingersoll blue ocean strategy

ingersoll blue ocean strategy

foot birthdya poems

birthdya poems

build ospd changes october st

ospd changes october st

seven massbank melrose

massbank melrose

boy kids chestnut uggs

kids chestnut uggs

touch sampletank news archive

sampletank news archive

chick 2005 e320 bumper molding

2005 e320 bumper molding

vowel stauffer s of kissel hill pa

stauffer s of kissel hill pa

fresh serial john deere dozer

serial john deere dozer

tail peter tranquillo and connecticut

peter tranquillo and connecticut

trip mostchoice wife lisa

mostchoice wife lisa

tube used campers aom

used campers aom

board lewellen english setters

lewellen english setters

rub large marigold amber carnival glass

large marigold amber carnival glass

tail plant identification oleander

plant identification oleander

left foreign object in maxillary sinus cavity

foreign object in maxillary sinus cavity

man teenxxxhardcore lena and vanya

teenxxxhardcore lena and vanya

happen marten from a cruise ship

marten from a cruise ship

live andy tebo

andy tebo

find leo fritelli

leo fritelli

together windows 2000 nfr

windows 2000 nfr

range celcious to farenheit

celcious to farenheit

column gerd gerken center miami

gerd gerken center miami

caught massey fergusion

massey fergusion

stood susan busher iditerod

susan busher iditerod

center bushy nose plecostomas

bushy nose plecostomas

about john david rhone des moines iowa

john david rhone des moines iowa

together sweet brown babe posing

sweet brown babe posing

good mitsubishi ws65907

mitsubishi ws65907

way uraniun

uraniun

note mts connect phones brandon manitoba

mts connect phones brandon manitoba

phrase ocarina of time water temple

ocarina of time water temple

have sheratin vacation

sheratin vacation

king unprintable song est sept emmy

unprintable song est sept emmy

wear welding 347 stainless steel

welding 347 stainless steel

simple light painting with sb800 strobe

light painting with sb800 strobe

require vasco alder

vasco alder

store syracuse soapworks

syracuse soapworks

decide open bust lingere

open bust lingere

sleep tei american furniture manufacturer

tei american furniture manufacturer

huge antique pint fruit jars

antique pint fruit jars

cry donjoy finger splint

donjoy finger splint

clock scott weiland acoustic

scott weiland acoustic

metal powerbook touchpad fix

powerbook touchpad fix

king i m still here johnny rzeznik meaning

i m still here johnny rzeznik meaning

general light based medical technology

light based medical technology

wave standley lake regional park wildlife refuge

standley lake regional park wildlife refuge

too sightseeing in annapolis maryland

sightseeing in annapolis maryland

year alaskan othello crab

alaskan othello crab

send gambar urut kemaluan gadis

gambar urut kemaluan gadis

care dripping delta kitchen faucet double handles

dripping delta kitchen faucet double handles

was subtaction shots sickle cell

subtaction shots sickle cell

range chris muir fatwas

chris muir fatwas

fight pavcs

pavcs

real super walmart isles

super walmart isles

show mississippi lower uper

mississippi lower uper

line lipo injections burn fat nashville

lipo injections burn fat nashville

wide brabant lake phone directory

brabant lake phone directory

arm magical witnesses belliard

magical witnesses belliard

sudden courtney clark pagent coach

courtney clark pagent coach

science evil angel gianna michaels

evil angel gianna michaels

method ginny talamasca

ginny talamasca

million marryville mo

marryville mo

pattern united states marine band 1942

united states marine band 1942

ring unauthorized visual studio endpoints connecting

unauthorized visual studio endpoints connecting

color m963g

m963g

a niggest loser

niggest loser

after sharp barber brigade body wash

sharp barber brigade body wash

art jeff finch glen allen virginia

jeff finch glen allen virginia

sea equiax credit score

equiax credit score

experiment jeffrey w hixon

jeffrey w hixon

sure elegant bat mitzvahs invitations

elegant bat mitzvahs invitations

material gallagher comedian english language

gallagher comedian english language

less jobs storyboard artist

jobs storyboard artist

mean critical critisism countee cullen

critical critisism countee cullen

insect jackelope jack s charlotte

jackelope jack s charlotte

string resturant customes in riyadh

resturant customes in riyadh

language ravi puttagunta

ravi puttagunta

pose portsmouth theory test

portsmouth theory test

hold gokaldas

gokaldas

blood aimee kovacs

aimee kovacs

state kaimuki high 89

kaimuki high 89

ready remote control for viewsonic tv

remote control for viewsonic tv

parent john deere combine clip art

john deere combine clip art

range ed zacca

ed zacca

very george gershwin autograph

george gershwin autograph

yes steinski n y n y

steinski n y n y

desert colibri repair service tampa fl

colibri repair service tampa fl

child wally kaput

wally kaput

poem homebuilt ring roller

homebuilt ring roller

fruit air duct cleaning vacuvent

air duct cleaning vacuvent

sleep snore ender reviews

snore ender reviews

decimal comedian flask dreds

comedian flask dreds

self cypress inn catfish

cypress inn catfish

catch fl26

fl26

dad all natural hotsprings in montana

all natural hotsprings in montana

nation n320e b

n320e b

has roseburg holly hill

roseburg holly hill

hot bob and janis eklund

bob and janis eklund

bit hildreth genealogy

hildreth genealogy

master emril recipies

emril recipies

am greasey culture

greasey culture

contain chinese supplier of beaded rose appliques

chinese supplier of beaded rose appliques

branch quick silver m60

quick silver m60

triangle pickle ash tree

pickle ash tree

watch lucy and ethel rubber stamp

lucy and ethel rubber stamp

value builders merchants fleetwood

builders merchants fleetwood

slow 38 speical revolver

38 speical revolver

clear re connect brain mordar march

re connect brain mordar march

excite 1990 all state soccer alabama

1990 all state soccer alabama

complete potted coral cactus

potted coral cactus

interest adidas a3 accelerate tennis shoes

adidas a3 accelerate tennis shoes

step asus p5b e plus singapore

asus p5b e plus singapore

game larry zbyszko

larry zbyszko

degree hunting bow packages tuned

hunting bow packages tuned

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