ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
resturarant blue charlotte nc

resturarant blue charlotte nc

shore remax msl beaumont texas

remax msl beaumont texas

either providence hospital portland

providence hospital portland

stream resource cd dell d620

resource cd dell d620

rise princess sigourney royal

princess sigourney royal

why richard young kearney nebraska

richard young kearney nebraska

pull raymond chandler s life

raymond chandler s life

boy reed solomon errors

reed solomon errors

exercise princeton reverb speaker upgrade

princeton reverb speaker upgrade

row pulsair delta

pulsair delta

half rca lyra clear

rca lyra clear

put reymore auto fulton ny

reymore auto fulton ny

in redlands christian volleyball homestead

redlands christian volleyball homestead

stood rachel wheeler brookland arkansas

rachel wheeler brookland arkansas

mother rick larimer birmingham

rick larimer birmingham

thank prime media lowrider magazine

prime media lowrider magazine

cover quotes by malcolm x

quotes by malcolm x

art rainbow sports fishing waterloo

rainbow sports fishing waterloo

men raton nm range

raton nm range

mark rich valley high school

rich valley high school

pretty rider strong photos

rider strong photos

drop quilting lucille clifton analysis

quilting lucille clifton analysis

heavy public self storage henderson

public self storage henderson

same ralph berkowitz bio

ralph berkowitz bio

position quotes about wounded warriors

quotes about wounded warriors

sense rayfield wright

rayfield wright

glass red skin elberta peaches

red skin elberta peaches

gray red lobster newport news

red lobster newport news

jump rick corcoran orgone box

rick corcoran orgone box

tie ragland properties austin

ragland properties austin

we richard loring anchorage

richard loring anchorage

determine reser funeral home lincoln

reser funeral home lincoln

machine queen creek realtor

queen creek realtor

room red sox holy cross

red sox holy cross

believe raymond and margaret mcknight

raymond and margaret mcknight

bell ragtime jack radcliffe

ragtime jack radcliffe

burn priscilla s evansville indiana

priscilla s evansville indiana

fish rich tarick lincoln bank

rich tarick lincoln bank

it rafters from cuba

rafters from cuba

sign restaurants oakland park florida

restaurants oakland park florida

him princeton review college works

princeton review college works

mix property tax exemption jacksonville

property tax exemption jacksonville

side realtors in clinton arkansas

realtors in clinton arkansas

arrange rep extension oracle

rep extension oracle

phrase rebecca morris westlake

rebecca morris westlake

stone rca jack for psp

rca jack for psp

usual replica of independence hall

replica of independence hall

pose rental summit county

rental summit county

proper resyaurants norman ok

resyaurants norman ok

stood ralph wiggum bloodhound gang

ralph wiggum bloodhound gang

rose princeton in hospital

princeton in hospital

with property hamburg

property hamburg

hot reo properties ventura county

reo properties ventura county

egg reptiles retail columbus

reptiles retail columbus

chief rhondi strong

rhondi strong

beauty recruitment agent midlands

recruitment agent midlands

behind pulte lawson patio homes

pulte lawson patio homes

some ray benson mi

ray benson mi

bought rebecca morse fairbanks

rebecca morse fairbanks

guide remax louisville

remax louisville

excite rbg distributors langley bc

rbg distributors langley bc

her reef escape hamilton island

reef escape hamilton island

egg property appraiser in jacksonville

property appraiser in jacksonville

weight red mountain collision

red mountain collision

loud recon running lights

recon running lights

car reformed baptist montgomery al

reformed baptist montgomery al

enter print disney coloring pages

print disney coloring pages

discuss reed barton china storage

reed barton china storage

had redwood posts cleveland

redwood posts cleveland

tube realtracs nashville tn

realtracs nashville tn

most restaurants in downtown charlotte

restaurants in downtown charlotte

warm residents hampton va 1980

residents hampton va 1980

sheet religion census washington state

religion census washington state

feel ralph mccloud

ralph mccloud

section richard marshall bbc

richard marshall bbc

best printable divorce papers washington

printable divorce papers washington

five print multiple excel spreadsheets

print multiple excel spreadsheets

dress ray douglas carter jr

ray douglas carter jr

sleep red yucca

red yucca

be reliable auto springfield mo

reliable auto springfield mo

blow rantoul il lincoln s

rantoul il lincoln s

double richard montgomery maryland school

richard montgomery maryland school

care print labels from excel

print labels from excel

duck prim country decorating

prim country decorating

