Update of /cvsroot/phpwebsite-comm/modules/article/class
In directory sc8-pr-cvs1:/tmp/cvs-serv7720/class
Modified Files:
ArticleManager.php
Log Message:
Added ability to control article listings via URL
Index: ArticleManager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/class/ArticleManager.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ArticleManager.php 17 Jul 2003 18:06:41 -0000 1.4
--- ArticleManager.php 17 Jul 2003 22:13:13 -0000 1.5
***************
*** 104,107 ****
--- 104,113 ----
$this->list_order = $_POST['LIST_order'];
}
+ if ($_REQUEST['LIST_group'] && array_key_exists($_REQUEST['LIST_group'], $this->group_array))
+ $this->list_group = $_REQUEST['LIST_group'];
+ if ($_REQUEST['LIST_sort'] && array_key_exists($_REQUEST['LIST_sort'], $this->sort_array))
+ $this->list_sort = $_REQUEST['LIST_sort'];
+ if ($_REQUEST['LIST_order'] && array_key_exists($_REQUEST['LIST_order'], $this->order_array))
+ $this->list_order = $_REQUEST['LIST_order'];
$tags['SEARCHQUERY'] = $_SESSION['translate']->it('Show me [var1] stuff ordered by [var2][var3]'
***************
*** 235,240 ****
$row['DATE'] = substr($value[$temp_date],0,10);
! /* Set var to expire/publish the article */
! if (isset($Fexpire))
$row['PUB_EXP'] = ($is_viewable)
?'<input type="submit" name="ARTICLE_vars[edit:expire]" value="'.$Fexpire.'" />'
--- 241,246 ----
$row['DATE'] = substr($value[$temp_date],0,10);
! /* Set var to expire/publish the article if it's not the home page */
! if (isset($Fexpire) && !$value['mainarticle'])
$row['PUB_EXP'] = ($is_viewable)
?'<input type="submit" name="ARTICLE_vars[edit:expire]" value="'.$Fexpire.'" />'
|