From 464bfa47c599007242302dd7711849cb323734d6 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 01:13:21 -0700 Subject: [PATCH 01/17] Issue #213 Chatbox avatar issue corrected. --- e107_core/shortcodes/single/user_avatar.php | 4 ++-- e107_plugins/chatbox_menu/chatbox_menu.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/single/user_avatar.php b/e107_core/shortcodes/single/user_avatar.php index 73af5a300..d3e2ce0ea 100644 --- a/e107_core/shortcodes/single/user_avatar.php +++ b/e107_core/shortcodes/single/user_avatar.php @@ -1,6 +1,6 @@ retrieve("nq_chatbox")) define("CB_MOD", check_class($pref['cb_mod'])); $qry = " - SELECT c.*, u.user_name FROM #chatbox AS c + SELECT c.*, u.user_name, u.user_image FROM #chatbox AS c LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts); From 3d6e3c5edea9a10cb3fdf2cb2003327facaaeb7f Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 01:36:48 -0700 Subject: [PATCH 02/17] Cache experiment - admin area only. --- e107_admin/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 7883704b1..87aeb17a3 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -405,7 +405,7 @@ if (isset($_SERVER['HTTP_IF_NONE_MATCH'])) } -header("Cache-Control: must-revalidate"); // XXX testing 'always on' state for now. +header("Cache-Control: max-age=5,no-cache",true); // XXX testing 'always on' state for now. if(!defined('e_NOCACHE')) { // header("Cache-Control: must-revalidate"); From d9ab9a3ea0e29607bba40ae43eb2dc5acaec457c Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 02:15:11 -0700 Subject: [PATCH 03/17] Broken path fix. --- e107_plugins/login_menu/login_menu_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/login_menu/login_menu_class.php b/e107_plugins/login_menu/login_menu_class.php index bc5248056..24117ca59 100644 --- a/e107_plugins/login_menu/login_menu_class.php +++ b/e107_plugins/login_menu/login_menu_class.php @@ -353,7 +353,7 @@ class login_menu_class require_once(e_HANDLER.'xml_class.php'); $xml = new xmlClass; $xml->filter = array('name' => FALSE,'version'=>FALSE); // Just want a couple of variables - $readFile = $xml->loadXMLfile(e_PLUGIN.$plugin_path.'/plugin.xml', true, true); + $readFile = $xml->loadXMLfile(e_PLUGIN.$plugid.'/plugin.xml', true, true); $ret['eplug_name'] = defined($readFile['name']) ? constant($readFile['name']) : $readFile['name']; $ret['eplug_version'] = $readFile['version']; } From 233302032674cc47ea5263489b1c8c65d1d0ab87 Mon Sep 17 00:00:00 2001 From: Moc Date: Sun, 5 May 2013 11:21:07 +0200 Subject: [PATCH 04/17] #236 - usersettings signature - bbcode area instead of html textarea --- e107_core/shortcodes/batch/usersettings_shortcodes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/usersettings_shortcodes.php b/e107_core/shortcodes/batch/usersettings_shortcodes.php index dacae583c..69eb1544c 100755 --- a/e107_core/shortcodes/batch/usersettings_shortcodes.php +++ b/e107_core/shortcodes/batch/usersettings_shortcodes.php @@ -191,9 +191,10 @@ class usersettings_shortcodes extends e_shortcode return; } parse_str($parm); - $cols = (isset($cols) ? $cols : 58); - $rows = (isset($rows) ? $rows : 4); - return ""; + //$cols = (isset($cols) ? $cols : 58); + //$rows = (isset($rows) ? $rows : 4); + //return ""; + return e107::getForm()->bbarea('signature', $this->var['user_signature'], '', '', 'small'); } From 681c7633e549485106dd1840a0d0370376babe5b Mon Sep 17 00:00:00 2001 From: SecretR Date: Sun, 5 May 2013 20:27:16 +0300 Subject: [PATCH 05/17] Issue #211: Click drop down in prefences triggers submit? --- e107_admin/prefs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 6c114f127..5e8245aeb 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -424,21 +424,21 @@ $text .= "
".LAN_MAILOUT_87.":   - + ".LAN_MAILOUT_88.": (".LAN_OPTIONAL.")   - + ".LAN_MAILOUT_89.": (".LAN_OPTIONAL.")   - + From d08403d01aa098ee08e1f907e08f900928b01aaf Mon Sep 17 00:00:00 2001 From: SecretR Date: Sun, 5 May 2013 20:55:04 +0300 Subject: [PATCH 06/17] Leftover debug - Issue #237: Error create category --- e107_plugins/featurebox/admin_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/featurebox/admin_config.php b/e107_plugins/featurebox/admin_config.php index 0e1370205..cf833c84a 100644 --- a/e107_plugins/featurebox/admin_config.php +++ b/e107_plugins/featurebox/admin_config.php @@ -138,7 +138,7 @@ class fb_category_ui extends e_admin_ui if(!varset($new_data['fb_category_template'])) { $new_data['fb_category_template'] = 'default'; - }var_dump($new_data); + } return $new_data; } From ec9e8380a12ed0539f7a7a332a047383de05c21d Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 14:09:00 -0700 Subject: [PATCH 07/17] Issue #213 - Chatbox template BC issue. --- e107_core/templates/usersettings_template.php | 7 +- e107_plugins/chatbox_menu/chatbox_menu.php | 132 +++++++++--------- 2 files changed, 73 insertions(+), 66 deletions(-) diff --git a/e107_core/templates/usersettings_template.php b/e107_core/templates/usersettings_template.php index 475cbdf3d..7be5fd99c 100755 --- a/e107_core/templates/usersettings_template.php +++ b/e107_core/templates/usersettings_template.php @@ -15,7 +15,12 @@ */ if (!defined('e107_INIT')) { exit; } -if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:auto"); } +if (!defined("USER_WIDTH")) +{ + $uw = (deftrue('e_BOOTSTRAP')) ? "" : "width:97%"; + define("USER_WIDTH", $uw); +} + // global $usersettings_shortcodes, $pref; diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php index 50a0b9d43..7842b671b 100644 --- a/e107_plugins/chatbox_menu/chatbox_menu.php +++ b/e107_plugins/chatbox_menu/chatbox_menu.php @@ -64,72 +64,76 @@ $emessage=''; // FIX - using generic sc names is affecting old installs/templates and global wrappers (e.g. sc_style[USERNAME]) -class chatbox_shortcodes extends e_shortcode +if(!class_exists('chatbox_shortcodes')) { - function sc_cb_username($parm='') + class chatbox_shortcodes extends e_shortcode { - list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2); - if($this->var['user_name']) + + function sc_username($parm='') { - $cb_nick = "".$this->var['user_name'].""; - } - else - { - $cb_nick = $tp -> toHTML($cb_nick,FALSE,'USER_TITLE, emotes_off, no_make_clickable'); - $cb_nick = str_replace("Anonymous", LAN_ANONYMOUS, $cb_nick); - } - - return $cb_nick; - } - - function sc_cb_timedate($parm='') - { - return e107::getDate()->convert_date($this->var['cb_datestamp'], "relative"); - } - - - function sc_cb_message($parm = '') - { - if($this->var['cb_blocked']) - { - return CHATBOX_L6; - } - - $pref = e107::getPref(); - $emotes_active = $pref['cb_emote'] ? 'USER_BODY, emotes_on' : 'USER_BODY, emotes_off'; - - list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2); - - $cb_message = e107::getParser()->toHTML($this->var['cb_message'], false, $emotes_active, $cb_uid, $pref['menu_wordwrap']); - - return $cb_message; - - $replace[0] = "["; $replace[1] = "]"; - $search[0] = "["; $search[1] = "]"; - $cb_message = str_replace($search, $replace, $cb_message); - } - - function sc_cb_avatar($parm='') - { - return e107::getParser()->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'])."}"); - } - - function sc_cb_bullet($parm = '') - { - $bullet = ""; - - if(defined('BULLET')) - { - $bullet = ''; - } - elseif(file_exists(THEME.'images/bullet2.gif')) - { - $bullet = ''; + list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2); + if($this->var['user_name']) + { + $cb_nick = "".$this->var['user_name'].""; + } + else + { + $cb_nick = $tp -> toHTML($cb_nick,FALSE,'USER_TITLE, emotes_off, no_make_clickable'); + $cb_nick = str_replace("Anonymous", LAN_ANONYMOUS, $cb_nick); + } + + return $cb_nick; } - return $bullet; + function sc_timedate($parm='') + { + return e107::getDate()->convert_date($this->var['cb_datestamp'], "relative"); + } + + + function sc_message($parm = '') + { + if($this->var['cb_blocked']) + { + return CHATBOX_L6; + } + + $pref = e107::getPref(); + $emotes_active = $pref['cb_emote'] ? 'USER_BODY, emotes_on' : 'USER_BODY, emotes_off'; + + list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2); + + $cb_message = e107::getParser()->toHTML($this->var['cb_message'], false, $emotes_active, $cb_uid, $pref['menu_wordwrap']); + + return $cb_message; + + $replace[0] = "["; $replace[1] = "]"; + $search[0] = "["; $search[1] = "]"; + $cb_message = str_replace($search, $replace, $cb_message); + } + + function sc_cb_avatar($parm='') + { + return e107::getParser()->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'])."}"); + } + + function sc_cb_bullet($parm = '') + { + $bullet = ""; + + if(defined('BULLET')) + { + $bullet = ''; + } + elseif(file_exists(THEME.'images/bullet2.gif')) + { + $bullet = ''; + } + + return $bullet; + } + } - } @@ -146,7 +150,6 @@ class chatbox_shortcodes extends e_shortcode - if((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] != '') { if(!USER && !$pref['anon_post']) @@ -289,7 +292,6 @@ if(!$text = $e107cache->retrieve("nq_chatbox")) ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts); global $CHATBOXSTYLE; - if($CHATBOXSTYLE) { @@ -303,9 +305,9 @@ if(!$text = $e107cache->retrieve("nq_chatbox")) // FIXME - move to template $CHATBOX_TEMPLATE['start'] = "
    "; $CHATBOX_TEMPLATE['item'] = "
  • - {CB_AVATAR} {CB_USERNAME}  - {CB_TIMEDATE}
    -

    {CB_MESSAGE}

    + {CB_AVATAR} {USERNAME}  + {TIMEDATE}
    +

    {MESSAGE}

  • \n"; $CHATBOX_TEMPLATE['end'] = "
