[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: news_admin/website setup.inc.php.sample,1.3.4.1
From: |
Dave Hall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: news_admin/website setup.inc.php.sample,1.3.4.1,1.3.4.1.2.1 |
Date: |
Sat, 31 May 2003 20:57:25 -0400 |
Update of /cvsroot/phpgroupware/news_admin/website
In directory subversions:/tmp/cvs-serv31132
Modified Files:
Tag: Version-0_9_16-branch
setup.inc.php.sample
Log Message:
fixed up sample for new feeds
Index: setup.inc.php.sample
===================================================================
RCS file: /cvsroot/phpgroupware/news_admin/website/setup.inc.php.sample,v
retrieving revision 1.3.4.1
retrieving revision 1.3.4.1.2.1
diff -C2 -r1.3.4.1 -r1.3.4.1.2.1
*** setup.inc.php.sample 7 Mar 2002 03:02:13 -0000 1.3.4.1
--- setup.inc.php.sample 1 Jun 2003 00:57:23 -0000 1.3.4.1.2.1
***************
*** 1,29 ****
<?php
! $path_to_header = '/path/to/phpgroupware/';
! $template_path =
'/path/to/phpgroupware/news_admin/website/templates/';
$domain = 'default';
// This is used for exporting news
! $site_title = 'mysite title';
! $site_link = 'http://www.mysite.com';
! $site_description = 'Just a sample';
! $img_title = 'my logo';
! $img_url = 'http://www.mysite.com/logo.jpg';
! $img_link = 'http://www.mysite.com';
- // Don't change the follow lines
$GLOBALS['phpgw_info']['flags']['noapi'] = True;
include($path_to_header . 'header.inc.php');
include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.Template.inc.php');
include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.db_' .
$phpgw_domain[$domain]['db_type'] . '.inc.php');
! $db = new db;
! $db->Host = $GLOBALS['phpgw_domain'][$domain]['server']['db_host'];
! $db->Type = $GLOBALS['phpgw_domain'][$domain]['db_type'];
! $db->Database = $GLOBALS['phpgw_domain'][$domain]['db_name'];
! $db->User = $GLOBALS['phpgw_domain'][$domain]['db_user'];
! $db->Password = $GLOBALS['phpgw_domain'][$domain]['db_pass'];
$tpl = new Template($template_path);
--- 1,34 ----
<?php
! $path_to_header = '/var/www/phpgw16/';
! $template_path = '/var/www/phpgw16/news_admin/website/templates/';
$domain = 'default';
// This is used for exporting news
! $site['title'] = 'MySite';
! $site['link'] = 'http://www.mysite.com/news/view.php';
! $site['description'] = 'MySite is great';
! $site['img_title'] = 'MySite logo';
! $site['img_url'] = 'http://www.mysite.com/images/logo.gif';
! $site['img_link'] = 'http://www.mysite.com/';
!
! /* ********************************************************************\
! * Don't change anything after this line lines *
! \******************************************************************** */
$GLOBALS['phpgw_info']['flags']['noapi'] = True;
include($path_to_header . 'header.inc.php');
include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.Template.inc.php');
include(PHPGW_SERVER_ROOT . '/phpgwapi/inc/class.db_' .
$phpgw_domain[$domain]['db_type'] . '.inc.php');
+ include(PHPGW_SERVER_ROOT . '/news_admin/inc/class.sonews.inc.php');
! $GLOBALS['phpgw']->db = new db();
! $GLOBALS['phpgw']->db->Host =
$GLOBALS['phpgw_domain'][$domain]['server']['db_host'];
! $GLOBALS['phpgw']->db->Type =
$GLOBALS['phpgw_domain'][$domain]['db_type'];
! $GLOBALS['phpgw']->db->Database =
$GLOBALS['phpgw_domain'][$domain]['db_name'];
! $GLOBALS['phpgw']->db->User =
$GLOBALS['phpgw_domain'][$domain]['db_user'];
! $GLOBALS['phpgw']->db->Password =
$GLOBALS['phpgw_domain'][$domain]['db_pass'];
+ $news_obj = new sonews();
$tpl = new Template($template_path);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: news_admin/website setup.inc.php.sample,1.3.4.1,1.3.4.1.2.1,
Dave Hall <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: news_admin/website/templates rdf-chan.tpl,NONE,1.1.2.1 rdf2.tpl,NONE,1.1.2.1 rss.tpl,NONE,1.1.2.1 news_row.tpl,1.4.2.1,NONE rdf.tpl,1.1,NONE rdf_row.tpl,1.1,NONE
- Next by Date:
[Phpgroupware-cvs] CVS: sitemgr/inc class.module.inc.php,1.10,1.11
- Previous by thread:
[Phpgroupware-cvs] CVS: news_admin/website/templates rdf-chan.tpl,NONE,1.1.2.1 rdf2.tpl,NONE,1.1.2.1 rss.tpl,NONE,1.1.2.1 news_row.tpl,1.4.2.1,NONE rdf.tpl,1.1,NONE rdf_row.tpl,1.1,NONE
- Next by thread:
[Phpgroupware-cvs] CVS: sitemgr/inc class.module.inc.php,1.10,1.11
- Index(es):