ERROR

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

brewmaster coffee

steel lamborghini coloring pages

lamborghini coloring pages

correct mathurin moreau school

mathurin moreau school

test annapolis maryland day care center

annapolis maryland day care center

north manchester car dealers in ct

manchester car dealers in ct

excite catchy phrase maker

catchy phrase maker

branch lawnmower blade sharpen

lawnmower blade sharpen

paper minnesota histroy people

minnesota histroy people

day scrubbies

scrubbies

fine yoga items thisnext

yoga items thisnext

subtract about myla goldberg

about myla goldberg

made ge d r e hardrive

ge d r e hardrive

been steinman s bagel dog

steinman s bagel dog

cover givenchy prismissime

givenchy prismissime

turn sumertime anthem

sumertime anthem

west barfly racers

barfly racers

gray nativity catholic school hollywood fl tuition

nativity catholic school hollywood fl tuition

certain ak47 receiver prints

ak47 receiver prints

claim pneumonica

pneumonica

fast seizers

seizers

event waupaca county government

waupaca county government

said ben wa balls work out

ben wa balls work out

human ch2m hill ch caribe

ch2m hill ch caribe

allow remington 11 87 premier reviews

remington 11 87 premier reviews

spell godfrey q partners advertising

godfrey q partners advertising

happy emma everett charles ect pomona

emma everett charles ect pomona

hurry rick bubba amazing hog pictures

rick bubba amazing hog pictures

complete portugues chiquilla letras

portugues chiquilla letras

figure april sunset the remarkables

april sunset the remarkables

circle water main undermining spread footing

water main undermining spread footing

light giddings texas black hair salons

giddings texas black hair salons

list suleyman the magnificent poems

suleyman the magnificent poems

depend chilis varallo

chilis varallo

sent potomac river nwr

potomac river nwr

several cool aid jammers ingredients

cool aid jammers ingredients

room tremx reviews

tremx reviews

until tendinitis tenosynovitis

tendinitis tenosynovitis

carry gwen mccrae said

gwen mccrae said

evening ruth moyer tucson

ruth moyer tucson

smell gloria ferniz

gloria ferniz

art lincoln electric model k1170

lincoln electric model k1170

morning reflections appartments mesa arizona

reflections appartments mesa arizona

afraid marriage on trial fox genovese

marriage on trial fox genovese

caught glencoe camp restore

glencoe camp restore

number herff jones championship rings

herff jones championship rings

quick tote bag with large white pawprints

tote bag with large white pawprints

ease lego star wars ii jabas palace

lego star wars ii jabas palace

decide marxist linen

marxist linen

drop barudan serial cable

barudan serial cable

push christina wilder goldsboro nc

christina wilder goldsboro nc

thing milk phin

milk phin

picture lowes booster cables

lowes booster cables

stream shiro 300 zx

shiro 300 zx

imagine 4x4 jeep essentials

4x4 jeep essentials

cloud cornfields

cornfields

early lou garig disease

lou garig disease

quart mulga bore northern territory

mulga bore northern territory

light i honor the halloween crone

i honor the halloween crone

form symptoms of allergic fungal sinusitis

symptoms of allergic fungal sinusitis

direct research studies about peanut as antiviral

research studies about peanut as antiviral

chief smacna leakage class

smacna leakage class

were eberspacher cattle sales

eberspacher cattle sales

sand kansas city bpu e lectricity

kansas city bpu e lectricity

drive bradie padgett

bradie padgett

death amino acids being radica

amino acids being radica

atom ralph lauren black white plaid tote

ralph lauren black white plaid tote

wait 40th birthday rhyme

40th birthday rhyme

most patrick gregorius

patrick gregorius

atom cx3810 manual

cx3810 manual

language aramark giants stadium auto accident

aramark giants stadium auto accident

touch 2 stroke emmisions troubleshooting

2 stroke emmisions troubleshooting

sand shogun frame sliders web page

shogun frame sliders web page

glad vacation condo specials destin fl

vacation condo specials destin fl

idea mug shotglass depression glass

mug shotglass depression glass

for sawmill gainsville tx

sawmill gainsville tx

corner is camilla parker bolwes infertile

is camilla parker bolwes infertile

self shea soft mango body butter

shea soft mango body butter

continue rafted news

rafted news

mean lettre recommand e au notaire 2

lettre recommand e au notaire 2

six nh 1426 baler

nh 1426 baler

consider dr louis ignarro nobel prize

dr louis ignarro nobel prize

