} ?> <head> <link href="<?php echo $site_url; ?> admin.css" rel="stylesheet" type="text/css"> </head><body background="<?php echo $site_url; ?> images/bg.gif" style="margin-top:0px;background-repeat:repeat-x"> <?php print "<script src='" . $path . "functions.js' language='javascript' type='text/javascript'></script>"; print "<table width=600px height=500px bgcolor=ffffff cellspacing=0 cellpadding=0><td>"; drawheader(""); $q = select("select PermissionID from en_permissions where UserID='{$auth->user}'"); $q[0] = 1; if (!$q[0]) { print icon("error", "У вас нет прав доступа"); } else { if ($act == "delete" && $step && !$er) { $form = new cls_form($type, "select"); $act = "select"; } if ($act == "insert" && $step && !$er) { $form = new cls_form($type, "select"); $act = "select"; } print "\r\nВы авторизованы как {$auth->nick}. <a href=\"" . $site_url . "login.php?do=logout&act=auth&type=main/authorize\">[выйти]</a> <a href=\"/\">[ooo-parsek.ru]</a>"; print "<hr><center>";
<?php session_start(); session_destroy(); include '../inc/functions.inc.php'; include '../inc/config.inc.php'; drawheader('Logout'); if ($logoutjump != '') { $url = $logoutjump; } else { $url = $newsoutput; } echo 'Ausgeloggt.<br /><a href="../' . $url . '">Zurück zu den News</a><br /><br />'; drawfooter($version);
# Copyright (c) by Chris Rolle # # [ chris@monxoom.de | www.monxoom.de ] # ######################################################### # This script can be used freely as long as this # # copyright-notice remains here. Furthermore a # # copyright-notice must be displayed on the website # # where this script is used. # # # # See readme.htm for further copyright information # ######################################################### include '../inc/functions.inc.php'; checklogin(); adminonlyaccess($_SESSION['loginlevel']); drawheader('Edit Layout'); print'<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr class="tr3" valign="top"> <td colspan="3"><b>Hier kannst du das Layout der Ausgabeseite anpassen.</b>'; if ($_GET['go'] == 'save') { $_POST['content'] = unspecialchars($_POST['content']); $fp = fopen($_GET['file'],"w+"); fputs($fp,$_POST['content']); fclose($fp); print '<br /><br /><b>Erfolgreich gespeichert</b>'; } print'</td></tr><tr class="tr1">';
<?php'.$nl); fwrite($fp,'/*'.$nl); for ($i=0; $i<=$zeilen; $i++) fwrite($fp, $zeile[$i]); fwrite($fp, '*/' .$nl ); fwrite($fp, '?>' ); fclose($fp); echo 'Der Patch war erfolgreich! <br /><br /> <a href="'.$_SERVER['PHP_SELF'].'?art=upd&go=step3">Fortfahren</a>'; } ######################################################### if ($_GET['go'] == 'step3') { drawheader('.:Abschließende Hinweise:.'); echo'Damit ist das Update auch schon abgeschlossen =)<br /><br /> Du kannst Dich nun wie gehabt in das Admin-Center einloggen und das Script administrieren.<br /> <br /><br /> So, nun viel Spaß mit dem Script :) Wenn es dir gefällt, wenn du Bugs findest oder Vorschläge für die nächste Version der ParaNews hast, würde ich mich über eine eMail freuen. <br /> <b>Folge dem Link unten und lösche dann die Datei patch.php vom Server. Reloade danach die Seite.</b> <br /><br /> <a href="index.php">Fortfahren (Ausgabeseite der ParaNews)</a>'; $fp = fopen('install.lock', 'w+'); fclose($fp); } ######################################################### }
function drawblock($str, $name) { print "<tr><td>"; drawheader($name); print "{$str}"; drawfooter(); print "</td><tr>"; }
# ParaNews v3.3a # # Copyright (c) by Chris Rolle # # [ chris@monxoom.de | www.monxoom.de ] # ######################################################### # This script can be used freely as long as this # # copyright-notice remains here. Furthermore a # # copyright-notice must be displayed on the website # # where this script is used. # # # # See readme.htm for further copyright information # ######################################################### include '../inc/functions.inc.php'; checklogin(); adminonlyaccess($_SESSION['loginlevel']); $configfile = '../inc/config.inc.php'; drawheader('Edit Settings'); echo '<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr valign="top" class="tr3"> <td width="50%">'; if ($_GET['go'] == 'save') { if ($_POST['newsperpage'] == 0) { $_POST['newsperpage'] = 1; } if ($_POST['maxsize'] == '') { $_POST['maxsize'] = 1048576; } if ($_POST['more'] == '') { $_POST['more'] = 'Read More'; } if ($_POST['logoutjump1'] == 0) { $_POST['logoutjump'] = '';
echo '</td> </tr> <tr class="tr2"> <td> <b><a href="pn_logout.php?' . $session . '" target="_parent">Logout</a></b></td> </tr> </table> <br /> Eingeloggt als<br /> <b>' . $_SESSION['loginuser'] . '</b> </center> </body> </html>'; exit; } if ($_GET['pane'] == 'right') { drawheader('.:ParaNews ' . $version . ':.'); echo '<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr valign="top" class="tr1"> <td>'; echo ' <p><b>Willkommen im Admin-Center der ParaNews!</b></p> <p>Um zu den einzelnen Kategorien zu gelangen, benutze einfach die Navigationsbar am linken Bildschirmrand. <br />Hast du Fragen zum Script oder allgemein zur Gestaltung von WebSites? Dann besuche das <a href="http://labstation.de/forum" target="blank">LabStation</a>-Board!</p><br />'; echo '</td> </tr> </table>'; drawfooter($version); exit; } else { echo '
# copyright-notice remains here. Furthermore a # # copyright-notice must be displayed on the website # # where this script is used. # # # # See readme.htm for further copyright information # ######################################################### include '../inc/functions.inc.php'; include '../inc/config.inc.php'; checklogin(); adminonlyaccess($_SESSION['loginlevel']); $dir = "../catpics/"; // chmod 777! ######################################### # STANDARDAUSGABE # ######################################### drawheader('Edit Categories'); /* Ausgabe aller Kategorien */ if (!$_GET['go']) { $zeile = file($catfile); $zeilen = sizeof($zeile); echo '<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr class="tr2"> <td width="30"><b>Kategorie</b></td> <td><b>Bild</b></td> <td width="20"><b>Bearbeiten</b></td> <td width="20"><b>Löschen</b></td> </tr>'; for ($i = 0; $i < $zeilen; $i++) { $eintrag = explode('§', $zeile[$i]); $eintrag[2] = getcat($eintrag[0], '../inc/pn_categories.dat', '../catpics', $catpics); echo '<tr class="tr1">
Loginname: <b>' . $_POST['saveuser'] . '</b><br /> Level: <b>' . $_POST['savelevel'] . '</b><br /><br /> <b>Damit die geänderten Einstellungen wirksam werden, musst Du Dich neu einloggen!</b>'; } } } ######################################################### echo '</td> </tr> </table>'; } ######################################################### # DELUSER # ######################################################### if ($_GET['go'] == 'deluser') { drawheader('Benutzer löschen'); echo '<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr class="tr1"> <td>'; if ($_SESSION['loginlevel'] != 'admin') { echo message('error', 'Sorry, nur Admins dürfen User löschen!', 1); } else { for ($i = 0; $i < $zeilen; $i++) { $eintrag = explode("§", $zeile[$i]); if ($eintrag[3] == $_GET['id']) { $zeilen--; for ($j = $i; $j < $zeilen; $j++) { $zeile[$j] = $zeile[$j + 1]; } } }
# [ chris@monxoom.de | www.monxoom.de ] # ######################################################### # This script can be used freely as long as this # # copyright-notice remains here. Furthermore a # # copyright-notice must be displayed on the website # # where this script is used. # # # # See readme.htm for further copyright information # ######################################################### include '../inc/functions.inc.php'; include '../inc/config.inc.php'; checklogin(); ######################################### # STANDARDAUSGABE # ######################################### drawheader('Edit News'); /* Ausgabe aller Newseinträge */ if (!$_GET['go']) { $zeile = file($datafile); $zeilen = sizeof($zeile); echo '<table width="90%" border="0" cellspacing="1" cellpadding="0" align="center" class="rahmen"> <tr class="tr2"> <td width="30"><b>Datum</b></td> <td><b>Titel</b></td> <td width="20"><b>Bearbeiten</b></td> <td width="20"><b>Löschen</b></td> </tr>'; $seiten = ceil($zeilen / $newsperpage); $zeile = array_reverse($zeile); if (!$_GET['page']) { $_GET['page'] = 1;
if ($output != '' && strstr($output, '<a href=')) { echo $output . '</tr>'; } } echo '</table>'; echo '</td><td valign="top">'; //Editieren if (!is_null($content_id) && $content_id != '') { $content = new content(); $content->getContent($content_id, $sprache, $version); echo '<h2>Content ID: ' . $content_id . ' | Version: ' . $version . ' | Sprache: ' . $sprache . ' | Titel: ' . $content->titel . '</h2>'; $oe = $content->getOrganisationseinheit($content_id); if (!in_array($oe, $berechtigte_oe)) { die('Sie haben keine Berechtigung fuer diesen Eintrag'); } drawheader(); echo '<div style="float: right;">' . $message . '</div>'; echo '<br><br>'; switch ($action) { case 'prefs': print_prefs(); break; case 'content': print_content(); break; //case 'preview': // break; //case 'preview': // break; case 'rights': print_rights();