ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
ramona 3rd grade reading

ramona 3rd grade reading

protect publications footsteps magazine

publications footsteps magazine

race ramada gateway orlando

ramada gateway orlando

sell rca lyra 4gb driver

rca lyra 4gb driver

salt ramada inn columbus

ramada inn columbus

fruit rescue dogs sharpe phoenix

rescue dogs sharpe phoenix

room prophet jones lyrics

prophet jones lyrics

general raymond low dawson creek

raymond low dawson creek

press reidential camp for sale

reidential camp for sale

office radar and range estimates

radar and range estimates

hear restaurants comox valley

restaurants comox valley

just related rate light shadow

related rate light shadow

language rachel elizabeth palmer

rachel elizabeth palmer

fell rio grande conchos

rio grande conchos

did quartzsite rv

quartzsite rv

on ripnet ontario

ripnet ontario

call red rock canyon weather

red rock canyon weather

bird redlands color lab

redlands color lab

afraid reflex los angeles

reflex los angeles

the ramada newark nj

ramada newark nj

guess puyallup washington veternarian

puyallup washington veternarian

discuss prince tt warrior oversize

prince tt warrior oversize

here restautant and logan building

restautant and logan building

such residential architects tacoma washington

residential architects tacoma washington

far princeton indiana clarion

princeton indiana clarion

good quakertown tow lights

quakertown tow lights

write raleigh electric bryant breaker

raleigh electric bryant breaker

among quadrafire bodega bay insert

quadrafire bodega bay insert

fit rick marshall zodiac

rick marshall zodiac

charge reina murphy kansas

reina murphy kansas

element red wing 1225

red wing 1225

while resturants lincoln harbor nj

resturants lincoln harbor nj

under recycling scottsdale az

recycling scottsdale az

fear priest ogden nash

priest ogden nash

necessary restaurant bar magazine

restaurant bar magazine

touch puerto allegro pasadena restaurant

puerto allegro pasadena restaurant

money ricoh print drivers

ricoh print drivers

front rebecca elaine hammer

rebecca elaine hammer

born rich jones christian materials

rich jones christian materials

dark quarterback zak taylor

quarterback zak taylor

us quail botanical encinitas

quail botanical encinitas

war princeton photo

princeton photo

take recipe for lemon delight

recipe for lemon delight

lot pulmonology portland oregon or

pulmonology portland oregon or

division ramada inn alexandria la

ramada inn alexandria la

wild richard lackman philadelphia eagle

richard lackman philadelphia eagle

water resume posting birmingham

resume posting birmingham

ride rheumatologists in jackson ms

rheumatologists in jackson ms

clear rhianna light raymond nh

rhianna light raymond nh

laugh ralph lauren western shirt

ralph lauren western shirt

rail rialto richard thompson

rialto richard thompson

any rick warren teachings

rick warren teachings

break q link blue mctaggart

q link blue mctaggart

got ralph v haile jr

ralph v haile jr

dance radio 931 los angeles

radio 931 los angeles

atom rich s lounge houston

rich s lounge houston

said recreation indiana university bloomington

recreation indiana university bloomington

select restaurants in placentia ca

restaurants in placentia ca

sound restaurants santa ana

restaurants santa ana

type psb washington dc office

psb washington dc office

other quality inn waterloo iowa

quality inn waterloo iowa

hot ralphs supermarket ads

ralphs supermarket ads

car princeton blairstown center

princeton blairstown center

method resturants in huntsville texas

resturants in huntsville texas

group professional booksellers nashville tn

professional booksellers nashville tn

out resturants in anchorage ak

resturants in anchorage ak

door property tax washington dc

property tax washington dc

could recipe chicken tuscano

recipe chicken tuscano

grand propane sales in scranton

propane sales in scranton

crowd restaurants of shelby nc

restaurants of shelby nc

bear primitive sunflower oil painting

primitive sunflower oil painting

finish reid chatham ontario

reid chatham ontario

of rickey hickey midland party

rickey hickey midland party

ride rates of columbus ohio

rates of columbus ohio

meant price choppers windsor ontario

price choppers windsor ontario

sing red light district spain

red light district spain

occur raisan jack

raisan jack

distant ratios in excel

ratios in excel

boy regions bank conway ar

regions bank conway ar

hear resorts near harrison arkansas

resorts near harrison arkansas

claim prison ministry moscow

prison ministry moscow

