'no' or $_SESSION['usr'] <> '') { include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/database.php"); global $Toernooi; $Toernooi = ""; $HeaderText = "Pijnackerse Bridge Cursiefjes: PBC-tjes"; include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/pageheader.php"); //include_once($_SERVER['DOCUMENT_ROOT'] . "/Toernooi/menu_comp.php"); } else {} // query($sql); // $db->query processes the query in the string $sql, using the database // connection we built before in $db. // $res will be a result resource object or an error object if (PEAR::isError($res)) { // Check the result object in case there die($res->getMessage()); // was an error, and handle it here. } $idx=0; while ($row = $res->fetchRow(MDB2_FETCHMODE_OBJECT)) { // Fetch a row from the result resource as associate array $res. if (PEAR::isError($row)) { die($row->getMessage()); // fetchRow can return an error object Like most PEAR::DB methods. } /* for al rows fill data */ if($row->toernooi <> ""){ $BlogArray[]= array( $row->blognr,$row->toernooi,$row->datum,$row->lidnummer,$row->kop, $row->pic1,$row->pic2,$row->pic3, $row->tekst,$row->vervolg,$row->naam, $row->oti1,$row->oti2,$row->oti3 ); } } // echo "
"; echo "
"; // CONTAINER // echo "
"; // echo "
"; echo "
"; // CONTAINER // // Alle blog's // foreach($BlogArray as $myText){ echo "
"; echo " "; $dt=$myText[2]; $textspace = $myText[8]; $tl = intval(strlen($textspace)/5); if ($tl<22) {$textspace.= str_repeat('   ', 22-$tl);} // aanvullen tot 25 tekens? //
Is this what you meant?
echo "
$myText[4]
"; echo "

