phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/inc class.ui.inc.php,1.3,1.


From: Patrick Walsh <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/inc class.ui.inc.php,1.3,1.4 phpnuke.compat.inc.php,1.2,1.3
Date: Sun, 01 Sep 2002 00:22:48 -0400

Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site/inc
In directory subversions:/tmp/cvs-serv26819/inc

Modified Files:
        class.ui.inc.php phpnuke.compat.inc.php 
Log Message:
Lots of changes, including moving most preferences to the db.


Index: class.ui.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/sitemgr-site/inc/class.ui.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.ui.inc.php    29 Aug 2002 23:51:28 -0000      1.3
--- class.ui.inc.php    1 Sep 2002 04:22:46 -0000       1.4
***************
*** 46,49 ****
--- 46,68 ----
                }
  
+               function get_news()
+               {
+                       $bonews = CreateObject('news_admin.bonews');
+                       $news = $bonews->get_NewsList(0, false);
+                       unset($bonews);
+                       //$themesel = $GLOBALS['sitemgr_info']['themesel'];
+                       
//require_once($GLOBALS['sitemgr_info']['sitemgr-site_path'] . 'themes/' . 
$themesel . '/theme.php');
+                       foreach($news as $newsitem)
+                       {   
+                               $var = Array(
+                                       'subject'   => $newsitem['subject'],
+                                       'submittedby'    => 'Submitted by ' . 
$GLOBALS['phpgw']->accounts->id2name($newsitem['submittedby']) . ' on ' . 
$GLOBALS['phpgw']->common->show_date($newsitem['submissiondate']),
+                                       'content'   => 
nl2br($newsitem['content'])
+                               );
+                               return themearticle($aid, $informant, 
$var['submittedby'], $var['subject'], $var['content'], $topic, $topicname, 
$topicimage, $topictext);
+                               
+                       }
+               }
+ 
                function generatePage()
                {
***************
*** 53,58 ****
  
                        $index = 1;
                        $themesel = $GLOBALS['sitemgr_info']['themesel'];
!                       include $GLOBALS['sitemgr_info']['sitemgr-site_path'] . 
'themes/' . $themesel . '/theme.php';
                        echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN">';
                        echo "\n<html>\n<head>\n<title>" . 
$this->bo->get_siteName() . ': ' . 
--- 72,86 ----
  
                        $index = 1;
+ 
                        $themesel = $GLOBALS['sitemgr_info']['themesel'];
!                       if 
(file_exists($GLOBALS['sitemgr_info']['sitemgr-site_path'].'/themes/'.$themesel.'/theme.php'))
!                       {
!                               
require_once($GLOBALS['sitemgr_info']['sitemgr-site_path'] . '/themes/' . 
$themesel . '/theme.php');
!                       }
!                       else
!                       {
!                               die("Selected theme '$themesel' does not 
exist.");
!                       }
! 
                        echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN">';
                        echo "\n<html>\n<head>\n<title>" . 
$this->bo->get_siteName() . ': ' . 
***************
*** 62,66 ****
                        add_theme_var('header', $this->bo->get_header());
                        add_theme_var('footer', $this->bo->get_footer());
!                       include $GLOBALS['sitemgr_info']['sitemgr-site_path'] . 
'inc/meta.ui.inc.php';
                        echo '<LINK REL="StyleSheet" HREF="themes/' . $themesel 
. 
                                '/style/style.css" TYPE="text/css">' . "\n\n\n";
--- 90,94 ----
                        add_theme_var('header', $this->bo->get_header());
                        add_theme_var('footer', $this->bo->get_footer());
!                       include $GLOBALS['sitemgr_info']['sitemgr-site_path'] . 
'/inc/meta.ui.inc.php';
                        echo '<LINK REL="StyleSheet" HREF="themes/' . $themesel 
. 
                                '/style/style.css" TYPE="text/css">' . "\n\n\n";

Index: phpnuke.compat.inc.php
===================================================================
RCS file: 
/cvsroot/phpgroupware/sitemgr/sitemgr-site/inc/phpnuke.compat.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** phpnuke.compat.inc.php      29 Aug 2002 06:15:00 -0000      1.2
--- phpnuke.compat.inc.php      1 Sep 2002 04:22:46 -0000       1.3
***************
*** 82,85 ****
--- 82,91 ----
                        $val = sitemgr_link2('/index.php',substr($var,1));
                }
+               elseif ($var == 'news')
+               {
+                       $ui = new ui;
+                       $val = $ui->get_news();
+                       unset($ui);
+               }
                else
                {





reply via email to

[Prev in Thread] Current Thread [Next in Thread]