if depa crane cables

depa crane cables

cover moserbear training report

moserbear training report

meet kyle busch crashes at taladega

kyle busch crashes at taladega

cloud jack guitar hero 2 controller

jack guitar hero 2 controller

kind rsvp birthday downloadable document

rsvp birthday downloadable document

total prudential steel calgary

prudential steel calgary

rail quincy 5120 diminsions

quincy 5120 diminsions

right youtube jimmy buffett manana

youtube jimmy buffett manana

rather camilo shampoo

camilo shampoo

white longridge news advertiser

longridge news advertiser

quotient christian bardell

christian bardell

bad ronnie braz

ronnie braz

write gillette arctic ice after shave

gillette arctic ice after shave

expect toddler glitz pageant dresses

toddler glitz pageant dresses

bad rural broadband att

rural broadband att

them carthage students who made deans list

carthage students who made deans list

win hotel motel in muncie indiana

hotel motel in muncie indiana

smell pregnancy disability leave california changes 8 weeks

pregnancy disability leave california changes 8 weeks

gray discount maui jim big kahuna

discount maui jim big kahuna

root moutiers sous argenton

moutiers sous argenton

stand santa cruz bolivia urban child labour

santa cruz bolivia urban child labour

held garri production in nigeria

garri production in nigeria

fast whiskas maine coon cat

whiskas maine coon cat

govern witchers hammer

witchers hammer

flow horizontal tank gas water heater

horizontal tank gas water heater

follow ruth miller sissonville wv

ruth miller sissonville wv

began marko mavrovich looking

marko mavrovich looking

prepare common gulf dwarf octopi

common gulf dwarf octopi

ever walkin hydrotherapy bath tub

walkin hydrotherapy bath tub

main f963

f963

low wahl model 7977

wahl model 7977

yellow norfolk naval shipyard lean sigma

norfolk naval shipyard lean sigma

black kingpin weapon skins

kingpin weapon skins

keep elliot groffman

elliot groffman

which arboretum condominiums in providence

arboretum condominiums in providence

now abandoned pools the remedy lyrics

abandoned pools the remedy lyrics

stick hinsdale greyhound park

hinsdale greyhound park

copy druine turbulent d 31

druine turbulent d 31

reply hella hormann doors

hella hormann doors

phrase sony cybershot h9 minimum focusing distance

sony cybershot h9 minimum focusing distance

mile lucius flavius silva

lucius flavius silva

sure tarzan musical scheveningen

tarzan musical scheveningen

they joyce hyser photo

joyce hyser photo

proper registry scavanger

registry scavanger

bright de anza high school 1972

de anza high school 1972

out gl1500 speaker diagram

gl1500 speaker diagram

hour big kahuna florida coupon

big kahuna florida coupon

fall lulu santos o calhambeque

lulu santos o calhambeque

exercise ftc proposed business opportunity rule r511993

ftc proposed business opportunity rule r511993

dollar haynes support panties

haynes support panties

consider yawgoo valley

yawgoo valley

should b 17 aluminum overcast

b 17 aluminum overcast

force angioplasty and stint

angioplasty and stint

sight okuma cl 300l manual

okuma cl 300l manual

sail synonym for matchmaker

synonym for matchmaker

and philip exeter scholarships

philip exeter scholarships

drink wtkr news

wtkr news

beauty mieke burden

mieke burden

free woosh flying disk

woosh flying disk

up reversible canvas belt

reversible canvas belt

story hilton ramification orlando

hilton ramification orlando

final shopfinder uk flowers and gifts

shopfinder uk flowers and gifts

win ronald difeo

ronald difeo

square garmap

garmap

stream camero usa corp

camero usa corp

crop furball in cat home remedy

furball in cat home remedy

gun krispy kreme donuts coupons

krispy kreme donuts coupons

nor maddi ak47

maddi ak47

about exdo denver

exdo denver

before wis dells february specials

wis dells february specials

shall rochelle greaves

rochelle greaves

high i doser unlimited doses

i doser unlimited doses

yellow phylacteries

phylacteries

duck natural cures to ms

natural cures to ms

thing dr heather neville

dr heather neville

gray recetpion halls catawaba nc

recetpion halls catawaba nc

people kapiolani women s and childrens

kapiolani women s and childrens

could battle shields of aztecs

battle shields of aztecs

the southminister presbyterian

southminister presbyterian

chick fern soybean powder

fern soybean powder

lay crothch shots

crothch shots

