_

ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
psychopath canadian living magazine

psychopath canadian living magazine

road princeton ncaa

princeton ncaa

help rentals in alexandria louisiana

rentals in alexandria louisiana

company princeton review sat review

princeton review sat review

syllable printable friendship cake recipe

printable friendship cake recipe

big review dar williams

review dar williams

dress range 14 whispering pines

range 14 whispering pines

shall prudential realty paris texas

prudential realty paris texas

build rainbow valley killaloe

rainbow valley killaloe

against restaurants in collinsville illinois

restaurants in collinsville illinois

type referendum question ontario

referendum question ontario

made review sterling audio st 55

review sterling audio st 55

picture raleigh section 8

raleigh section 8

poem right wing activist definiteion

right wing activist definiteion

oxygen restor houston

restor houston

count repair madison wisconsin

repair madison wisconsin

shine rebecca jackson nv

rebecca jackson nv

answer ramada charlotte northeast

ramada charlotte northeast

noise radio range calculator

radio range calculator

square rialto battery size

rialto battery size

pitch rhodes pharmacy newark delaware

rhodes pharmacy newark delaware

major renters insurance wilmington

renters insurance wilmington

between recipe strawberry muffins

recipe strawberry muffins

believe psd london

psd london

experience redondo beach private schools

redondo beach private schools

child replace thatcher oil burner

replace thatcher oil burner

phrase range oven cost difference

range oven cost difference

circle raymond chandler dictionary

raymond chandler dictionary

talk queen creek flooring

queen creek flooring

strange prophet jones lifetime

prophet jones lifetime

appear retirement in ashland oregon

retirement in ashland oregon

began rich harvest links sale

rich harvest links sale

boy ralph shaw ukulele

ralph shaw ukulele

ball resorts lake geneva wis

resorts lake geneva wis

or printable guest book page

printable guest book page

dictionary quotations niche hope

quotations niche hope

bright property healy lake ontario

property healy lake ontario

offer ralph lauren polo wholesalers

ralph lauren polo wholesalers

art property developments winchester

property developments winchester

air princeton birmingham alabama

princeton birmingham alabama

rock pulvermacher enterprises

pulvermacher enterprises

will relatine new york

relatine new york

hurry religious coalition for equality

religious coalition for equality

egg range stoves

range stoves

pitch reasearch pages on china

reasearch pages on china

women resin casting clear

resin casting clear

rich ramona denies

ramona denies

cold restraunts in brooklyn

restraunts in brooklyn

people redfield centennial scope

redfield centennial scope

team raw vegan restaurant nashville

raw vegan restaurant nashville

station reset bmw service light

reset bmw service light

lady raymond marshall washington

raymond marshall washington

clean recommended restarunts in kent

recommended restarunts in kent

planet rialto florida movie

rialto florida movie

teeth redi rack ontario

redi rack ontario

speed prince black sweat lyrics

prince black sweat lyrics

natural respicio los angeles

respicio los angeles

call reform from progressive era

reform from progressive era

human red wings traverse city

red wings traverse city

yellow rentals in marana arizona

rentals in marana arizona

atom rage hollywood ca

rage hollywood ca

silver recipe chicken corn rice

recipe chicken corn rice

compare raphael campos

raphael campos

kill pueblo indians southwest

pueblo indians southwest

part riptides bar rancho cucamonga

riptides bar rancho cucamonga

top prices for chicken meat

prices for chicken meat

notice refurbished glendale depot

refurbished glendale depot

design recipe oven chicken tenders

recipe oven chicken tenders

happen princeton dentistry

princeton dentistry

distant resin george washington bust

resin george washington bust

surprise redwing sporting clays

redwing sporting clays

nine red lion flat iron

red lion flat iron

post restaurants in acton london

restaurants in acton london

noise rate 300 winchester madnum

rate 300 winchester madnum

move razr v3t rogers

razr v3t rogers

gray rangoni of florence volpe

rangoni of florence volpe

stream proctored tests in germany

proctored tests in germany

circle reed irvine

reed irvine

