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

Documentation generated on Tue, 04 Oct 2005 11:13:39 +0200 by phpDocumentor 1.3.0RC3