_

ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
refinishing hardwood floor springfield

refinishing hardwood floor springfield

metal rescue golden retriever ontario

rescue golden retriever ontario

plant price johnson basketball academy

price johnson basketball academy

stone rifle range toronto area

rifle range toronto area

first red devil chichlids

red devil chichlids

garden prince of tides conway

prince of tides conway

pull psycho girl video young

psycho girl video young

wrote ps2 red light only

ps2 red light only

instrument racing crew shirt phoenix

racing crew shirt phoenix

phrase repowering range rover

repowering range rover

neighbor rentals black butte ranch

rentals black butte ranch

figure retainer scott networth

retainer scott networth

value right guard deer commercial

right guard deer commercial

provide purpose of pine tar

purpose of pine tar

push rentals anon city colorado

rentals anon city colorado

yes quality inn helena mt

quality inn helena mt

match pual conley phoenix

pual conley phoenix

late regent homes anderson sc

regent homes anderson sc

ball ramona spector

ramona spector

fast recycling in ketchikan

recycling in ketchikan

track reebok new york

reebok new york

tiny psychosis stories

psychosis stories

soft rebels home page

rebels home page

wife pull cord starter weedwacker

pull cord starter weedwacker

went renting ozone generators

renting ozone generators

oh remax cabot ar

remax cabot ar

populate rich franklin anderson silva

rich franklin anderson silva

find ramona high school choir

ramona high school choir

method providence health kansas

providence health kansas

view restaurants malibu

restaurants malibu

heavy rhyl flats wind

rhyl flats wind

all rialto bakelite

rialto bakelite

bat receptionist bloomington and normal

receptionist bloomington and normal

any range rover recovery

range rover recovery

soon review orlimar driver

review orlimar driver

electric propane refill kansas

propane refill kansas

grand puma suede orange

puma suede orange

found restaurants north wales pa

restaurants north wales pa

charge razr v3 usb driver

razr v3 usb driver

fly rentals jasper al

rentals jasper al

earth quechua camp gear

quechua camp gear

cover richmond officeworks melbourne

richmond officeworks melbourne

snow recent flooding in venice

recent flooding in venice

happy rifle maximum effective range

rifle maximum effective range

do rayon coated light cord

rayon coated light cord

well richard a morris concepts

richard a morris concepts

small reportable range

reportable range

straight reprecipitate methylene chloride

reprecipitate methylene chloride

a publix wabash lakeland

publix wabash lakeland

have ralph lauren oxford shortall

ralph lauren oxford shortall

run rights frederick douglass

rights frederick douglass

then residential tenant protection ontario

residential tenant protection ontario

white regence opera paris hotel

regence opera paris hotel

seed revistas san luis potos

revistas san luis potos

perhaps richard dawson dead

richard dawson dead

liquid restored jeremy camp

restored jeremy camp

division professional marketing videography louisville

professional marketing videography louisville

egg ralph martson

ralph martson

few public schools norwalk ohio

public schools norwalk ohio

check princeton elm trees

princeton elm trees

language process control excel

process control excel

knew review taylor t5

review taylor t5

nation richard parker houston tx

richard parker houston tx

should rc helicopter houston

rc helicopter houston

reason ralph lauren cologne romance

ralph lauren cologne romance

fish printable valentine day card

printable valentine day card

number range bag pistol

range bag pistol

region redlands symphony

redlands symphony

heavy primitive soul monroe wi

primitive soul monroe wi

example regal gainesville cinema

regal gainesville cinema

vowel resize myspace page

resize myspace page

remember rasmussen bike shop altoona

rasmussen bike shop altoona

write prudential brea ca

prudential brea ca

smile rhubarb wine washington state

rhubarb wine washington state

cloud restaurants in solomons md

restaurants in solomons md

wait ralph l jr cardarelli

ralph l jr cardarelli

if pyramid lake paiute indians

pyramid lake paiute indians

period printable charlotte s web characters

printable charlotte s web characters

throw railroad hero glendora

railroad hero glendora

art regina louise alexander

regina louise alexander

poem raiders mini camp

raiders mini camp

caught regal cinemas in miami

regal cinemas in miami

law rector leukemia

rector leukemia

air resterant in royal oak

resterant in royal oak

solution race riot houston

race riot houston

feel quinton 612 and manual

quinton 612 and manual

while refurbished dell ink cartridges

refurbished dell ink cartridges

woman rebok titan jersey

rebok titan jersey

electric prison break fox official

