From 95efaf39ff117625c8762621d06f6e13bf82b75f Mon Sep 17 00:00:00 2001 From: e107steved Date: Sun, 3 Jan 2010 14:46:18 +0000 Subject: [PATCH] Absolute link constants --- .../batch/admin_shortcodes_class.php | 40 +++++++++---------- e107_files/shortcode/newsfile.sc | 4 +- e107_files/shortcode/newsimage.sc | 2 +- e107_files/shortcode/picture.sc | 2 +- e107_files/shortcode/profile.sc | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) diff --git a/e107_files/shortcode/batch/admin_shortcodes_class.php b/e107_files/shortcode/batch/admin_shortcodes_class.php index b0251b75e..9ba9c4716 100644 --- a/e107_files/shortcode/batch/admin_shortcodes_class.php +++ b/e107_files/shortcode/batch/admin_shortcodes_class.php @@ -1,7 +1,7 @@ - + "; } @@ -115,7 +115,7 @@ class admin_shortcodes $icon = E_32_CAT_PLUG; return $icon; } - $icon = ($eplug_icon && file_exists(e_PLUGIN.$eplug_icon)) ? "" : E_32_CAT_PLUG; + $icon = ($eplug_icon && file_exists(e_PLUGIN.$eplug_icon)) ? "" : E_32_CAT_PLUG; } else { @@ -301,7 +301,7 @@ class admin_shortcodes if($amount = $sql -> db_Select('generic', '*', $queryString)) { - $text .= "
".ADLAN_LAT_8." [".$amount."]"; + $text .= "
".ADLAN_LAT_8." [".$amount."]"; } $text .= ""; return $ns -> tablerender(ADLAN_LAT_1, $text, '', TRUE); @@ -353,8 +353,8 @@ class admin_shortcodes $text .= "
  • {$datestamp} - {$row['dblog_title']}
  • "; } $text .= ($cnt ? '' : ''); - $text .= "[ ".ADLAN_117." ]"; - $text .= "
    [ ".ADLAN_118." ]"; + $text .= "[ ".ADLAN_117." ]"; + $text .= "
    [ ".ADLAN_118." ]"; // $text .= "
    [ ".ADLAN_118." ]\n"; @@ -429,7 +429,7 @@ class admin_shortcodes { if ($link == 'index') { - $image = "".$image.''; + $image = "".$image.''; } else { @@ -535,9 +535,9 @@ class admin_shortcodes $active_page = time(); } $e107_var['x']['text'] = ADLAN_52; - $e107_var['x']['link'] = e_ADMIN.'admin.php'; + $e107_var['x']['link'] = e_ADMIN_ABS.'admin.php'; $e107_var['y']['text'] = ADLAN_53; - $e107_var['y']['link'] = e_BASE."index.php"; + $e107_var['y']['link'] = e_HTTP."index.php"; //$text .= show_admin_menu("",$active_page,$e107_var); $e107_var['afuncs']['text'] = ADLAN_93; @@ -603,7 +603,7 @@ class admin_shortcodes } $e107_var['lout']['text']=ADLAN_46; - $e107_var['lout']['link']=e_ADMIN.'admin.php?logout'; + $e107_var['lout']['link']=e_ADMIN_ABS.'admin.php?logout'; $text = e_admin_menu('', '', $e107_var); return $ns->tablerender(LAN_head_1, $text, array('id' => 'admin_nav', 'style' => 'button_menu'), TRUE); @@ -840,10 +840,10 @@ class admin_shortcodes $text = "
    -
    ".E_16_USER." ".ADLAN_110.": ".$members."
    -
    ".E_16_USER." {$unver}: ".$unverified."
    -
    ".E_16_BANLIST." ".ADLAN_112.": ".$banned."
    -
    ".E_16_COMMENT." ".ADLAN_114.": ".$comments."
    "; +
    ".E_16_USER." ".ADLAN_110.": ".$members."
    +
    ".E_16_USER." {$unver}: ".$unverified."
    +
    ".E_16_BANLIST." ".ADLAN_112.": ".$banned."
    +
    ".E_16_COMMENT." ".ADLAN_114.": ".$comments."
    "; if(vartrue($pref['e_status_list'])) { @@ -858,7 +858,7 @@ class admin_shortcodes if($flo = $sql->db_Count('generic', '(*)', "WHERE gen_type='failed_login'")) { - $text .= " ".ADLAN_146.": $flo"; + $text .= " ".ADLAN_146.": $flo"; } $text .= "
    "; return $ns -> tablerender(LAN_STATUS, $text, '', TRUE); @@ -1091,7 +1091,7 @@ class admin_shortcodes { if ($file != '.' && $file != '..' && $file != 'CVS') { - $text .= adnav_main(str_replace('_', ' ', $file), e_ADMIN.'docs.php?'.$i, E_16_DOCS); + $text .= adnav_main(str_replace('_', ' ', $file), e_ADMIN_ABS.'docs.php?'.$i, E_16_DOCS); $i++; } } @@ -1108,8 +1108,8 @@ class admin_shortcodes $text .= " '; @@ -1305,7 +1305,7 @@ class admin_shortcodes if(!varsettrue($parms['disable_ll'])) { $menu_vars['home']['text'] = ADLAN_53; - $menu_vars['home']['link'] = e_BASE.'index.php'; + $menu_vars['home']['link'] = e_HTTP.'index.php'; $menu_vars['home']['image'] = "".ADLAN_151.""; $menu_vars['home']['image_src'] = ADLAN_151; $menu_vars['home']['perm'] = ''; @@ -1326,7 +1326,7 @@ class admin_shortcodes $action = ""; $var['menumanager']['text'] = LAN_MENULAYOUT; - $var['menumanager']['link'] = e_ADMIN_ABS."menus.php"; + $var['menumanager']['link'] = e_ADMIN_ABS.'menus.php'; if(vartrue($pref['menuconfig_list'])) { diff --git a/e107_files/shortcode/newsfile.sc b/e107_files/shortcode/newsfile.sc index 58c04bdff..8ae9e4b4d 100644 --- a/e107_files/shortcode/newsfile.sc +++ b/e107_files/shortcode/newsfile.sc @@ -1,5 +1,5 @@ -$image = (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/download.png"); -return " ".$parm.""; +$image = (file_exists(THEME."images/download.png") ? THEME_ABS."images/download.png" : e_IMAGE_ABS.'generic/download.png'); +return " ".$parm.""; diff --git a/e107_files/shortcode/newsimage.sc b/e107_files/shortcode/newsimage.sc index a5637d2b6..e28b8fdfa 100644 --- a/e107_files/shortcode/newsimage.sc +++ b/e107_files/shortcode/newsimage.sc @@ -1,4 +1,4 @@ -return ""; +return ""; diff --git a/e107_files/shortcode/picture.sc b/e107_files/shortcode/picture.sc index 0b97eea8e..012d10bb8 100644 --- a/e107_files/shortcode/picture.sc +++ b/e107_files/shortcode/picture.sc @@ -25,7 +25,7 @@ else } if($image && file_exists(e_FILE."public/avatars/".$image)) { - return ""; + return ""; } else { diff --git a/e107_files/shortcode/profile.sc b/e107_files/shortcode/profile.sc index cc9e8eb06..b91f085bb 100644 --- a/e107_files/shortcode/profile.sc +++ b/e107_files/shortcode/profile.sc @@ -1,2 +1,2 @@ $id = ($parm) ? $parm : USERID; -return "".IMAGE_profile.""; +return "".IMAGE_profile."";