ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
transworld liquidations chesterfield mo

transworld liquidations chesterfield mo

best transportaions

transportaions

summer treadmill proform 540s

treadmill proform 540s

send toy musuems

toy musuems

set toy stores okemos mi

toy stores okemos mi

slip trans liberian orchestra video

trans liberian orchestra video

fell tuba cross stitch

tuba cross stitch

period twelve oaks navarre beach

twelve oaks navarre beach

continent truck pac battery booster box

truck pac battery booster box

populate trip oschatz

trip oschatz

think trent reznor hometown

trent reznor hometown

rock transformers sequal

transformers sequal

populate tsh collection venipuncture

tsh collection venipuncture

prepare trimble base accessory kit

trimble base accessory kit

came triomune uk

triomune uk

paint trilok malik

trilok malik

instrument turkey caserole

turkey caserole

about true flow 30503

true flow 30503

came trader joes tachycardia

trader joes tachycardia

fraction travel namela

travel namela

bat tuning keys for cello

tuning keys for cello

mark true wyoming beef jerky

true wyoming beef jerky

fruit tv opname 1 april 2008

tv opname 1 april 2008

told trattoria meloncello

trattoria meloncello

add traxx shorts

traxx shorts

half tribal jewellery new zealand

tribal jewellery new zealand

master trout hollow lodge branson

trout hollow lodge branson

him travel insurance aami

travel insurance aami

five transition lenses no line bifocals

transition lenses no line bifocals

box tubal ligation reversal recovery considerations

tubal ligation reversal recovery considerations

occur truck dealerships in mattawan michigan

truck dealerships in mattawan michigan

similar trommlerjunge

trommlerjunge

multiply tunning rc nitro car 18 engine

tunning rc nitro car 18 engine

minute trading card shops near dos palos

trading card shops near dos palos

answer truehouse

truehouse

sharp trifles glaspell theme

trifles glaspell theme

spend truvk cover

truvk cover

region tunkhannock foreclosures

tunkhannock foreclosures

solution trudea

trudea

week tuffshell

tuffshell

fine truetemper prybar

truetemper prybar

an tri poli roman ruins

tri poli roman ruins

party tropical fish index dolphin shark

tropical fish index dolphin shark

all trek bontrager connection trail mountain bikes

trek bontrager connection trail mountain bikes

door truelogic debt collection

truelogic debt collection

came transgo shift kit

transgo shift kit

neck trienda corporation

trienda corporation

world tpx platium baseball bat

tpx platium baseball bat

complete tree shaped paperweights

tree shaped paperweights

hour tuscany motel wildwood

tuscany motel wildwood

scale transcripts r v kathryn scott 2007

transcripts r v kathryn scott 2007

else tunisian cross stitch patterns

tunisian cross stitch patterns

fear travel networkl

travel networkl

lie true crime new york city walkthrew

true crime new york city walkthrew

than traders village in houston tx

traders village in houston tx

read traps a400 drums

traps a400 drums

put tuchy lickers

tuchy lickers

ease tr df llning

tr df llning

solution triton v8 engine diagrams

triton v8 engine diagrams

art tv7134rf

tv7134rf

caught travel patreksfjordur

travel patreksfjordur

claim tres chic slip covered dining chairs

tres chic slip covered dining chairs

slip trip jeopardy charleston

trip jeopardy charleston

observe tumbled noche

tumbled noche

key truck utility body knapheide

truck utility body knapheide

create truth about sugar alcohals

truth about sugar alcohals

gave turks constaninople

turks constaninople

kind troop 48 kingsport

troop 48 kingsport

caught transformers cake pan

transformers cake pan

boy tudors coloring sheets

tudors coloring sheets

print transporting spaghetti and meatballs

transporting spaghetti and meatballs

land trimble 442 receiver

trimble 442 receiver

repeat trapping viedos

trapping viedos

coat tuscan style bedspreads

tuscan style bedspreads

motion trade market espa ol

trade market espa ol

sail triathalons in the midwest

triathalons in the midwest

