[7560] | 1 | <?php |
---|
| 2 | /** |
---|
| 3 | * ----------------------------------------------------------------------------- |
---|
| 4 | * Plugin : LMT |
---|
| 5 | * ----------------------------------------------------------------------------- |
---|
| 6 | * Author : Grum |
---|
| 7 | * email : grum@piwigo.org |
---|
| 8 | * website : http://photos.grum.fr |
---|
| 9 | * PWG user : http://forum.piwigo.org/profile.php?id=3706 |
---|
| 10 | * |
---|
| 11 | * << May the Little SpaceFrog be with you ! >> |
---|
| 12 | * |
---|
| 13 | * ----------------------------------------------------------------------------- |
---|
| 14 | * |
---|
| 15 | * See main.inc.php for release information |
---|
| 16 | * |
---|
| 17 | * AIPRelease class => display warning if GPC release is not up to date |
---|
| 18 | * |
---|
| 19 | * ----------------------------------------------------------------------------- |
---|
| 20 | */ |
---|
| 21 | |
---|
| 22 | |
---|
| 23 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 24 | |
---|
| 25 | include_once('lmt_root.class.inc.php'); |
---|
| 26 | |
---|
| 27 | class LMT_AIPRelease extends LMT_root |
---|
| 28 | { |
---|
| 29 | public function __construct($prefixeTable, $filelocation) |
---|
| 30 | { |
---|
| 31 | parent::__construct($prefixeTable, $filelocation); |
---|
| 32 | $this->loadConfig(); |
---|
| 33 | $this->initEvents(); |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | /* |
---|
| 37 | display administration page |
---|
| 38 | */ |
---|
| 39 | public function manage() |
---|
| 40 | { |
---|
| 41 | global $template; |
---|
| 42 | |
---|
| 43 | $template->set_filename('plugin_admin_content', dirname($this->getFileLocation())."/admin/lmt_admin.tpl"); |
---|
| 44 | |
---|
| 45 | $pluginInfo=array( |
---|
| 46 | 'LMT_VERSION' => "<i>".$this->getPluginName()."</i> ".l10n('lmt_release').LMT_VERSION, |
---|
| 47 | 'PATH' => LMT_PATH |
---|
| 48 | ); |
---|
| 49 | |
---|
| 50 | $template->assign('plugin', $pluginInfo); |
---|
| 51 | $template->assign('LMT_BODY_PAGE', '<p class="warnings">'.sprintf(l10n('lmt_gpc_not_up_to_date'),LMT_GPC_NEEDED, LMT_VERSION).'</p>'); |
---|
| 52 | $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | } //class |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | ?> |
---|