adding rotating images
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 9 Feb 2010 16:16:06 +0000 (16:16 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 9 Feb 2010 16:16:06 +0000 (16:16 +0000)
admin/rotatingImages.php [new file with mode: 0644]

diff --git a/admin/rotatingImages.php b/admin/rotatingImages.php
new file mode 100644 (file)
index 0000000..c914295
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+require_once '../setup.phtml';
+
+//  application configuration
+$conf = new Config;
+$rotatingImagesRoot =& $conf->parseConfig(
+       BASE . 'Toolkit/RotatingImages/config.ini',
+       'IniFile'
+);
+
+//  get reference to [conf] section of config file
+$rotatingImagesName
+       = $rotatingImagesRoot->getItem('section', 'conf')
+       ->getItem('directive', 'applicationName')
+       ->getContent();
+
+$ri = new Toolkit_RotatingImages();
+$nav = $ri->createNav();
+$rotatingImages = $ri->toHtml(
+       Toolkit_Database::getInstance(),
+       $rotatingImagesRoot
+);
+
+GLM_TOOLBOX::top($rotatingImagesName, '');
+echo $nav;
+echo $rotatingImages;
+
+GLM_TOOLBOX::footer();
+?>