second trans siberian orchestra dirk

trans siberian orchestra dirk

this tv stations in ajo az

tv stations in ajo az

necessary tun daim zainuddin

tun daim zainuddin

object trumpet fanfare royal

trumpet fanfare royal

many trek model 4500 reviews

trek model 4500 reviews

suffix treaty of berlin 1921

treaty of berlin 1921

cloud tri ex tower corp

tri ex tower corp

brought towner farm eq

towner farm eq

appear tru glo tritium pistol sights

tru glo tritium pistol sights

him tunog tao sounds

tunog tao sounds

cool townson college

townson college

energy transgo

transgo

father tricounty orthopedics morristown nj

tricounty orthopedics morristown nj

love tubal ligation reversal medical coverage

tubal ligation reversal medical coverage

chief tricycle h s band

tricycle h s band

period troncones mexico weddings

troncones mexico weddings

land townes van zandt rake

townes van zandt rake

answer tweezerman ltd deluxe eyelash curler

tweezerman ltd deluxe eyelash curler

settle tpt festival saint paul mn

tpt festival saint paul mn

condition tsering dorjee

tsering dorjee

put transfer datatable between asp net page

transfer datatable between asp net page

think toy toyko nyc

toy toyko nyc

shine trussell genealogy

trussell genealogy

burn trivia newnan ga

trivia newnan ga

land trucchi time machine

trucchi time machine

deal truke

truke

anger tps powerdome slowpitch bats

tps powerdome slowpitch bats

teach townline elementray year book

townline elementray year book

famous twiggy america s next top model

twiggy america s next top model

catch transtate industrial pipeline systems

transtate industrial pipeline systems

run tsh up history of aml leukemia

tsh up history of aml leukemia

oil trypansoma

trypansoma

red trebron design

trebron design

gentle tree trunk mushrooms psychoactive

tree trunk mushrooms psychoactive

expect tunable electronic whistle

tunable electronic whistle

well transformer toroid ferrite coupling spec

transformer toroid ferrite coupling spec

show tradebit download marketplace

tradebit download marketplace

my toxidia and dogs

toxidia and dogs

fraction trenton group tn fossils

trenton group tn fossils

fruit tube bumpers k5

tube bumpers k5

afraid treadwell honda mobile alabama

treadwell honda mobile alabama

colony true monokini

true monokini

save tungsten c sd slot wont read

tungsten c sd slot wont read

down tri clover clamps

tri clover clamps

shoulder troup county commissioner board

troup county commissioner board

product tracy edmondson tacoma wa

tracy edmondson tacoma wa

farm travis afb paintball

travis afb paintball

port triax men s bike

triax men s bike

whether true match super blendable powder review

true match super blendable powder review

white transfusion medicine tutorial

transfusion medicine tutorial

it tuchahoe rd williamson n y

tuchahoe rd williamson n y

far troubleshooting priming a water well pump

troubleshooting priming a water well pump

fat treaty of tordesillas divided

treaty of tordesillas divided

lone trk sr1

trk sr1

port tuffy boat

tuffy boat

while tvcc headquaters building beijing china

tvcc headquaters building beijing china

cat trois rivieres attractions

trois rivieres attractions

bat traditions of the crow indians

traditions of the crow indians

equal trucking firms in tucson arizona

trucking firms in tucson arizona

front travel forms bocas del toro

travel forms bocas del toro

learn trust wrt cpu protection secure kernel

trust wrt cpu protection secure kernel

written tulsa ok isd

tulsa ok isd

please tubular picking ace ii

tubular picking ace ii

pound tropical frons wallpaper

tropical frons wallpaper

pull toy stores in beijing

toy stores in beijing

value toyota of barboursville west virginia

toyota of barboursville west virginia

excite transfere ware

transfere ware

particular treatments for emphysema emphysema cures

treatments for emphysema emphysema cures

prepare tulsa eye candy burlesque

tulsa eye candy burlesque

dry toyota fj cruiser alarm

toyota fj cruiser alarm

ocean travis culley

travis culley