"; From 5fb926f51d6b70cb01fbfc62cfe7f08a65f6361c Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 14:09:50 -0700 Subject: [PATCH 08/17] Issue #240 - duplicate folder - this should fix it. --- e107_admin/update_routines.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index b3be3d73e..e79149509 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -754,7 +754,10 @@ function update_706_to_800($type='') { if(is_dir(e_PLUGIN.$cgpArray['oldpath'])) { - $chgPath[] = $cgpArray['oldpath']; + if(!in_array($cgpArray['oldpath'],$chgPath)) + { + $chgPath[] = $cgpArray['oldpath']; + } } } //TODO LAN From d50b355cf1c8540ce53b8ce2e360b071dd47213b Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 14:10:41 -0700 Subject: [PATCH 09/17] Headers Already sent - add better debug info. --- thumb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thumb.php b/thumb.php index 3eec02434..7828e575a 100644 --- a/thumb.php +++ b/thumb.php @@ -298,9 +298,9 @@ class e_thumbpage public function sendHeaders($thumbnfo) { - if(headers_sent()) + if(headers_sent($filename, $linenum)) { - echo 'Headers already sent! '; + echo 'Headers already sent in '.$filename.' on line '.$linenum; exit; } From cfff63f08cad18e14cad3999f7dbb5a9a35d9cbe Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 14:42:40 -0700 Subject: [PATCH 10/17] Blog Calendar BC fix --- .../blogcalendar_menu/blogcalendar_menu.php | 92 ++++++++++--------- 1 file changed, 50 insertions(+), 42 deletions(-) diff --git a/e107_plugins/blogcalendar_menu/blogcalendar_menu.php b/e107_plugins/blogcalendar_menu/blogcalendar_menu.php index 041f2ad3b..aef6239f3 100644 --- a/e107_plugins/blogcalendar_menu/blogcalendar_menu.php +++ b/e107_plugins/blogcalendar_menu/blogcalendar_menu.php @@ -91,8 +91,7 @@ if(false === $cached) // ------------------------------- // create the month selection item // ------------------------------- - $month_selector = "
"; - $month_selector .= "
"; + - if(deftrue('e_BOOTSTRAP')) - { - $month_selector = ''; - $caption = "
".BLOGCAL_L1." ".$month_selector."
"; - } - else - { - $caption = "
".BLOGCAL_L1." ".$req_year."
"; - } - - // ------------------------ // create and show calendar @@ -178,28 +156,58 @@ if(false === $cached) $menu .= ""; $menu .= ""; */ - $menu = ""; - + else // BC + { + + $month_selector = "
"; + $month_selector .= "
"; + + + $menu = "
"; + $menu .= ""; + $menu .= "
".$month_selector; + $menu .= "
".calendar($req_day, $req_month, $req_year, $day_links, $pref['blogcal_ws'])."
"; + $menu .= "
"; + + $caption = "
".BLOGCAL_L1." ".$req_year."
"; + } + $cached = $ns->tablerender($caption, $menu, 'blog_calendar', true); // echo "day= ".$req_day. " month=".$req_month." year=".$req_year." links=".print_a($day_links)." ws=".$pref['blogcal_ws']; e107::getCache()->set($cString, $menu); From 7c8045e88b4fa4aeec3d89b484c7bd7f261b6976 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 16:11:09 -0700 Subject: [PATCH 11/17] {SITELINKS_ALT} BC fix. (hopefully) --- e107_core/shortcodes/single/sitelinks_alt.php | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/e107_core/shortcodes/single/sitelinks_alt.php b/e107_core/shortcodes/single/sitelinks_alt.php index 1ad3bb269..ec095b2b3 100644 --- a/e107_core/shortcodes/single/sitelinks_alt.php +++ b/e107_core/shortcodes/single/sitelinks_alt.php @@ -21,7 +21,7 @@ class sitelinks_alt $params = explode('+', $parm); - if (isset($params[0]) && $params[0] && $params[0] != 'no_icons' && $params[0] != 'default') + if (vartrue($params[0]) && ($params[0] != 'no_icons') && ($params[0] != 'default')) { $icon = $params[0]; } @@ -58,6 +58,7 @@ class sitelinks_alt foreach ($linklist['head_menu'] as $lk) { $lk['link_url'] = $tp->replaceConstants($lk['link_url'], TRUE, TRUE); + if ($params[0] == 'no_icons') { $link_icon = 'no_icons'; @@ -170,6 +171,8 @@ class sitelinks_alt function render_sub($linklist, $id, $params, $icon) { + $tp = e107::getParser(); + $text = ""; - - - $menu = "
"; + + $menu = "
+
"; $menu .= ""; From 7099d0827031631d016fb8c8b8a27c132e05de99 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 17:23:12 -0700 Subject: [PATCH 13/17] Issue #249 - welcome-message placement in bootstrap theme. --- e107_admin/wmessage.php | 6 ++++-- e107_themes/bootstrap/theme.php | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/e107_admin/wmessage.php b/e107_admin/wmessage.php index 985d9d5fa..b8aee0403 100644 --- a/e107_admin/wmessage.php +++ b/e107_admin/wmessage.php @@ -112,7 +112,9 @@ if (isset($_POST['main_delete'])) $mes->addError(LAN_DELETED_FAILED); } } -$ns->tablerender($caption, $mes->render() . $text); + +echo $mes->render(); + // Show Existing ------- if ($action == "main" || $action == "") @@ -183,7 +185,7 @@ if ($action == "create" || $action == "edit") - + diff --git a/e107_themes/bootstrap/theme.php b/e107_themes/bootstrap/theme.php index f8e77dbd4..2295e2ca2 100644 --- a/e107_themes/bootstrap/theme.php +++ b/e107_themes/bootstrap/theme.php @@ -153,6 +153,7 @@ $HEADER['default'] = '
{SETSTYLE=default} + {WMESSAGE} '; @@ -176,7 +177,7 @@ $HEADER['default-home'] = $HEADER['default']; $FOOTER['default-home'] = ' - {WMESSAGE} + {SETSTYLE=span4}
From 805df147f3ddb4003cf89a32131e7b2fb2bbe9fd Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 18:27:06 -0700 Subject: [PATCH 14/17] Admin -> Frontpage interface cleanup --- e107_admin/frontpage.php | 159 +++++++++++++++++++++------------------ 1 file changed, 86 insertions(+), 73 deletions(-) diff --git a/e107_admin/frontpage.php b/e107_admin/frontpage.php index 2294355a0..551cf6516 100644 --- a/e107_admin/frontpage.php +++ b/e107_admin/frontpage.php @@ -315,22 +315,6 @@ if($fp_update_prefs) $fp = new frontpage($front_page); -if(isset($_POST['fp_add_new'])) -{ - $text = $fp->edit_rule(array('order' => 0, 'class' => e_UC_PUBLIC, 'page' => 'news.php', 'force' => FALSE)); // Display edit form as well - $text .= $fp->select_class($fp_settings, FALSE); - $ns->tablerender(FRTLAN_PAGE_TITLE." - ".FRTLAN_42, $text); -} -elseif(isset($_POST['fp_edit_rule'])) -{ - $text = $fp->edit_rule($fp_settings[key($_POST['fp_edit_rule'])]); // Display edit form as well - $text .= $fp->select_class($fp_settings, FALSE); - $ns->tablerender(FRTLAN_PAGE_TITLE." - ".FRTLAN_46, $text); -} -else -{ // Just show existing rules - $ns->tablerender(FRTLAN_PAGE_TITLE." - ".FRTLAN_13, $mes->render().$fp->select_class($fp_settings, TRUE)); -} @@ -343,6 +327,31 @@ class frontpage { $this->frm = e107::getForm(); $this->frontPage = $fp; + + $ns = e107::getRender(); + $mes = e107::getMessage(); + + global $fp_settings; + + + if(vartrue($_GET['mode']) == 'create') + { + $text = $this->edit_rule(array('order' => 0, 'class' => e_UC_PUBLIC, 'page' => 'news.php', 'force' => FALSE)); // Display edit form as well + // $text .= $this->select_class($fp_settings, FALSE); + $ns->tablerender(FRTLAN_PAGE_TITLE.SEP.FRTLAN_42, $text); + } + elseif(vartrue($_GET['id'])) + { + $key = intval($_GET['id']); + $text = $this->edit_rule($fp_settings[$key]); // Display edit form as well + // $text .= $this->select_class($fp_settings, FALSE); + $ns->tablerender(FRTLAN_PAGE_TITLE.SEP.FRTLAN_46, $text); + } + else + { // Just show existing rules + $ns->tablerender(FRTLAN_PAGE_TITLE.SEP.FRTLAN_13, $mes->render().$this->select_class($fp_settings, TRUE)); + } + } @@ -356,6 +365,7 @@ class frontpage */ function select_class(&$fp_settings, $show_button = TRUE) { + $frm = e107::getForm(); // List of current settings $show_legend = $show_button ? " class='e-hideme'" : ''; $text = " @@ -377,7 +387,7 @@ class frontpage
- + "; @@ -391,13 +401,21 @@ class frontpage - "; + + /* + + + + */ } $text .= " @@ -407,7 +425,7 @@ class frontpage { $text .= "
- ".$this->frm->admin_button('fp_add_new', FRTLAN_42, 'create')." + ".FRTLAN_42."
"; } @@ -452,59 +470,57 @@ class frontpage } +// ".($rule_info['order'] ? FRTLAN_46 : FRTLAN_42)." + $text = " - -
- ".($rule_info['order'] ? FRTLAN_46 : FRTLAN_42)." -
-
".$month_selector; $menu .= "
".calendar($req_day, $req_month, $req_year, $day_links, $pref['blogcal_ws'])."
"; $menu .= "
".WMLAN_10."".$frm->text(wm_caption, $tp->toForm(vartrue($row['gen_ip'])), 80)."".$frm->text('wm_caption', $tp->toForm(vartrue($row['gen_ip'])), 80)."
".WMLAN_04." ".FRTLAN_53." ".FRTLAN_49." ".FRTLAN_35."".LAN_EDIT."".LAN_OPTIONS."
".$title." ".$this->lookup_path($current_value['page'])." ".$this->lookup_path($current_value['force'])." - - - - + +
+ ".$frm->admin_button('fp_inc',$order,'up',ADMIN_UP_ICON)." + ".$frm->admin_button('fp_dec',$order,'down',ADMIN_DOWN_ICON)." + ".ADMIN_EDIT_ICON." + ".$frm->admin_button('fp_delete_rule['.$order.']',$order,'',ADMIN_DELETE_ICON)." +
+ "; + + $text .= ' + '; + + $text .= " +
+
+
- - + + - - - - - - {$text_tmp_1} + ".$text_tmp_1." ".$this->add_other('frontpage', $is_other_home, $rule_info['page'])."
- ".FRTLAN_49." -
-
- + +
+
- - + + - - - - - - {$text_tmp_2} + ".$text_tmp_2." ".$this->add_other('fp_force_page', $is_other_force, $rule_info['force'])."
- ".FRTLAN_35." ".FRTLAN_50." -
+ +
".$this->frm->hidden('fp_order', $rule_info['order'])." ".FRTLAN_43.": ".e107::getUserClass()->uc_dropdown('class', $rule_info['class'], 'public,guest,member,admin,main,classes')." ".$this->frm->admin_button('fp_save_new', LAN_UPDATE, 'update')." ".$this->frm->admin_button('fp_cancel', LAN_CANCEL, 'cancel')."
-
+ "; return $text; @@ -592,8 +608,7 @@ class frontpage { // Multiple options for same page name $text .= " - ".$this->frm->radio($ob_name, $front_key, $type_selected)."  - ".$this->frm->label($front_value['title'], $ob_name, $front_key)." + ".$this->frm->radio($ob_name, $front_key, $type_selected, array('label'=>$front_value['title']))." "; @@ -609,8 +624,7 @@ class frontpage { // Single option for URL $text .= " - ".$this->frm->radio($ob_name, $front_key, $type_selected)."  - ".$this->frm->label($front_value['title'], $ob_name, $front_key)." + ".$this->frm->radio($ob_name, $front_key, $type_selected, array('label'=>$front_value['title']))."  "; @@ -632,9 +646,11 @@ class frontpage */ function add_other($ob_name, $cur_val, $cur_page) { + $label = ($cur_val) ? "Disabled or Enter Custom URL:" : "Custom URL: "; + return " - ".$this->frm->radio($ob_name, 'other', $cur_val)." ".$this->frm->label(FRTLAN_15.":", $ob_name, 'other')." - ".$this->frm->text($ob_name.'_other', ($cur_val ? $cur_page : ''), 150, "size=50&id={$ob_name}-other-txt")." + ".$this->frm->radio($ob_name, 'other', $cur_val, array('label'=> $label))." + ".$this->frm->text($ob_name.'_other', ($cur_val ? $cur_page : ''), 150, "size=xxlarge&id={$ob_name}-other-txt")." "; } } @@ -654,23 +670,20 @@ function frontpage_adminlog($msg_num = '00', $woffle = '') e107::getAdminLog()->log_event('FRONTPG_'.$msg_num, $woffle, E_LOG_INFORMATIVE, ''); } -/** - * Handle page DOM within the page header - * - * @return string JS source - */ -function headerjs() -{ - require_once(e_HANDLER.'js_helper.php'); - $ret = " - - - "; - return $ret; +function frontpage_adminmenu() +{ + + $action = vartrue($_GET['mode'],'main'); + + $var['main']['text'] = LAN_MANAGE; + $var['main']['link'] = e_SELF; + $var['create']['text'] = LAN_CREATE; + $var['create']['link'] = e_SELF."?mode=create"; + + + show_admin_menu(FRTLAN_PAGE_TITLE, $action, $var); } + ?> \ No newline at end of file From dc4b659c40f6510f22ae544dce37d3477b4f4b36 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 18:52:39 -0700 Subject: [PATCH 15/17] Closes #246 - broken cPanel link --- e107_admin/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_admin/cron.php b/e107_admin/cron.php index 767f1d0b7..44b71bbcd 100644 --- a/e107_admin/cron.php +++ b/e107_admin/cron.php @@ -358,7 +358,7 @@ class cron_admin_ui extends e_admin_ui $setpwd_message .= "". LAN_CRON_16.""; if(e_DOMAIN && file_exists("/usr/local/cpanel/version")) { - $setpwd_message .= ""; + $setpwd_message .= ""; } $setpwd_message .= "