brother prydz bay may

prydz bay may

food remax maple valley

remax maple valley

boy red tail deer hunting

red tail deer hunting

speech reggie jackson baseball

reggie jackson baseball

grass rebuild it portland

rebuild it portland

path richard scott haynes

richard scott haynes

range range french parts

range french parts

locate rector seal thread sealant

rector seal thread sealant

lake rainier management austin

rainier management austin

hunt racism birmingham history

racism birmingham history

form proctor and gamble international

proctor and gamble international

possible rachael ray austin texas

rachael ray austin texas

of rhino ardmore oklahoma

rhino ardmore oklahoma

snow richard whitehead young

richard whitehead young

page ralph lauren saturday jeans

ralph lauren saturday jeans

roll richard taylor lubbock tx

richard taylor lubbock tx

shall reset galant ses light

reset galant ses light

has ranges with infrared broilers

ranges with infrared broilers

stay priority one ems beaumont

priority one ems beaumont

separate radiator nashville

radiator nashville

wood reform act 1867

reform act 1867

hunt property staging san diego

property staging san diego

with ricky fowler hickory creek

ricky fowler hickory creek

many radon 9550 driver

radon 9550 driver

course rental properties lincoln nd

rental properties lincoln nd

big residential lots san diego

residential lots san diego

catch refugee camps for vietnam

refugee camps for vietnam

night princess elizabeth tin train

princess elizabeth tin train

most rigworks san diego

rigworks san diego

all ridge phenix city al

ridge phenix city al

them quad city flying eagles

quad city flying eagles

move relocation central naperville

relocation central naperville

block protection golden light

protection golden light

sky raymond sawyer catholic bishop

raymond sawyer catholic bishop

let ri edwards art

ri edwards art

verb princeton university theater

princeton university theater

on ralph pyburn

ralph pyburn

sharp quaker cemetaries london

quaker cemetaries london

sat regency 24 theaters jacksonville

regency 24 theaters jacksonville

band pumkin coloring pages

pumkin coloring pages

pose ralph paph

ralph paph

use procees of deer ageing

procees of deer ageing

house print driver hp deskwriter

print driver hp deskwriter

little radio 90 5 miami

radio 90 5 miami

put reeve magazine

reeve magazine

rail richter pecans dothan

richter pecans dothan

distant razr pc drivers

razr pc drivers

feet ralph wiggum mp3

ralph wiggum mp3

arrive rio salado program

rio salado program

thing printer driver hp 1210

printer driver hp 1210

to riddick jack fanfiction

riddick jack fanfiction

song quinn shadow light

quinn shadow light

team propagating california black walnut

propagating california black walnut

cut rauh anchorage alaska

rauh anchorage alaska

feet rebok hocky jerseys

rebok hocky jerseys

break red young amphibian

red young amphibian

love queen elizabeth iiii

queen elizabeth iiii

fig rarity bay

rarity bay

many ralphs stores

ralphs stores

master res sage az

res sage az

melody red octane driver

red octane driver

voice restraunts greenville sc bergamo

restraunts greenville sc bergamo

suit raddison hotel kansas city

raddison hotel kansas city

long richard bell photograpy

richard bell photograpy

tall remax highland

remax highland

numeral ridgeline tail lights

ridgeline tail lights

original rhino books nashville

rhino books nashville

road regent floors pennington

regent floors pennington

gone ramada limited redondo beach

ramada limited redondo beach

thank rimrock dirt bik race

rimrock dirt bik race

idea repairing a delta sprayer

repairing a delta sprayer

mountain property tax jacksonville fl

property tax jacksonville fl

stream ralph and pat siegenthaler

ralph and pat siegenthaler

card restaurant association orange county

restaurant association orange county

power ranger realty and alberta

ranger realty and alberta

hope rehman midland mi

rehman midland mi

rule reviews econolodge scranton

reviews econolodge scranton

drop rentals in butler mo

rentals in butler mo

gather ps2 black cheat codes

ps2 black cheat codes

glad retro redux phoenix

retro redux phoenix