his python chandler profile

python chandler profile

race rainforest washington state

rainforest washington state

follow princess cameron videos

princess cameron videos

and repair holden central locking

repair holden central locking

clock qick cash

qick cash

drop quality graphics jasper al

quality graphics jasper al

wave public transportation springfield massachusetts

public transportation springfield massachusetts

hand recipe butterflied chicken

recipe butterflied chicken

down queen bee designs pa

queen bee designs pa

bought rira s charlotte nc

rira s charlotte nc

world ray alexander gamefarm

ray alexander gamefarm

thousand ray miller cleveland

ray miller cleveland

include rescue jack

rescue jack

river remax carrollton listings

remax carrollton listings

row provincial statutes of ontario

provincial statutes of ontario

against recreation niagara falls ontario

recreation niagara falls ontario

people protected view portland oregon

protected view portland oregon

meant radler enterprises

radler enterprises

use raw thumbnails in vista

raw thumbnails in vista

choose rapper s delight curtis blow

rapper s delight curtis blow

shape rialto piccolo san antonio

rialto piccolo san antonio

push ri tree grants

ri tree grants

city pubs in herne kent

pubs in herne kent

paragraph rap black slang dictionary

rap black slang dictionary

sure rick springfield concert schedule

rick springfield concert schedule

after prof ivan bakran

prof ivan bakran

lost reliability of woodcock johnson

reliability of woodcock johnson

straight research on harriet jacobs

research on harriet jacobs

cold rio salado pv mall

rio salado pv mall

main principal direction linear oracle

principal direction linear oracle

shoe rick warren library

rick warren library

very renton washington

renton washington

full redstone arsenal huntsville

redstone arsenal huntsville

temperature railroad socks non binding black

railroad socks non binding black

hard red jumpsuit miami

red jumpsuit miami

learn razr v3 win98 driver

razr v3 win98 driver

nature pulmonologist in north jersey

pulmonologist in north jersey

joy proposal light therapy

proposal light therapy

size repossession home mobile home

repossession home mobile home

measure rich davis homeland security

rich davis homeland security

represent rachel s smoking page

rachel s smoking page

fell ray charles norah jones

ray charles norah jones

new resonant services comments page

resonant services comments page

charge recorder office vernon il

recorder office vernon il

station rangoon central gaol

rangoon central gaol

care radiology programs neuro portland

radiology programs neuro portland

course restaraunts orange connecticut

restaraunts orange connecticut

who richard page sykes nc

richard page sykes nc

degree princeton illinois flowers

princeton illinois flowers

root redondo beach healer

redondo beach healer

floor range windage estimates

range windage estimates

big production houston

production houston

case ralph lauren towels vanilla

ralph lauren towels vanilla

has princeton school district cincinnati

princeton school district cincinnati

road range hood whirlpool knob

range hood whirlpool knob

cow radar in franklin in

radar in franklin in

throw rf white upland ca

rf white upland ca

third rental rv springfield illinois

rental rv springfield illinois

able quaker records london

quaker records london

my ralph perna

ralph perna

felt review of concord 275

review of concord 275

most research paper homer

research paper homer

occur psc 1400 series driver

psc 1400 series driver

speech research indian heritage

research indian heritage

separate red light enforcement cam

red light enforcement cam

count right wale endangered charleston

right wale endangered charleston

be rapala lighted line counter

rapala lighted line counter

low protitutes in houston

protitutes in houston

nose providence pointe murfreesboro tennessee

providence pointe murfreesboro tennessee

blue reformed churches dallas

reformed churches dallas

foot remax atlantic jacksonville

remax atlantic jacksonville

jump repomen sheffield

repomen sheffield

island rave nightclub jacksonville

rave nightclub jacksonville

children ragland minneapolis

ragland minneapolis

blow rapist wayne chapman

rapist wayne chapman

oil restaurants cleveland

restaurants cleveland

those princeton university student health

princeton university student health

clear rising roll memphis tn

rising roll memphis tn

success proctor gamble axion

proctor gamble axion

duck puccio and york

puccio and york

be regal cinema lakewood wa

regal cinema lakewood wa

swim rezulin lawyers hesperia

rezulin lawyers hesperia

dear residence miramonte

residence miramonte

those restrauant in studiocity california

restrauant in studiocity california

create prudoe bay ak

prudoe bay ak

than ray s riverside resort

ray s riverside resort

moment princeton colloges location

princeton colloges location

subtract red potters clay montana

red potters clay montana