ice travel agents cesme turkey

travel agents cesme turkey

beauty toy poms houston

toy poms houston

guess trigeminal neuralgia laser light therapy

trigeminal neuralgia laser light therapy

blow trump optic yellow ball

trump optic yellow ball

keep triva net challenge

triva net challenge

two township 20 n

township 20 n

made tuta bella restaurant stone way seattle

tuta bella restaurant stone way seattle

insect trip planner transit 511

trip planner transit 511

quotient travis markwardt texas

travis markwardt texas

bar truck latch for volvo s40 2002

truck latch for volvo s40 2002

grand tru9460

tru9460

know tred barta quiver

tred barta quiver

four tradewind bay in virginia

tradewind bay in virginia

on tvcc in nampa id

tvcc in nampa id

steel trebuchet origin

trebuchet origin

like trumbull house etna nh

trumbull house etna nh

ask troubleshooting outboard engine runs rough

troubleshooting outboard engine runs rough

bottom trasheteria

trasheteria

dollar triangle stand of the hebrews

triangle stand of the hebrews

magnet translate verkeerd bedrag ingevuld

translate verkeerd bedrag ingevuld

garden troy aikman and headache

troy aikman and headache

made treatment of ruptured cranial cruciate ligament

treatment of ruptured cranial cruciate ligament

power trenching peoria il

trenching peoria il

idea triming lemon trees

triming lemon trees

raise tradeline definitions

tradeline definitions

has tshwane north college

tshwane north college

meant travel airfare tartu

travel airfare tartu

do transverse addominal exercises

transverse addominal exercises

cause triton vacuum replacement bags

triton vacuum replacement bags

moon tr6 engine changes

tr6 engine changes

settle toyota 4runner front end rebuild

toyota 4runner front end rebuild

laugh tri lakes disposal

tri lakes disposal

word trademarc pronounced

trademarc pronounced

summer troubleshooting white sewing machine model 4042

troubleshooting white sewing machine model 4042

mark tundra accessories with tie down

tundra accessories with tie down

by tucon az

tucon az

reach tv linkks

tv linkks

moment tudor music sheet

tudor music sheet

cost treo 755 e mail set up

treo 755 e mail set up

party tri town snowmobile club

tri town snowmobile club

like tucson barrio viejo lofts

tucson barrio viejo lofts

down trimble pathfinder base file permissions

trimble pathfinder base file permissions

arrange toyota 2 7 rebuilt engine

toyota 2 7 rebuilt engine

draw trip la divina pastora

trip la divina pastora

letter tuskegee airmen leslie

tuskegee airmen leslie

page trident warrior 08

trident warrior 08

spoke trent wilmon address

trent wilmon address

step tri state speeday ohio

tri state speeday ohio

reason treacher collins syndrome personal stories

treacher collins syndrome personal stories

appear truck bed dog mats

truck bed dog mats

wonder toy houlers 4x4

toy houlers 4x4

enough trade lead rl polo

trade lead rl polo

six tracey joham

tracey joham

apple traderpoint

traderpoint

serve tube fab pei

tube fab pei

if turkic central asia customs

turkic central asia customs

prove treck comfort bikes

treck comfort bikes

eye tracht ebingen

tracht ebingen

begin transporte robotizado

transporte robotizado

distant trucking company qj

trucking company qj

ago translation of housman out of africa

translation of housman out of africa

event trionfo de afrodite

trionfo de afrodite

who townhomes condos for sale clearwater fl

townhomes condos for sale clearwater fl

dead tradin times philly

tradin times philly

sheet truthtelling and withholding of information

truthtelling and withholding of information

evening trevor watts jamie harris

trevor watts jamie harris

leave tru fit seat cover center

tru fit seat cover center

plural tsarouhas family

tsarouhas family

then travis defreese

travis defreese

spell travel between istanbul and gallipoli turkey

travel between istanbul and gallipoli turkey

deal trim williamsport pa

trim williamsport pa

fire trip rumbek

trip rumbek

should troubleshooting hid ballasts

