"; print ""; print ""; print ""; print ""; }else{ print "
"; $count = $row['count']; $picture = "album/user/".$row['person_id']."/fullsize/".$row['picture'].""; $picsize=getimagesize($picture); $max_w = '500'; $max_h = '500'; $prop = (($max_h / $max_w)*100); $w = $picsize[0]; $h = $picsize[1]; $new_prop = (($h / $w)*100); if (($h >= $max_h) || ($w >= $max_w)) { if ($new_prop <= $prop) { $diff_w = ($w - $max_w); $w_prop = (($diff_w / $w)*100); $diff_h = (($h * $w_prop)/100); $new_h = ($h - $diff_h); print ""; print ""; print ""; print ""; } else { $diff_h = ($h - $max_h); $h_prop = (($diff_h / $h)*100); $diff_w = (($w * $h_prop)/100); $new_w = ($w - $diff_w); print ""; print ""; print ""; print ""; } }else{ print ""; print ""; print ""; print ""; } } print "
  "; while($row = mysqli_fetch_array($result)) { print "
".$row['name']."
".$row['description']."
Antall visninger:
".$row['count']."
".$row['description']."
Antall visninger:
".$row['count']."
".$row['description']."
Antall visninger:
".$row['count']."
"; $addcount = ($count + 1); $sql = "UPDATE tblPicture SET count = $addcount WHERE ID = ".$_GET['id']." LIMIT 1"; $result = mysqli_query($db_connect_id,$sql); if ($_SESSION['login'] != '1') { $_SESSION['failuremessage'] = "Du er ikke logget inn"; }else{ $_SESSION['failuremessage'] = ''; } ?>
Skriv din kommentar

"; } $teller = '1'; while($row = mysqli_fetch_array($query_result)) { $sql_user = "SELECT * FROM 2006_person WHERE ID = ".$row['person_id']." LIMIT 1"; $result_user = mysqli_query($sql_user); while($row_user = mysqli_fetch_array($result_user)) { $person_id = $row_user['ID']; } print ""; $count = ($count - 1); } print "
"; print ""; print ""; print "
 Bli den første til å kommentere dette bildet
"; print ""; print ""; print ""; print ""; print "
 #". $count."  Skrevet av ".$row['nickname']." den ".$row['date']." kl. ".$row['time']."
".$row['comment']."
 


"; ?>

  '; include('login/loginscript.php'); $login = $_SESSION['login'] ?? ''; if ($login != "1") { include('login/loginform.php'); }else{ print '

'; //se etter nye i gjestebok $sql = "SELECT COUNT(ID) FROM 2006_mailbox WHERE toPersonID = '".$_SESSION['userID']."' AND new = '1' AND active = '1' AND private = '0'"; $countresult = mysqli_query($db_connect_id,$sql); $count = mysqli_result($countresult,0,0); if ($count != 0) { if ($count == '1') { $new ='ny'; }else{ $new ='nye'; } print ''.$count .' '.$new.' i gjestebok

'; } //se etter nye i mailboks $sql = "SELECT COUNT(ID) FROM 2006_mailbox WHERE toPersonID = '".$_SESSION['userID']."' AND new = '1' AND active = '1' AND private = '1'"; $countresult = mysqli_query($db_connect_id,$sql); $count = mysqli_result($countresult,0,0); if ($count != 0) { if ($count == '1') { $new ='nytt'; }else{ $new ='nye'; } print ''.$count .' '.$new.' førjulsbrev

'; } print "".$_SESSION['name']."
"; print 'Min side
'; print 'Gjesteboka
'; print 'Endre opplysninger

'; $sql = "SELECT lagnavn FROM 2006_lag WHERE kontakt_id = '".$_SESSION['userID']."' LIMIT 1;"; if ( !($result = mysqli_query($db_connect_id,$sql)) ){ message_die(GENERAL_ERROR, 'Noe galt skjedde: 151465', '', __LINE__, __FILE__, $sql); }else{ if ($row = mysqli_fetch_array($result)) { $_SESSION['lagnavn'] = $row['lagnavn']; } if (($_SESSION['lagnavn'] != '') && ($_SESSION['rolle2'] == 'KONTAKT')) { print ''.$_SESSION['lagnavn'].'
'; print 'Vår side
'; print 'Endre opplysninger
'; print 'Våre spillere

'; if ($_SESSION['lagtype'] == 'JENTE') { $gjeld = '400'; }else{ $gjeld = '500'; } if ($_SESSION['betalt'] == 'FALSE') { print 'Gjeld kr '.$gjeld.',-
'; }else{ print 'Gjeld kr 0,-
'; } }else{ print "Meld på et lag
"; } } print "

Logg ut
"; } print '
'; ?>

' //include('poll/poll.php'); ?>

Førjulsturneringa starter om
-6935 dager!



Mest populære bilder!
'; while($row = mysqli_fetch_array($query_result)) { print "".substr($row['name'],0,20)." (".$row['count'].")
"; } ?>


Stian Godø / stiang.net


Kasper L Mannsverk