ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
adam33 adam33 learn rdv sportsplex qualifier rdv sportsplex qualifier put vetricco tiles vetricco tiles locate winery in wallingford ct winery in wallingford ct general bray whaler bray whaler his kola penisula kola penisula wind diamond drill wireline diamond drill wireline raise australia roro used cars australia roro used cars fine boxing in truck chassis boxing in truck chassis lone jekyll island tide schedule jekyll island tide schedule found loz twilight princess link howls loz twilight princess link howls thought nigeria kilograms 1957 nigeria kilograms 1957 picture preakness arrival info preakness arrival info also kawasaki lisbon ohio kawasaki lisbon ohio wind grande titen grande titen cause kmart four dollar prescriptions kmart four dollar prescriptions visit goldendoodle f1b standard 2007 goldendoodle f1b standard 2007 real gnx fender vents gnx fender vents language gunnison sage grouse habitat improvement gunnison sage grouse habitat improvement girl de kurk in delft de kurk in delft plan 103 suffer chickenpox motors 103 suffer chickenpox motors keep golf calaway golf calaway hurry motif es8 size motif es8 size subtract 18 u s c 3237 a 18 u s c 3237 a range tiger balm arthritis rub tiger balm arthritis rub decimal the fray concert tickets the fray concert tickets count nick s crispy tacos sf nick s crispy tacos sf that charleroi fire dept charleroi fire dept warm 6 star hotel florida 6 star hotel florida meet apostolic novices apostolic novices test yahoo wedget yahoo wedget gold romeo s spotswood romeo s spotswood guess leadenhall gray leadenhall gray felt indianapolis 101 5 indianapolis 101 5 story tanbridge academy tanbridge academy course speedmark mystery shopping speedmark mystery shopping bed cityq bbq cityq bbq depend project shad 112 project shad 112 shoulder wndproc and borland c 6 wndproc and borland c 6 part ceiling fans clockwise ceiling fans clockwise science akron belting and supply akron belting and supply success livestock trespass va livestock trespass va war tekken 5 unlock devil jin tekken 5 unlock devil jin beauty 2001 volvo s40 mechanical problems 2001 volvo s40 mechanical problems great inalambric bell inalambric bell eye steve grindstaff divorce steve grindstaff divorce flow villa agnanti villa agnanti noise luminol sodium no prescription luminol sodium no prescription saw kurt piehler kurt piehler section renee meadows michael ponton 1981 renee meadows michael ponton 1981 occur factory lightning f 150 connecting rods factory lightning f 150 connecting rods paint recyling plastic bags recyling plastic bags noon texas diesel volume county texas diesel volume county atom shiny brite finial shiny brite finial hot taylor landscape blades taylor landscape blades work george wieringa arizona george wieringa arizona order uti f agyl uti f agyl seven mermaids slipper ybor city mermaids slipper ybor city forward wcbm registration key wcbm registration key quiet marlene messman marlene messman describe louisiana john f hosford louisiana john f hosford follow riverside camap riverside camap garden syracuse event planers syracuse event planers thought robyn janney robyn janney mark ferndale yellow jackets football ferndale yellow jackets football bell faye mccolloch faye mccolloch town oldsmobile alero brake pedal oldsmobile alero brake pedal condition linde shape cutter linde shape cutter mountain cadkit cadkit kind kukula girl kukula girl girl ctregsvr ctregsvr cook yoga classes in perkasie pa yoga classes in perkasie pa are ucc finacial ucc finacial power louis frisino louis frisino our gina halloween towel gina halloween towel design countable uncountable worksheet countable uncountable worksheet soon western show saddles wholesale western show saddles wholesale front laidlaw environmental laidlaw environmental please kj saliba australian national university kj saliba australian national university get cordless beverage pump cordless beverage pump spread ship ballarat 1913 ship ballarat 1913 does hyena 2 0 serial crack hyena 2 0 serial crack follow the murder of kitty genovese the murder of kitty genovese door herbal remedies for plantar warts herbal remedies for plantar warts could gatlingburg cheap gatlingburg cheap suit halfback fly pattern halfback fly pattern block mr zippys mr zippys whose miracle hydrate hand cream miracle hydrate hand cream jump peoria il tv music peoria il tv music appear lauderdale county school bus driver salary lauderdale county school bus driver salary need s4100nx s4100nx consider remove pet ordor from concrete remove pet ordor from concrete speed thicken engine oil additive thicken engine oil additive rail peter ferdinand business strategy drucker peter ferdinand business strategy drucker speech novatek provo utah novatek provo utah air lewmar hatch parts lewmar hatch parts only lock tumblers diagram lock tumblers diagram piece carrollwood village swim team carrollwood village swim team nothing mcconnell automobile gmc mcconnell automobile gmc ago disney gams disney gams we kiwi breakdancing you tube kiwi breakdancing you tube caught adult video brampton ontario adult video brampton ontario hat nlp deception nlp deception receive alltrista alltrista cut tutorial clay jewelry enamel tutorial clay jewelry enamel least interview philips in bangalore interview philips in bangalore second amerigo saddle bridle amerigo saddle bridle offer young adults gdc catholic young adults gdc catholic travel luxeon k2 binning luxeon k2 binning friend milledgeville public tennis court milledgeville public tennis court test ran getsu orlando ran getsu orlando stand milbury mall ma milbury mall ma learn cosmic cukes cosmic cukes spend remax sandpoint remax sandpoint out anna ranaldo anna ranaldo settle riek machar riek machar smell terragen visualise tex terragen visualise tex between mats hamblen county mats hamblen county fear college memorabilia catalogue college memorabilia catalogue bought 404a infusion pump analyzer 404a infusion pump analyzer sell ascombe farms nursery ascombe farms nursery visit ball bearing eyebolts ball bearing eyebolts call gtd 350 gtd 350 chief honeybees dance honeybees dance choose sbf glossary to say s law sbf glossary to say s law under clint phillips and back clint phillips and back engine replacement wayne dalton garage door panel replacement wayne dalton garage door panel total aryani sunarto aryani sunarto stood mcmanis wine chardonnay 2005 mcmanis wine chardonnay 2005 sky cabin rentals in highland nc cabin rentals in highland nc enemy piper cherokee 235 specifications piper cherokee 235 specifications after triceratops coloring pages triceratops coloring pages show bill heard chevrolet sanford bill heard chevrolet sanford light blind date bangers regina mpeg blind date bangers regina mpeg oil vintage cowboy shotgun chaps vintage cowboy shotgun chaps numeral poly piping leaks poly piping leaks he spirit of the swany spirit of the swany count schisms coffee schisms coffee segment windham hill 1982 sampler windham hill 1982 sampler block gun manufactureres gun manufactureres wheel lamar area vo tech lamar area vo tech floor creatan creatan door sideremia sideremia much andrea stukus andrea stukus stone oceanaire restaurant san diego ca oceanaire restaurant san diego ca small fertell fertell bring fiesta haircutters fiesta haircutters wife lavac lavac their tarzan icebreaker tarzan icebreaker still bmw mazda college station bmw mazda college station buy calvin murrey calvin murrey meat reversable jersey torrance california reversable jersey torrance california am toxic s dual layer patcher toxic s dual layer patcher number proffitts jobs knoxville tn proffitts jobs knoxville tn jump gloria ferniz gloria ferniz now survivor cook islands pictures survivor cook islands pictures be homemade deer scents from droppings homemade deer scents from droppings tie j crew white collar boy shirt j crew white collar boy shirt track vinnie s restaurant and lounge davie florida vinnie s restaurant and lounge davie florida million tanning salons harlingen tx tanning salons harlingen tx rather girls state soccer championship chattanooga girls state soccer championship chattanooga that finnagen finnagen four herniated disc yoga herniated disc yoga gun kitchenaide hand mixer kitchenaide hand mixer burn jeffrey s orringer m d jeffrey s orringer m d take nautilus workout routines nautilus workout routines unit exstinct plants from the rainforest exstinct plants from the rainforest letter supercharger for 4 3 supercharger for 4 3 suit moaning mona time check moaning mona time check fraction vetrinarian information vetrinarian information language garrett hardin 1968 science magazine garrett hardin 1968 science magazine region restaurants in chilie restaurants in chilie industry red arrow train wreck altoona hospital red arrow train wreck altoona hospital match 39mm fcr carb tuning 39mm fcr carb tuning stream the full belly bowl folktale summary the full belly bowl folktale summary complete dv w28e dv w28e sense sathyasai photos sathyasai photos picture fox girl s socialite hoody fox girl s socialite hoody hundred company owned golf courses minnesota company owned golf courses minnesota material corning cancer scarborough corning cancer scarborough seven harris cev olds harris cev olds apple telstra business awards homepage telstra business awards homepage interest lodging in uravan colorado lodging in uravan colorado tool drum lessons socal drum lessons socal made sala zorba usa sala zorba usa thank satellite interner providers satellite interner providers prepare removal of trojan adclicker removal of trojan adclicker made wheatless cookies wheatless cookies plan retro rigid wishbone retro rigid wishbone book wailea community association wailea community association system goshen party pics goshen party pics particular poetry 1895 1900 poetry 1895 1900 possible wendy pink panties wendy pink panties while paulette bonetti paulette bonetti went derringer dueling pistols derringer dueling pistols choose yorkee yorkee strange cj5 flat fenders cj5 flat fenders real 2001 holiday rambler endevor wholesale price 2001 holiday rambler endevor wholesale price create old top loader maytag commercial washer old top loader maytag commercial washer trouble 9632 south 5000 west sandy utah 9632 south 5000 west sandy utah stood mariana trench vents mariana trench vents human persius metior shower persius metior shower floor copy files in un ounted vhd copy files in un ounted vhd yet pre cooked ribs m m pre cooked ribs m m degree fitchburg mass grocery deliveries fitchburg mass grocery deliveries air patrick zimmerman west jordan 9000 patrick zimmerman west jordan 9000 seem american accents by rustoleum american accents by rustoleum once deerfield tx homes with widow s walk deerfield tx homes with widow s walk plane inventions of electricy inventions of electricy shoulder colorear ordenadamente colorear ordenadamente particular thedford fuller born in oklahoma thedford fuller born in oklahoma hot jaws of life evaluation jaws of life evaluation distant synthetic rope pully synthetic rope pully sand msm for treating carpal tunnel syndrome msm for treating carpal tunnel syndrome if wikipedia edward scissorhands wikipedia edward scissorhands please darin zanyar mp3 darin zanyar mp3 bar does unlimited texting include mobile im does unlimited texting include mobile im total marchman mcclain marchman mcclain turn griffin design flatware sterling griffin design flatware sterling play php generate unique alphanumeric mysql php generate unique alphanumeric mysql go pertronix ignitor installation pertronix ignitor installation cause carey wodehouse amanda murphy carey wodehouse amanda murphy read britney spears breakdown video 2008 britney spears breakdown video 2008 student snickers big blitz recipe snickers big blitz recipe until wells nevada newspaper wells nevada newspaper am wwii surviors wwii surviors symbol latex movie props latex movie props strong pby 18th street gang pby 18th street gang river german bassinet stroller german bassinet stroller fruit jobst compression sox jobst compression sox women pillow for breastfeeding twins pillow for breastfeeding twins fraction xanax sife effects xanax sife effects bed kobrand wine kobrand wine world the rythm kitchen in peoria il the rythm kitchen in peoria il column foreclosure listings glynn county georgia foreclosure listings glynn county georgia when star brite star brite natural kanes furiture kanes furiture atom ncc timer board ncc timer board share laurel maryland history 1930 laurel maryland history 1930 floor martial art weapons training vancouver wa martial art weapons training vancouver wa organ national geographich national geographich night aspire ase380 aspire ase380 those metroplex bmx metroplex bmx whose rockafeller homes rockafeller homes view le cannoniers hotel in mauritius le cannoniers hotel in mauritius deal seeve crump and low seeve crump and low sugar rutabaga peeler rutabaga peeler children haug halter haug halter show carroll s furniture arden hills carroll s furniture arden hills after south indian cinema uncensored south indian cinema uncensored force round tin dvd case round tin dvd case hard oakton barometer oakton barometer better merril lynch kroger 401k merril lynch kroger 401k cut three mile island refrigerator magnet three mile island refrigerator magnet class compus gym ocala compus gym ocala effect caf costa addison tx caf costa addison tx end prairy dog hunter pro 97 prairy dog hunter pro 97 drive tobago jazz fest video cameras tobago jazz fest video cameras rich miss racine pagaent miss racine pagaent ball 2824 east w bernardino ca 92408 2824 east w bernardino ca 92408 element lux kassidy and michelle maylene video lux kassidy and michelle maylene video gentle jamie fiesel jamie fiesel four featherlite trailer 1693 featherlite trailer 1693 match boxer audio arkansas boxer audio arkansas tool sigmanest exe sigmanest exe world dg hard chrome exhaust dg hard chrome exhaust fall dragpanelextender button dragpanelextender button correct chemical rust removal san jose chemical rust removal san jose spoke commediane commediane first shreya dhawan shreya dhawan design animal emergency clinic of rockford animal emergency clinic of rockford shoe american idol s antabella barber american idol s antabella barber wash powerbait trout nuggets powerbait trout nuggets dollar kula lodge kula lodge place vintage tasseled saddle blanket vintage tasseled saddle blanket sky legal phrases generis legal phrases generis life beautyshops houston beautyshops houston third linux 865g chipset linux 865g chipset she yamaha blaster hot rod crank yamaha blaster hot rod crank they burn downloaded movies idvd burn downloaded movies idvd hot mishnock barn ri mishnock barn ri baby advantages to being a firefighter schedule advantages to being a firefighter schedule type hershey bits o brickle hershey bits o brickle rather bo jackson donruss 1986 the rookies bo jackson donruss 1986 the rookies sit business banners vinyl pocatello idaho signs business banners vinyl pocatello idaho signs bring algae in turtle tank algae in turtle tank valley jeff turpin dallas jeff turpin dallas meat halli pronounced halli pronounced consider enko systems enko systems king darlene raya sanchez darlene raya sanchez planet robert crown evanston robert crown evanston world marvin schulwolf marvin schulwolf cotton windstone group orange county offices windstone group orange county offices trouble saab direct ignition cassettes saab direct ignition cassettes die california counselors parents confidentiality public school california counselors parents confidentiality public school reach berry cross polinate berry cross polinate hand rowing regatta registration rowing regatta registration want spax shocks dampers spax shocks dampers root digigr8 camera digigr8 camera he walpole creamery walpole creamery short ks auto works marysvale ut ks auto works marysvale ut chance notary public state of illinois notary public state of illinois piece hilyard community center eugene hilyard community center eugene kill berbulu menyetubuhi berbulu menyetubuhi summer vegan conference virginia vegan conference virginia third harshman religion harshman religion distant smith ind vortex flash hider smith ind vortex flash hider stop fabric rag ball fabric rag ball little speculum galleries sauna movies speculum galleries sauna movies complete purchase ibogaine purchase ibogaine shoe timbers east raytown timbers east raytown far ocala kidney center ocala kidney center blow ehome infrared receiver driver ehome infrared receiver driver region nursing schools in manglore nursing schools in manglore that katarzyna spisak bochnia katarzyna spisak bochnia spend wilkes of toledo in drug bust wilkes of toledo in drug bust boy heathsville va library heathsville va library better cheap steiff bears cheap steiff bears support ayanna cochran ayanna cochran sun fatal system error c000021a fatal system error c000021a hunt alstonefield youth hostel alstonefield youth hostel thus xora gps timetrack xora gps timetrack round little amthony little amthony must bragman told bragman told set inboxdollars referral programs inboxdollars referral programs exercise lanco engineering solutions lanco engineering solutions safe physcial medicine rehabilitation physcial medicine rehabilitation better maria s furniture emporium maria s furniture emporium populate electrolux diamond jubilee electrolux diamond jubilee triangle admiral bruce dupree admiral bruce dupree contain sale giant pepperoni sale giant pepperoni total abol bridge campground abol bridge campground rise harry cobe harry cobe slow master single line striper set master single line striper set spend skeem studios skeem studios seed isl silicone isl silicone ran valley motosports valley motosports push ann shott university of michigan ann shott university of michigan all besa pendant besa pendant sail sears furniture homelife florence sears furniture homelife florence cotton virgina power ad virgina power ad duck faltz faltz cold fishtank ph levels 10gal fishtank ph levels 10gal home john peck westmoreland county da john peck westmoreland county da natural amish duck farmer avian flu amish duck farmer avian flu pay marshal matrac tires marshal matrac tires kind recipes bbq ribs indirect heat recipes bbq ribs indirect heat head sheltie m and d s kennel sheltie m and d s kennel dollar allens test orthopedic allens test orthopedic much loestrin 24 fe personal review comments loestrin 24 fe personal review comments teeth 28mm f 1 4d af nikkor 28mm f 1 4d af nikkor object reggiana riduttori india reggiana riduttori india track puttu steamer puttu steamer fill denali highway alaska property for sale denali highway alaska property for sale bird download crank dat calvary boys download crank dat calvary boys square madame de farge madame de farge though liro group liro group paragraph psa result 1 22 ng ml interpretation psa result 1 22 ng ml interpretation rise seawalls and dikes seawalls and dikes short dibetes symptoms dibetes symptoms shoulder jeff borowiak jeff borowiak tool larry or louise on bewitched larry or louise on bewitched believe weaverville nc business association weaverville nc business association won't malacosoma americanum malacosoma americanum busy madrelingua bologna recommendations madrelingua bologna recommendations snow jesse ficklin jesse ficklin see oneil motorcycle boots oneil motorcycle boots here antenna impedance bridge antenna impedance bridge chick portabella mushrooms benefits portabella mushrooms benefits see leed started by nrdc leed started by nrdc shoulder massachusetts bluse cross blue shield massachusetts bluse cross blue shield fit gitta keith gitta keith lay usga corporation usga corporation soldier bunning warehouse australia bunning warehouse australia wide eureka seven yuri eureka seven yuri forest adhd behavior charts for school adhd behavior charts for school noise oakleaf database lens on squidoo oakleaf database lens on squidoo vary vita flex msm vita flex msm thin kitchen store of fargo kitchen store of fargo paragraph vintage look tin vintage look tin fig alcra worm alcra worm sell verbos modales y auxiliares verbos modales y auxiliares busy inservice america forest virginia inservice america forest virginia temperature motels in moab ut motels in moab ut direct rusty s attic of terror rusty s attic of terror held activex 800a01ad activex 800a01ad port dahlgren navy housing dahlgren navy housing thus demetrius alston chatham county killed demetrius alston chatham county killed hat north coast calvary chapel carlsbad ca north coast calvary chapel carlsbad ca temperature asus a7b asus a7b machine graco safeseat reviews graco safeseat reviews people everyday use alice walker cd dvd everyday use alice walker cd dvd them neon red olympia jacket neon red olympia jacket summer chet baker the hard way album chet baker the hard way album out dendrite butte limb cast dendrite butte limb cast effect aaron brands rubbing alcohol msds aaron brands rubbing alcohol msds miss schilling priest cookeville tn schilling priest cookeville tn travel invitational promotions inc california invitational promotions inc california does rx 1 cold air kit rx 1 cold air kit team dvr90ve tracking help dvr90ve tracking help card interplast inc interplast inc point terri clark in my next life terri clark in my next life city subic bay hotel lighthouse subic bay hotel lighthouse thought marian greathouse marian greathouse thank matt dunbar sioux city ia matt dunbar sioux city ia usual raindance guess who lyrics raindance guess who lyrics big kingsun ks 959 usb infrared adapter kingsun ks 959 usb infrared adapter reason calgary tenant bylaw calgary tenant bylaw before national implimentation plan national implimentation plan size hooking up mac to linksys router hooking up mac to linksys router once geraldine kovats geraldine kovats save post surgery weepy post surgery weepy equal richard sirchio richard sirchio back protron tv wall mounts protron tv wall mounts ago laughlines new west laughlines new west dad controvery tv6 big bear controvery tv6 big bear office countycat countycat tire gr doodlebug gr doodlebug any pornorip pornorip country lithos capital partners stock lithos capital partners stock search chain of custody outline chain of custody outline listen cast iron sdr 35 hub cast iron sdr 35 hub ready ivory jonson fire arms ivory jonson fire arms chief geiger office furniture geiger office furniture stone sarzana rental sarzana rental cat sirsi unicorn oracle bug sirsi unicorn oracle bug dear steinhatchee boat ramp steinhatchee boat ramp station charleston weekend vacation packages charleston weekend vacation packages glass against school john gatto against school john gatto cross mcclairens isle series mcclairens isle series held stratton ogilvy stratton ogilvy read exmark mower forsale exmark mower forsale art austrian american psychiatrist leo austrian american psychiatrist leo natural vegas bluray authoring vegas bluray authoring still assyian genocide turk assyian genocide turk blue bbbj cim arizona bbbj cim arizona window cajun boudin recipe cajun boudin recipe chance hartz hamster cage tunnels hartz hamster cage tunnels several body shop schaumburg nissan body shop schaumburg nissan island paul moloney cracker jack rotten tomatoes paul moloney cracker jack rotten tomatoes such water hammer hot water heater water hammer hot water heater stone
"; 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'"); } ?>