Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / htmlpages [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
28 Jul 2002 16:34:34 | postnuke_modules/htmlpages | pnadmin.php,1.9,1.10 pnuserapi.php,1.1,1.2 | Andrea M. |
no message |
Update of /home/cvsroot/postnuke_modules/htmlpages In directory ns7.hostnuke.net:/tmp/cvs-serv1945 Modified Files: pnadmin.php pnuserapi.php Log Message: no message Index: pnadmin.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/htmlpages/pnadmin.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pnadmin.php 25 Jul 2002 15:08:49 -0000 1.9 --- pnadmin.php 28 Jul 2002 16:34:32 -0000 1.10 *************** *** 516,520 **** // Title ! $output->Linebreak(1); $output->Title(_VIEWPAGES." - "._SORTEDBY." $sortedby"); --- 516,520 ---- // Title ! $output->Linebreak(1); $output->Title(_VIEWPAGES." - "._SORTEDBY." $sortedby"); *************** *** 552,627 **** $col[]=_HTMLPAGESACTIONS; ! // Start output table ! $output->SetOutputMode(_PNH_KEEPOUTPUT); ! $output->TableStart('', $col,1); ! foreach ($items as $item) { ! $row = array(); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_OVERVIEW)) { ! ! // title, pid, user,time ! ! $row[] = $item['pid']; ! $row[] = pnUserGetVar('uname',$item['uid']); ! $row[] = $item['title']; ! $row[] = $item['timest']; ! if ($item['printlink']) { ! $row[] = _YES ; ! } else { ! $row[] = _NO; ! } ! // Options for the item. ! $options = array(); ! $output->SetOutputMode(_PNH_RETURNOUTPUT); ! $output->SetInputMode(_PNH_VERBATIMINPUT); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_READ)) { ! $options[] = $output->URL(pnModURL('htmlpages', ! 'user', ! 'display', ! array('pid' => $item['pid'])), ! _READ); ! $options[] = $output->URL(pnModURL('htmlpages', ! 'user', ! 'display', ! array('pid' => $item['pid'], ! 'print' => '1')), ! _READFR); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_EDIT)) { ! $options[] = $output->URL(pnModURL('htmlpages', ! 'admin', ! 'modify', ! array('pid' => $item['pid'])), ! _EDIT); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_DELETE)) { $options[] = $output->URL(pnModURL('htmlpages', 'admin', ! 'delete', array('pid' => $item['pid'])), ! _DELETE); } } ! ! $options = join(' | ', $options); ! ! } else { ! $options = _NOVIEWALLOWED; ! } ! $output->SetInputMode(_PNH_VERBATIMINPUT); ! $row[] = $output->Text($options); ! - ! $output->SetOutputMode(_PNH_KEEPOUTPUT); ! $output->TableAddRow($row); ! $output->SetInputMode(_PNH_PARSEINPUT); } } - $output->TableEnd(); // Call the pnHTML helper function to produce a pager in case of there --- 552,631 ---- $col[]=_HTMLPAGESACTIONS; ! if (isset($items)) { // Start output table ! $output->SetOutputMode(_PNH_KEEPOUTPUT); ! $output->TableStart('', $col,1); ! ! foreach ($items as $item) { ! $row = array(); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_OVERVIEW)) { ! // title, pid, user,time ! $row[] = $item['pid']; ! $row[] = pnUserGetVar('uname',$item['uid']); ! $row[] = $item['title']; ! $row[] = $item['timest']; ! if ($item['printlink']) { ! $row[] = _YES ; ! } else { ! $row[] = _NO; ! } ! ! // Options for the item. ! ! $options = array(); ! $output->SetOutputMode(_PNH_RETURNOUTPUT); ! $output->SetInputMode(_PNH_VERBATIMINPUT); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_READ)) { ! $options[] = $output->URL(pnModURL('htmlpages', ! 'user', ! 'display', ! array('pid' => $item['pid'])), ! _READ); ! $options[] = $output->URL(pnModURL('htmlpages', ! 'user', ! 'display', ! array('pid' => $item['pid'], ! 'print' => '1')), ! _READFR); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_EDIT)) { $options[] = $output->URL(pnModURL('htmlpages', 'admin', ! 'modify', array('pid' => $item['pid'])), ! _EDIT); ! if (pnSecAuthAction(0, 'htmlpages::', "$item[title]::$item[pid]", ACCESS_DELETE)) { ! $options[] = $output->URL(pnModURL('htmlpages', ! 'admin', ! 'delete', ! array('pid' => $item['pid'])), ! _DELETE); ! } } + + $options = join(' | ', $options); + + } else { + $options = _NOVIEWALLOWED; } ! $output->SetInputMode(_PNH_VERBATIMINPUT); ! $row[] = $output->Text($options); ! ! ! $output->SetOutputMode(_PNH_KEEPOUTPUT); ! $output->TableAddRow($row); ! $output->SetInputMode(_PNH_PARSEINPUT); ! } } + $output->TableEnd(); + } else{ + $output->Text("aa"); } // Call the pnHTML helper function to produce a pager in case of there Index: pnuserapi.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/htmlpages/pnuserapi.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pnuserapi.php 21 Jul 2002 05:39:15 -0000 1.1 --- pnuserapi.php 28 Jul 2002 16:34:32 -0000 1.2 *************** *** 67,73 **** if (!isset($orderby)) { ! $orderby= "$htmlpagescolumn[title]"; } else { ! $orderby="$htmlpagescolumn[$orderby]"; } --- 67,73 ---- if (!isset($orderby)) { ! $orderby= " $htmlpagescolumn[title] "; } else { ! $orderby= " $htmlpagescolumn[$orderby] "; }
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |