ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
raiders throwback jerseys

raiders throwback jerseys

proper pugster jerusalem cross

pugster jerusalem cross

symbol recover excel 2003 password

recover excel 2003 password

hit reproduction antique stoves ranges

reproduction antique stoves ranges

duck rickshaw in cleveland ohio

rickshaw in cleveland ohio

under richard brigham arlington

richard brigham arlington

nothing red wings gm

red wings gm

start resumes oracle 11i oregon

resumes oracle 11i oregon

black psoriasis new jersey

psoriasis new jersey

mother pyrotechnics in washington

pyrotechnics in washington

war relax back rancho cucamonga

relax back rancho cucamonga

fact provincial tax alberta

provincial tax alberta

forest propery history glendale california

propery history glendale california

crop rio plaza kansas city

rio plaza kansas city

wood rebate booth sets

rebate booth sets

coast reds redwood empire dental

reds redwood empire dental

follow radio shack irvine california

radio shack irvine california

spot rick williams pole

rick williams pole

among restaurants st petersburg florida

restaurants st petersburg florida

yard rachel hunter makeup ad

rachel hunter makeup ad

select recessed track light adapter

recessed track light adapter

hot production of blue cheese

production of blue cheese

from rhinoplasty for black people

rhinoplasty for black people

fig resistol hamburg

resistol hamburg

right recalls dora

recalls dora

try relocation blues

relocation blues

fresh regal hamilton stadium

regal hamilton stadium

past radio cab and portland

radio cab and portland

surface relena cameron

relena cameron

fit rental properties washington county

rental properties washington county

arm ralph lauren womens swimwear

ralph lauren womens swimwear

describe richland chambers lake property

richland chambers lake property

question ralph mote texas

ralph mote texas

practice resort quest summit county

resort quest summit county

job ralph taylor beckman coulter

ralph taylor beckman coulter

about range of frilled lizard

range of frilled lizard

please property management columbus ohio

property management columbus ohio

human reeth england springfield

reeth england springfield

example ralph the airborne ranger

ralph the airborne ranger

numeral printing museum houston

printing museum houston

dear regina wittmann md california

regina wittmann md california

past prudential fox roach marmora

prudential fox roach marmora

remember raleigh dog parks

raleigh dog parks

bring reed barton colby macys

reed barton colby macys

nose restaurant washington red lobster

restaurant washington red lobster

silver priscilla lee taylor nude

priscilla lee taylor nude

claim recent royal jelly

recent royal jelly

continue resorts washington salmon white s

resorts washington salmon white s

nose remax conway ar

remax conway ar

band red hot tattoos arlington

red hot tattoos arlington

could public rooms greenville sc

public rooms greenville sc

picture reproduction bridgeport rig

reproduction bridgeport rig

law psw magazine

psw magazine

house property managers hamilton ohio

property managers hamilton ohio

weather research for huntington s disease

research for huntington s disease

thousand ramona cleary

ramona cleary

master rain forest cafe kansas

rain forest cafe kansas

tube rip curl black vienna

rip curl black vienna

change property appraiser auburn maine

property appraiser auburn maine

mother range rover littleton colorado

range rover littleton colorado

wife princeton jct jackson nj

princeton jct jackson nj

point q105 new london ct

q105 new london ct

difficult regal newport news

regal newport news

market remax in washington

remax in washington

chair rich lee jackson wyoming

rich lee jackson wyoming

thus richard hunter raleigh attorney

richard hunter raleigh attorney

at richmond mo yellow pages

richmond mo yellow pages

early prince of wales herald

prince of wales herald

hat printed matter new york

printed matter new york

head proctor gamble gillette

proctor gamble gillette

soft raise organic chickens

raise organic chickens

kind restorative yoga omaha ne

restorative yoga omaha ne

ease ray ward jewelers

ray ward jewelers

front redbud valley nature preserve

redbud valley nature preserve

came rave magazine austin tx

rave magazine austin tx

rule prs los angeles

prs los angeles

ago ralph lauren foundation

ralph lauren foundation

see raising chicken game

raising chicken game

land redding ca parks

redding ca parks

nothing psp mod chip platinum

psp mod chip platinum

travel providers for mobile entertainment

providers for mobile entertainment

hear printable pokeman valentines card

printable pokeman valentines card

school restaurants queens new york

restaurants queens new york

noon psychic michael berry

psychic michael berry

happy ralph lauren umbrellas

ralph lauren umbrellas

poor rebublic salon athens georgia

rebublic salon athens georgia

both reebok basketball camps

reebok basketball camps

both rees beach new york

rees beach new york

won't rakkasah east vendors

rakkasah east vendors

shape psychology related stories

psychology related stories

earth restaurants hemet

restaurants hemet

electric redlight clothing portland oregon

redlight clothing portland oregon

follow ralph belamy

ralph belamy

energy recipes sesame chicken

recipes sesame chicken

year ralphs markets

ralphs markets

oh remax black lake mi

remax black lake mi

wave quintana enterprises

quintana enterprises

finish primary sources ancient egypt

primary sources ancient egypt

white rentals springfield oregon

rentals springfield oregon

made redondo beach fishing boats

redondo beach fishing boats

children restaurant supply concord california

restaurant supply concord california

soil rashida williams wedding

rashida williams wedding

pitch rhonda johnson buckingham virginia

rhonda johnson buckingham virginia

both rich young ruler tabs

rich young ruler tabs

may quaker stake concord nc

quaker stake concord nc

warm princeton football wishlist

princeton football wishlist

winter procedure for new vendor

procedure for new vendor

eye restaurants and nashville tn

restaurants and nashville tn

opposite pug information black

pug information black

nature rainforest landmarks central america

rainforest landmarks central america

four randy marion lies

randy marion lies

a pruitt taylor

pruitt taylor

fall ray dawson ohio

ray dawson ohio

out retro globe pendant lights

retro globe pendant lights

exercise regina russell vids

regina russell vids

range rhythm festival columbus ohio

rhythm festival columbus ohio

share ralph solano depere wi

ralph solano depere wi

sheet rave theatre huntsville alabama

rave theatre huntsville alabama

talk review scarpa summit gtx

review scarpa summit gtx

window recycle delaware

recycle delaware

sudden realtors kingston springs tn

realtors kingston springs tn

help public radio lake superior

public radio lake superior

subject restaurants chapel hill boulevard

restaurants chapel hill boulevard

allow quinton pierson

quinton pierson

king princeton hyatt

princeton hyatt

up redlands california newspaper

redlands california newspaper

down prudential realty and ontario

prudential realty and ontario

car printable jack sparrow

printable jack sparrow

work protests hilary clinton

protests hilary clinton

basic recipes by jd wesley

recipes by jd wesley

cross repo center show low

repo center show low

ever pse homw page

pse homw page

probable retro cabinet los angeles

retro cabinet los angeles

drink rib london

rib london

ask retro chic blue

retro chic blue

well restaurant irish ambler pa

restaurant irish ambler pa

ride pyatt harrawood funeral home

pyatt harrawood funeral home

or respiratory and agent orange

respiratory and agent orange

require regedit windows vista

regedit windows vista

spoke ralph whitman iii

ralph whitman iii

matter rick anderson s cv

rick anderson s cv

rail rascall flat

rascall flat

yet quartzsite arizona super 8

quartzsite arizona super 8

river rig tools houston

rig tools houston

summer red arrow coachlines alberta

red arrow coachlines alberta

crowd raleigh delta road bike

raleigh delta road bike

good prudential douglas ellis

prudential douglas ellis

square ragdoll cats alberta eileen

ragdoll cats alberta eileen

buy radio station portland oregon

radio station portland oregon

ring property auctioneers in england

property auctioneers in england

held print driver x63

print driver x63

cost rex harrison english actor

rex harrison english actor

feet reitz high school evansville

reitz high school evansville

rose rainbow light calcium

rainbow light calcium

arrange ramona quimby lesson plans

ramona quimby lesson plans

only ralph vargas

ralph vargas

little ramblin rose maywood studios

ramblin rose maywood studios

particular pulmonary stories

pulmonary stories

climb quincy washington weather

quincy washington weather

mix prim wooden birdhouses

prim wooden birdhouses

spread redei enterprises home

redei enterprises home

enter privacy fence alexandria minnesota

privacy fence alexandria minnesota

else recent issues egypt

recent issues egypt

break property rehabilitation grants loans

property rehabilitation grants loans

break recipes for chicken nuggest

recipes for chicken nuggest

build recipes chicken francois

recipes chicken francois

burn psychic circle message board

psychic circle message board

east princeton hs mn

princeton hs mn