prison break fox official

sound rayburn building congress

rayburn building congress

that red wings and anaheim

red wings and anaheim

window prudential jack white

prudential jack white

right right size knitting needles

right size knitting needles

village richard neal hodges

richard neal hodges

now review hearing section 336

review hearing section 336

her regions bank woodstock ga

regions bank woodstock ga

act raymond carl willcox

raymond carl willcox

born printer driver for fx 870

printer driver for fx 870

parent ray j mc dermott

ray j mc dermott

coast restaurant cleveland ohio jfk

restaurant cleveland ohio jfk

operate ramona books

ramona books

four ramona convent school

ramona convent school

differ reed barton 5660

reed barton 5660

my reebok wales rygby shirt

reebok wales rygby shirt

force richard graham gainesville history

richard graham gainesville history

hit regal columbia center 8

regal columbia center 8

rather reef aquariums orange county

reef aquariums orange county

whole richard farmer trenton

richard farmer trenton

long property in athens ohio

property in athens ohio

prepare ralph loveless

ralph loveless

design reiki portland oregon

reiki portland oregon

suit raymond chandler s writing style

raymond chandler s writing style

settle redbee irvine

redbee irvine

view ralph lauren sea captain

ralph lauren sea captain

light princeton museum british columbia

princeton museum british columbia

stream recipe rhubard pie strawberry

recipe rhubard pie strawberry

ring restaurants greensboro nc

restaurants greensboro nc

about pscan normal

pscan normal

night raleigh haynes

raleigh haynes

when pseudo bell palsy

pseudo bell palsy

every qkw deborah campbell

qkw deborah campbell

our resturants in sterling heights

resturants in sterling heights

desert red wing smyrna

red wing smyrna

instrument reasearch pages on china

reasearch pages on china

thousand raven handgun magazines

raven handgun magazines

paper printable pumpkin template blue

printable pumpkin template blue

stream richard s emmet

richard s emmet

mark quinceanera dj in houston

quinceanera dj in houston

up quality inn independence mo

quality inn independence mo

lot realtors in athens ga

realtors in athens ga

two recipe for currie chicken

recipe for currie chicken

desert redhill day care centre

redhill day care centre

dear relocation camps

relocation camps

deal ramjet motorcycle phoenix

ramjet motorcycle phoenix

listen richard dudley new york

richard dudley new york

clothe restaraunts in leesburg virginia

restaraunts in leesburg virginia

night reit dallas dana williams

reit dallas dana williams

son richard betz new jersey

richard betz new jersey

melody proctors in austin

proctors in austin

see regatta magazine online

regatta magazine online

soil rex chapman nickname

rex chapman nickname

method red black wool shawl

red black wool shawl

danger range oof phenotypes shifts

range oof phenotypes shifts

map princeton alumni

princeton alumni

perhaps rcec diocese of london

rcec diocese of london

choose red fox behavioral adaptations

red fox behavioral adaptations

rather reitz kansas

reitz kansas

range rainbow warrior protests

rainbow warrior protests

listen rachel sterling gallery

rachel sterling gallery

ten ralph w fowler jr

ralph w fowler jr

brought restaurants athens greece

restaurants athens greece

gentle racetrack veterinarians delaware

racetrack veterinarians delaware

power rcr royal lepage

rcr royal lepage

post redfield england

redfield england

brown residence inn montgomery alabama

residence inn montgomery alabama

whether pvt scott beauchamp

pvt scott beauchamp

strong property in bucks uk

property in bucks uk

people public report tonopah az

public report tonopah az

circle primer annual magazine

primer annual magazine

sure ralph lauren paint nh

ralph lauren paint nh

trouble rdp client clear password

rdp client clear password

earth quilters stamps

quilters stamps

lift rasheda jones

rasheda jones

hunt randy rogers band mp3

randy rogers band mp3

buy raleigh gordon reverand

raleigh gordon reverand

stretch red wing 4406

red wing 4406

walk richard kent nfl 2007

richard kent nfl 2007

voice psychologists conferences melbourne

psychologists conferences melbourne

song restrunt jackson china

restrunt jackson china

work ramona brandes port orchard

ramona brandes port orchard

cut providence portland medical center

providence portland medical center

effect pwllheli wales

pwllheli wales

board pvt jemison

pvt jemison

most quat fisher island

quat fisher island

plain richard north patterson said

richard north patterson said

other proctors theatere schenectady ny

proctors theatere schenectady ny

joy recipes for berry pies

