[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/rss_menu/ -> e_meta.php (source)

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     Steve Dunstan 2001-2002
   7  |     http://e107.org
   8  |     jalist@e107.org
   9  |
  10  |     Released under the terms and conditions of the
  11  |     GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_plugins/rss_menu/e_meta.php,v $
  14  |     $Revision: 1.6 $
  15  |     $Date: 2007/02/11 20:09:07 $
  16  |     $Author: e107steved $
  17  +----------------------------------------------------------------------------+
  18  */
  19  if (!defined('e107_INIT')) { exit; }
  20  
  21  global $tp,$PLUGINS_DIRECTORY;
  22  
  23  if(isset($pref['rss_feeds']) && $pref['rss_feeds'])
  24  {
  25      if($sql->db_Select("rss", "*", "rss_class='0' AND rss_limit>0 ORDER BY rss_name")){
  26             while($row=$sql->db_Fetch()){
  27                //wildcard topic_id's should not be listed
  28                 if(strpos($row['rss_url'], "*")===FALSE){
  29                    $url = SITEURL.$PLUGINS_DIRECTORY."rss_menu/rss.php?".$tp->toHTML($row['rss_url'], TRUE, 'constants, no_hook, emotes_off').".2";
  30                  $url .= ($row['rss_topicid']) ? ".".$row['rss_topicid'] : "";
  31                    $name = $tp->toHTML($row['rss_name'], TRUE, 'no_hook, emotes_off');
  32                     echo "<link rel='alternate' type='application/rss+xml' title='".htmlspecialchars(SITENAME, ENT_QUOTES, CHARSET)." ".htmlspecialchars($name, ENT_QUOTES, CHARSET)."' href='".$url."' />\n";
  33              }
  34          }
  35      }
  36  }
  37  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7