A tumblelog CMS built on AJAX, PHP and MySQL.

plugins.class.php 639B

12345678910111213141516171819202122232425
  1. <?php
  2. if(!defined('entry') || !entry) die('Not a valid page');
  3. /* ===========================
  4. gelato CMS - A PHP based tumblelog CMS
  5. development version
  6. http://www.gelatocms.com/
  7. gelato CMS is a free software licensed under the GPL 2.0
  8. Copyright (C) 2007 by Pedro Santana <pecesama at gmail dot com>
  9. =========================== */
  10. ?>
  11. <?php
  12. $GLOBALS['plugins::$instances'] = array(); /* class static property */
  13. class plugins {
  14. function addAction($name, $function) {
  15. $plugEngine = plugin::instance();
  16. $plugEngine->actions[$name][] = array($this, $function);
  17. }
  18. }
  19. ?>