Diff Revisions 763 vs 823 for /trunk/themes/default/blueprints/Plugins.php
| 763 | 823 | <- Revisions | |
|
Diff lines for: Rev 763 : Lines 11 -> 21 Rev 823 : Lines 11 -> 27 |
|||
| 11 | 11 | Additional license terms at http://eocms.com/license.html | |
| 12 | 12 | */ | |
| 13 | 13 | if(!(defined("IN_ECMS"))) die("Hacking Attempt..."); | |
| 14 | - | $pluginsql = call('sql_query', "SELECT layout, folder FROM plugins WHERE active = '1' AND id = '" . $_GET['id'] . "'"); | |
| 14 | + | $pluginsql = call('sql_query', "SELECT * FROM plugins WHERE active = '1' AND id = '" . $_GET['id'] . "'"); | |
| 15 | 15 | if(call('sql_num_rows', $pluginsql) != 0) { | |
| 16 | 16 | while($pluginfetch = call('sql_fetch_array',$pluginsql)) { | |
| 17 | - | if(file_exists('plugins/' . $pluginfetch['folder'] . '/Layouts/' . $pluginfetch['layout'])) | |
| 17 | + | if(file_exists('plugins/' . $pluginfetch['folder'] . '/Layouts/' . $pluginfetch['layout'])) { | |
| 18 | + | $plugin = array( | |
| 19 | + | 'url' => 'index.php?act=plugin&id='.$_GET['id'], | |
| 20 | + | 'site_url' => $settings['site_url'].'/index.php?act=plugin&id='.$_GET['id'], | |
| 21 | + | 'id' => $_GET['id'] | |
| 22 | + | ); | |
| 18 | 23 | include('plugins/' . $pluginfetch['folder'] . '/Layouts/' . $pluginfetch['layout']); | |
| 24 | + | } | |
| 19 | 25 | else | |
| 20 | 26 | call('redirect', 'index.php'); | |
| 21 | 27 | } | |
View this file contents
View the full history
Commits for banancanard-eoCMS:/trunk/themes/default/blueprints/Plugins.php