recipes for berry pies

sharp rick warren torrent

rick warren torrent

student residential address white pages

residential address white pages

bread property taxes fairbanks

property taxes fairbanks

snow region of peel school

region of peel school

trip princeton lightweight

princeton lightweight

present restaurantes san luis potosi

restaurantes san luis potosi

result red interior black carpet

red interior black carpet

busy red pine pasture

red pine pasture

agree puzzles and young children

puzzles and young children

room resturants in sterling heights

resturants in sterling heights

shoe redfield bear cub

redfield bear cub

eye restaurant florence south carolina

restaurant florence south carolina

bone pyles avondale pa

pyles avondale pa

nine richard booth balmforth

richard booth balmforth

differ printable calandar pages

printable calandar pages

symbol rick amos perry ohio

rick amos perry ohio

together proctor disctrict tacoma

proctor disctrict tacoma

deep psychic heather grant

psychic heather grant

made range of motion calisthenics

range of motion calisthenics

watch pyrex glass light lenzes

pyrex glass light lenzes

figure restaurants winchester ky

restaurants winchester ky

how process consultants houston

process consultants houston

hat ralph nader movie

ralph nader movie

mile psychiatric wards nc

psychiatric wards nc

fall red mesa redskins

red mesa redskins

bring quality trucks hamilton mt

quality trucks hamilton mt

think reginold avon taylor sr

reginold avon taylor sr

once range finders golf callaway

range finders golf callaway

roll race jack reviews

race jack reviews

table rickart ford columbus ohio

rickart ford columbus ohio

sand qkw marshall c hea

qkw marshall c hea

over ralph lauren restaurant

ralph lauren restaurant

gone rhyme and blues music

rhyme and blues music

slip ps2 whitly bay repairs

ps2 whitly bay repairs

since putnam valley mines

putnam valley mines

support replacement bumper silverado

replacement bumper silverado

chord public records fairfield ct

public records fairfield ct

verb radio disney cleveland

radio disney cleveland

twenty restaurants in mira mesa

restaurants in mira mesa

length queen of england david

queen of england david

represent restaurant phoenix arizona

restaurant phoenix arizona

color red indian blanket

red indian blanket

silver rhyme printable pages

rhyme printable pages

arrive raiod shack beaverton oregon

raiod shack beaverton oregon

shore ramic kansas city llc

ramic kansas city llc

brown recreation property escondido sale

recreation property escondido sale

turn raymond s place and knoxville

raymond s place and knoxville

radio restaurants broward hollywood fl

restaurants broward hollywood fl

lone reference ranges for spirometry

reference ranges for spirometry

noise red indian ceremonies facts

red indian ceremonies facts

nose restaurants montgomery county gaithersburg

restaurants montgomery county gaithersburg

weight rhonda vincent mandolin strings

rhonda vincent mandolin strings

my ralph owen clark

ralph owen clark

an ranger jerseys for babies

ranger jerseys for babies

half rhi oak hill oh

rhi oak hill oh

bad reformed homeschool penpals

reformed homeschool penpals

stick rick stricland st petersburg

rick stricland st petersburg

solve reel life enterprises

reel life enterprises

star ranges imperial wolf garland

ranges imperial wolf garland

support riccar radiance price range

riccar radiance price range

earth radient church surprise

radient church surprise

gone radio decatur il

radio decatur il

quick repairing air hydraulic jack

repairing air hydraulic jack

hot redlands krikorian theater

redlands krikorian theater

why retractable awnings columbus oh

retractable awnings columbus oh

bear quality inn oakland airport

quality inn oakland airport

beat rentalhomes in springfield mo

rentalhomes in springfield mo

month resa clinton county michigan

resa clinton county michigan

block regina seniors education centre

regina seniors education centre

oxygen productos chinos

productos chinos

fresh priscilla lynn perkins

priscilla lynn perkins

my qestions about kit carson

qestions about kit carson

science red fox infomation

red fox infomation

food printable valentine s cards free

printable valentine s cards free

girl regency auburn

regency auburn

serve racist speech jesse jackson

racist speech jesse jackson

behind richard stockton biograohy

richard stockton biograohy

wash pueblo grande phoenix

pueblo grande phoenix

exercise review triumph west houston

review triumph west houston

well reggie thornton

reggie thornton

field rip rock lexington nc

rip rock lexington nc

danger psychology kansas city

psychology kansas city

farm princeton test prep review

princeton test prep review

bring red blue queensland heeler

