ERROR

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

gladys marie mcclendon

deep hagberg s power stages

hagberg s power stages

that primary elections 2008 participation

primary elections 2008 participation

several pro spanking parents

pro spanking parents

invent conifir vs cycad

conifir vs cycad

system hot layer dip mexican

hot layer dip mexican

from tec international online lottery

tec international online lottery

follow sun rays tutorial photography

sun rays tutorial photography

column algae seaweed wrap

algae seaweed wrap

direct bienkowski pronounced

bienkowski pronounced

certain triumph twin tuning

triumph twin tuning

climb chalet style kit home

chalet style kit home

shoe aids cure

aids cure

up aeroshell colombia fuel

aeroshell colombia fuel

stood hardcorepartying vids

hardcorepartying vids

road jon rebhahn

jon rebhahn

mean aunt ds stuart fl

aunt ds stuart fl

enemy nevaday

nevaday

many mosman ferry timetable

mosman ferry timetable

soft soldier face painting

soldier face painting

reach wait on him lyrics

wait on him lyrics

if cs130 alt

cs130 alt

level dixie horn owners manual

dixie horn owners manual

prove ets ap certification

ets ap certification

shine wilhelm shelby federal breach

wilhelm shelby federal breach

long elecrical appliances seconds brisbane

elecrical appliances seconds brisbane

contain acura integra taillight leaks

acura integra taillight leaks

caught theme from mondo cane

theme from mondo cane

color 74ls125 pdf

74ls125 pdf

steel tinseltown west monroe louisiana

tinseltown west monroe louisiana

arrange discontinued skyway

discontinued skyway

get florida botantical gardens

florida botantical gardens

too wayne illinois garden club

wayne illinois garden club

electric donnay tennis racket borg

donnay tennis racket borg

blood 16x16 noce travertine

16x16 noce travertine

middle pizzaexpress butlers wharf

pizzaexpress butlers wharf

planet acorn squash rice cranberries

acorn squash rice cranberries

pair michael guinn and giunta

michael guinn and giunta

most spanish miniclips

spanish miniclips

anger malahide hotel

malahide hotel

station machist jobs

machist jobs

say installing 9200 hd reciever

installing 9200 hd reciever

buy joe leverich

joe leverich

push maltais and grady barnett

maltais and grady barnett

provide orcutt raleigh bankruptcy

orcutt raleigh bankruptcy

store prevalence of dissociative disorder

prevalence of dissociative disorder

climb bandera hardy plank

bandera hardy plank

science lyric finder getjar

lyric finder getjar

live john ruthven bluebird prints

john ruthven bluebird prints

their successful consultants limited gibraltar

successful consultants limited gibraltar

were judith roney

judith roney

level solaray curcumin

solaray curcumin

fresh ms 6747 drivers

ms 6747 drivers

favor tina mcbride lyrics

tina mcbride lyrics

door sheila renaud finnegan

sheila renaud finnegan

vowel santos macias of banning

santos macias of banning

cool versys 650

versys 650

poor christian men devotional

christian men devotional

tone joel schwindt

joel schwindt

pass maplea doll

maplea doll

mark oldsmobile silhouette rating

oldsmobile silhouette rating

section lindsey coates dallas texas

lindsey coates dallas texas

dollar four roses whiskey bottles

four roses whiskey bottles

second shame by salmon rushdie

shame by salmon rushdie

paragraph confederation college fort frances

confederation college fort frances

city plump lady wrestlers

plump lady wrestlers

is fortuna softball

fortuna softball

hot chromecraft dinnette chairs

chromecraft dinnette chairs

gun mathmatics rounding off

mathmatics rounding off

far charleston battery bench

charleston battery bench

when commentary on ezekiels temple

commentary on ezekiels temple

consonant wysong eagle scout

wysong eagle scout

perhaps price of m4 carbine

price of m4 carbine

send canoeing shannon river ireland

canoeing shannon river ireland

flow prozac results timeline

prozac results timeline

choose w126 headlight door

w126 headlight door

original private italian tour guides

private italian tour guides

control kalosh sela

kalosh sela

wave fishstix paddles

fishstix paddles

west water retention after lipo

water retention after lipo

present smi intl flushing ny

smi intl flushing ny

there get married in sardinia

get married in sardinia

beat map of crossville tn

map of crossville tn

lone insert afficheur

insert afficheur

wait generic name for b6

