Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / guest / what-wernis_portal.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                Start: 10/19/2003 *
4  * ===================                          Last change: 10/19/2003 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : what-                                            *
8  * -------------------------------------------------------------------- *
9  * Short description :                                                  *
10  * -------------------------------------------------------------------- *
11  * Kurzbeschreibung  :                                                  *
12  * -------------------------------------------------------------------- *
13  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
14  * Copyright (c) 2009 - 2015 by Mailer Developer Team                   *
15  * For more information visit: http://mxchange.org                      *
16  *                                                                      *
17  * This program is free software; you can redistribute it and/or modify *
18  * it under the terms of the GNU General Public License as published by *
19  * the Free Software Foundation; either version 2 of the License, or    *
20  * (at your option) any later version.                                  *
21  *                                                                      *
22  * This program is distributed in the hope that it will be useful,      *
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
25  * GNU General Public License for more details.                         *
26  *                                                                      *
27  * You should have received a copy of the GNU General Public License    *
28  * along with this program; if not, write to the Free Software          *
29  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
30  * MA  02110-1301  USA                                                  *
31  ************************************************************************/
32
33 // Some security stuff...
34 if (!defined('__SECURITY')) {
35         exit();
36 } // END - if
37
38 // Special file
39 loadIncludeOnce('inc/classes/rdf.class.php');
40
41 // Add description as navigation point
42 addYouAreHereLink('guest', __FILE__);
43
44 if ((!isExtensionActive('wernis')) && (!isAdmin())) {
45         displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=wernis%}');
46         return;
47 } // END - if
48
49 // Init PDF/RDF parser class
50 $rdf = new fase4_rdf();
51 $rdf->_use_nl2br = FALSE;
52 $rdf->_finishCallback = 'compactContent';
53 $rdf->use_dynamic_display(FALSE);
54 $rdf->set_CacheDir(getCachePath() . '');
55 $rdf->set_salt(md5(getSiteKey()));
56 $rdf->set_max_item(10);
57 $rdf->set_Options(
58         array(
59                 'textinput' => 'hidden',
60                 'sitelink'  => getWernisBaseUrl(),
61                 'refid'     => getWernisRefid(),
62                 'reflink'   => '/ref.php?refid=',
63         )
64 );
65
66 // Use proxy?
67 if (isProxyUsed()) {
68         // Set proxy data
69         $rdf->set_proxy(getProxyHost(), getProxyPort());
70
71         // Use auth?
72         if (getProxyUsername() != '') {
73                 // Set auth data
74                 $rdf->set_proxy_auth(getProxyUsername(), getProxyPassword());
75         } // END  - if
76 } // END - if
77
78 $rdf->parse_RDF(getWernisBaseUrl() . '/rss.xml');
79
80 // Load template
81 loadTemplate('guest_wernis_news', FALSE, $rdf->finish(TRUE));
82
83 // [EOF]
84 ?>