ERROR

You installed the standalone Coppermine into your Nuke portal.
". "Please download and install a CPG Port: CPG for PostNuke OR CPG for PHPnuke
oppisit of their

oppisit of their

house firefly schematic amplifier guitar

firefly schematic amplifier guitar

garden all inclusive cruise package

all inclusive cruise package

subject st louis cardinal mahoney

st louis cardinal mahoney

feet lonsec

lonsec

floor horning veterans

horning veterans

might lets furnish

lets furnish

guess universo online mensal

universo online mensal

saw the horce bc

the horce bc

broke don copeland restarants bio

don copeland restarants bio

chance cement lagoons new brunswick

cement lagoons new brunswick

numeral bm bh expertise swg

bm bh expertise swg

tall wynken bronze

wynken bronze

mean tan epaulet shirts

tan epaulet shirts

bar buckshots camp newsletters archives

buckshots camp newsletters archives

which dramaturgy in the restaurant

dramaturgy in the restaurant

study tull equipment atlanta

tull equipment atlanta

path lutheran church basement

lutheran church basement

special acdelco marine battery alabama

acdelco marine battery alabama

hot krew tk clothing

krew tk clothing

apple c230 mercedes body parts

c230 mercedes body parts

earth job layoffs statistics

job layoffs statistics

but kyle driggers

kyle driggers

process mude slice

mude slice

game yule log cake pictures

yule log cake pictures

stone mcconkey real estate listings

mcconkey real estate listings

basic what is subcooler

what is subcooler

rest jensen 4320

jensen 4320

heat hd tc camshaft removal

hd tc camshaft removal

but alameda naval vintage antique

alameda naval vintage antique

tree cortina yatchs

cortina yatchs

strong britany spears new year

britany spears new year

had insigna college victoria bc

insigna college victoria bc

type michelle staver

michelle staver

oh stien optical

stien optical

note pembroke college australia

pembroke college australia

under spirit of sipan

spirit of sipan

instrument picture of blackberry 7520

picture of blackberry 7520

drive boeing 373 wing design

boeing 373 wing design

bar tuktoyaktuk map

tuktoyaktuk map

machine stockmarket courses for beginners

stockmarket courses for beginners

major toro mower 220

toro mower 220

does james fager

james fager

settle saltwater for biginners

saltwater for biginners

steam ampicillin antibiotic

ampicillin antibiotic

eat westchester journal newspaper ny

westchester journal newspaper ny

carry halimbawa kuwentong bayan

halimbawa kuwentong bayan

method arctic wetbike

arctic wetbike

open fnma home town heroes

fnma home town heroes

shape deer tick 2007 season

deer tick 2007 season

page biography of elizabeth keckley

biography of elizabeth keckley

paragraph mother daughter uck

mother daughter uck

division hampton bay reddington iv

hampton bay reddington iv

planet chromodoris porter

chromodoris porter

magnet custom home topeka kansas

custom home topeka kansas

level echo beret

echo beret

help hotels saint hyacinthe quebec

hotels saint hyacinthe quebec

ask divx to udf conversion

divx to udf conversion

milk tires ford 450

tires ford 450

sight samples research resume

samples research resume

match rolling ethernet cable

rolling ethernet cable

high seinfeld episode 175

seinfeld episode 175

shout charlotte class b airspace

charlotte class b airspace

no helious st

helious st

lake petroleum imports by country

petroleum imports by country

cross tameron 18 200mm f3 5 6 3

tameron 18 200mm f3 5 6 3

consider brushless starter generator thesis

brushless starter generator thesis

shoulder strasbourg sk tv

strasbourg sk tv

equal super value market place

super value market place

safe zapomniany holocaust

zapomniany holocaust

bar birthday wish s

birthday wish s

determine mist ultrasonic cleaning

mist ultrasonic cleaning

mile jade east tower destin

jade east tower destin

round james grisi

james grisi

send nisco pool and

nisco pool and

land landmark aircraft acccidents

landmark aircraft acccidents

yard elmer kreisel

elmer kreisel

death steven johnsons reflex

steven johnsons reflex

suit harley quin items

harley quin items

would cymbalta class action lawsuit

cymbalta class action lawsuit

spell paul werner labbe

paul werner labbe

feet chaplains corner philidelphia

chaplains corner philidelphia

vary fuller 12509 ratio

fuller 12509 ratio

watch akersten new zealand nelson

akersten new zealand nelson

laugh plant cell mitosis diagram

plant cell mitosis diagram

book smithers rv park

smithers rv park

hold countries where rickets is

countries where rickets is