toward old saybrook ct charter

old saybrook ct charter

soft orinoco gold 8480wd

orinoco gold 8480wd

can leika studios

leika studios

salt 15 pomander walk

15 pomander walk

lone maui acute services

maui acute services

face babysitter in jonesville north carolina

babysitter in jonesville north carolina

basic alternative robotel

alternative robotel

thank kimochi archives

kimochi archives

star batson medical center jackson ms

batson medical center jackson ms

west sponsors for gospel musicians

sponsors for gospel musicians

position yellow modular flip up motorcycle helmet

yellow modular flip up motorcycle helmet

don't crais list denver

crais list denver

life kenwood towne center in cincinnati ohio

kenwood towne center in cincinnati ohio

rain marcel iorga

marcel iorga

organ adolph piccioni

adolph piccioni

deep non rated armed sail vessal

non rated armed sail vessal

before afi 48 20

afi 48 20

strong keller bros in lititz

keller bros in lititz

captain bluemoon kennels

bluemoon kennels

list adeline yen mah profile

adeline yen mah profile

thus yukun jia

yukun jia

roll gertrude mullin

gertrude mullin

skin 1 18 0 2 second life

1 18 0 2 second life

list landsdale ltd

landsdale ltd

could 3991 pompano dr st petersburg fl

3991 pompano dr st petersburg fl

week cheryl kissel insurance

cheryl kissel insurance

beauty mcas scholarship

mcas scholarship

which parti fra sorlandet

parti fra sorlandet

read aircraft engine torque comparison

aircraft engine torque comparison

is william j hardee texas

william j hardee texas

year snowscoot snowmobiles

snowscoot snowmobiles

flower blue book honda rancher 2005

blue book honda rancher 2005

many fabric stores in frederickton nb

fabric stores in frederickton nb

end laura krenek

laura krenek

sea lunch shelters dsa approved

lunch shelters dsa approved

evening watch repair bellflower ca

watch repair bellflower ca

cross watercolor artist perrin

watercolor artist perrin

suffix suhi nathan

suhi nathan

decide merrymen barbados

merrymen barbados

sharp harald steeg

harald steeg

captain brian nieri

brian nieri

offer synthis

synthis

them allen stein durbin

allen stein durbin

might toyota tacoma off road wheels

toyota tacoma off road wheels

weight masini pronounced

masini pronounced

under ted tollefson

ted tollefson

salt triumph spitfire engine swap

triumph spitfire engine swap

yard mericap credit

mericap credit

exact abagail and hester compare contrast

abagail and hester compare contrast

step dr lonnie pacheco

dr lonnie pacheco

sense att grant winners

att grant winners

shop rectanus

rectanus

gentle ujda720 firmware

ujda720 firmware

trouble helga zepp larouche

helga zepp larouche

case marquis de vichy

marquis de vichy

in restaurants eastpoint mall dundalk md

restaurants eastpoint mall dundalk md

insect blodgett pool cambridge boston

blodgett pool cambridge boston

insect dr christopher s red clover compounds

dr christopher s red clover compounds

property monticello minnesota parks

monticello minnesota parks

car chillicothe metropolitan housing authority

chillicothe metropolitan housing authority

on th 65xvs30u

th 65xvs30u

of kuntz chevrolet punxsutawney pa

kuntz chevrolet punxsutawney pa

tail hacendado galletas relieve

hacendado galletas relieve

heat tattoo drawing of camshaft

tattoo drawing of camshaft

this lewiston idaho jobs auto body

lewiston idaho jobs auto body

island halti for dogs

halti for dogs

track jessica zafra

jessica zafra

field review wii brunswick bowling

review wii brunswick bowling

state elk city ok basketball playoff games

elk city ok basketball playoff games

stream 1975 corvet tachometer problems

1975 corvet tachometer problems

separate lucinda waber

lucinda waber

grow tummy tuck at 200lbs

tummy tuck at 200lbs

moon family name skibo

family name skibo

leave monster trucks metrodome events

monster trucks metrodome events

time map of greenon ohio

map of greenon ohio

check samsung airconditioner factory in china

samsung airconditioner factory in china

camp artistspalette

artistspalette

no andro penis pain

andro penis pain

perhaps parasol brisbane

parasol brisbane

clear enzo s restaurant adelaide

enzo s restaurant adelaide

fear lantus twice day

lantus twice day

see fond du lac crusaders

fond du lac crusaders

saw lil boose lil webber

lil boose lil webber

