![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 19.12.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mój błąd na serwerze jest pokazywany tak:
Parse error: syntax error, unexpected $end in /var/www/sites/yoyo.pl/s/w/sweetguys/adds/addnews2.php on line 200 gdzie 200 linijka to: " ?> " @down otwieram przez <?php a kod wygląda tak(całęgo nie daje, ponieważ niema to sensu): " CODE <?php session_start(); if(!isset($_SESSION['id'])) { echo "Nie jesteś zalogowany, aby to zrobić kliknij."; exit(0); } $id = $_SESSION['id']; include('a33nts/ajds666.txt'); if($liczbp[$id][1] != 2 && $liczbp[$id][1] != 1) { echo "Nie masz uprawnień, aby korzystać z tej strony! Aby powrócić na stronę główną kliknij."; exit(0); } if($_GET['typ'] == 'art') { $name = $_POST['name']; $first = $_POST['first']; $second = $_POST['second']; if(!isset($_POST['comment'])) { $comment = 'yes'; } else { $comment = $_POST['comment']; } $dlugosc = strlen($first); $dlugosc2 = strlen($second); $dlugosc3 = strlen($name); if($dlugosc > 15 || $dlugosc < 300) { echo $tekst2; exit(0); if($dlugosc3 > 32 || $dlugosc3 < 4) { echo $tekst2; exit(0); } if($dlugosc2 < 300) { echo $tekst2; exit(0); } $data = date("d.m.Y, G:i:s"); include('a33nts/ajds666.txt'); $author = $liczbp[$id][0]; include('n3w5/actual.txt'); $newsname = (int)$actualnews + 1; $dane = ''; $now = fopen('n3w5/actual.txt', 'w'); fputs($now, $dane); fclose($now); $dane = ''; $now = fopen("n3w5/news/$newsname.txt", 'ab'); fputs($now, $dane); fclose($now); $dane = ''; $now = fopen('n3w5/newslog.txt', 'ab'); fputs($now, $dane); fclose($now); if($comment = 'yes') { $now = fopen("n3w5/news/com$newsname.txt", 'w'); fclose($now); } echo 'Artykuł został dodany.'; exit; } if($_GET['typ'] == 'news') { $name = $_POST['name']; $text = $_POST['text']; $lenght = $_POST['lenght']; if(!isset($_POST['comment'])) { $comment = 'yes'; } else { $comment = $_POST['comment']; } $dlugosc = strlen($name); $dlugosc2 = strlen($text); if($dlugosc < 4 || $dlugosc2 < 15) { echo $tekst1; exit(0); } if($dlugosc > 32 || $dlugosc < 4 || $dlugosc2 > 300 || $dlugosc2 < 15) { echo $tekst1; exit(0); } include('a33nts/ajds666.txt'); $author = $liczbp[$id][0]; include('n3w5/actual.txt'); $newsname = (int)$actualnews + 1; $dane = ''; $now = fopen('n3w5/actual.txt', 'w'); fputs($now, $dane); fclose($now); $data = date("d.m.Y, G:i:s"); $dane = ''; $now = fopen('n3w5/newslog.txt', 'ab'); fputs($now, $dane); fclose($now); if($comment = 'yes') { $now = fopen("n3w5/news/com$newsname.txt", 'w'); fclose($now); } echo 'News został dodany.'; exit(0); } echo 'cosci nie tak'; exit(0); ?> // - 200 linika(ta z błędem) Ten post edytował Sados 19.12.2007, 22:26:57 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 12:20 |