A tumblelog CMS built on AJAX, PHP and MySQL.

plugins.class.php 601B

1234567891011121314151617181920212223242526
  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. class plugins {
  13. static $instances = array();
  14. function addAction($name, $function) {
  15. $plugEngine = plugin::instance();
  16. $plugEngine->actions[$name][] = array($this, $function);
  17. }
  18. }
  19. ?>