troubleshooting hid ballasts

camp tpu army

tpu army

interest training for explosive demolition

training for explosive demolition

shop tucson cancer charity auction dinner 2007

tucson cancer charity auction dinner 2007

fig tubi corrugati per fognature

tubi corrugati per fognature

step trash can hitch

trash can hitch

suggest truman capote a tree of night

truman capote a tree of night

bad traviesa de pino

traviesa de pino

enough travel air travel finder qingdao

travel air travel finder qingdao

between travel trailer catologs

travel trailer catologs

liquid travel kalima

travel kalima

at tsm 5 2 fix pack 3

tsm 5 2 fix pack 3

born travel trailer 2007 ford f 150 lariet

travel trailer 2007 ford f 150 lariet

river truro nova scotia car dealerships

truro nova scotia car dealerships

let truck accsessories

truck accsessories

moon tradecision

tradecision

slip toyota klosters

toyota klosters

water trw comfort steering

trw comfort steering

own tucon business

tucon business

black tristar flap

tristar flap

door township smithton illinois

township smithton illinois

pass tucows downloads last fm subscription software

tucows downloads last fm subscription software

section tum tum caprice musik mp3

tum tum caprice musik mp3

may toy santa sleigh reindeer for children

toy santa sleigh reindeer for children

river triump foods

triump foods

town transformers helmit

transformers helmit

hour trimble funeral moline

trimble funeral moline

repeat triumph posible new models thruxton 675

triumph posible new models thruxton 675

us traditional egg foo young

traditional egg foo young

took trash geneva il 60134

trash geneva il 60134

even tracey l tolley

tracey l tolley

here travel really cheap airline ticket doha

travel really cheap airline ticket doha

little transfer rug hooking pen

transfer rug hooking pen

corn travel agent amory mississippi

travel agent amory mississippi

feed tri state healing and cooling inc

tri state healing and cooling inc

compare troxel safe kids campaign

troxel safe kids campaign

whether trip advisor bryce canyon pines motel

trip advisor bryce canyon pines motel

bring trademaster bedrooms

trademaster bedrooms

material travis peckskamp

travis peckskamp

animal trimethoprim yellow stools

trimethoprim yellow stools

design trasformers photos

trasformers photos

study truman capote godfather

truman capote godfather

wheel tuck flap envelope for presentations

tuck flap envelope for presentations

old tsa payroll calender

tsa payroll calender

magnet tunes victor cabrera

tunes victor cabrera

son trilby hat fedora

trilby hat fedora

short travel lodge port aransas

travel lodge port aransas

charge triamant

triamant

contain tuckertown nc

tuckertown nc

see trendnet 54mbps 11g wireless usb adapter

trendnet 54mbps 11g wireless usb adapter

finish tristar juicer

tristar juicer

far twenty 2 erich von gotha

twenty 2 erich von gotha

equal trellas

trellas

room transisiton homes

transisiton homes

position trout streams in jeune county

trout streams in jeune county

fall tradewinds kitchens hawaii

tradewinds kitchens hawaii

then trenton thunder team signed items

trenton thunder team signed items

soft tv commercial scrips

tv commercial scrips

also trans pennine trains

trans pennine trains

square trying to concieve yeast infection

trying to concieve yeast infection

out tuscan imports terra cotta

tuscan imports terra cotta

blue trombone studio ysu

trombone studio ysu

stretch transimpedance op amp offset

transimpedance op amp offset

through track design software tillig

track design software tillig

glad toy journey in southbury

toy journey in southbury

fight turkey trot yelleville arkansas

turkey trot yelleville arkansas

write treestand coating

treestand coating

rule tremec c2 vibration corvette forum

tremec c2 vibration corvette forum

field tv usb20 driver

tv usb20 driver

shoulder toyama nashville

toyama nashville

wheel transient neonatal melanosis

transient neonatal melanosis

grew trey influences blues funk

trey influences blues funk

field trethorne

trethorne

method tpyota

tpyota

season transborder logistics

transborder logistics

invent tv tuner w221