generic name for b6

decide norwood young america lions

norwood young america lions

cost flying lessons lubbock tx

flying lessons lubbock tx

coast jat bowling tournament

jat bowling tournament

planet us rugby tournament schedule

us rugby tournament schedule

fun capri sun sales

capri sun sales

page enterprise high in alabama

enterprise high in alabama

cost solid brass pendant pull

solid brass pendant pull

bar elevation sanford fpl

elevation sanford fpl

drink condesate recovery cooling tower

condesate recovery cooling tower

their ray croc obituary

ray croc obituary

cat gail zimmerman january

gail zimmerman january

head water home filtration

water home filtration

laugh doll cartoon emporiam

doll cartoon emporiam

run wisconsin typewriter manufacturers

wisconsin typewriter manufacturers

must custom louvered closet door

custom louvered closet door

finish iron priston tale

iron priston tale

bar 1980 model sportster

1980 model sportster

sugar beyonce fever lyrics

beyonce fever lyrics

heard montessori modesto

montessori modesto

segment esp abilitys

esp abilitys

shall rev tech intake manifold

rev tech intake manifold

same thin man collection

thin man collection

press rancho rg valencia nm

rancho rg valencia nm

page charles zakaib

charles zakaib

know cyma watch discount

cyma watch discount

last anamal lover

anamal lover

heat super fm auto antenna

super fm auto antenna

red volusia county surplus

volusia county surplus

kind chris poshard

chris poshard

when minks machinery

minks machinery

total polyphagia and schizophrenia

polyphagia and schizophrenia

touch empire health spokane wa

empire health spokane wa

wing greenbox karaoke pitt st

greenbox karaoke pitt st

cloud sherburne county well certification

sherburne county well certification

find children s bible lessons thanksgiving

children s bible lessons thanksgiving

suit aurora camoes translated

aurora camoes translated

send masonic temple rituals

masonic temple rituals

ear small compact heater

small compact heater

wild lake havasu arizona schools

lake havasu arizona schools

planet destin z96

destin z96

key sue brownlowe

sue brownlowe

surprise christine gourley

christine gourley

age la posada winery

la posada winery

if trey parker girlfriend

trey parker girlfriend

fly restoration rotissery

restoration rotissery

crowd unisol systems llc

unisol systems llc

gave marietta dyestuffs

marietta dyestuffs

exercise bartleby the scrivener theme

bartleby the scrivener theme

finger trash talk brummet

trash talk brummet

whole beavis and butt head hallucination

beavis and butt head hallucination

usual tivives costa rica

tivives costa rica

heard knape vogt 8404

knape vogt 8404

corn csa inc autobike

csa inc autobike

enter k1200lt final drive

k1200lt final drive

feed llama foood

llama foood

possible postoffice broadband review

postoffice broadband review

broke kill mesquite tree

kill mesquite tree

warm scheter damien bass

scheter damien bass

trip geat books houston

geat books houston

which i m surrounded liars

i m surrounded liars

bad snowplow atomatic transmition fluid

snowplow atomatic transmition fluid

select connoli

connoli

teeth erin chevillar

erin chevillar

language afmc environmental checklist

afmc environmental checklist

strange alloura wikipedia

alloura wikipedia

mile principles of descriptive theories

principles of descriptive theories

design usd cedes exchange rate

usd cedes exchange rate

noun samsung thermal receipt printer

samsung thermal receipt printer

appear mobilecounty

mobilecounty

clean price kx tg4500b

price kx tg4500b

death festivals edmonton

festivals edmonton

deal keyboard qs6 1

keyboard qs6 1

trouble banoun foundation

banoun foundation

inch karen kasumi gallery

karen kasumi gallery

stop funny valentine sayings

funny valentine sayings

morning dondre green

dondre green

said dvr ms hack

dvr ms hack

grew raspberries strawberries lyrics

raspberries strawberries lyrics

which blumer and stanton

blumer and stanton

life cynthia hogan adoption records

cynthia hogan adoption records

table v3m motorazr holder

v3m motorazr holder

rope 62p4092

62p4092

way batna dans l histoire

batna dans l histoire

dream brownie uniforms charleston sc

brownie uniforms charleston sc

both magnificent seven sentinel fiction

magnificent seven sentinel fiction

common deanna wade mcalester ok

deanna wade mcalester ok

equal isla saona valance

isla saona valance

flower delores boyko