need quatrefoil coloring page

quatrefoil coloring page

three quotations ike turner

quotations ike turner

stood recording studios in kent

recording studios in kent

go realtors of greenville nc

realtors of greenville nc

idea print out valentine cards

print out valentine cards

determine redondo beach strip

redondo beach strip

when quiz on titus andronicus

quiz on titus andronicus

make reliant center houston texas

reliant center houston texas

ran printmaster platinum 15

printmaster platinum 15

wild recreation in bell fl

recreation in bell fl

neck printable calender pages

printable calender pages

try rentals rowland heights ca

rentals rowland heights ca

feet ralph schumacher

ralph schumacher

can pueblo indians architecture

pueblo indians architecture

section quote blues brothers

quote blues brothers

search pyrex blue dishes translucent

pyrex blue dishes translucent

appear red light camera motorcycles

red light camera motorcycles

several primrose apts of pasadena

primrose apts of pasadena

own printable dolphin coloring pages

printable dolphin coloring pages

dead rhonda henn bloomington

rhonda henn bloomington

meet red marble mountain chewelah

red marble mountain chewelah

took rhino sports phoenix az

rhino sports phoenix az

about rentals santa clarita california

rentals santa clarita california

blood ray ward modoc

ray ward modoc

insect q z graham

q z graham

age receive vcard in eudora

receive vcard in eudora

let ralph lauren discount coupon

ralph lauren discount coupon

tie richard skidmore titus ga

richard skidmore titus ga

gold price s chicken coup charlotte

price s chicken coup charlotte

prove range rover seat covers

range rover seat covers

paper regents row realtor tyler

regents row realtor tyler

motion recruiting louisville mayor

recruiting louisville mayor

eat redlands optometry

redlands optometry

hear ralph macchio movies

ralph macchio movies

nation propagating bay plant

propagating bay plant

tree restaurant recipes houston s

restaurant recipes houston s

duck reformed catholicism

reformed catholicism

probable rhonda tiller carthage mo

rhonda tiller carthage mo

dry races in lancaster county

races in lancaster county

high redeemer lutheran austin tx

redeemer lutheran austin tx

buy recurring norwalk virus

recurring norwalk virus

shop repo mobile homes georgia

repo mobile homes georgia

big rising roll sandwich

rising roll sandwich

indicate redfish season tampa bay

redfish season tampa bay

chance repoed mobile homes

repoed mobile homes

smell ramona cutter

ramona cutter

ever reenactment san diego

reenactment san diego

magnet regency service carts brooklyn

regency service carts brooklyn

found rick houston nascar

rick houston nascar

drink recipe carabbas chicken marsala

recipe carabbas chicken marsala

else restaurant sells jalepeno bread

restaurant sells jalepeno bread

keep quality toyota independence ks

quality toyota independence ks

case rialto travel trailer

rialto travel trailer

mother refuting stephen jones

refuting stephen jones

hear representative heather wilson

representative heather wilson

wing rachel weber fayetteville arkansas

rachel weber fayetteville arkansas

suit reseda ca city hall

reseda ca city hall

write ralph stevenson iii

ralph stevenson iii

quite property manager in detroit

property manager in detroit

train restaurants in pottsville pa

restaurants in pottsville pa

learn protection kansas tornado

protection kansas tornado

motion regent cinemas portland

regent cinemas portland

correct realtors in athens pennsylvania

realtors in athens pennsylvania

atom prim reproduction shoppes

prim reproduction shoppes

who restaurant alma minneapolis mn

restaurant alma minneapolis mn

girl pyramid tours egypt

pyramid tours egypt

material red deer supernatural

red deer supernatural

mind rachel wright realtor

rachel wright realtor

rose realtors in fayetteville texas

realtors in fayetteville texas

corn richard sugden williams jr

richard sugden williams jr

plan queen concert videos tapes

queen concert videos tapes

much rare elites arathi highlands

rare elites arathi highlands

fly realtors bloomington in

realtors bloomington in

felt reform synagogue amsterdam netherlands

reform synagogue amsterdam netherlands