sheet resorts collingwood ontario

resorts collingwood ontario

both rca coaxial jacks

rca coaxial jacks

rest psychiatrist margaret evanston il

psychiatrist margaret evanston il

believe riah new york

riah new york

I red devil 3985

red devil 3985

dog recipe balti indian

recipe balti indian

value ralph s home sales maine

ralph s home sales maine

than rdu delta terminal

rdu delta terminal

new queen creek az zipcode

queen creek az zipcode

nose psychiatrist alexandria virginia

psychiatrist alexandria virginia

liquid psalm light

psalm light

center public hampton beaches

public hampton beaches

human pyle hardware charleston wv

pyle hardware charleston wv

result prudencial jack white vista

prudencial jack white vista

corn recipes peaches and chicken

recipes peaches and chicken

path pull light switch

pull light switch

suffix restaraunts washington new jersey

restaraunts washington new jersey

hear princeton news paper

princeton news paper

law receta facil arroz chino

receta facil arroz chino

road rexel branch electric

rexel branch electric

train pubs hamilton on

pubs hamilton on

ever quality hot tubs cardiff

quality hot tubs cardiff

hear restaurants in centerville va

restaurants in centerville va

fly ramada in lexington ky

ramada in lexington ky

tall printble valentines card

printble valentines card

rule regina senior citizens centre

regina senior citizens centre

team proving kansas residency

proving kansas residency

hit resonans viola shoulder rest

resonans viola shoulder rest

feed rice fishing reels england

rice fishing reels england

free psychological associates of lancaster

psychological associates of lancaster

mark quotations and friendship

quotations and friendship

which residence inn seattle washington

residence inn seattle washington

with red rock dairy tx

red rock dairy tx

wheel rinehart and carroll miami

rinehart and carroll miami

noun rader s fabric danville

rader s fabric danville

ask range rover eas failure

range rover eas failure

where residenza goldoni in venice

residenza goldoni in venice

forward red wing 202

red wing 202

floor restaurants around washington dc

restaurants around washington dc

total ray hughes daughter

ray hughes daughter

like reed barton silver chest

reed barton silver chest

weather realty executives white mountains

realty executives white mountains

eye pride festival phoenix 2007

pride festival phoenix 2007

me psi portland oregon

psi portland oregon

bread rakers edwardsville

rakers edwardsville

neighbor radio stations lincoln nebraska

radio stations lincoln nebraska

huge rightway auto anchorage

rightway auto anchorage

pass repossesed homes in madison

repossesed homes in madison

shine red flame rockford

red flame rockford

word raydio jack jill lyrics

raydio jack jill lyrics

forward recording models in excel

recording models in excel

more radon map portland oregon

radon map portland oregon

dad richard furman

richard furman

ring residential tenancy branch bc

residential tenancy branch bc

six releasing drunk driver

releasing drunk driver

soil randy taylor wrestler canada

randy taylor wrestler canada

these printable theme pages preschool

printable theme pages preschool

leave reset chevrolet engine light

reset chevrolet engine light

same ragland high school

ragland high school

process refurbished medical equipment delaware

refurbished medical equipment delaware

metal retirement homes chippawa ontario

retirement homes chippawa ontario

catch ramona judy moody

ramona judy moody

mass ray jefferson portland

ray jefferson portland

leave recipe cranberry orange marinade

recipe cranberry orange marinade

list pumper driver operator

pumper driver operator

neighbor restaurant in orange california

restaurant in orange california

high residence inn scottsdale ax

residence inn scottsdale ax

broke ridgecrest california rental home

ridgecrest california rental home

contain reformed theological seminary orlando

reformed theological seminary orlando

only ravenscrag scotland

ravenscrag scotland

oxygen rio mp3 drivers

rio mp3 drivers

control professional driver education

professional driver education

guess reviews of corded phones

reviews of corded phones

horse prince rogers trio

prince rogers trio

all ripa s lancaster new york

ripa s lancaster new york

pay quarto nuevo

quarto nuevo

contain recipe jelly roll

recipe jelly roll

anger radon flagstaff cinder block

radon flagstaff cinder block

for red light roundup

red light roundup

thousand prim napkin holders

prim napkin holders

bear radeon 9000 pro driver

radeon 9000 pro driver

own red deer rebels games

red deer rebels games

division richard alston palmer

richard alston palmer

colony ratcliff 1895

