"; $datei = file("news_magz.txt"); $anzahl = sizeof($datei); if($anzahl == 0) echo "No new magazine appearances at this time!"; $pages = ceil($anzahl / $pro); if($show == "") $show = 1; $start = $show * $pro - $pro; $end = $start + $pro; if($end >= $anzahl) $end = $anzahl; for ($i = $start; $i < $end ; $i++) { $eintraege = explode ("|@|", $datei[$i]); echo " "; } /* Edit & Delete momentan ausecho " */ echo "
"; if ($eintraege[3] == "Vogue Paris December 2011 - January 2012") echo ('
'); if ($eintraege[3] == "Celebrity Sleuth December 2010 - February 2011, Issue #65") echo ('
'); if ($eintraege[3] == "French Elle 18 December 2009") echo ('
'); if ($eintraege[3] == "Turkish Harper’s Bazaar December 2008") echo ('
'); if ($eintraege[3] == "French Paradis No. 3, Autumn-Winter 2007/08") echo ('
'); echo ""; echo "
\n"; if($i < $anzahl-1) echo "\n"; } echo "

\n"; /* Pages */ if($pages > 1) { echo "
Page:\n"; for($x = 1; $x <= $pages; $x++) { if($x == $show) echo " $x  "; else echo "$x "; } echo "
"; } } //////////////////////////////////////////////////////////////////////////////////////////////////// /* Anschauen */ //////////////////////////////////////////////////////////////////////////////////////////////////// if($_GET['page'] == "view_it") { $datei = file("news_magz.txt"); $eintraege = explode ("|@|", $datei[$_GET['nr']]); echo "
\n"; if($eintraege[2] == "") echo " Posted by $eintraege[1] on $eintraege[0], "; if($comment) { $comments = file("latest/news_magz/comments/$eintraege[5].dat"); echo " ".count($comments)." "; // ".count($comments); if(count($comments) == 1) echo " Comment"; else echo " Comments"; echo ""; } echo "

$eintraege[4]

"; if ($eintraege[6] == true) echo "preview "; else echo ""; if ($eintraege[7] == true) echo "preview "; else echo ""; if ($eintraege[8] == true) echo "preview"; else echo ""; echo "
"; /* ab hier kommen die Comments ************************************************************** */ echo "


\n"; $datei = file("latest/news_magz/comments/".$_GET['com'].".dat"); $anzahl = sizeof($datei); if($anzahl == 0) echo "No comments
Add your comment
"; for ($i = 0; $i < $anzahl ; $i++) { $eintraege = explode ("|@|", $datei[$i]); $eintraege = str_replace('\"', '"', $eintraege); $eintraege = str_replace("\'", "'", $eintraege); $eintr_nr=$i +1; echo " $eintr_nr. $eintraege[1]
$eintraege[0]

$eintraege[2]

\n"; } echo "

"; ?>



BB-Code: Bold Italic Underline Link

\n"; if ($captcha) { echo ""; echo "
Code:


"; } $date = date("d.m.Y - H:i"); echo "
\n"; if($_POST) { if($_POST['code'] != $_SESSION['zufallszahl'] && $captcha) { ?>

Error:
The string you entered for the image verification did not match what was displayed!
location.href=\"news_magz.php?page=view_it&show=$show&nr=$nr&com=".$_POST['com']."\";"; } } unset($zufallszahl); echo " \n"; if($i < $anzahl-1) echo ""; } //////////////////////////////////////////////////////////////////////////////////////////////////// /* Edit ####################################################### */ if($_GET['page'] == "edit") { $datei = file("news_magz.txt"); $eintraege = explode ("|@|", $datei[$_GET['nr']]); function umwandeln ($text) { $text = str_replace("
","\n",$text); $text = str_replace("
","\n",$text); $text = str_replace("","[b]",$text); $text = str_replace("","[/b]",$text); $text = str_replace("","[i]",$text); $text = str_replace("","[/i]",$text); $text = str_replace("","[u]",$text); $text = str_replace("","[/u]",$text); $text = str_replace('\"', '"', $text); $text = str_replace("\'", "'", $text); $text = str_replace("", "[urlm]", $text); $text = str_replace("", "[/url]", $text); $text = strip_tags($text); $text = str_replace("&","&",$text); $text = preg_replace("!&#([a_z0-9]*?);!","&#$1;",$text); $text = trim($text); return $text; } echo "
\n"; echo "
BB-Code: Bold Italic Underline Link


  | Back
\n"; if($_POST) { if($_POST['password'] == $password) { $text = $_POST['text']; $text = str_replace('\"', '"', $text); $text = str_replace("\'", "'", $text); replace(); $datei = file("news_magz.txt"); $in = $_POST['date']."|@|".$_POST['name']."|@|".$_POST['mail']."|@|".$_POST['title']."|@|".$text."|@|".$_POST['comments']."|@|".$_POST['cover']."|@|".$_POST['preview1']."|@|".$_POST['preview2']."|@|\n"; for($x = 0; $x < count($datei); $x++) { if($x == $nr) $input .= $in; else $input .= $datei[$x]; } $datei = "news_magz.txt"; $fp = fopen($datei, "w+"); fputs($fp, $input); fclose($fp); echo ""; } else echo ""; } } //////////////////////////////////////////////////////////////////////////////////////////////////// /* Delete ####################################################### */ if($_GET['page'] == "delete") { $datei = file("news_magz.txt"); $eintraege = explode ("|@|", $datei[$_GET['nr']]); echo "

Delete the \"$eintraege[3]\" from $eintraege[0]!

Password:   

  | Back
\n"; if($_POST) { if($_POST['password'] == $password) { $datei = file("news_magz.txt"); for($x = 0; $x < count($datei); $x++) { if($x == $nr) $input .= ""; else $input .= $datei[$x]; } $datei = "news_magz.txt"; $fp = fopen($datei, "w+"); fputs($fp, $input); fclose($fp); echo ""; } else echo ""; } } //////////////////////////////////////////////////////////////////////////////////////////////////// /* Neue Zeitrchriften hinzufuegen ####################################################### */ if($_GET['page'] == "addnews") { $date = date("d.m.Y - H:i"); echo "
\n"; echo '
BB-Code: Bold Italic Underline Link



  | Back
'; if($_POST) { if($_POST['password'] == $password) { $text = $_POST['text']; replace(); $datei = "news_magz.txt"; $comments = time(); $com = fopen("./latest/news_magz/comments/$comments.dat", "w+"); fclose($com); $input = $date."|@|".$_POST['name']."|@|".$_POST['mail']."|@|".$_POST['title']."|@|".$text."|@|".$comments."|@|".$cover."|@|".$preview1."|@|".$preview2."|@|\n"; $fp = fopen($datei, "r"); while(!feof($fp)) { $eintraege = fgets($fp, 1000); $input .= $eintraege; } fclose($fp); $fp = fopen($datei, "w+"); fputs($fp, $input); fclose($fp); echo ""; } else echo ""; } } ?>

"; echo " "; echo "

\n"; /* Pages */ if($pages > 1) { echo "
Page:\n"; for($x = 1; $x <= $pages; $x++) { if($x == $show) echo "$x  "; else echo "$x "; } echo "
"; } } else { include "last_updates.php"; include "slideshow.php"; include "forum_latest.php"; } ?>