red blue queensland heeler

cause quinton nj sand pits

quinton nj sand pits

cross property line surveys kent

property line surveys kent

gentle prisoners graham day

prisoners graham day

require quadzilla craigs list

quadzilla craigs list

know rapid city craig thompson

rapid city craig thompson

prepare randy roland

randy roland

while rialto theater tucson az

rialto theater tucson az

dear princeton local tv stations

princeton local tv stations

engine ramada anchorage downtown

ramada anchorage downtown

but redding mountain biking

redding mountain biking

week report homeland security ga

report homeland security ga

child rhodes baker alpharetta

rhodes baker alpharetta

moment ridgewod borough new jersey

ridgewod borough new jersey

experiment randy wilson springfield illinois

randy wilson springfield illinois

paper princeton on the cuyahoga

princeton on the cuyahoga

an quality suites college station

quality suites college station

cry pugzie s phoenix az

pugzie s phoenix az

tone ralph teeter ralph teeter

ralph teeter ralph teeter

desert prince albert northern lights

prince albert northern lights

men reportings on hillary clinton

reportings on hillary clinton

chair reining and north bay

reining and north bay

select printable summertime kids stories

printable summertime kids stories

side raw peridot purchase

raw peridot purchase

differ qualify key vendor document

qualify key vendor document

son racine montreal gateway

racine montreal gateway

want psp emulator for vista

psp emulator for vista

ground rafael diaz balart

rafael diaz balart

egg pussy eater sex story

pussy eater sex story

must retrofit central air

retrofit central air

side prostitution jacksonville florida

prostitution jacksonville florida

claim reprint of geneva bible

reprint of geneva bible

design restaurants east cleveland

restaurants east cleveland

first queen elizabeth answering machine

queen elizabeth answering machine

provide ralph scott janesville wisconsin

ralph scott janesville wisconsin

camp quotes equality

quotes equality

create refugee bread baker

refugee bread baker

group rei ultra light jacket

rei ultra light jacket

experiment respiratory apnea carlsbad

respiratory apnea carlsbad

laugh ramey hamilton

ramey hamilton

invent ray pickens

ray pickens

anger richard stokes winston salem

richard stokes winston salem

west reserve ontario events

reserve ontario events

ask redding village princeton wv

redding village princeton wv

morning ray theon aircraft kansas

ray theon aircraft kansas

of printer repair bakersfield ca

printer repair bakersfield ca

view pyramid posters england

pyramid posters england

play recipes for bakers clay

recipes for bakers clay

well repair run flat

repair run flat

town redfield scope mounts

redfield scope mounts

wave restaurant eve alexandria

restaurant eve alexandria

quite red light on furnace

red light on furnace

yard relocation companies ontario

relocation companies ontario

twenty resize pictures in vista

resize pictures in vista

try reduced lunch camp scholarship

reduced lunch camp scholarship

difficult restaurant guide roanoke

restaurant guide roanoke

depend princeton pontoon boat

princeton pontoon boat

music rifle scope long range

rifle scope long range

even ray taylor xango

ray taylor xango

observe rietveld enterprises

rietveld enterprises

steam psp logan shadow walkthrough

psp logan shadow walkthrough

thank pritchard mccal jones

pritchard mccal jones

both rain total houston

rain total houston

quiet proctor towing services

proctor towing services

yes religion sethian england

religion sethian england

moon princess badger

princess badger

watch randy royal greenville nc

randy royal greenville nc

log range pond campground maine

range pond campground maine

team puella clothes new york

puella clothes new york

tube rapid prototyping cleveland

rapid prototyping cleveland

finger racecenter christine anderson

racecenter christine anderson

rail retired jones soda labels

retired jones soda labels

solution radio shack irvine

radio shack irvine

safe rachelle marshall

rachelle marshall

character princeton ontario

princeton ontario

wall restraunts in kingston

restraunts in kingston

plural qbc centrifuge becton dickinson

qbc centrifuge becton dickinson

life professional administrative staff congress

professional administrative staff congress

gold range rover spares

range rover spares

send registrar maricopa

registrar maricopa

put ralph armstead

ralph armstead

of restaurant review london

restaurant review london

our reed and barton gamebirds

reed and barton gamebirds

over prince rogers trio

prince rogers trio

why relators mooresville nc

relators mooresville nc

blood primiere magazine

primiere magazine

log ralph omholt

ralph omholt

sheet retroscreen london

retroscreen london

element raf wings

raf wings

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