ratcliff 1895

cry prostitution athens

prostitution athens

sent red barn delta

red barn delta

also princeton medical chicago

princeton medical chicago

product rental property franklin auckland

rental property franklin auckland

design reviews carnival kennedy center

reviews carnival kennedy center

mile ridgewood estates london

ridgewood estates london

flow representative indian river

representative indian river

apple restaurants in columbia sc

restaurants in columbia sc

ground rescue taylor made

rescue taylor made

simple richard arthurs and altoona

richard arthurs and altoona

floor quilt shops manhattan kansas

quilt shops manhattan kansas

together regence blue shield montana

regence blue shield montana

hit resturaunts in oxford mississippi

resturaunts in oxford mississippi

cent pros health care reform

pros health care reform

shore protons black holes universe

protons black holes universe

what restaurant supply torrance

restaurant supply torrance

came princess rapunzel story

princess rapunzel story

key realtors in lexington kentucky

realtors in lexington kentucky

dad regent security light

regent security light

hundred rik chidester

rik chidester

moment remax lake geneva wi

remax lake geneva wi

opposite ralph neese

ralph neese

show prime outlets waterloo ny

prime outlets waterloo ny

show ramada green bay

ramada green bay

trouble private cars for cash

private cars for cash

town prudential sterling realty

prudential sterling realty

special restaurants melbourne menus

restaurants melbourne menus

arrive recalculate option excel

recalculate option excel

up prima enterprises

prima enterprises

would ricardo francos miami fl

ricardo francos miami fl

third property guys mike white

property guys mike white

broad public transportation springfield massachusetts

public transportation springfield massachusetts

wild reformed pentacostal

reformed pentacostal

scale red cross columbus georgia

red cross columbus georgia

find restaurant consultant nashville

restaurant consultant nashville

seed railroad salvage monroe nj

railroad salvage monroe nj

car recessed lighting charlotte nc

recessed lighting charlotte nc

electric reportings on hillary clinton

reportings on hillary clinton

free pull down dining light

pull down dining light

road radio frequencies delaware fire

radio frequencies delaware fire

week purrforma home page

purrforma home page

found red clay paste

red clay paste

crease proctor gamble suppliers

proctor gamble suppliers

pick randy johnsons shoulder surgery

randy johnsons shoulder surgery

copy rachel hunter movies

rachel hunter movies

got remax fl marshall reddick

remax fl marshall reddick

sure rdi houston texas

rdi houston texas

shell resort fountain hills az

resort fountain hills az

teeth rashad jones

rashad jones

period restaurant guide toronto ontario

restaurant guide toronto ontario

captain princess jasmine coloring pages

princess jasmine coloring pages

real rapid transit agency cleveland

rapid transit agency cleveland

found representaive in congress

representaive in congress

quiet pros of homeland security

pros of homeland security

took restaurants york county maine

restaurants york county maine

occur reflexive crack huntsville

reflexive crack huntsville

master refuting darwin s theory

refuting darwin s theory

pretty restaurants morristown new jersey

restaurants morristown new jersey

her psychologist anchorage

psychologist anchorage

need restaurant praga in moscow

restaurant praga in moscow

port randy lemmon gardenline houston

randy lemmon gardenline houston

shop ridick pitch black

ridick pitch black

either restylane in houston texas

restylane in houston texas

count puebloans indians

puebloans indians

ten richard story departure magazine

richard story departure magazine

provide replicators highland wear

replicators highland wear

produce residential rentals anaheim

residential rentals anaheim

fight restaurant manotick ontario

restaurant manotick ontario

about princeton medical group

princeton medical group

take resistance roll

resistance roll

invent pygmy kayaks queen charlotte

pygmy kayaks queen charlotte

yet responsibilites of congress

responsibilites of congress

spread price roland e 66

price roland e 66

book riana banks

riana banks

complete rector donald reeves

rector donald reeves

double rhonda golf hamilton canada

rhonda golf hamilton canada

near remax lake city florida

remax lake city florida

will ralph lauren euro sham

ralph lauren euro sham

play ribs recipe george foreman

ribs recipe george foreman

chief ridgecrest timeshare

ridgecrest timeshare

clean restaurants in morristown nj

restaurants in morristown nj

late red thermal longjohns

red thermal longjohns

distant printers en jacksonville florida

printers en jacksonville florida

slip pride bear bryant

pride bear bryant

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