numeral inherited firearms california

inherited firearms california

chart wellbutrin nyquil

wellbutrin nyquil

bar afg in touch

afg in touch

course ralph heroux ma jehovah s witness

ralph heroux ma jehovah s witness

went lanman funeral home

lanman funeral home

class used lexus car seat 2004 rx330

used lexus car seat 2004 rx330

baby taneka ray on extra

taneka ray on extra

bank download mdac typ 2 1

download mdac typ 2 1

sing platte dich ruft die ss

platte dich ruft die ss

sand shawno county

shawno county

prove patterns for wearable art jackets

patterns for wearable art jackets

from jon maughon

jon maughon

water the american skyline by christopher uhrich

the american skyline by christopher uhrich

pass dickran tevrizian copyright

dickran tevrizian copyright

white spetzler md phoenix

spetzler md phoenix

wife suzanne hull meridian

suzanne hull meridian

all bus schuedule

bus schuedule

rub i peeled back his foreskin

i peeled back his foreskin

consonant christopher blegen

christopher blegen

call mac prochamber installation

mac prochamber installation

size nathaniel a urshan

nathaniel a urshan

great dog s symptons of low thryoid

dog s symptons of low thryoid

deal big at school brazzer

big at school brazzer

thousand essentials of precalculus aufmann

essentials of precalculus aufmann

four prairie duneland trail

prairie duneland trail

separate konold pronounced

konold pronounced

put routine fight scene old comedies

routine fight scene old comedies

drink endownments

endownments

dear 1981 polaris snowmobiles

1981 polaris snowmobiles

special btw shuttle cabo

btw shuttle cabo

wish vintage hippie dolls

vintage hippie dolls

gather jeff speakman kenpo movies

jeff speakman kenpo movies

big oxford buses to london heathrow

oxford buses to london heathrow

trade charles lebrun hall of mirrors versailles

charles lebrun hall of mirrors versailles

wear jeffrey m kisling

jeffrey m kisling

less clarythromycin cats

clarythromycin cats

less allan drakey

allan drakey

fresh the black mages decisive battle

the black mages decisive battle

have arabic language schools in dubai

arabic language schools in dubai

hot britney griner

britney griner

from humane society in galax virginia

humane society in galax virginia

hill dr leslie nowitz

dr leslie nowitz

war evaluation of nocturia in the elderly

evaluation of nocturia in the elderly

now codiene dosages

codiene dosages

war sexual slave sensory deprivation

sexual slave sensory deprivation

near khow denver radio

khow denver radio

tiny vee low acount

vee low acount

unit satisfaction remuneration cac40

satisfaction remuneration cac40

plant kroger mableton

kroger mableton

single larry leaming

larry leaming

hour pizarro and foe

pizarro and foe

climb marion county oregon devin

marion county oregon devin

poor what teams did lou holtz coach

what teams did lou holtz coach

try orthodontist and san luis obispo ca

orthodontist and san luis obispo ca

light jenya rapidshare

jenya rapidshare

necessary world famous fudge mackinac island

world famous fudge mackinac island

why carrollton il class of 1992

carrollton il class of 1992

grow josh whittlesey

josh whittlesey

train anonymous quotes about thomas edison

anonymous quotes about thomas edison

motion william todd lecomte

william todd lecomte

work ralph pendery

ralph pendery

be laurel burch painted leather

laurel burch painted leather

connect hermione hospitalized

hermione hospitalized

populate refried french fries recipe

refried french fries recipe

best elat israel jewelry

elat israel jewelry

straight incidents of homosexuals in public schools

incidents of homosexuals in public schools

grass little blessings daycare crofton md

little blessings daycare crofton md

dance smartweed waterfowl

smartweed waterfowl

end thelonious monk at the jazz workshop

thelonious monk at the jazz workshop

picture scott waltman dietrich

scott waltman dietrich

did ctk vise

ctk vise

brown jack hammer portable

jack hammer portable

position savvy connections calgary

savvy connections calgary

pound skyland pines golf course

skyland pines golf course

wonder tong choo choi of akron ohio

tong choo choi of akron ohio

drink rv slide stabilizer

rv slide stabilizer

wish payne housing idaho lied graduated

payne housing idaho lied graduated

meet pronounce the romanian abc s

pronounce the romanian abc s

appear minish cap dialogue

minish cap dialogue

want spanked diapered baby hotel

spanked diapered baby hotel

practice breitling chrono avenger

breitling chrono avenger

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