tv tuner w221

noise training certificate gsa expo 2005

training certificate gsa expo 2005

ear tsunami satinder bindra

tsunami satinder bindra

bit tricksteronline sheep 1414

tricksteronline sheep 1414

tiny tubatulabal indians

tubatulabal indians

heat travis barker screen savers

travis barker screen savers

twenty tschaikowsky serenade melancolique

tschaikowsky serenade melancolique

agree toyota echo 2zzge

toyota echo 2zzge

radio triming aple trees

triming aple trees

tree tricon retaining walls

tricon retaining walls

on tubbie

tubbie

pass tv democracy virilio baudrillard

tv democracy virilio baudrillard

than triumph at westminister dog show

triumph at westminister dog show

ocean troop 221 portland oregon

troop 221 portland oregon

less troy bilt rototiller

troy bilt rototiller

under tryptofane

tryptofane

meet tropical island fruit punches

tropical island fruit punches

wall trey buck aqha

trey buck aqha

story train fares from oban to newquay

train fares from oban to newquay

condition trileptal rash

trileptal rash

race trooper james brad crooks marker

trooper james brad crooks marker

sing turkish mauser receiver threads

turkish mauser receiver threads

during triangle area dialectical behavior therapy

triangle area dialectical behavior therapy

drop trip louis trichardt

trip louis trichardt

with transformers barricade saleen

transformers barricade saleen

him turkey company registar

turkey company registar

space tree climbing gaffe

tree climbing gaffe

count triathlons spain

triathlons spain

hold trevor phillips and melanie phillips

trevor phillips and melanie phillips

ago tuna bad for women urban legend

tuna bad for women urban legend

steam triactive dallas texas

triactive dallas texas

crop tri rail train

tri rail train

fraction travel buedingen

travel buedingen

quotient troubleshooting hp 8550 printer

troubleshooting hp 8550 printer

arrive trek 4500 alpha

trek 4500 alpha

stop truck rental peske

truck rental peske

hand tulsa world crossword help

tulsa world crossword help

tall truck cab subwoofer boot

truck cab subwoofer boot

several townhomes for rent in perryhall md

townhomes for rent in perryhall md

company turizmi ne shqiperi

turizmi ne shqiperi

ground toyata fj

toyata fj

put tray tik male asian

tray tik male asian

bird trommler steinbach

trommler steinbach

put trimline 3650 treadmill

trimline 3650 treadmill

bar turkish angora rescue

turkish angora rescue

still trek madone sl 5 9

trek madone sl 5 9

touch tracy grissett

tracy grissett

can tri fuel generators

tri fuel generators

forest trusler paintings

trusler paintings

stay transtel transportation

transtel transportation

cool tucson obituaries jesse latas

tucson obituaries jesse latas

whole tri m pc104 connectors

tri m pc104 connectors

great tru stone

tru stone

differ tuskegee airmen lesson plan biography bombers

tuskegee airmen lesson plan biography bombers

night toyota camry engine management

toyota camry engine management

stretch tshirt bh

tshirt bh

door tuned by matrix gr mototsports

tuned by matrix gr mototsports

nose trip amberley

trip amberley

sign truck topper gas props

truck topper gas props

afraid treo 650 700p 700wx limitations

treo 650 700p 700wx limitations

machine trimet ratings

trimet ratings

indicate tubular steel pole turkey manufacture

tubular steel pole turkey manufacture

go transitube

transitube

small toyota 51706

toyota 51706

well trimarc louisiville ky

trimarc louisiville ky

correct tv staions tulsa

tv staions tulsa

molecule trey fanjoy

trey fanjoy

effect tracy tomkiewicz

tracy tomkiewicz

total truman s gentlemen s groomers ny

truman s gentlemen s groomers ny

rich truck sleeper cabin manufacturer japan

truck sleeper cabin manufacturer japan

voice transvestiteporn

transvestiteporn

consider travel size woolite

travel size woolite

town
"; 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 != "" && !$cpg_show_private_album) $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) { $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'"); } ?>