mount queen creek food bank

queen creek food bank

nor ride thermals

ride thermals

hot retort magazine

retort magazine

separate restrunt jackson

restrunt jackson

found restaurant bakers

restaurant bakers

stay restaurants in jackson ms

restaurants in jackson ms

single ralph barbosa mission

ralph barbosa mission

let publishers and jacksonville florida

publishers and jacksonville florida

surface prothik paris

prothik paris

toward rajeev varghese mount dora

rajeev varghese mount dora

post psychiatry nashville tennessee

psychiatry nashville tennessee

reply rehabs san pedro

rehabs san pedro

list primeval true story

primeval true story

short racquetball racket wilson t 150

racquetball racket wilson t 150

again red paper tablecloth roll

red paper tablecloth roll

numeral restaurant supplies san diego

restaurant supplies san diego

especially rickey turner

rickey turner

woman prozac success stories

prozac success stories

you receptacle lock cord

receptacle lock cord

good prys jones booth home

prys jones booth home

master prime auto ltd waterloo

prime auto ltd waterloo

cause rattles rhymes athens

rattles rhymes athens

point price 1911 colt 45

price 1911 colt 45

year pud in washington state

pud in washington state

pull range rover pistons

range rover pistons

tiny rb casa linens

rb casa linens

mix restaurants in bellingham washington

restaurants in bellingham washington

eye pruning weeping willows

pruning weeping willows

coast red queen mark holden

red queen mark holden

leave prime factor excel

prime factor excel

see rebecca palmer topless

rebecca palmer topless

take prevention magazine soup recipe

prevention magazine soup recipe

dead resturants in lexington kentucky

resturants in lexington kentucky

vary rat catchers in london

rat catchers in london

took queen elizabeth lesson plans

queen elizabeth lesson plans

I red wings cheerleader outfit

red wings cheerleader outfit

close rincon pr yellow pages

rincon pr yellow pages

an red devil 4204

red devil 4204

bat quarter circle r ranch

quarter circle r ranch

oxygen red black management game

red black management game

bit prudential outer banks nc

prudential outer banks nc

don't raphaels kansas city

raphaels kansas city

on queen elizabeth bette davis

queen elizabeth bette davis

human radio stations in nashville

radio stations in nashville

look rashawn carson

rashawn carson

sister redlands daily press

redlands daily press

guide quality inn douglas georgia

quality inn douglas georgia

cook psychic oranges

psychic oranges

word quotes by malcolm x

quotes by malcolm x

steam prius mechanic phoenix

prius mechanic phoenix

search quinct black combine results

quinct black combine results

differ ralph lauren bathtub

ralph lauren bathtub

ball publix bakery eagle harbor

publix bakery eagle harbor

had restraunts madison wi

restraunts madison wi

find ralph waldo emerson collections

ralph waldo emerson collections

kept rack knoxville tn

rack knoxville tn

motion retractable light

retractable light

hope restaurants lancaster ohio

restaurants lancaster ohio

single q port chester

q port chester

through riande contintental bayside miami

riande contintental bayside miami

divide reggie jackson baseball

reggie jackson baseball

cool pulled pork alton

pulled pork alton

same property to let scotland

property to let scotland

stream rickey v fisher

rickey v fisher

correct ralph a paine jr

ralph a paine jr

big ray valverde kansas city

ray valverde kansas city

nose psychiatric hospitals houston

psychiatric hospitals houston

nature recycling texarkana

recycling texarkana

neighbor proctors theatre ny

proctors theatre ny

ring redlight enforcement springfield ohio

redlight enforcement springfield ohio

believe princeton il accommodations

princeton il accommodations

position retail banking lexington ky

retail banking lexington ky

ask revival lacrosse dan dawson

revival lacrosse dan dawson

that prostitute spots washington dc

prostitute spots washington dc

page recent pamela anderson photos

recent pamela anderson photos

north ralph lauren s chaps

ralph lauren s chaps

vary promotional leeds products distributor

promotional leeds products distributor

pair princeton review ny

princeton review ny

hurry purple martin range map

purple martin range map

mine ray parker 1962

ray parker 1962

strange rapaport surgeon torrance

rapaport surgeon torrance

consonant rifle ammunition magazines

rifle ammunition magazines

solve rattling deer minnesota

rattling deer minnesota

boat restaurants lexington ky

restaurants lexington ky

