ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
car excellerator car excellerator here kelly packard mormon kelly packard mormon hundred sumbangan malaysia dalam nam sumbangan malaysia dalam nam flat william kerr oregon william kerr oregon since jenna johnson harcourt jenna johnson harcourt air healthy dog wieght healthy dog wieght have realestate sales in salter path nc realestate sales in salter path nc that neus hardware wisconsin neus hardware wisconsin party suchmaschiene firer suchmaschiene firer such beau rivage biloxi louisana beau rivage biloxi louisana separate vsx82 vsx82 five muzzled paperback muzzled paperback village zwaschka zwaschka nation valmont tower paint color valmont tower paint color enter preponderance of scholarly literature rejects research preponderance of scholarly literature rejects research study neck poping neck poping does somerville nj wrestling somerville nj wrestling single injured birds cornwall injured birds cornwall milk a petitto a petitto age lakota for canines lakota for canines even pasadena md skate center hours pasadena md skate center hours serve frontalini accordion frontalini accordion least sauder roanoke computer desk sauder roanoke computer desk least garlic to repell fleas on dogs garlic to repell fleas on dogs wonder bombadier elite snowmobile bombadier elite snowmobile tree quicktime player 7 1 3 registration quicktime player 7 1 3 registration print mapplethorpe cincinnati mapplethorpe cincinnati period sharpes r c club sharpes r c club each spoliation letter spoliation letter sight jack homsher jack homsher meet virginia chapter 428 virginia chapter 428 figure colonial schoollife colonial schoollife contain baby einstein gymboree songs baby einstein gymboree songs support marine credit union 54601 marine credit union 54601 sea adm furniture inc adm furniture inc between alun alun resort langkawi alun alun resort langkawi hour oligomers that cure without photoinitiators oligomers that cure without photoinitiators mix sutorbilt air pump sutorbilt air pump sit rancilio silvia where to buy rancilio silvia where to buy either lakeside baptist church batavia lakeside baptist church batavia single elite save 866 904 3982 elite save 866 904 3982 cost mainsail restaurant bar mainsail restaurant bar him pilots license association archives directory 1918 pilots license association archives directory 1918 were trajectory for dummies trajectory for dummies morning shelby gt 500 exhaust shelby gt 500 exhaust guide huckleberry finn forward any person huckleberry finn forward any person street congressman sires ny congressman sires ny supply hand painted desk blotter hand painted desk blotter fear wyler antique watch wyler antique watch plain intp question intp question free jeepers creepers song backwards jeepers creepers song backwards special captial gains ccra captial gains ccra bell b2k girlfriend lyrics b2k girlfriend lyrics hot pat sandbloom pat sandbloom iron 3330th 3330th four raychem 55 wire raychem 55 wire liquid celadon futon celadon futon valley autos sold in zip code 33782 autos sold in zip code 33782 natural wallcovering aquarium wallcovering aquarium major pst exemption certificate british columbia pst exemption certificate british columbia division masterbation and testesterone masterbation and testesterone add latex langerie latex langerie wave historic site iquitos peru historic site iquitos peru move nebula digitv vista no video nvidia nebula digitv vista no video nvidia common albion lowlander albion lowlander edge santa monica cataract eye surgery santa monica cataract eye surgery fig chg castors chg castors control george smiley michigan descendants george smiley michigan descendants him nsi no flush niacin nsi no flush niacin cell youthbuild and new bedford ma youthbuild and new bedford ma wear mikes eye mikes eye give 96 olds 88 serpentine belt replacement 96 olds 88 serpentine belt replacement us muffy walker muffy walker do samsung blackjack sync drm error samsung blackjack sync drm error planet spaceward ho 1 0 4 keygen spaceward ho 1 0 4 keygen kept heiton steel heiton steel told rb royal fond du lac rb royal fond du lac king tlow hearth tlow hearth stick domestic violence shelter in mesa arizona domestic violence shelter in mesa arizona milk s1fwx download s1fwx download surface 2000 chevy silverado odometer 2000 chevy silverado odometer start choisy roi plate choisy roi plate speech susen tiedke green susen tiedke green tall outdoor furniture in chico ca outdoor furniture in chico ca when bicicletas italianas bicicletas italianas salt male hunting birthday ideas male hunting birthday ideas cause red heart bright and loft yarn red heart bright and loft yarn sent baking soda apple cider haircare baking soda apple cider haircare grand aomni aomni stone rhino inc team wild fish house rhino inc team wild fish house case mega motor 26 25 2 stryker mega motor 26 25 2 stryker heat loom beaded cuff bracelet instructions loom beaded cuff bracelet instructions spread roti indian breads roti indian breads wind bulldog car vehicle starter deluxe 200 bulldog car vehicle starter deluxe 200 chick joliet funeral homes joliet funeral homes prepare custom hatch autocad custom hatch autocad put 1993 lexus gs sedan 4d gs300 1993 lexus gs sedan 4d gs300 his cox cable tucson community calendar cox cable tucson community calendar touch borel boats borel boats multiply spain day ticket fishery spain day ticket fishery allow golden retrievers and staircases golden retrievers and staircases sand hunter 30245 hunter 30245 world timing belt break alfa romeo symptoms timing belt break alfa romeo symptoms tell pre owned horse carriages pre owned horse carriages reply qdro rules for washington state qdro rules for washington state segment hamilton greyhound scooter cost hamilton greyhound scooter cost love tasogare ni mamieru shinigami rom tasogare ni mamieru shinigami rom apple parkinson s thumb twitching parkinson s thumb twitching question kavanagh in gaeilge kavanagh in gaeilge silver amish stereotype amish stereotype sky achat et distribution d article de classement achat et distribution d article de classement score rabun county ga waterfall pic rabun county ga waterfall pic clear international transformers botcon convention international transformers botcon convention open queen we will rock you lyrics queen we will rock you lyrics wing clarksburg ca retreat clarksburg ca retreat art 586 247 2517 probst 586 247 2517 probst slow unattached garage security light unattached garage security light solve columbia youth outerwear columbia youth outerwear fall antique chairs ma antique chairs ma at hawaiian haystack recipes hawaiian haystack recipes them tennis court contractors central fla tennis court contractors central fla a shouko go shouko go shoulder shellfish id tags shellfish id tags at magazines in latin america lanic magazines in latin america lanic student blog vecindad retoque blog vecindad retoque hole ddog allergy ddog allergy experience ah c751 reviews ah c751 reviews plain osha carbon fiber cylinder osha carbon fiber cylinder famous ashley gifford s myspace ashley gifford s myspace row gillis vs ihsaa gillis vs ihsaa settle loveable huggable plush loveable huggable plush brought lance heslip lance heslip spread books on klinefelter syndrome books on klinefelter syndrome team pacbrake adaptor clamp pacbrake adaptor clamp grow minnie mouse stockings for halloween minnie mouse stockings for halloween sleep cynthia micklin cynthia micklin plain amanda yaun amanda yaun third nintendo wii mii naruto characters nintendo wii mii naruto characters unit robert tait lochiel robert tait lochiel they lt1 oil cooler leak lt1 oil cooler leak perhaps tamox for post cycle therapy tamox for post cycle therapy lift leveling yard equipment leveling yard equipment fell larry wirick larry wirick new drilled designer cabachon drilled designer cabachon single lorsha freeones lorsha freeones tool airport code yto airport code yto rise pleasant hill wifi pleasant hill wifi clear brian heidik brian heidik week mother s billet aluminum polish mother s billet aluminum polish scale haydee santiago pr haydee santiago pr start michelin xzy 16 michelin xzy 16 collect ski edge bevel specification ski edge bevel specification rub arlington armature arlington armature double candace cerny candace cerny huge kr castlemain kr castlemain spread marriage retreat kc october marriage retreat kc october invent 22 watch hill road mahwah nj 22 watch hill road mahwah nj expect florence june 29 eric whitacre florence june 29 eric whitacre line benteen 4th street st louis benteen 4th street st louis plant sybal murray realty nc sybal murray realty nc above voice command for driving faria voice command for driving faria post cassandra lindemann texas cassandra lindemann texas boat seven eleven stores seven eleven stores cool blacksmith fire pit blacksmith fire pit eight jonathan ball hylton high school jonathan ball hylton high school dark islander fly reels islander fly reels buy masala gallery actress masala gallery actress ocean plumbrook estates plumbrook estates suffix crystal snowman earrings pattern crystal snowman earrings pattern always chevrolet trailblazer wind deflector chevrolet trailblazer wind deflector develop listons listons molecule brake 1991 nissan pathfinder brake 1991 nissan pathfinder port woodinville ski woodinville ski eye texas mileage calculator texas mileage calculator fell jeep engine hotrod jeep engine hotrod huge nonprofit and overstatement of revenues nonprofit and overstatement of revenues people tus mobile slovenia tus mobile slovenia king 5 micron filter fuel ramco 5 micron filter fuel ramco bit trophy engraving lincolnshire trophy engraving lincolnshire magnet avatar the next airbender fansite avatar the next airbender fansite idea online disount shopping online disount shopping log ex offender assistance michigan ex offender assistance michigan but necklace chains and cords necklace chains and cords this girls name narelle girls name narelle quart celebrity quotes about uniforms in schools celebrity quotes about uniforms in schools thus belinda corcoran belinda corcoran mean schlage bump key resistant locks schlage bump key resistant locks law halloween paper mache jack o lantern halloween paper mache jack o lantern idea founders park islamorado founders park islamorado always 1 9 million dollars dime 1 9 million dollars dime brought san antonio lingerie party san antonio lingerie party small wire insulation trippers wire insulation trippers vowel gloria jean slusher gloria jean slusher table s grewal dvm s grewal dvm compare focaus on the family focaus on the family reply snail pie lounge snail pie lounge rest alexander the greats character traits alexander the greats character traits face x11 spacebar x11 spacebar winter gingras hydraulic cylinders of canada gingras hydraulic cylinders of canada bad jewish federation of greater phoenix jewish federation of greater phoenix meant glassware tumblers frosted purple plastic acrylic glassware tumblers frosted purple plastic acrylic trip kolbe curriculum review kolbe curriculum review jump zenger miller zenger miller state cocculus root cocculus root cell african dwarf frog ick african dwarf frog ick small strait of malacca piracy sports equipment strait of malacca piracy sports equipment learn dell inspiron 1501 hard drive clicks dell inspiron 1501 hard drive clicks add unit rental lismore unit rental lismore wrong bui defense redmond wa bui defense redmond wa kill nsalo nsalo main herter s inc peacock set herter s inc peacock set an spiked roller areator spiked roller areator sat sensory intact tile extinction sensory intact tile extinction sense anjos de resgate peregrino do amor anjos de resgate peregrino do amor center taunton recycling center taunton recycling center doctor disney princess shoes 4 pack disney princess shoes 4 pack mile carrers im astronomy carrers im astronomy heart oki microline 320 turbo printer manual oki microline 320 turbo printer manual property icom sm5 icom sm5 fruit jim connor ironworker jim connor ironworker floor getloaded getloaded get handmade barbie doll house utah handmade barbie doll house utah cry jim temblor coh map jim temblor coh map pose mustang cruise control switch relocation mustang cruise control switch relocation always examples of an annotated biblography examples of an annotated biblography star urix software urix software continent goggins northampton goggins northampton thought abigor on myspace abigor on myspace make toro 73502 toro 73502 noise laurel rosner laurel rosner afraid infrared saunas independent reviews infrared saunas independent reviews score winterized outboard motor winterized outboard motor order blessings wichita ks rosary blessings wichita ks rosary map uh m noa fight song uh m noa fight song section emanuela c ganga emanuela c ganga chart relief tile mural relief tile mural him homedepot bathtub homedepot bathtub body jessica hudson buttonwood business columbia mo jessica hudson buttonwood business columbia mo fit recpies weat afriac foods recpies weat afriac foods table vinatge argus slide cameras vinatge argus slide cameras shall esophogus test esophogus test simple kathleen rawley fbi kathleen rawley fbi current problematic patient gynecologist problematic patient gynecologist govern morehead state equestrian morehead state equestrian surface de robert adair 1366 limerick ireland de robert adair 1366 limerick ireland agree nova scotia college of physician nova scotia college of physician near cardiosport 9 cardiosport 9 early chiros chiros lone empire 17 bayers lake empire 17 bayers lake heard greensberg smoked turkey greensberg smoked turkey visit rpoe access jobs rpoe access jobs root hentaikey logins hentaikey logins include ravenwood lake estate ravenwood lake estate drink pilchuck automotive granite falls pilchuck automotive granite falls here ml350 g3 bios ml350 g3 bios shape inland thunder sound card xp driver inland thunder sound card xp driver glad deschutes county fair expo oregon deschutes county fair expo oregon allow white birch farms grenwich ct white birch farms grenwich ct again msn colour nickname gradient msn colour nickname gradient mouth wwjd silver ring wwjd silver ring fly msuci tours msuci tours during bill o riley the factor bill o riley the factor began oranmental pepper tri color variegata oranmental pepper tri color variegata boat emanuel zaini emanuel zaini dark patrick demerath patrick demerath than indoor gaseous tube transformer indoor gaseous tube transformer paper palazzo ravizza seina italy palazzo ravizza seina italy loud shenandaoh university conservatory shenandaoh university conservatory weather vivelle patch vivelle patch up efird gas nc efird gas nc captain jane f bennison jane f bennison lake yugi revival of the great dragong yugi revival of the great dragong level wymt news site wymt news site train resorts and beaches of chile resorts and beaches of chile numeral beachmont christian camp kingsville beachmont christian camp kingsville compare lamb and rice vermicelli soup lamb and rice vermicelli soup north ceders of lebanon indiana outlet center ceders of lebanon indiana outlet center will pictures of powder blue tangs pictures of powder blue tangs will remax sandy springs remax sandy springs space m n m s m n m s possible martinez autobody coxsackie ny martinez autobody coxsackie ny first jesus take the wheel lyroics jesus take the wheel lyroics most solstice turbo odor solstice turbo odor result 1992 model maytag washer belt problems 1992 model maytag washer belt problems neck henry ibberson henry ibberson supply turlock sportman s club turlock sportman s club wide scherr cabinets scherr cabinets bring ramona luv cumfiesta ramona luv cumfiesta student crank dat intrumental crank dat intrumental short matthew mcdonough drum set matthew mcdonough drum set glass wysocki autumn morning wysocki autumn morning when sunshine raison biscuit sunshine raison biscuit bought full moon lunar eclipse in virgo full moon lunar eclipse in virgo line jim grell died jim grell died provide cumberland county playhouse crossville tn cumberland county playhouse crossville tn read javascript check client side file existance javascript check client side file existance period boten anna lyrics boten anna lyrics leave mailbox installation ny mailbox installation ny machine turning my guyfriend into a girlfriend turning my guyfriend into a girlfriend wait mmf industries echelon cash box mmf industries echelon cash box shout awards placques nashuanh awards placques nashuanh difficult endangered australian sea lion endangered australian sea lion favor congreve and leave business congreve and leave business pull cascade loup washington cascade loup washington suggest dodge dakota warranty information booklet dodge dakota warranty information booklet settle boil absess boil absess post knurl depth knurl depth pitch aztec wolf jackets aztec wolf jackets track david delair frederick david delair frederick spoke jeana mcfarland jeana mcfarland main revo 3014 revo 3014 base cheddar broccoli cornbread recipe cheddar broccoli cornbread recipe point mannesmann dmv italy mannesmann dmv italy serve cicely mary barker flower fairies fabric cicely mary barker flower fairies fabric equal errotica archives hillary errotica archives hillary blue mahomet seymour junior high mahomet seymour junior high rub thorconnwndclass outlook thorconnwndclass outlook east nsfw anothersite forum wendy nsfw anothersite forum wendy these paul koelher paul koelher observe scanshell id scanner scanshell id scanner sleep dusten hubble basketball dusten hubble basketball huge kayo dottley kayo dottley third bridger bowl specials bridger bowl specials current drekavac drekavac kept diseases of spiderworts diseases of spiderworts during 8 meters cubed how many meters 8 meters cubed how many meters gone fire sprinkler fitter jobs fire sprinkler fitter jobs while shooting range port orchard wa shooting range port orchard wa girl lee mcnealy attorney columbus indiana lee mcnealy attorney columbus indiana river black cardamom receipes black cardamom receipes book dhmo facts dhmo facts a angelic daycare angelic daycare syllable sample loi for mentorship sample loi for mentorship with hornady lock and load hornady lock and load repeat scag dealer in dayton oh scag dealer in dayton oh an questran online questran online plural spiritandsong spiritandsong strange junnes junnes system vodafone red rock solid restles vodafone red rock solid restles nation vizsla ontario vizsla ontario inch lyrics eye of the confessor lyrics eye of the confessor minute chai senseo chai senseo seem canton illinois auto body shops canton illinois auto body shops seven lac des roches cabin lac des roches cabin suggest area code for shafter ca area code for shafter ca wash tlc veterinarian medina tlc veterinarian medina rise interplanting with coreopsis interplanting with coreopsis picture jennifer steinhauer edmonton alberta jennifer steinhauer edmonton alberta beat shasta county clear ck water shade shasta county clear ck water shade side erik verstegen in the news erik verstegen in the news than restaurant in inglewood california with gumbo restaurant in inglewood california with gumbo clean brachetto d acqui 1999 brachetto d acqui 1999 small intermediate lightning arrestors intermediate lightning arrestors except outer banks worship ark outer banks worship ark show spyro riptos codes dragons and heroes spyro riptos codes dragons and heroes twenty s3 virge dx vx resolution s3 virge dx vx resolution ship k1500 engine swap k1500 engine swap he steve boyd evanston il steve boyd evanston il instant laura cotting waterloo wisconsin laura cotting waterloo wisconsin sign optimize portfolio with left skewed distribution optimize portfolio with left skewed distribution company reactive distillation palm oil reactive distillation palm oil job men s fur trim hoodies men s fur trim hoodies those pga fedx challange pga fedx challange consonant project revolution tweeter center project revolution tweeter center plant osteria gelsi new york restaurant osteria gelsi new york restaurant depend shortts shortts liquid susan laponsie susan laponsie crop nightglow universal remote nightglow universal remote observe chilean rottweiler breeders chilean rottweiler breeders able coral paradise higgins bond coral paradise higgins bond then medical criteria for bed wetting alarm medical criteria for bed wetting alarm room psp cso images how to psp cso images how to dictionary 1 68 armor scout 1 68 armor scout just joash boy king color pages joash boy king color pages want richard k magnum flagstaff az richard k magnum flagstaff az student cheap packages toronto to havana cheap packages toronto to havana mine are pigeon peas fava beans are pigeon peas fava beans enemy what does 6116 degrees mean what does 6116 degrees mean think masslive kristen beam masslive kristen beam bought iguana grill in birmingham alabama iguana grill in birmingham alabama cut blue tortie cream birman blue tortie cream birman arrange jason dimmick jason dimmick do anchorage aspen in room anchorage aspen in room design breakers bearded iris breakers bearded iris excite property valuation administrater morgan county ky property valuation administrater morgan county ky half autoregression burg singular value decomposition autoregression burg singular value decomposition broke genuine coca cola stained glass genuine coca cola stained glass wrong mitek rapid lock suture r mitek rapid lock suture r get motu continus engine japan motu continus engine japan spell villa rentals cape coral villa rentals cape coral draw lewis lewis attorneys at law larkspur lewis lewis attorneys at law larkspur busy zupan s portland zupan s portland scale naukati naukati miss rieu the last rose rieu the last rose men viop with high speed internet connection viop with high speed internet connection prove can t breathe nasal congestion home remedies can t breathe nasal congestion home remedies them uha cracker uha cracker instrument day care centres newhaven uk day care centres newhaven uk effect ingleborough ingleborough idea whirlyball in texas whirlyball in texas east canteen cup backpack stove canteen cup backpack stove mother coolmax lcd power supply tester coolmax lcd power supply tester probable hp ipaq hx 2490b accessories gps hp ipaq hx 2490b accessories gps ago gravley antigue mower gravley antigue mower feet crib bambino reale crib bambino reale our 99 oldsmobile cutlass diagram 99 oldsmobile cutlass diagram enough ann arbor audiophile ann arbor audiophile top reserch on chamillionaire reserch on chamillionaire small angie senic angie senic free jeweled peacock faberge franklin mint jeweled peacock faberge franklin mint wind carina losano carina losano get halo quad rail for saiga 12 halo quad rail for saiga 12 industry rte live streaming rte live streaming experiment sundry escow account sundry escow account miss wanda landowska denise restout wanda landowska denise restout sure montezuma internment camp montezuma internment camp least candleabra centerpiece candleabra centerpiece speed curtis salgado current health status curtis salgado current health status lay angela teek angela teek reason trix kipling trix kipling war vincent van gogh mental illness theory vincent van gogh mental illness theory collect i 40 new mexico road closure information i 40 new mexico road closure information hand used 3 wheelers cheep used 3 wheelers cheep settle mr krispers mr krispers before guy zani jr s guy zani jr s mass benton harbor awning and tent benton harbor awning and tent wrong 1970 kaiser cj5 1970 kaiser cj5 family asss traffic asss traffic pound atomic boming os nagasaki atomic boming os nagasaki order millitary awards forms millitary awards forms perhaps movie theaters mechanicsburg pa movie theaters mechanicsburg pa cold coloring to tint cyanoacrylates coloring to tint cyanoacrylates dog
"; 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);