1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

PHP Warning Removal

This commit is contained in:
Cameron
2012-12-06 14:53:58 -08:00
parent 367ec69c62
commit ebe66a5801
5 changed files with 14 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ require_once('../class2.php');
//TODO - marj prepare language reorganisation //TODO - marj prepare language reorganisation
//include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE); //include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_'.e_PAGE);
if($_GET['iframe'] == 1) if(vartrue($_GET['iframe']) == 1)
{ {
define('e_IFRAME', true); define('e_IFRAME', true);

View File

@@ -77,7 +77,7 @@ EOF;
$frm = e107::getForm(); $frm = e107::getForm();
/* /*
XXX Check Bootstrap bug is fixed.
echo ' echo '
<ul class="thumbnails"> <ul class="thumbnails">
<li class="span4"> <li class="span4">
@@ -110,17 +110,11 @@ EOF;
<img src="http://placehold.it/360x270" alt=""> <img src="http://placehold.it/360x270" alt="">
</a> </a>
</li> </li>
</ul> </ul>
'; ';
*/ */
//TODO LANs throughout. //TODO LANs throughout.
global $style; global $style;
@@ -136,16 +130,12 @@ EOF;
$array_functions_assoc = e107::getNav()->adminLinks('assoc'); $array_functions_assoc = e107::getNav()->adminLinks('assoc');
$iconlist = array_merge($array_functions_assoc, e107::getNav()->pluginLinks(E_16_PLUGMANAGER, "array")); $iconlist = array_merge($array_functions_assoc, e107::getNav()->pluginLinks(E_16_PLUGMANAGER, "array"));
// "<form method='post' action='".e_SELF."?".e_QUERY."'>"; // "<form method='post' action='".e_SELF."?".e_QUERY."'>";
$tp->parseTemplate("{SETSTYLE=core-infopanel}"); $tp->parseTemplate("{SETSTYLE=core-infopanel}");
// Personalized Panel // Personalized Panel
// Rendering the saved configuration. // Rendering the saved configuration.
$mainPanel = " $mainPanel = "
@@ -166,7 +156,7 @@ EOF;
</div>"; </div>";
$text .= $ns->tablerender(ucwords(USERNAME)."'s Control Panel", $mainPanel, "core-infopanel_mye107",true); $text = $ns->tablerender(ucwords(USERNAME)."'s Control Panel", $mainPanel, "core-infopanel_mye107",true);
// ------------------------------- e107 News -------------------------------- // ------------------------------- e107 News --------------------------------

View File

@@ -1355,10 +1355,10 @@ class admin_shortcodes
{ {
$plug_vars = $plug->plug_vars; $plug_vars = $plug->plug_vars;
//if($row['plugin_path']=='tinymce') if($row['plugin_path']=='calendar_menu')
//{ {
// print_a($plug_vars); // print_a($plug_vars);
//} }
// moved to boot.php // moved to boot.php
// e107::loadLanFiles($row['plugin_path'], 'admin'); // e107::loadLanFiles($row['plugin_path'], 'admin');
@@ -1377,7 +1377,7 @@ class admin_shortcodes
$id = 'plugnav-'.$row['plugin_path']; $id = 'plugnav-'.$row['plugin_path'];
$tmp[$id]['text'] = e107::getParser()->toHTML($plug_vars['@attributes']['name'], FALSE, "LINKTEXT"); $tmp[$id]['text'] = e107::getParser()->toHTML($plug_vars['@attributes']['name'], FALSE, "LINKTEXT");
$tmp[$id]['description'] = $plug_vars['description']; $tmp[$id]['description'] = vartrue($plug_vars['description']['@value']);
$tmp[$id]['link'] = e_PLUGIN_ABS.$row['plugin_path'].'/'.$plug_vars['administration']['configFile']; $tmp[$id]['link'] = e_PLUGIN_ABS.$row['plugin_path'].'/'.$plug_vars['administration']['configFile'];
$tmp[$id]['image'] = $icon_src ? "<img src='{$icon_src}' alt=\"".varset($tmp[$id]['text'])."\" class='icon S16' />" : E_16_PLUGIN; $tmp[$id]['image'] = $icon_src ? "<img src='{$icon_src}' alt=\"".varset($tmp[$id]['text'])."\" class='icon S16' />" : E_16_PLUGIN;
$tmp[$id]['image_large'] = $icon_src_lrg ? "<img src='{$icon_src_lrg}' alt=\"".varset($tmp[$id]['text'])."\" class='icon S32' />" : $icon_src_lrg; $tmp[$id]['image_large'] = $icon_src_lrg ? "<img src='{$icon_src_lrg}' alt=\"".varset($tmp[$id]['text'])."\" class='icon S32' />" : $icon_src_lrg;
@@ -1396,7 +1396,7 @@ class admin_shortcodes
{ {
$subid = $id.'-'.$subkey; $subid = $id.'-'.$subkey;
$predef_icons = array('add', 'manage', 'settings'); $predef_icons = array('add', 'manage', 'settings');
$title = $plugsub['@value']; $title = vartrue($plugsub['@value']);
$plugsub = $plugsub['@attributes']; $plugsub = $plugsub['@attributes'];
if(varset($plugsub['primary'])=='true') // remove primary links. if(varset($plugsub['primary'])=='true') // remove primary links.
@@ -1408,7 +1408,7 @@ class admin_shortcodes
$tmp[$id]['sub'][$subid]['text'] = e107::getParser()->toHTML($title, FALSE, 'LINKTEXT'); $tmp[$id]['sub'][$subid]['text'] = e107::getParser()->toHTML($title, FALSE, 'LINKTEXT');
$tmp[$id]['sub'][$subid]['description'] = e107::getParser()->toHTML($plug_vars['description']); $tmp[$id]['sub'][$subid]['description'] = (vartrue($plug_vars['description']['@value'])) ? e107::getParser()->toHTML($plug_vars['description']['@value']) : "";
$tmp[$id]['sub'][$subid]['link'] = e_PLUGIN_ABS.$row['plugin_path'].'/'.$plugsub['url']; $tmp[$id]['sub'][$subid]['link'] = e_PLUGIN_ABS.$row['plugin_path'].'/'.$plugsub['url'];
$tmp[$id]['sub'][$subid]['image'] = $icon_src ? "<img src='{$icon_src}' alt=\"".varset($tmp[$id]['sub'][$subid]['text'])."\" class='icon S16' />" : ""; $tmp[$id]['sub'][$subid]['image'] = $icon_src ? "<img src='{$icon_src}' alt=\"".varset($tmp[$id]['sub'][$subid]['text'])."\" class='icon S16' />" : "";
$tmp[$id]['sub'][$subid]['image_large'] = ''; $tmp[$id]['sub'][$subid]['image_large'] = '';

View File

@@ -297,13 +297,13 @@ class ecache {
if($type == 'db') if($type == 'db')
{ {
$path = e_CACHE_DB; $path = e_CACHE_DB;
$mask = ($mask == null) ? '*.php' : $mask; $mask = ($mask == null) ? '.*\.php' : $mask;
} }
if($type == 'image') if($type == 'image')
{ {
$path = e_CACHE_IMAGE; $path = e_CACHE_IMAGE;
$mask = ($mask == null) ? '*.cache\.bin' : $mask; $mask = ($mask == null) ? '.*\.cache\.bin' : $mask;
} }
if((null == $path) || (null == $mask)) if((null == $path) || (null == $mask))

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e107Plugin name="Event Calendar" lan="EC_ADLAN_1" version="3.70" date="2012-08-01" compatibility="2.0" installRequired="true" > <e107Plugin name="Event Calendar" lan="EC_ADLAN_1" version="3.70" date="2012-08-01" compatibility="2.0" installRequired="true" >
<author name="e107 Inc. + Barry" url="http://e107.org" /> <author name="e107 Inc. + Barry" url="http://e107.org" />
<description lan="EC_ADLAN_A206">This plugin is a fully featured event calendar with calendar menu.</description> <description >This plugin is a fully featured event calendar with calendar menu.</description>
<readMe>readme.pdf</readMe> <readMe>readme.pdf</readMe>
<category>content</category> <category>content</category>
<languageFiles> <languageFiles>