(#$myText[0])
 "; // zoek op aantal reacties $reacties = substr_count($textspace, '
'); if( $reacties == 0 ) {$reactietxt=""; } else { $ds = strrpos($textspace, '
'); $de = strpos($textspace, '
',$ds); $lt = substr($textspace,$ds+32,$de - $ds - 32); if( $reacties < 2 ) { $reactietxt = "(1 reactie $lt)"; } else { $reactietxt = "(". $reacties . " reacties, laatste $lt)"; } } echo "
$dt door $myText[10] $reactietxt
"; echo "
"; // // plaatjes en lees meer oog bij bijzonder spel // $readmorepos = 300; // weblog's met minder dan dit aantal tekens krijgen geen readmore knop. if($myText[5]<>""){ $list = array(); $list = getimagesize("Toernooi/images/$myText[5]"); $readmorepos = max(300, 300 / 100 * $list[1]/$list[0]*175); // hoogte * org. breedte / breedte if ($list[0] > 400 and $list[1] > 400) { echo "
$myText[11]

$myText[11]
"; } else { echo "
$myText[11]
"; } } if($myText[6]<>""){ echo "
$myText[12]

$myText[12]
"; } if($myText[7]<>""){ echo "
$myText[13]

$myText[13]
"; } // Zelf gemaakte readmore(s) in weblog if (stripos($textspace,"#LmKnop") !== false) { $count = 0; $textspaceend = ""; for ($i = 1; $i <= 9; $i++){ $lmposbeg = stripos($textspace,"#LmKnop$i"); if ($lmposbeg !== false) { $lmposend = stripos(substr($textspace,$lmposbeg+1),"#"); if ($lmposend == 0 or $lmposend > 50) { $lmposend = 7;} $lmknptext = substr($textspace,$lmposbeg+8,$lmposend-7); if ($lmknptext == "") {$lmknptext = "Lees meer";} $lmnum = $myText[0] . "-" . $i; $lmknp = "    "; $lmbeg = "
"; // die("lm:$lmposbeg $lmposend $lmknptext"); // $textspace = str_ireplace("#LmTerug$i#", $lmtrg, $textspace,$count); $lmend = "
"; $lmtrgbeg = stripos($textspace,"#LmTerug$i"); if ($lmtrgbeg !== false) { // Wel een Terug-knop $lmtrgend = stripos(substr($textspace,$lmtrgbeg+1),"#"); if ($lmtrgend == 0 or $lmtrgend > 15) { $lmtrgend = 7;} $lmtrgtext = substr($textspace,$lmtrgbeg+9,$lmtrgend-8); if ($lmtrgtext == "") {$lmtrgtext = "Terug";} $lmtrg = "  "; $textspace = str_ireplace(substr($textspace,$lmtrgbeg,$lmtrgend+2), $lmtrg, $textspace,$count); } else { // Geen terug-knop $lmtrgtext = "Terug"; $lmtrg = "  "; // Terug-knop aan het einde of voor volgende lm-knop $iplus = $i +1; $textspace = str_ireplace("#LmKnop$iplus", $lmtrg."#LmKnop$iplus", $textspace,$count); if ($count == 0) { $lmend = $lmtrg . $lmend;}; } $textspace = str_ireplace("#LmEinde$i#", $lmend, $textspace,$count); if ($count == 0){ // geen einde lees-meer // Geen #lmEindex# aangegeven // $lmerr = "#LmEinde$i# ontbreekt na #LmKnop$i$lmtext#"; // $textspace = str_ireplace(substr($textspace,$lmposbeg,$lmposend+2), $lmknp.$lmerr, $textspace); $textspace = str_ireplace("#LmBegin$i#", $lmbeg, $textspace,$count); if ($count == 0) {$lmknp = $lmknp . $lmbeg;} $textspace = str_ireplace(substr($textspace,$lmposbeg,$lmposend+2), $lmknp, $textspace,$count) ; $textspaceend = $lmend . $textspaceend; } else { // Wel #lmEindex# aangegeven $textspace = str_ireplace("#LmBegin$i#", $lmbeg, $textspace,$count); if ($count == 0) {$lmknp = $lmknp . $lmbeg;} $textspace = str_ireplace(substr($textspace,$lmposbeg,$lmposend+2), $lmknp, $textspace,$count); } } else { break;} } echo "
$textspace$textspaceend
"; // Automatische readmore in weblog } elseif (strlen($textspace) > ($readmorepos + 195) and stripos($textspace,"toggle") === false ) { $textspace = str_ireplace("#LmNiet#", "", $textspace,$count); if ($count > 0) { echo "
$textspace
"; //break; } else { $dotpos = strpos(substr($textspace,$readmorepos),".0){$readmorepos += $dotpos+1;} if ($readmorepos == 300){ $dotpos = strpos(substr($textspace,$readmorepos),". "); if ($dotpos>0){$readmorepos += $dotpos+1;} } echo "
" . $height . substr($textspace,0,$readmorepos); echo " "; echo "
"; echo "
"; echo substr($textspace,$readmorepos); echo " "; echo "
"; } } else { echo "
$textspace
"; } if ($myText[0] == $blog and $_SESSION['usr'] <> "") { echo "
"; setlocale(LC_TIME, 'NL_nl'); $tod = date("Y-m-d H:i"); $todloc = date("Y-F-d G:i"); $usr = $_SESSION["usr"]; $unm = $_SESSION["unm"]; // echo "> "; echo "
$tod door $unm "; echo ""; echo "\n"; echo ""; echo "
Indien u kaartsymbolen wilt gebruiken toets dan #S#, #H#, #R# of #K# voor , , of ."; echo "
De webmaster heeft de bevoegdheid om uw bericht te veranderen of evt. te verwijderen!

"; echo "

"; } echo "
"; // blogfloat // echo ""; } // Volgende en vorige weblog echo "
"; echo " "; echo "
Volgende en vorige weblog's
"; echo "
Om de snelheid van deze website te verhogen worden slechts 25 weblog's per scherm weergegeven.
"; echo "

"; $nextblog = $vblog + 25; $prevblog = $vblog - 25; if ($prevblog < 0){ $prevblog = 0; } echo "        "; echo "        "; echo "
"; echo "
"; // blogcontainer echo "
"; // flexcontainer ?>

Korte, grappige en informatieve verhalen ofwel Pijnackerse Bridge Cursiefjes.