Rev | Line | |
---|
[12844] | 1 | <?php |
---|
| 2 | // Chech whether we are indeed included by Piwigo. |
---|
| 3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 4 | |
---|
| 5 | // Fetch the template. |
---|
| 6 | global $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 | |
---|
| 16 | include_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.