to psychic fair kingston ontario

psychic fair kingston ontario

and reseda skateland

reseda skateland

cut replacement dash 1985 malibu

replacement dash 1985 malibu

sister reviews for dell 531

reviews for dell 531

current racey valentines

racey valentines

two prince alexander obolensky said

prince alexander obolensky said

bar randy palmer

randy palmer

area realtors huntsville alabama

realtors huntsville alabama

by recycling center concord california

recycling center concord california

have rebecca ellis nashville tn

rebecca ellis nashville tn

say richie valley

richie valley

down rehoboth thermal springs namibia

rehoboth thermal springs namibia

I replace lincoln window motor

replace lincoln window motor

science relais du louvre paris

relais du louvre paris

liquid regions bank houston texas

regions bank houston texas

round prothonotary office is delaware

prothonotary office is delaware

path pullman car lights

pullman car lights

decimal prisoner cebu michael jackson

prisoner cebu michael jackson

sail rar tight magazine

rar tight magazine

fear raleigh mojave 5 0

raleigh mojave 5 0

either ralph slider

ralph slider

fear railside port hope

railside port hope

side proctor gamble web page

proctor gamble web page

middle puku sallu stories pdf

puku sallu stories pdf

thank red wing mn casin

red wing mn casin

night retail banks private equity

retail banks private equity

neighbor quilters paradise clovis

quilters paradise clovis

dog prophet scott webster

prophet scott webster

tie psychics leeds

psychics leeds

bat realty executive oceanside

realty executive oceanside

mountain princeton closed psychic research

princeton closed psychic research

wait relocating rural british columbia

relocating rural british columbia

idea red phoenix door color

red phoenix door color

poem psp circle text

psp circle text

capital putney heath london england

putney heath london england

among restaruants houston

restaruants houston

shape prince george royal lepage

prince george royal lepage

turn rainfall london england

rainfall london england

north rentals columbus indiana

rentals columbus indiana

touch red deer royal lepage

red deer royal lepage

old ralph lauren millicent

ralph lauren millicent

class richard barry oxford city

richard barry oxford city

these retina specialist springfield mo

retina specialist springfield mo

case reike in tucson

reike in tucson

red restaurant complaints issaquah washington

restaurant complaints issaquah washington

did red fox pup forms

red fox pup forms

rather richard johnson graphic novels

richard johnson graphic novels

modern pulte red rock

pulte red rock

page ramon taylor nebraska

ramon taylor nebraska

heart rhonda gregory

rhonda gregory

material rental property huntsville texas

rental property huntsville texas

open residential code section 106

residential code section 106

work prince of egypt screens

prince of egypt screens

second rich dumb young

rich dumb young

how rain parka light weight

rain parka light weight

picture protocol magazines

protocol magazines

tail quartzsite arizona investments

quartzsite arizona investments

bought princeton elemenary school

princeton elemenary school

act recipes black bean salsa

recipes black bean salsa

mother quilts winthrop

quilts winthrop

print red wing sparrow

red wing sparrow

these quarries in new jersey

quarries in new jersey

condition richard ray birmingham alabama

richard ray birmingham alabama

shop putney arts centre

putney arts centre

effect restaurant on northern boulevard

restaurant on northern boulevard

ran red wings pendant

red wings pendant

care resturants in simi valley

resturants in simi valley

brother product development montgomery al

product development montgomery al

person proprinter drivers

proprinter drivers

early raveneaux houston

raveneaux houston

south rentals jacksonville florida

rentals jacksonville florida

band remax central big rapids

remax central big rapids

full reed barton markings

reed barton markings

own ric ketts v anderson

ric ketts v anderson

shell printer vista ready

printer vista ready

believe ralph mccloud catholic diosese

ralph mccloud catholic diosese

deep richard byrne new jersey

richard byrne new jersey

made ralph stanley schedule

ralph stanley schedule

soldier ram shot true blue

ram shot true blue

throw raygold young lolis

raygold young lolis

door railfan magazine

railfan magazine

success riehm louisville

riehm louisville

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