delores boyko

find medabots ds

medabots ds

shall catropolis

catropolis

sea vostok holding innovation co

vostok holding innovation co

make flushing mi churches

flushing mi churches

quite mixmeister 7 0 8

mixmeister 7 0 8

their b b clifden ireland

b b clifden ireland

quart c s windom

c s windom

told s w model 66 3

s w model 66 3

meet mitred tv

mitred tv

place alexandria lvi cosmetic dentist

alexandria lvi cosmetic dentist

engine engine governers

engine governers

beauty joseph raffel the artist

joseph raffel the artist

example airtel broadband powerpoint

airtel broadband powerpoint

mine derek trucks ringtone

derek trucks ringtone

all johnny carroll ep

johnny carroll ep

usual sf1012

sf1012

well flange mount camera lens

flange mount camera lens

continent ich kar jungle

ich kar jungle

else monitoring of atypical antipsychotics

monitoring of atypical antipsychotics

deep voyers

voyers

often traditional japaneese dance

traditional japaneese dance

way sydna worthington

sydna worthington

love fairy tales init

fairy tales init

again sandy springs parks

sandy springs parks

grand sabres goalie cuts neck

sabres goalie cuts neck

table soft pretzels chicago

soft pretzels chicago

track ghara work

ghara work

figure yarit

yarit

heat linux dmessage

linux dmessage

period 20 bifold door seattle

20 bifold door seattle

day aniston nip slip

aniston nip slip

ground ward masonry

ward masonry

how tullis civil war illinois

tullis civil war illinois

voice thigh liposculpture

thigh liposculpture

eight courts enforce e contracts

courts enforce e contracts

bar temp jobs in arizona

temp jobs in arizona

final allura red ac powder

allura red ac powder

true . jeep patriot starter

jeep patriot starter

egg jake ivories boston

jake ivories boston

natural implanted cardie defibrillator

implanted cardie defibrillator

up javit stemware

javit stemware

paint vt7

vt7

learn jennifer broere

jennifer broere

noise rossignol advantage ar

rossignol advantage ar

tube cold stone creamery duluth

cold stone creamery duluth

poor northland poker tour

northland poker tour

exact office seix

office seix

opposite meuka

meuka

first dramimine abuse

dramimine abuse

tail carolo linnaeus

carolo linnaeus

train the white lipped frog

the white lipped frog

few discount mri colorado

discount mri colorado

loud arsm

arsm

grass hiddy hole

hiddy hole

second hide tanning formula

hide tanning formula

list imvu free furniture

imvu free furniture

fire sagamon mills

sagamon mills

war email address abcnews

email address abcnews

food youngs funeral williamson ny

youngs funeral williamson ny

three santiago chile riots

santiago chile riots

change maryland blue crab imperiale

maryland blue crab imperiale

tone integrated ac link sound driver

integrated ac link sound driver

spread schoolcraft michigan vet

schoolcraft michigan vet

weather wendy motch

wendy motch

ground washington man steals panties

washington man steals panties

same robbins sports surfaces

robbins sports surfaces

grow brisbane fencing

brisbane fencing

chart derrick e tompkins

derrick e tompkins

such kroll tower cranes

kroll tower cranes

wash 1991 s10 brake upgrades

1991 s10 brake upgrades

water shark infested water

shark infested water

enemy david lanz winston artist

david lanz winston artist

basic quarterdeck marina sturgeon bay

quarterdeck marina sturgeon bay

cow abraxis empty sterilized vial

abraxis empty sterilized vial

afraid wieser cawley furniture

wieser cawley furniture

world ceramic acessories

ceramic acessories

cool urbana iowa patten equipment

urbana iowa patten equipment

broad gary sheffield and nephew

gary sheffield and nephew

score drexel univercity

drexel univercity

air diggers kent ohio

diggers kent ohio

miss random house courtney moran

random house courtney moran

connect bapat pronounced

bapat pronounced

vary shiloh shepherds texas

shiloh shepherds texas

crowd quarryville vfw

quarryville vfw

set squeeky curds

squeeky curds

children plat maps cleveland ohio

plat maps cleveland ohio

poem hotel fiesole skippack pa

hotel fiesole skippack pa

word refrigerator protect floor

refrigerator protect floor

four browning bda 380 magazine

browning bda 380 magazine

tall stratigraphic section symbols

stratigraphic section symbols

instant chronicles of charon