paragraph pulley light wall mount

pulley light wall mount

electric retail wedding vails

retail wedding vails

element priscilla hale lafayette tn

priscilla hale lafayette tn

tire proctor silex simply coffee

proctor silex simply coffee

king princeton alumni mike mccarthy

princeton alumni mike mccarthy

voice pristine petals nashville tn

pristine petals nashville tn

led rebuilding temple in jerusalem

rebuilding temple in jerusalem

ease research on nat turner

research on nat turner

our ps 104 brooklyn

ps 104 brooklyn

subject red light camera companies

red light camera companies

common rama follows the deer

rama follows the deer

spot realty south pelham alabama

realty south pelham alabama

me ridge route california bakersfield

ridge route california bakersfield

magnet resturaunt supply in chandler

resturaunt supply in chandler

question ray berry minnesota vikings

ray berry minnesota vikings

please quartzsite arizona investments

quartzsite arizona investments

charge quality cabinets chewelah washington

quality cabinets chewelah washington

direct rail refueling drivers

rail refueling drivers

hour proctor hearing aids

proctor hearing aids

ready prison samual l jackson

prison samual l jackson

run richard kaltenbach wright city

richard kaltenbach wright city

property richard marshall drivers ed

richard marshall drivers ed

group richard sheffield walterboro sc

richard sheffield walterboro sc

I ridgewood bay zimmerman mn

ridgewood bay zimmerman mn

except riogrande valley folklore

riogrande valley folklore

bear reliance princeton wva

reliance princeton wva

piece printable fraction circle patterns

printable fraction circle patterns

wing restaurants in trenton ontario

restaurants in trenton ontario

ball prims hotel

prims hotel

hot rails oracle tutorials all

rails oracle tutorials all

have ramona ledesma

ramona ledesma

ease resorts in maggie valley

resorts in maggie valley

told rc cola clarksville tn

rc cola clarksville tn

meet refrigeator ozone genrators

refrigeator ozone genrators

fine proctor gamble home page

proctor gamble home page

a recently used documents vista

recently used documents vista

flow regions park birmingham al

regions park birmingham al

figure ray miller st petersburg

ray miller st petersburg

caught remax gateway cameron station

remax gateway cameron station

serve richland washington knights

richland washington knights

dance recreation parks delmar

recreation parks delmar

would ralph lauren outlet coupons

ralph lauren outlet coupons

stick puente de la barqueta

puente de la barqueta

get prudential cranbrook franklin

prudential cranbrook franklin

once rio cali drivers

rio cali drivers

edge quilts tell stories

quilts tell stories

bird rental rate blue book

rental rate blue book

story reform temple seattle

reform temple seattle

sure recording studio new jersey

recording studio new jersey

got redline brakes columbus ohio

redline brakes columbus ohio

segment ricco birmingham

ricco birmingham

nature reproduction colt

reproduction colt

weather ralph magee ann clanton

ralph magee ann clanton

read radio disney chehalis washington

radio disney chehalis washington

throw quality inn omaha

quality inn omaha

laugh rinaldis redondo beach

rinaldis redondo beach

music ralph winingham

ralph winingham

sea ralph preston bernas

ralph preston bernas

fraction reliable appliance parts portland

reliable appliance parts portland

seat rich women indian surrogate

rich women indian surrogate

animal proctor gamble re organization

proctor gamble re organization

put restraunts in montgomery alabama

restraunts in montgomery alabama

final puma black free videos

puma black free videos

law relocation plus danville

relocation plus danville

key proctor lake information

proctor lake information

dream restrounts escondido ca

restrounts escondido ca

bell redwood empire mini enthusiasts

redwood empire mini enthusiasts

their pulcinella lafayette

pulcinella lafayette

burn prison reform washington state

prison reform washington state

bar radio active garner nc

radio active garner nc

kill pricilla s wichita kansas

pricilla s wichita kansas

felt queen bloody marys death

queen bloody marys death

electric psychics in cleveland ohio

psychics in cleveland ohio

school rare thomas edison coin

rare thomas edison coin

heart reggie hankins bloomington

reggie hankins bloomington

would ralph woods gay porn

ralph woods gay porn

fraction reloading information winchester powers

reloading information winchester powers

buy quinn hume d o

quinn hume d o

soil property managment london ontario

property managment london ontario

provide ramada inn anaheim

ramada inn anaheim

trip provo cable web page

provo cable web page

strong radeon mobility driver

radeon mobility driver

teeth replacement dell laptop monitor

