Jump to content
Sign in to follow this  

Berechtigungen Artikelscript fehlerhaft

Recommended Posts

pSys Modul: Artikel

pSys Version: 0.7.0

php Version: 5.2.5


Beim Artikelscript werden die Berechtigungen aus dem userart nicht richtig ausgewertet.

Hab ich auch schon einmal hier beschrieben: Bugmeldung

Ich habe nun insgesamt 4 Dateien editiert:

admin.php + editartikel.php + editcat.php


require( "part_main.php" );
require( "../login.inc.php" );
$pagetitle .= " - Bearbeiten";
$psys_need_rights = 'userart';
require( "adminkopf.inc.php" );




if (!isset($_POST['filled'])) { // 1
   if ($id > 0) {
       $sqlbefehl = "Select * FROM $tab_artcat where id = $id";
       $ergebnis = mysql_query($sqlbefehl, $serverid);
       $cat = mysql_fetch_array ($ergebnis);
       $cat['pfad'] = PACatPfad($cat['subcat']);
       $artcat = $cat['subcat'];
       if ($user['userart'] == "Autor") {
           include($pdir_admin . "/fuss.php");
   } else {
       $cat['pfad'] = PACatPfad($artcat);
   $sqlbefehl = "Select id,pfad FROM $tab_artcat Where id  '$id' order by pfad";
   $getcat = mysql_query($sqlbefehl, $serverid);
   while ($listcat = mysql_fetch_array ($getcat)) {
   $smarty_art->assign('artpfad', $scat);
   $smarty_art->assign('id', $id);

} //2





Share this post

Link to post
Share on other sites
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this