1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<?php
/* eoCMS � 2007 - 2010, a Content Management System
by James Mortemore, Ryan Matthews
http://www.eocms.com
is licenced under a Creative Commons
Attribution-Share Alike 2.0 UK: England & Wales Licence.
Permissions beyond the scope of this licence
may be available at http://creativecommons.org/licenses/by-sa/2.0/uk/.
Additional licence terms at http://eocms.com/licence.html
*/
function displaylowerpanel()
{
global $settings, $user, $lowerpanel, $lang_path;
$body = '';
$querystring = '?'.(isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');$querystring = Sanitize($querystring);
if (!empty($settings['exclude_lower'])) {
$listofexcludeslower = explode(", ", $settings['exclude_lower']);
if(in_array($querystring, $listofexcludeslower))
$checkupper = true;
else
$checklower = in_array($_GET['act'], $listofexcludeslower);
} else {
$checkupper = false;
}
if ($checklower == false) {
$body .= '<div class="sidebar" id="panel_lower">';
foreach ($lowerpanel as $panel) {
if (call('visiblecheck', $user['membergroup_id'], $panel['rank'])) {
if ($panel['all_pages'] == '1' || ($_GET['act'] == '' && $panel['all_pages'] == '0')) {
if (!empty($panel['file'])) {
$body .= '<br />';
$body .= '<div class="panel" id="panel_' . $panel['id'] . '">';
if(strpos($panel['file'], 'Plugins/') !== false) {
@include($panel['file'] .'/languages/' . $lang_path . '.php');
include $panel['file'].'/index.php';
} else {
@include('panels/' . $panel['file'] .'/languages/' . $lang_path . '.php');
include 'panels/' . $panel['file'] . '/index.php';
}
$body .= '</div>';
} else {
$body .= '<div class="panel" id="panel_' . $panel['id'] . '"><div class="panel-header">' . theme('title', $panel['panelname']) . '</div>' . theme('start_content_panel');
if(empty($panel['type']) || $panel['type'] == 'html')
$body .= html_entity_decode($panel['panelcontent']);
elseif(!empty($panel['type']) && $panel['type'] == 'php')
eval(html_entity_decode($panel['panelcontent']));
$body .= theme('end_content') . '</div>';
}
}
}
}
$body .= '</div>';
}
return $body;
}
?>
|
History for banancanard-eoCMS/branches/0.9/functions/themes/displaylowerpanel.php
| Revision | Author | Commited | Message |
|---|---|---|---|
809
Diff
|
|
Fri 12 Mar, 2010 19:37:27 +0000 | Added in the missing query string in displaylowerpanel which was causing a notice to appear. |
806
Diff
|
|
Sun 28 Feb, 2010 22:48:44 +0000 | Fixed exclude panels problems when excluding using a query string |
784
Diff
|
|
Wed 06 Jan, 2010 19:07:42 +0000 | Change the 0.9 branch licence to the Creative Commons Share-Alike 2.0 England and Wales |
702
Diff
|
|
Mon 05 Oct, 2009 21:47:21 +0000 | Added 0.9 branch |
701
Diff
|
|
Mon 05 Oct, 2009 21:43:44 +0000 | Moved all files into trunk |
546
Diff
|
|
Thu 20 Aug, 2009 21:18:36 +0000 | Fixed bug with language include for lower panels |
535
Diff
|
|
Fri 14 Aug, 2009 15:40:35 +0000 | Added support for panels to have language files within their folder example: panels/user_info/languages/en.php |
532
Diff
|
|
Thu 13 Aug, 2009 18:46:09 +0000 | Fixed bug when using PHP in a panel |
479
Diff
|
|
Wed 05 Aug, 2009 13:02:39 +0000 | Fixed bug in installplugin function. Added support to use Plugin panels |
| 466 |
|
Sun 02 Aug, 2009 19:20:52 +0000 | Added support to use PHP inside a panel made within the admin |
Diff
View complete history
Commits for banancanard-eoCMS:/branches/0.9/functions/themes/displaylowerpanel.php