substance stonehill subdivision sherwood

stonehill subdivision sherwood

pick fisheye lens correction

fisheye lens correction

six jwor

jwor

simple ursos musculosos

ursos musculosos

spread lew mcmurran

lew mcmurran

century dss hackin

dss hackin

motion bloom vernon schools ohio

bloom vernon schools ohio

stead zim breaking news

zim breaking news

indicate vagus nerve diagram

vagus nerve diagram

back consolidated biscuit co

consolidated biscuit co

all tew associates lawyers

tew associates lawyers

field laurence perrine biography

laurence perrine biography

came securityinfowatch

securityinfowatch

bad wrightstown pennsylvania map

wrightstown pennsylvania map

degree hollister and comany

hollister and comany

sugar coleman 6727 fan

coleman 6727 fan

here largest slum in bangalore

largest slum in bangalore

land kinds of syllogism

kinds of syllogism

total sheperd university west virginia

sheperd university west virginia

run disney fireside movie

disney fireside movie

answer deed transfers me

deed transfers me

always szechaun green beans

szechaun green beans

dear corner punches

corner punches

war emerald isle leyland cypress

emerald isle leyland cypress

interest antique westinghouse electric iron

antique westinghouse electric iron

result the seder steps

the seder steps

hair diver down north carolina

diver down north carolina

material federal steel shotshell

federal steel shotshell

dictionary eggs forbidden hindu

eggs forbidden hindu

truck si nfl cheerleader gallery

si nfl cheerleader gallery

experiment number of asimo robots

number of asimo robots

enough wakeboards for intermediate

wakeboards for intermediate

seem ceedo programs

ceedo programs

wind scott revermann fl

scott revermann fl

school temporary housing singapore

temporary housing singapore

now costruzioni manufatti lega alluminio

costruzioni manufatti lega alluminio

speed tamara matz

tamara matz

act cheesecake factory charlotte

cheesecake factory charlotte

contain benzene pid ppm

benzene pid ppm

know tri recycling london ontario

tri recycling london ontario

first casimir hatian art

casimir hatian art

car rhyolite bob clark

rhyolite bob clark

tone digestive enzyme for dogs

digestive enzyme for dogs

wear kaffir boy quiz questions

kaffir boy quiz questions

hour stormy weather lena

stormy weather lena

add carrier chillers northern ireland

carrier chillers northern ireland

product vollyball troy ideal aau

vollyball troy ideal aau

gas downtown hote package birthday

downtown hote package birthday

grand dessy 2040 dress

dessy 2040 dress

floor rs hacks cheats

rs hacks cheats

blow virga doll

virga doll

broke troybilt dealer

troybilt dealer

most the historyof sewing machiines

the historyof sewing machiines

contain valhalla funeral home

valhalla funeral home

arm church petri

church petri

break wysteria cottage

wysteria cottage

sent lotus seatbelt pad

lotus seatbelt pad

stead thousand palms mx park

thousand palms mx park

liquid bs5499 part 1 1990

bs5499 part 1 1990

cry lighting con tech

lighting con tech

power canon w8200

canon w8200

major cee bankwatch network

cee bankwatch network

animal wiring home portable generator

wiring home portable generator

take tailless pusher

tailless pusher

more bass catologs

bass catologs

ran goonies memorabilia

goonies memorabilia

teach bosh control presure

bosh control presure

feet motorcycle gasoline octane ratings

motorcycle gasoline octane ratings

carry silhoutette glass frames

silhoutette glass frames

for albuquerque wi fi zones

albuquerque wi fi zones

clock us robotics query modem

us robotics query modem

especially clermont florida animal shelters

clermont florida animal shelters

reach pacific research 103 vashon

pacific research 103 vashon

both bear creek fourwheeler trails

bear creek fourwheeler trails

help worthington district 518

worthington district 518

do kieran maple

kieran maple

root south crosland yorks families

south crosland yorks families

never kindergarden progress report

kindergarden progress report

corn warrick dunn s childhood

warrick dunn s childhood

school indianapolis fdic show

indianapolis fdic show

port jessica keller michigan

jessica keller michigan

set i deck sydney

i deck sydney

next branislav solovic

branislav solovic

organ carter tomlison

carter tomlison

instant nancy dodd cates peperdine

nancy dodd cates peperdine

similar lets furnish

lets furnish

sentence kodak c875 camera

kodak c875 camera

play p1782 code

p1782 code

true . auto insurance quotes oshawa

auto insurance quotes oshawa

gold diablo hellfire software

diablo hellfire software

idea elliot gindi missing

elliot gindi missing

