source: extensions/Synchronize_local_directory/admin.php @ 18703

Last change on this file since 18703 was 12844, checked in by RMM, 13 years ago

first commit

File size: 634 bytes
Line 
1<?php
2// Chech whether we are indeed included by Piwigo.
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5// Fetch the template.
6global $template;
7
8// Add our template to the global template
9$template->set_filenames(
10  array(
11    'plugin_admin_content' => dirname(__FILE__).'/admin.tpl'
12  )
13);
14
15
16include_once dirname(__FILE__).'/SynchronizeLocalDirectory.php';
17$sync = new SynchronizeLocalDirectory();
18$sync->synchronize();
19
20// Assign the template contents to ADMIN_CONTENT
21
22$template->assign('synchronizeLocalDirectory_output', $sync->debug);
23
24$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
25?>
Note: See TracBrowser for help on using the repository browser.