session_start(); /* -------------------------------------- questbook.forall by Peter Vámoš ©2003 www.forall.sk -------------------------------------- web : http://www.forall.sk/questbook mail : questbook@forall.sk -------------------------------------- */ ?>
[choď do knihy] |
zadajte správne heslo |
[logout]
"); ?>E-mail : |
Web : |
[pomoc] |
|
prípevok bol vymazaný
"); } } if ($id_pripevok == 0) { array_shift ($pole_book); $stare_riadky = join ('', $pole_book); $subor = fopen ('obsah.txt', 'w'); fputs ($subor, $stare_riadky); fclose ($subor); echo ("prípevok bol vymazaný
"); } } else echo ("zadaj správnu hodnotu
"); } ?> #pridanie premennych z config.php $meno = $admin_meno; $mail = $admin_mail; $web = $admin_web; include 'objekt/objekt.php'; #uprava $obsah function pridaj_tag(&$retazec, $htmltag, $delete = false) { $i = $size = 0; $htmltag = strtolower($htmltag); $nahrada = strtolower($retazec); while (is_integer($startpos1 = strpos($nahrada, "[$htmltag", $i)) && $startpos1 >= 0) { $i = $startpos1 + 1; if (is_integer($startpos2 = strpos($nahrada, "]", $startpos1)) && $startpos2 >= 0) { if (is_integer($endpos = strpos($nahrada, "[/$htmltag]", $startpos2)) && $endpos >= 0 && $endpos > $startpos2) { $length = strlen($htmltag) + 1; if (!$delete) { switch (strtolower($htmltag)) { case "link": $url = trim(substr($retazec, $startpos1 + $length, $startpos2 - $startpos1 - $length)); $retazec = substr_replace($retazec, "", $startpos1, $startpos2 - $startpos1 + 1); $endpos += 37 - ($startpos2 - $startpos1 - strlen($url) - 3); $retazec = substr_replace($retazec, "", $endpos, $length + 2); break; case "mail": $mail = trim(substr($retazec, $startpos1 + $length, $startpos2 - $startpos1 - $length)); $retazec = substr_replace($retazec, "", $startpos1, $startpos2 - $startpos1 + 1); $endpos += 44 - ($startpos2 - $startpos1 - strlen($mail) - 3); $retazec = substr_replace($retazec, "", $endpos, $length + 2); break; } } else { $retazec = substr_replace($retazec, "", $startpos1, $startpos2 - $startpos1 + 1); $endpos -= ($startpos2 - $startpos1 + 1); $retazec = substr_replace($retazec, "", $endpos, $length + 2); } } } $nahrada = strtolower($retazec); } } if (isset($mail)){ $mail = str_replace ("\n","" . "Príspevok od : " . (@$meno) . " | " . "
" . "E-mail : " . (@$mail) . "" . " | " . "
" . "Web : " . (@$web) . "" . " | " . "
" . "Dátum : " . date("d.m.Y H:i") . " | " . "
"
. (@$obsah) .
" | " .
"
");
if (isset($chyba[1])){
echo ("$chyba[1] "); } if (isset($chyba[2])){ echo ("$chyba[2] "); } if (isset($chyba[3])){ echo ("$chyba[3] "); } echo (" |
"); echo ("- späť"); echo (" |
");
echo ("Pomoc: "); echo ("[link http://www.nieco.sk]odkaz[/link] "); echo (" - zobrazí ako odkaz "); echo ("[mail nieco@nieco.sk]pošta[/mail] "); echo (" - zobrazí ako pošta "); echo ("[img]http://nieco.sk/obrazok.jpg[/img] "); echo (" |
Číslo príspevku : $x
$obsah[$i]"); } } echo ("
"); if (($riadky - $riadok) > $pz){ echo ("<< predchádzajúcich " . ($pz) . ""); } echo (" | "); if ($riadok > 0){ echo ("nasledujúcich " . ($pz) . " >>"); } echo (" |
Číslo príspevku : $x
$obsah[$i]"); } } echo ("
"); echo ("Počet príspevkov: $riadky | "); $od = $riadky - @$riadok - $pz + 1; $po = $riadky - @$riadok ; echo (""); if ($po < $pz){ echo ("Zobrazené: 1 - $po"); } else { echo ("Zobrazené: $od - $po"); } echo (" |
"); echo ("Choď na začiatok | "); echo (""); echo ("Choď na koniec"); echo (" |