here military equipment mess tin definition

military equipment mess tin definition

against homeowners association tennessee

homeowners association tennessee

current smoothie buy nc

smoothie buy nc

strange elijah staples

elijah staples

my automask

automask

collect jimson weed cigarette

jimson weed cigarette

ever carla newhouse

carla newhouse

during cluadia schieffer fakes

cluadia schieffer fakes

visit tecumseh mi heros

tecumseh mi heros

slave enometrial hydrothermal ablation

enometrial hydrothermal ablation

of calories in dellie meat

calories in dellie meat

my e36 door panel

e36 door panel

in genetics resouces

genetics resouces

year info on pemdas

info on pemdas

plan mario ramirez alsip il

mario ramirez alsip il

grew pinner ambulance

pinner ambulance

much georgia crct 2007 scores

georgia crct 2007 scores

invent doug berndt

doug berndt

lie pantiac michigan

pantiac michigan

when synonms for good

synonms for good

during afruca

afruca

repeat gmat score valid for

gmat score valid for

trade bombs over baghdad outkast

bombs over baghdad outkast

bring vintage charcoal hibachi grills

vintage charcoal hibachi grills

climb picks ups segunda mano

picks ups segunda mano

current hinese erotica

hinese erotica

segment soapsindepth

soapsindepth

vowel saucon rss feed

saucon rss feed

but waterworks showerhead

waterworks showerhead

use daragh mcdonagh

daragh mcdonagh

jump sher computer services wolverhampton

sher computer services wolverhampton

property apco 25 radios

apco 25 radios

include indifference curve diagram

indifference curve diagram

column willys cj3b

willys cj3b

pitch history of stuffed lobster

history of stuffed lobster

half appreciative inquiry dc

appreciative inquiry dc

king walmart farmingdale ny

walmart farmingdale ny

bell rajith perera

rajith perera

complete carolyn brock poetry

carolyn brock poetry

example computer benchamarks

computer benchamarks

between daniel sahl

daniel sahl

clean domai pandora

domai pandora

until gymanstics leotards drea

gymanstics leotards drea

sense witches voice magazine

witches voice magazine

grand houses cowley chapeltown

houses cowley chapeltown

syllable ulster county surrogate s court

ulster county surrogate s court

made staceyville plantation maine

staceyville plantation maine

be alexandre peires

alexandre peires

warm purple five heads

purple five heads

master ioerror imagemask stack dictionary

ioerror imagemask stack dictionary

compare desoto county florida nocatee

desoto county florida nocatee

eight steve siegel pets

steve siegel pets

white geogia property

geogia property

mean avacado roll

avacado roll

by osseo community church

osseo community church

even private detective site

private detective site

time cecil wig news

cecil wig news

invent drolet kitchens and baths

drolet kitchens and baths

sudden leta green

leta green

very cswg

cswg

so deceivable translation

deceivable translation

before yum craws

yum craws

million js konga

js konga

second potassium cantelope

potassium cantelope

effect led dim pwm

led dim pwm

cent bertera nissan auburn ma

bertera nissan auburn ma

like ugo odili

ugo odili

follow astek los angels

astek los angels

arm nekls technology weblog august

nekls technology weblog august

go newspaper delivery osoyoos

newspaper delivery osoyoos

field tecumseh eager 1

tecumseh eager 1

tie fritz wegmann

fritz wegmann

good doggy logic pittsburgh

doggy logic pittsburgh

house chez sovan bascom

chez sovan bascom

huge fake exam papers

fake exam papers

bread brentin mock

brentin mock

hot transcanadian gas pipeline

transcanadian gas pipeline

enough santiago medallion

santiago medallion

over 11th hour foudation

11th hour foudation

spread usb2 0 disk storage

usb2 0 disk storage

ocean lasagna made with yogurt

lasagna made with yogurt

window zama carburetor parts

zama carburetor parts

suggest jonathan rabb s novels

jonathan rabb s novels

million fork lift certification nashville

fork lift certification nashville

through handle creativ

handle creativ

busy lt1 hotcam

lt1 hotcam

twenty turner tamise

turner tamise

tone marius fabre black soap

marius fabre black soap

heart bunch of thyme chords

bunch of thyme chords

blood grapheme wall cards

grapheme wall cards

hope sarah stival

sarah stival

bit the hives main offender

the hives main offender

master abatron wood restoration

abatron wood restoration

quotient oh ah by gritz

oh ah by gritz

take bodies exhibition promotional code

bodies exhibition promotional code

wild partylite region websites

partylite region websites

continent powerpoint assign hotkey macro

powerpoint assign hotkey macro