".$frm->admin_button('generate_pwd', 1, 'delete', 'Generate new cron password',array('class'=>'btn btn-small')); From 6744c5b91cd98f5f7cce1fc6ba616845f6dfa051 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 18:59:51 -0700 Subject: [PATCH 16/17] Closes #245 - Link after Forum update. --- e107_plugins/forum/forum_update.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php index 322b4b4eb..0de814d9e 100644 --- a/e107_plugins/forum/forum_update.php +++ b/e107_plugins/forum/forum_update.php @@ -1233,6 +1233,9 @@ function step12() $ret = $f -> setNewVersion(); $mes -> addSuccess("Congratulations, the forum upgrade is now completed!

{$ret}"); + + $text = "Return to e107 Update"; + $ns -> tablerender($stepCaption, $mes -> render() . $text); return; } From c06a0471b2de96defbb389c9b73654b0f86f7aee Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 5 May 2013 20:24:21 -0700 Subject: [PATCH 17/17] Issue #250 - should now auto-redirect to the new link. --- download.php | 6 +++++- e107_handlers/redirection_class.php | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/download.php b/download.php index 8e44e0e4d..f9875a0dd 100644 --- a/download.php +++ b/download.php @@ -20,7 +20,11 @@ require_once("class2.php"); -require_once(e_PLUGIN."download/download.php"); +$query = (e_QUERY) ? "?".e_QUERY : ""; + +e107::getRedirect()->go(e_PLUGIN."download/download.php".$query,true); + +//require_once(e_PLUGIN."download/download.php"); exit(); diff --git a/e107_handlers/redirection_class.php b/e107_handlers/redirection_class.php index c16cbe146..cf5c3b35e 100644 --- a/e107_handlers/redirection_class.php +++ b/e107_handlers/redirection_class.php @@ -305,6 +305,12 @@ class redirection } } + + public function redirect($url, $replace = TRUE, $http_response_code = NULL) + { + return $this->go($url, $replace, $http_response_code); + } + /** * Redirect to the given URI @@ -314,7 +320,7 @@ class redirection * @param integer|null $http_response_code - default NULL * @return void */ - public function redirect($url, $replace = TRUE, $http_response_code = NULL) + public function go($url, $replace = TRUE, $http_response_code = NULL) { if(session_id()) {