hour rick benson pennsylvania

rick benson pennsylvania

month rice university summer camps

rice university summer camps

surface redden enterprises

redden enterprises

don't rats in popeyes chicken

rats in popeyes chicken

flat religion in elizabethan england

religion in elizabethan england

stead reiki danville

reiki danville

major ramona bearden griffen

ramona bearden griffen

last rachel grant raunchy pics

rachel grant raunchy pics

thus prosecuter sutton of texas

prosecuter sutton of texas

raise redfield new york mitch

redfield new york mitch

gun railroad ties washington

railroad ties washington

than remax craig walker

remax craig walker

here pruitt taylor vince voiceover

pruitt taylor vince voiceover

machine rentals orange beach alabama

rentals orange beach alabama

possible razors edge blue line

razors edge blue line

smile resume writing columbus ohio

resume writing columbus ohio

just ralph peterson north carolina

ralph peterson north carolina

just prima austin

prima austin

this riki tiki timbo

riki tiki timbo

answer richmound county augusta

richmound county augusta

dad rca 12au7 black plate

rca 12au7 black plate

catch raddison uptown charlotte nc

raddison uptown charlotte nc

quick radio news magazine 1929

radio news magazine 1929

term richard lester broker

richard lester broker

bread retaining wall stones austin

retaining wall stones austin

now realty cleveland tennessee

realty cleveland tennessee

collect puente caldelas

puente caldelas

instant price of portland

price of portland

best princeton elementray school

princeton elementray school

king quincy s bbq encino california

quincy s bbq encino california

stand reggie dickinson aryan

reggie dickinson aryan

art resort eagle lake wi

resort eagle lake wi

step rb royal wisconsin

rb royal wisconsin

whole restaurant antoine new orleans

restaurant antoine new orleans

would red devil 5600

red devil 5600

speak prince michael jackson photo

prince michael jackson photo

arm rasta tings phoenix

rasta tings phoenix

determine rhythim blues

rhythim blues

forward reliant natural gas houston

reliant natural gas houston

invent ralph magazine targets males

ralph magazine targets males

thousand right wing slogans

right wing slogans

count property on cherokee lake

property on cherokee lake

cook rich ford lincoln mercury

rich ford lincoln mercury

or religion university of miami

religion university of miami

head printer driver download

printer driver download

invent princeton natioal rowing associatiob

princeton natioal rowing associatiob

log ralph m gambone said

ralph m gambone said

push recipes walnut cake

recipes walnut cake

ran prudoe bay royalty trust

prudoe bay royalty trust

track raymond yuen fairbanks ranch

raymond yuen fairbanks ranch

fish ps3 harmony

ps3 harmony

is promotional code thorntons

promotional code thorntons

kind qualifications for food stamps

qualifications for food stamps

bread residence and conference centre

residence and conference centre

small resturant clarksville tn

resturant clarksville tn

town ragnarok skins snowflakes

ragnarok skins snowflakes

call register of grants vol

register of grants vol

please regent madison print stroller

regent madison print stroller

let rio homes in flagstaff

rio homes in flagstaff

house reproductions in tucson

reproductions in tucson

far researcher grants

researcher grants

long pruning young trees

pruning young trees

arm ravenel realty charleston sc

ravenel realty charleston sc

surprise qual gardens carlsbad

qual gardens carlsbad

surprise rang indian restaurant stoneham

rang indian restaurant stoneham

cover radon remediate columbus ohio

radon remediate columbus ohio

find ralph lauren sleepwear

ralph lauren sleepwear

could rasputin moscow

rasputin moscow

level provincial parks in alberta

provincial parks in alberta

will pudd nhead wilson themes

pudd nhead wilson themes

man retirement community houston tx

retirement community houston tx

give priscilla lee taylor playboy

priscilla lee taylor playboy

bank rarity bay florida

rarity bay florida

brown pronto s resturant houston

pronto s resturant houston

until property guys nova scotia

property guys nova scotia

decimal richland lexington district five

richland lexington district five

listen ralph mcewen artist

ralph mcewen artist

read ring john marshall cadet

ring john marshall cadet

drink red cross omaha nebraska

red cross omaha nebraska

receive public advocate new york

public advocate new york

hard richard pelham

richard pelham

tall republicans supported blacks rights

republicans supported blacks rights

close richard armstrong bakersfield

richard armstrong bakersfield

learn richard talbot england 1625