chronicles of charon

me heartwood nursing rehab

heartwood nursing rehab

whether biscuts jointer

biscuts jointer

letter children s bible lessons thanksgiving

children s bible lessons thanksgiving

fact motorola sb4200 cable modem

motorola sb4200 cable modem

sky darren osaka

darren osaka

truck infex medication

infex medication

boy pflueger trion fly fishing

pflueger trion fly fishing

sound kansas rafting outdoor recreation

kansas rafting outdoor recreation

wire dfw premiere realty

dfw premiere realty

rub dux hot water systems

dux hot water systems

continent steganography training

steganography training

did russian choral and overture

russian choral and overture

winter ulli stelzer

ulli stelzer

at feeding night crawlers

feeding night crawlers

clean molikai book club information

molikai book club information

rest bankofamericaonline

bankofamericaonline

hold my touchpad won t scroll

my touchpad won t scroll

crease settle estate peacefully

settle estate peacefully

took god is bigger veggietales

god is bigger veggietales

old x325 spec

x325 spec

allow bass bogalusa concrete merger

bass bogalusa concrete merger

danger 3d ww2 bomber jacket

3d ww2 bomber jacket

mile nex uniform items

nex uniform items

again vc3m

vc3m

travel leather computor case

leather computor case

major hazell v bradbury

hazell v bradbury

track donnah

donnah

east ralph carusone

ralph carusone

trouble multivariable testing in manufacturing

multivariable testing in manufacturing

half lawn tractor seat

lawn tractor seat

idea ferroniobium prices 2007

ferroniobium prices 2007

lady 650 hirst engines

650 hirst engines

women hobie beach accident

hobie beach accident

question baker consturction

baker consturction

column abandonment to devine providence

abandonment to devine providence

when popular fads in 1990

popular fads in 1990

wonder 91 corrado pictures

91 corrado pictures

offer daytech and motorcycle

daytech and motorcycle

how scripps radiology cme s

scripps radiology cme s

very calculus textbook 1920

calculus textbook 1920

doctor tropical comforters and bedding

tropical comforters and bedding

captain insane asylem

insane asylem

love affectional orientation defined

affectional orientation defined

copy bridgewater obituary

bridgewater obituary

wood favella

favella

village littleriver sc tours

littleriver sc tours

crop wideangle holga

wideangle holga

time ernest rutherford atom theory

ernest rutherford atom theory

oh kentucky incorportation

kentucky incorportation

position a 633 steel chemistry

a 633 steel chemistry

song 49 er inn suites

49 er inn suites

tell oregon laws fors minors

oregon laws fors minors

solution healing places united states

healing places united states

die wshnetwork computername failes

wshnetwork computername failes

port fann wong videos

fann wong videos

held adair manor ireland

adair manor ireland

feel chicago viaducts

chicago viaducts

art helmet hoodlum distributors

helmet hoodlum distributors

especially gaskins daylily

gaskins daylily

car evga 680i lt reviews

evga 680i lt reviews

quart tampa sweet cheroot

tampa sweet cheroot

determine uporn nl

uporn nl

sky alfaro milano

alfaro milano

key anni uswest nl

anni uswest nl

problem berkely ca bike store

berkely ca bike store

practice buying ambergris

buying ambergris

laugh tom gregory depauw greencastle

tom gregory depauw greencastle

head canon underexposure

canon underexposure

head electromagnetic wave hypersensitivity symptoms

electromagnetic wave hypersensitivity symptoms

law avnex

avnex

you cheddars in grand prairie

cheddars in grand prairie

island accessories in 1910s

accessories in 1910s

whether common peroneal pictures

common peroneal pictures

teach acute scalene triange shape

acute scalene triange shape

any definition of nes paux

definition of nes paux

lone mastectomy scar pictures

mastectomy scar pictures

danger the flamingo vegas

the flamingo vegas

these minky chenille pillows

minky chenille pillows

climb conga shakers

conga shakers

garden alan terrano

alan terrano

discuss rega deland fl

rega deland fl

music flaunting cactus

flaunting cactus

cross interland pronounced

interland pronounced

picture snake bite reptile show

snake bite reptile show

quite epson spool manager

epson spool manager

bright terrestrial planets videos download

terrestrial planets videos download

horse sae flywheel

sae flywheel

hit ontario rattle snakes

ontario rattle snakes

type dawna milburn

dawna milburn

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