Source for file editor.php

Documentation is available at editor.php

  1. <?
  2. /**
  3. * editor.php
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (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. * @package generator
  14. * @author Stephan Raabe
  15. */
  16.  
  17. /**
  18. * writes the text editor icon
  19. */
  20. function editText($block,$tooltip,$output)
  21. {
  22. global $page,$site_staging,$author_release;
  23. if (isset($_GET["preview"]))
  24. {
  25. if ($site_staging == 0)
  26. {
  27. if ($output != "no") { echo $page[$block]; }
  28. }
  29. else
  30. {
  31. if ($output != "no") { echo staging_output($block); }
  32. }
  33. }
  34. else
  35. {
  36. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  37. {
  38. if ($site_staging == 0)
  39. {
  40. ?>
  41. <a href="Javascript:openTexteditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'WYSIWYG-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align="left"></a>
  42. <?
  43. if ($output != "no") { echo $page[$block]; }
  44. }
  45. else
  46. {
  47. if(isStage($page["page_key"],$block))
  48. {
  49. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  50. {
  51. }
  52. else
  53. {
  54. ?>
  55. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  56. <?
  57. }
  58. }
  59. ?>
  60. <a href="Javascript:openTexteditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'WYSIWYG-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  61. <?
  62. if ($output != "no") { echo staging_output($block); }
  63. }
  64. }
  65. else
  66. {
  67. if ($output != "no") { echo $page[$block]; }
  68. }
  69. }
  70. }
  71.  
  72. /**
  73. * writes the link editor icon
  74. */
  75. function editLink($link,$tooltip)
  76. {
  77. global $page;
  78. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  79. {
  80. ?>
  81. <a href="<?= $link; ?>" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Link-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  82. <?
  83. }
  84. }
  85.  
  86. /**
  87. * writes the item editor icon
  88. */
  89. function editItem($block,$tooltip,$output)
  90. {
  91. global $page,$site_staging,$author_release;
  92. if (isset($_GET["preview"]))
  93. {
  94. if ($site_staging == 0)
  95. {
  96. if ($output != "no") { echo $page[$block]; }
  97. }
  98. else
  99. {
  100. if ($output != "no") { echo staging_output($block); }
  101. }
  102. }
  103. else
  104. {
  105. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  106. {
  107. if ($site_staging == 0)
  108. {
  109. ?>
  110. <a href="Javascript:openItemeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Item-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  111. <?
  112. if ($output != "no") { echo $page[$block]; }
  113. }
  114. else
  115. {
  116. if(isStage($page["page_key"],$block))
  117. {
  118. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  119. {
  120. }
  121. else
  122. {
  123. ?>
  124. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  125. <?
  126. }
  127. }
  128. ?>
  129. <a href="Javascript:openItemeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Item-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  130. <?
  131. if ($output != "no") { echo staging_output($block); }
  132. }
  133. }
  134. else
  135. {
  136. if ($output != "no") { echo $page[$block]; }
  137. }
  138. }
  139. }
  140.  
  141. /**
  142. * writes the upload editor icon
  143. */
  144. function editUpload($block,$tooltip)
  145. {
  146. global $page,$site_staging,$author_release;
  147. if (empty($_GET["preview"]))
  148. {
  149. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  150. {
  151. if ($site_staging == 0)
  152. {
  153. ?>
  154. <a href="Javascript:openUploadDialog('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_upload.png'" width='16' height='16' alt='' border='0' align='left'></a>
  155. <?
  156. }
  157. else
  158. {
  159. if(isStage($page["page_key"],$block))
  160. {
  161. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  162. {
  163. }
  164. else
  165. {
  166. ?>
  167. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  168. <?
  169. }
  170. }
  171. ?>
  172. <a href="Javascript:openUploadDialog('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_upload.png'" width='16' height='16' alt='' border='0' align='left'></a>
  173. <?
  174. }
  175. }
  176. }
  177. }
  178.  
  179. /**
  180. * writes the uploadpath editor icon
  181. */
  182. function editUploadPath($path,$block,$tooltip)
  183. {
  184. global $site_staging,$author_release;
  185. $page_path = get_page($path);
  186. ?>
  187. <a href="Javascript:openUploadDialog('<?= $page_path["page_path"]; ?>&cache=false','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Upload-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_upload.png'" width='16' height='16' alt='' border='0' align='left'></a>
  188. <?
  189. }
  190.  
  191. /**
  192. * returns the content of a text block
  193. * @return string
  194. */
  195. function outputBlock($block)
  196. {
  197. global $page,$site_staging;
  198. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  199. {
  200. if ($site_staging == 0)
  201. {
  202. return $page[$block];
  203. }
  204. else
  205. {
  206. if(isStage($page["page_key"],$block))
  207. {
  208. return staging_output($block);
  209. }
  210. else
  211. {
  212. return $page[$block];
  213. }
  214. }
  215. }
  216. else
  217. {
  218. return $page[$block];
  219. }
  220. }
  221.  
  222. /**
  223. * returns if the text block is not equal null
  224. * @return bool
  225. */
  226. function isContent($block)
  227. {
  228. global $page,$site_staging;
  229. if ($site_staging == 0)
  230. {
  231. if ($page[$block] == "")
  232. {
  233. return false;
  234. }
  235. else
  236. {
  237. return true;
  238. }
  239. }
  240. else
  241. {
  242. if(isStage($page["page_key"],$block))
  243. {
  244. if (staging_output($block) == "")
  245. {
  246. return false;
  247. }
  248. else
  249. {
  250. return true;
  251. }
  252. }
  253. else
  254. {
  255. if ($page[$block] == "")
  256. {
  257. return false;
  258. }
  259. else
  260. {
  261. return true;
  262. }
  263. }
  264. }
  265. }
  266.  
  267. /**
  268. * writes the Select editor icon
  269. */
  270. function editSelect($block,$select,$tooltip)
  271. {
  272. global $page,$site_staging,$author_release;
  273. $selectstring = "option=";
  274. foreach ($select as $value)
  275. {
  276. $selectstring .= $value["name"]."**";
  277. $selectstring .= $value["value"]."***";
  278. }
  279. if (empty($_GET["preview"]))
  280. {
  281. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  282. {
  283. if ($site_staging == 0)
  284. {
  285. ?>
  286. <a href="Javascript:openSelecteditor('<?= $page["page_path"]; ?>&<?= $selectstring; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Select-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  287. <?
  288. }
  289. else
  290. {
  291. if(isStage($page["page_key"],$block))
  292. {
  293. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  294. {
  295. }
  296. else
  297. {
  298. ?>
  299. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  300. <?
  301. }
  302. }
  303. ?>
  304. <a href="Javascript:openSelecteditor('<?= $page["page_path"]; ?>&<?= $selectstring; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Select-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  305. <?
  306. }
  307. }
  308. }
  309. }
  310.  
  311. /**
  312. * returns the content of a select block
  313. * @return string
  314. */
  315. function outputSelect($block,$select)
  316. {
  317. global $page,$site_staging,$author_release;
  318. $input = "";
  319. $emptyOutput = 0;
  320. if ($site_staging == 0)
  321. {
  322. if ($page[$block] == "")
  323. {
  324. $emptyOutput = 1;
  325. }
  326. }
  327. else
  328. {
  329. if (staging_output($block) == "")
  330. {
  331. $emptyOutput = 1;
  332. }
  333. }
  334. if ($emptyOutput == 0)
  335. {
  336. if ($site_staging == 0)
  337. {
  338. $input = $page[$block];
  339. }
  340. else
  341. {
  342. $input = staging_output($block);
  343. }
  344. foreach ($select as $value)
  345. {
  346. if ($value["value"] == $input)
  347. {
  348. echo $value["name"];
  349. }
  350. }
  351. }
  352. else
  353. {
  354. echo $select[0]["name"];
  355. }
  356. }
  357.  
  358. /**
  359. * writes the NewData editor icon
  360. */
  361. function editNew($tooltip,$template)
  362. {
  363. global $page;
  364. $icon = "system/admin/img/oes_addpage.png";
  365. if (empty($_GET["preview"]))
  366. {
  367. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  368. {
  369. ?>
  370. <a href="Javascript:openSmallDialog('<?= $page["page_path"]; ?>','newdata&newtemplate=<?= $template; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'New-Data-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='<?= $icon; ?>' alt='' border='0' align='left'></a>
  371. <?
  372. }
  373. }
  374. }
  375.  
  376. /**
  377. * writes the individual editor icon
  378. */
  379. function editIndividual($include,$tooltip,$name)
  380. {
  381. global $page;
  382. if (empty($_GET["preview"]))
  383. {
  384. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  385. {
  386. ?>
  387. <a href="Javascript:openBigDialog('<?= $page["page_path"]; ?>','edit/individual&include=<?= $include; ?>&name=<?= $name; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'Individual-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  388. <?
  389. }
  390. }
  391. }
  392.  
  393. /**
  394. * writes the NewData editor icon with user icon
  395. */
  396. function editNewIcon($tooltip,$template,$icon)
  397. {
  398. global $page;
  399. if (empty($_GET["preview"]))
  400. {
  401. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  402. {
  403. ?>
  404. <a href="Javascript:openSmallDialog('<?= $page["page_path"]; ?>','newdata&newtemplate=<?= $template; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'New-Data-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='<?= $icon; ?>' alt='' border='0' align='left'></a>
  405. <?
  406. }
  407. }
  408. }
  409.  
  410. /**
  411. * writes the HTML editor icon
  412. */
  413. function editHTML($block,$tooltip,$output)
  414. {
  415. global $page,$site_staging,$author_release;
  416. if (isset($_GET["preview"]))
  417. {
  418. if ($site_staging == 0)
  419. {
  420. if ($output != "no") { echo $page[$block]; }
  421. }
  422. else
  423. {
  424. if ($output != "no") { echo staging_output($block); }
  425. }
  426. }
  427. else
  428. {
  429. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  430. {
  431. if ($site_staging == 0)
  432. {
  433. ?>
  434. <a href="Javascript:openHTMLeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'HTML-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  435. <?
  436. if ($output != "no") { echo $page[$block]; }
  437. }
  438. else
  439. {
  440. if(isStage($page["page_key"],$block))
  441. {
  442. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  443. {
  444. }
  445. else
  446. {
  447. ?>
  448. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  449. <?
  450. }
  451. }
  452. ?>
  453. <a href="Javascript:openHTMLeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'HTML-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  454. <?
  455. if ($output != "no") { echo staging_output($block); }
  456. }
  457. }
  458. else
  459. {
  460. if ($output != "no") { echo $page[$block]; }
  461. }
  462. }
  463. }
  464.  
  465. /**
  466. * writes the PHP editor icon
  467. */
  468. function editPHP($block,$tooltip)
  469. {
  470. global $page,$site_staging,$author_release;
  471. if (isset($_GET["preview"]))
  472. {
  473. if ($site_staging == 0)
  474. {
  475. eval($page[$block]);
  476. }
  477. else
  478. {
  479. eval(staging_output($block));
  480. }
  481. }
  482. else if (isset($_GET["export"]))
  483. {
  484. echo "<? ".$page[$block]." ?>";
  485. }
  486. else
  487. {
  488. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  489. {
  490. if ($site_staging == 0)
  491. {
  492. ?>
  493. <a href="Javascript:openPHPeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'PHP-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  494. <?
  495. eval($page[$block]);
  496. }
  497. else
  498. {
  499. if(isStage($page["page_key"],$block))
  500. {
  501. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  502. {
  503. }
  504. else
  505. {
  506. ?>
  507. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  508. <?
  509. }
  510. }
  511. ?>
  512. <a href="Javascript:openPHPeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'PHP-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  513. <?
  514. eval(staging_output($block));
  515. }
  516. }
  517. else
  518. {
  519. eval($page[$block]);
  520. }
  521. }
  522. }
  523.  
  524. /**
  525. * writes the RSS editor icon
  526. */
  527. function editRSS($block,$tooltip)
  528. {
  529. global $page,$site_staging,$author_release;
  530. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  531. {
  532. if (empty($_GET["preview"]))
  533. {
  534. if ($site_staging == 0)
  535. {
  536. ?>
  537. <a href="Javascript:openRSSeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'RSS-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  538. <?
  539. }
  540. else
  541. {
  542. if(isStage($page["page_key"],$block))
  543. {
  544. if (($_SESSION["account_group"] == 3) && ($author_release == 0))
  545. {
  546. }
  547. else
  548. {
  549. ?>
  550. <a href="Javascript:openRelease('<?= $page["page_path"]; ?>','<?= $page["page_key"]; ?>','<?= $block; ?>');" onmouseover="return overlib('Release Content', CAPTION, 'Release', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_release.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  551. <?
  552. }
  553. }
  554. ?>
  555. <a href="Javascript:openRSSeditor('<?= $page["page_path"]; ?>','<?= $block; ?>');" onmouseover="return overlib('<?= $tooltip; ?>', CAPTION, 'RSS-Editor', WIDTH, 150, FGCOLOR, '#ffffff', BGCOLOR, '#FF9933');" onmouseout="return nd();"><img src='system/admin/img/oes_editor.gif'" width='16' height='16' alt='' border='0' align='left'></a>
  556. <?
  557. }
  558. }
  559. }
  560. }
  561.  
  562. /**
  563. * returns a rss object
  564. */
  565. function outputRss($block)
  566. {
  567. global $page,$site_staging,$site_url;
  568. if (($_SESSION["account_group"] == 2) || (($_SESSION["account_group"] == 3) && ($page["page_lock"] == 0)))
  569. {
  570. if ($site_staging == 0)
  571. {
  572. $url = $page[$block];
  573. }
  574. else
  575. {
  576. if(isStage($page["page_key"],$block))
  577. {
  578. $url = staging_output($block);
  579. }
  580. else
  581. {
  582. $url = $page[$block];
  583. }
  584. }
  585. }
  586. else
  587. {
  588. $url = $page[$block];
  589. }
  590. require_once("system/admin/magpierss061/rss_fetch.inc");
  591. $rss = fetch_rss($url);
  592. return $rss;
  593. }
  594. ?>

Documentation generated on Tue, 16 Aug 2005 17:28:47 +0200 by phpDocumentor 1.3.0RC3