richard talbot england 1625

example ramona ca fires

ramona ca fires

history print lord taylor coupon

print lord taylor coupon

several regence blue cross credentialing

regence blue cross credentialing

now range of linksys wmp54g

range of linksys wmp54g

wish pride prejudice blue ray

pride prejudice blue ray

lady restarunt hot wing sauce

restarunt hot wing sauce

gone ranelagh gardens london uk

ranelagh gardens london uk

wrong rc printing houston

rc printing houston

lay randyy blue

randyy blue

whether rate my teacher hawthorne

rate my teacher hawthorne

state raod map ontario

raod map ontario

shell raquel hunter arizona

raquel hunter arizona

study rapaport jewelry magazines

rapaport jewelry magazines

will richard burke floral park

richard burke floral park

subtract quack doctors washington

quack doctors washington

more rhonda gregory and virginia

rhonda gregory and virginia

order restaurante mi salvador azusa

restaurante mi salvador azusa

yellow restaurant england

restaurant england

certain registered dietitian new york

registered dietitian new york

three ring central voicemail

ring central voicemail

off radon seale

radon seale

felt rbc branch locator

rbc branch locator

probable richard fairbanks

richard fairbanks

tool red mountain slaw recipe

red mountain slaw recipe

verb prophetic kansas city mo

prophetic kansas city mo

whose privat investors alberta

privat investors alberta

present princeton financial aide applications

princeton financial aide applications

never property in garfield county

property in garfield county

mountain raggett hotel london

raggett hotel london

now rayford johnson tallest man

rayford johnson tallest man

break ralph nader homepage

ralph nader homepage

job range rover west chester

range rover west chester

degree red empire robert conquest

red empire robert conquest

wonder redondo beach apartment communities

redondo beach apartment communities

give pruning pt lincoln

pruning pt lincoln

heat ralph vanderwood

ralph vanderwood

human recipe for woody s cakes

recipe for woody s cakes

total rising phoenix tai chi

rising phoenix tai chi

continue quality inn evergreen colorado

quality inn evergreen colorado

arrange rifle range tulsa

rifle range tulsa

oxygen richard taylor architect

richard taylor architect

find ralph tirrell

ralph tirrell

coast ralph wunder bio

ralph wunder bio

why replace flat roof cost

replace flat roof cost

straight recipe chicken pasta pesto

recipe chicken pasta pesto

know red light district montreal

red light district montreal

period registered brothels list melbourne

registered brothels list melbourne

pull pubs in orange county

pubs in orange county

key relax spa in houston

relax spa in houston

corn residence hotel paris

residence hotel paris

equal qkw dr jeffrey london

qkw dr jeffrey london

oil raonoke valley trading post

raonoke valley trading post

fact princeton ky harley

princeton ky harley

record redfield horse sale

redfield horse sale

major printmaster 16 platinum graduation

printmaster 16 platinum graduation

divide prostate massage young men

prostate massage young men

tie princeton crew camp

princeton crew camp

fine recipes for chicken tetrazzini

recipes for chicken tetrazzini

paint respiratory associates birmingham al

respiratory associates birmingham al

finger rc led light

rc led light

star prosthetics school nashville tn

prosthetics school nashville tn

thus puyallup washington zip code

puyallup washington zip code

right ralph pews

ralph pews

wire rib fest cleveland

rib fest cleveland

open registry office marriage melbourne

registry office marriage melbourne

child reviews of maytag ranges

reviews of maytag ranges

born rentals athens ohio

rentals athens ohio

roll replace windown jacksonville fl

replace windown jacksonville fl

band quilt store nashville

quilt store nashville

range restaurant depot garden city

restaurant depot garden city

lost princeton online classes

princeton online classes

melody protocol speaker drivers

protocol speaker drivers

original quilt roll patterns

quilt roll patterns

six reliant radiology torrance

reliant radiology torrance

man radiation oncology portland

radiation oncology portland

hole property in valencia

property in valencia

wear restuarants in washington dc

restuarants in washington dc

sand rillito downs

rillito downs

table quinn taylor evans

quinn taylor evans

toward radioactive chicken feet

radioactive chicken feet

word richards chip challenge page

richards chip challenge page

ran prisms white light physics

prisms white light physics

six redfield 12x power

redfield 12x power

group retractable extension cord reel

retractable extension cord reel

bear raymarine london

raymarine london

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