diff --git a/e107_admin/admin_log.php b/e107_admin/admin_log.php index c2a7405f5..d7d5358d5 100644 --- a/e107_admin/admin_log.php +++ b/e107_admin/admin_log.php @@ -56,7 +56,7 @@ if(is_array($pref['lan_log_list'])) //... and for any plugins which support it { $file = str_replace('--LAN--', e_LANGUAGE, $file); - echo "orig = ".$file." "; + // echo "orig = ".$file." "; e107::lan($path,'log',true); //include_lan(e_PLUGIN.$path.'/'.$file); } diff --git a/e107_admin/links.php b/e107_admin/links.php index 8d3e26cb7..3b8af6d80 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -68,7 +68,7 @@ class links_admin_ui extends e_admin_ui protected $perPage = 0; protected $batchDelete = true; protected $batchCopy = true; - protected $listOrder = 'link_order ASC'; + protected $listOrder = 'link_category,link_order ASC'; protected $listSorting = true; // TODO - should enable the 'sort' icon in the 'options' column. @@ -78,14 +78,14 @@ class links_admin_ui extends e_admin_ui protected $fields = array( 'checkboxes' => array('title'=> '', 'width' => '3%','forced' => true, 'thclass' => 'center first','class' => 'center first'), 'link_button' => array('title'=> LAN_ICON, 'type'=>'icon', 'width'=>'5%', 'thclass' => 'center', 'class'=>'center'), - 'link_id' => array('title'=> ID, 'noedit'=>TRUE), + 'link_id' => array('title'=> LAN_ID, 'noedit'=>TRUE), 'link_name' => array('title'=> LCLAN_15, 'width'=>'auto','type'=>'text', 'required' => true, 'validate' => true), 'link_parent' => array('title'=> 'Sublink of', 'type' => 'method', 'width' => 'auto', 'batch'=>true, 'filter'=>true, 'thclass' => 'left first'), 'link_url' => array('title'=> LCLAN_93, 'width'=>'auto', 'type'=>'text', 'required'=>true,'validate' => true), 'link_sefurl' => array('title'=> LAN_SEFURL, 'type' => 'text', 'width' => 'auto'), 'link_class' => array('title'=> LAN_USERCLASS, 'type' => 'userclass', 'writeParms' => 'classlist=public,guest,nobody,member,classes,admin,main', 'batch'=>true, 'filter'=>true, 'width' => 'auto'), 'link_description' => array('title'=> LCLAN_17, 'type' => 'textarea', 'width' => 'auto'), // 'method'=>'tinymce_plugins', ? - 'link_category' => array('title'=> LCLAN_12, 'type' => 'dropdown', 'batch'=>true, 'filter'=>true, 'width' => 'auto'), + 'link_category' => array('title'=> LAN_TEMPLATE, 'type' => 'dropdown', 'batch'=>true, 'filter'=>true, 'width' => 'auto'), 'link_order' => array('title'=> LAN_ORDER, 'type' => 'number', 'width' => 'auto', 'nolist'=>true), 'link_open' => array('title'=> LCLAN_19, 'type' => 'dropdown', 'width' => 'auto', 'batch'=>true, 'filter'=>true, 'thclass' => 'left first'), 'link_function' => array('title'=> 'Function', 'type' => 'method', 'data'=>'str', 'width' => 'auto', 'thclass' => 'left first'), @@ -111,15 +111,15 @@ class links_admin_ui extends e_admin_ui { $this->fields['link_category']['writeParms'] = array( 1 => "1 - Main", - 2 => "2 - Alt", - 3 => "3 - Alt", + 2 => "2 - Sidebar", + 3 => "3 - Footer", 4 => "4 - Alt", 5 => "5 - Alt", - 6 => "6 - Alt", - 7 => "7 - Alt", - 8 => "8 - Alt", - 9 => "9 - Alt", - 10 => "10 - Alt" + // 6 => "6 - Alt", // If these are required, something is not right with the themeing method. + // 7 => "7 - Alt", + // 8 => "8 - Alt", + // 9 => "9 - Alt", + // 10 => "10 - Alt" ); $this->fields['link_open']['writeParms'] = array( diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 2652c36af..858af48b1 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -299,7 +299,7 @@ class pluginManager{ $mes->addWarning("This area is experimental and may produce unpredictable results."); - $from = intval($_GET['frm']); + $from = intval(varset($_GET['frm'])); // $file = SITEURLBASE.e_PLUGIN_ABS."release/release.php"; // temporary testing $file = "http://e107.org/feed?frm=".$from; @@ -1317,7 +1317,7 @@ class pluginBuilder $this->special['checkboxes'] = array('title'=> '','type' => null, 'data' => null, 'width'=>'5%', 'thclass' =>'center', 'forced'=> TRUE, 'class'=>'center', 'toggle' => 'e-multiselect', 'fieldpref'=>true); $this->special['options'] = array( 'title'=> LAN_OPTIONS, 'type' => null, 'data' => null, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center last', 'forced'=>TRUE, 'fieldpref'=>true); - if($_GET['newplugin']) + if(vartrue($_GET['newplugin'])) { $this->pluginName = $_GET['newplugin']; } diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 8be1476be..1b83f6f91 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -457,21 +457,21 @@ $text .= "