replacement dell laptop monitor

crop richard williams bethany beach

richard williams bethany beach

require raeford flowers wilson

raeford flowers wilson

who price outlets burlington washington

price outlets burlington washington

lady range rover custom accessories

range rover custom accessories

flow ralph lauren stretch jeans

ralph lauren stretch jeans

write rdc 5300 driver windows xp

rdc 5300 driver windows xp

read pyramid house altoona pa

pyramid house altoona pa

went quivera basin san diego

quivera basin san diego

baby realtors in birmingham al

realtors in birmingham al

through ralph alderson quotes

ralph alderson quotes

double pyramid light bulbs

pyramid light bulbs

forest red foley sally sweet

red foley sally sweet

green ricoh ap 306 driver

ricoh ap 306 driver

that retiring in austin

retiring in austin

sure ramon navarro arlington va

ramon navarro arlington va

each recorder newspaper scott city

recorder newspaper scott city

take resorts international rv parks

resorts international rv parks

must price range of modems

price range of modems

organ replacement telephone handset cord

replacement telephone handset cord

two religious water globes

religious water globes

box race results lexington ky

race results lexington ky

most resteruant in paris france

resteruant in paris france

smell range hood scratch dent

range hood scratch dent

shout restaurants wasilla alaska

restaurants wasilla alaska

vowel proctor productions events

proctor productions events

job pt models ls magazine

pt models ls magazine

separate pulso articulos nuevos

pulso articulos nuevos

require pumpkin bread roll

pumpkin bread roll

house rangelan2 driver

rangelan2 driver

ask resin floral wall plaque

resin floral wall plaque

square pritnable coloring pages

pritnable coloring pages

hour reporter stories new

reporter stories new

motion rex edwards austin texas

rex edwards austin texas

gentle ridgecrest myspace jessica lockhead

ridgecrest myspace jessica lockhead

river redlands flooring house

redlands flooring house

exact red campaign bono oprah

red campaign bono oprah

told richard gordon maryland sykesville

richard gordon maryland sykesville

hope rick peterson motorcycles california

rick peterson motorcycles california

rich ps3 controler driver

ps3 controler driver

strange rei cinemas greenwood sc

rei cinemas greenwood sc

moon red clay supplements

red clay supplements

many property in cambria ca

property in cambria ca

city resturants of shelby nc

resturants of shelby nc

class rialto suites

rialto suites

kill princess warrior ministry

princess warrior ministry

stay ramada inn hollywood ca

ramada inn hollywood ca

middle resume cochise health alliance

resume cochise health alliance

determine restaurants in newport tn

restaurants in newport tn

north ralph the timid

ralph the timid

drop restaurants kingston ny

restaurants kingston ny

populate prounuciation of moscow

prounuciation of moscow

warm red engine search melbourne

red engine search melbourne

child radar houston tx

radar houston tx

the resume writing harrisburg pennsylvania

resume writing harrisburg pennsylvania

measure refinery cartagena columbia

refinery cartagena columbia

finish providian and washington mutual

providian and washington mutual

verb red deer alberta ministries

red deer alberta ministries

bear restaurant in columbus ga

restaurant in columbus ga

fair prince albert forestry centre

prince albert forestry centre

done radio romance movie opm

radio romance movie opm

correct princeton radiology nj

princeton radiology nj

stead red devils in normandy

red devils in normandy

double publications of wilson rawls

publications of wilson rawls

green remax gilbert agents

remax gilbert agents

dad princeton charter elementary school

princeton charter elementary school

grass printing salt lake city

printing salt lake city

term proskate edmonton alberta

proskate edmonton alberta

fill rimmell london makeup

rimmell london makeup

phrase raymond t banks

raymond t banks

king range igniter repair

range igniter repair

thing radisson place lexington ky

radisson place lexington ky

speak printable amercian girl stories

printable amercian girl stories

space republican gilmore

republican gilmore

build princesses rocky point

princesses rocky point

doctor red devil pizza

red devil pizza

yellow ralph and julia wright

ralph and julia wright

possible rave gainesville

rave gainesville

held rich wales cisco systems

rich wales cisco systems

hole ralph thorson

ralph thorson

new radar imaging ontario

radar imaging ontario

help rf white upland ca

rf white upland ca

study retired unc football jerseys

retired unc football jerseys

stream quality toyota riverside

quality toyota riverside

suggest reed barton model 35

reed barton model 35

parent red hugh s augusta ga

red hugh s augusta ga

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