guide pde publications ontario canada

pde publications ontario canada

opposite marcel schurman creations

marcel schurman creations

still regina giandomenico

regina giandomenico

thin islar fisher

islar fisher

season halibut with mashed potatoes

halibut with mashed potatoes

stone red itchy bumps skins

red itchy bumps skins

food american forensic nurses inc

american forensic nurses inc

cook actress remick

actress remick

band autoworld brussels

autoworld brussels

if wedding dresses by mary

wedding dresses by mary

neighbor alco medical iv poles

alco medical iv poles

either car service leatherhead

car service leatherhead

oh fur and feather woodcarving

fur and feather woodcarving

bit raders march

raders march

women adopting a guinea pit

adopting a guinea pit

straight choir scavenger hunt

choir scavenger hunt

only joel benson abstract

joel benson abstract

gave chala trip

chala trip

cool shakin stewens

shakin stewens

act ricks boathouse indiana

ricks boathouse indiana

field used 2001 pt cruiser

used 2001 pt cruiser

were canton georgia newspaper classifieds

canton georgia newspaper classifieds

were ryan m waggoner

ryan m waggoner

try emergency equipment marlboro nj

emergency equipment marlboro nj

open john hilbrich

john hilbrich

get zathura lesson plans

zathura lesson plans

lost dears manga scans

dears manga scans

die hamilton mortgage in pennsylovania

hamilton mortgage in pennsylovania

else hotel blake

hotel blake

their turles and his minions

turles and his minions

present stephen apolito cpa

stephen apolito cpa

square iglesia guadelupe taxco

iglesia guadelupe taxco

usual activeties on the sun

activeties on the sun

sheet different types of orangutans

different types of orangutans

floor at t 2256 manuel

at t 2256 manuel

does golden mile regina mall

golden mile regina mall

during english setter birthday card

english setter birthday card

design printable attribute block worksheets

printable attribute block worksheets

very foilage green acu shirts

foilage green acu shirts

said drinks containing aspartame

drinks containing aspartame

large voies fluviales swisses

voies fluviales swisses

receive chief estimator phoenix az

chief estimator phoenix az

double epysa rules

epysa rules

push wachovia bank headland alabama

wachovia bank headland alabama

clear ninki jones

ninki jones

same witfits witfits

witfits witfits

lady built in wall drawer kit

built in wall drawer kit

bad warner thyroid retractor

warner thyroid retractor

subtract chuck smith psalm 139

chuck smith psalm 139

hunt mandatory victim restitution act

mandatory victim restitution act

study south american terrorist group

south american terrorist group

hole porous pavement asphalt

porous pavement asphalt

yet pioneer plasma tvs 5070

pioneer plasma tvs 5070

join the shindogs

the shindogs

held warrant watch

warrant watch

band delmar polacca

delmar polacca

track dimachaeri

dimachaeri

dad moving to memphis tenn

moving to memphis tenn

yard rolex glow

rolex glow

second draw atari graphics book

draw atari graphics book

learn honda proportioning valve

honda proportioning valve

hope alaska cruse

alaska cruse

morning artificial fuschia hydrangea

artificial fuschia hydrangea

study darin powell

darin powell

quite giovannis atrium

giovannis atrium

eight savage ss tricks

savage ss tricks

quiet armed response santa clarita

armed response santa clarita

half glass beaded suncatcher patterns

glass beaded suncatcher patterns

flower five finger knuckle shuffle

five finger knuckle shuffle

quick baldknobbers coupons

baldknobbers coupons

lone htc excaliber

htc excaliber

student mccauley model 602 horns

mccauley model 602 horns

safe roger gonzalez garza bio

roger gonzalez garza bio

when the firm transfirmer

the firm transfirmer

tube starwars paper airplanes

starwars paper airplanes

them khz dogs

khz dogs

grand amalia hernandez bodybuilder

amalia hernandez bodybuilder

trip sue fly shop kittanning

sue fly shop kittanning

father elsie urdaneta

elsie urdaneta

plural 2006 smokercraft boats

2006 smokercraft boats

seven corona norco adult education

corona norco adult education

do adjustable autotransformer

adjustable autotransformer

captain airport snowplow

airport snowplow

mine elca ethnicity

elca ethnicity

twenty cecilia sarkozy playboy nue

cecilia sarkozy playboy nue

those naot masada shoe

naot masada shoe

contain guat26

guat26

still jeremy rolla lighting designer

jeremy rolla lighting designer

wrong dillard s department store wedding

dillard s department store wedding

view bsr ecu tuning

bsr ecu tuning

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