editRSS.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /* $Id: editRSS.php 2893 2007-04-14 13:20:30Z b4rt $ */
  3. /*******************************************************************************
  4. LICENSE
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License (GPL)
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. To read the license please visit http://www.gnu.org/copyleft/gpl.html
  14. *******************************************************************************/
  15. // prevent direct invocation
  16. if ((!isset($cfg['user'])) || (isset($_REQUEST['cfg']))) {
  17. @ob_end_clean();
  18. @header("location: ../../../index.php");
  19. exit();
  20. }
  21. /******************************************************************************/
  22. // readrss functions
  23. require_once('inc/functions/functions.readrss.php');
  24. // init template-instance
  25. tmplInitializeInstance($cfg["theme"], "page.admin.editRSS.tmpl");
  26. // set vars
  27. $arLinks = GetRSSLinks();
  28. $arRid = Array_Keys($arLinks);
  29. $inx = 0;
  30. $link_rss = array();
  31. foreach($arLinks as $link) {
  32. $rid = $arRid[$inx++];
  33. array_push($link_rss, array(
  34. 'true' => true,
  35. 'rid' => $rid,
  36. 'link' => $link
  37. )
  38. );
  39. }
  40. $tmpl->setloop('link_rss', $link_rss);
  41. $tmpl->setvar('enable_dereferrer', $cfg["enable_dereferrer"]);
  42. //
  43. $tmpl->setvar('_FULLURLLINK', $cfg['_FULLURLLINK']);
  44. $tmpl->setvar('_UPDATE', $cfg['_UPDATE']);
  45. $tmpl->setvar('_DELETE', $cfg['_DELETE']);
  46. //
  47. tmplSetTitleBar("Administration - RSS");
  48. tmplSetAdminMenu();
  49. tmplSetFoot();
  50. tmplSetIidVars();
  51. // parse template
  52. $tmpl->pparse();
  53. ?>