Ignore:
Timestamp:
Feb 24, 2011, 4:45:43 PM (13 years ago)
Author:
patdenice
Message:

Plugins can add their own modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/main.inc.php

    r7402 r9369  
    22/*
    33Plugin Name: PWG Stuffs
    4 Version: 2.0.q
     4Version: auto
    55Description: Insert modules on your gallery
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=190
     
    88Author URI: http://www.gauchon.com
    99*/
     10
     11define('STUFFS_VERSION', '2.1.m');
    1012
    1113if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    1618define('STUFFS_PATH' , PHPWG_PLUGINS_PATH . STUFFS_DIR . '/');
    1719define('STUFFS_TABLE' , $prefixeTable . 'stuffs');
     20
     21// Need upgrade?
     22if ($plugin['version'] != STUFFS_VERSION)
     23  include('admin/upgrade.inc.php');
    1824
    1925function stuffs_admin_menu($menu)
     
    2733function set_stuffs_on_index()
    2834{
    29         global $page;
     35  global $page;
    3036
    3137  if (isset($page['section']) and $page['section'] == 'categories')
    3238  {
    3339    include_once(STUFFS_PATH . 'include/stuffs.inc.php');
    34         }
     40  }
    3541}
    3642
    3743function set_stuffs_on_picture()
    3844{
    39         include_once(STUFFS_PATH . 'include/stuffs.inc.php');
     45  include_once(STUFFS_PATH . 'include/stuffs.inc.php');
    4046}
    4147
Note: See TracChangeset for help on using the changeset viewer.