diff --git a/class2.php b/class2.php index 92221c703..b565565f2 100644 --- a/class2.php +++ b/class2.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/class2.php,v $ -| $Revision: 1.3 $ -| $Date: 2006-12-05 09:32:15 $ -| $Author: mrpete $ +| $Revision: 1.4 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ // @@ -797,6 +797,14 @@ if (strpos(e_SELF, $ADMIN_DIRECTORY) !== FALSE || strpos(e_SELF, "admin.php") != if(!defined("IMODE")) define("IMODE", "lite"); +if (IMODE == 'lite') { + $imode = 'nuvola_light'; +} else if (IMODE == 'dark') { + $imode = 'nuvola_dark'; +} else { + $imode = IMODE; +} + if ($pref['anon_post'] ? define("ANON", TRUE) : define("ANON", FALSE)); if (Empty($pref['newsposts']) ? define("ITEMVIEW", 15) : define("ITEMVIEW", $pref['newsposts'])); diff --git a/download.php b/download.php index 60d9bd86d..54a7e2d63 100644 --- a/download.php +++ b/download.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/download.php,v $ -| $Revision: 1.2 $ - with modifications -| $Date: 2006-12-07 12:48:42 $ -| $Author: mrpete $ +| $Revision: 1.3 $ - with modifications +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ | | Modifications by steved: | 1. Can display sub-categories which contain sub-sub categories and files @@ -36,8 +36,8 @@ if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:100%"); } /* define images */ -define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/".IMODE."/download.png")); -define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."generic/".IMODE."/new.png")); +define("IMAGE_DOWNLOAD", (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."packs/".$imode."/generic/download.png")); +define("IMAGE_NEW", (file_exists(THEME."images/new.png") ? THEME."images/new.png" : e_IMAGE."packs/".$imode."/generic/new.png")); /* define image style */ diff --git a/e107_admin/ad_links.php b/e107_admin/ad_links.php index 41abf641e..b1205b8be 100644 --- a/e107_admin/ad_links.php +++ b/e107_admin/ad_links.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/ad_links.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:11 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -25,335 +25,335 @@ if (file_exists(THEME.'admin_images/admin_images.php')) { // Small Category Images if (!defined('E_16_CAT_SETT')) { - define('E_16_CAT_SETT', e_IMAGE.'admin_images/cat_settings_16.png'); + define('E_16_CAT_SETT', e_IMAGE.'packs/'.$imode.'/admin_images/cat_settings_16.png'); } if (!defined('E_16_CAT_USER')) { - define('E_16_CAT_USER', e_IMAGE.'admin_images/cat_users_16.png'); + define('E_16_CAT_USER', e_IMAGE.'packs/'.$imode.'/admin_images/cat_users_16.png'); } if (!defined('E_16_CAT_CONT')) { - define('E_16_CAT_CONT', e_IMAGE.'admin_images/cat_content_16.png'); + define('E_16_CAT_CONT', e_IMAGE.'packs/'.$imode.'/admin_images/cat_content_16.png'); } if (!defined('E_16_CAT_FILE')) { - define('E_16_CAT_FILE', e_IMAGE.'admin_images/cat_files_16.png'); + define('E_16_CAT_FILE', e_IMAGE.'packs/'.$imode.'/admin_images/cat_files_16.png'); } if (!defined('E_16_CAT_TOOL')) { - define('E_16_CAT_TOOL', e_IMAGE.'admin_images/cat_tools_16.png'); + define('E_16_CAT_TOOL', e_IMAGE.'packs/'.$imode.'/admin_images/cat_tools_16.png'); } if (!defined('E_16_CAT_PLUG')) { - define('E_16_CAT_PLUG', e_IMAGE.'admin_images/cat_plugins_16.png'); + define('E_16_CAT_PLUG', e_IMAGE.'packs/'.$imode.'/admin_images/cat_plugins_16.png'); } // Large Category Images if (!defined('E_32_CAT_SETT')) { - define('E_32_CAT_SETT', ""); + define('E_32_CAT_SETT', ""); } if (!defined('E_32_CAT_USER')) { - define('E_32_CAT_USER', ""); + define('E_32_CAT_USER', ""); } if (!defined('E_32_CAT_CONT')) { - define('E_32_CAT_CONT', ""); + define('E_32_CAT_CONT', ""); } if (!defined('E_32_CAT_FILE')) { - define('E_32_CAT_FILE', ""); + define('E_32_CAT_FILE', ""); } if (!defined('E_32_CAT_TOOL')) { - define('E_32_CAT_TOOL', ""); + define('E_32_CAT_TOOL', ""); } if (!defined('E_32_CAT_PLUG')) { - define('E_32_CAT_PLUG', ""); + define('E_32_CAT_PLUG', ""); } // Small Nav Images if (!defined('E_16_NAV_MAIN')) { - define('E_16_NAV_MAIN', e_IMAGE.'admin_images/main_16.png'); + define('E_16_NAV_MAIN', e_IMAGE.'packs/'.$imode.'/admin_images/main_16.png'); } if (!defined('E_16_NAV_DOCS')) { - define('E_16_NAV_DOCS', e_IMAGE.'admin_images/docs_16.png'); + define('E_16_NAV_DOCS', e_IMAGE.'packs/'.$imode.'/admin_images/docs_16.png'); } if (!defined('E_16_NAV_LEAV')) { - define('E_16_NAV_LEAV', e_IMAGE.'admin_images/leave_16.png'); + define('E_16_NAV_LEAV', e_IMAGE.'packs/'.$imode.'/admin_images/leave_16.png'); } if (!defined('E_16_NAV_LGOT')) { - define('E_16_NAV_LGOT', e_IMAGE.'admin_images/logout_16.png'); + define('E_16_NAV_LGOT', e_IMAGE.'packs/'.$imode.'/admin_images/logout_16.png'); } if (!defined('E_16_NAV_ARROW')) { - define('E_16_NAV_ARROW', e_IMAGE.'admin_images/arrow_16.png'); + define('E_16_NAV_ARROW', e_IMAGE.'packs/'.$imode.'/admin_images/arrow_16.png'); } if (!defined('E_16_NAV_ARROW_OVER')) { - define('E_16_NAV_ARROW_OVER', e_IMAGE.'admin_images/arrow_over_16.png'); + define('E_16_NAV_ARROW_OVER', e_IMAGE.'packs/'.$imode.'/admin_images/arrow_over_16.png'); } // Large Nav Images if (!defined('E_32_NAV_MAIN')) { - define('E_32_NAV_MAIN', ""); + define('E_32_NAV_MAIN', ""); } if (!defined('E_32_NAV_DOCS')) { - define('E_32_NAV_DOCS', ""); + define('E_32_NAV_DOCS', ""); } if (!defined('E_32_NAV_LEAV')) { - define('E_32_NAV_LEAV', ""); + define('E_32_NAV_LEAV', ""); } if (!defined('E_32_NAV_LGOT')) { - define('E_32_NAV_LGOT', ""); + define('E_32_NAV_LGOT', ""); } if (!defined('E_32_NAV_ARROW')) { - define('E_32_NAV_ARROW', ""); + define('E_32_NAV_ARROW', ""); } if (!defined('E_32_NAV_ARROW_OVER')) { - define('E_32_NAV_ARROW_OVER', ""); + define('E_32_NAV_ARROW_OVER', ""); } // Small Admin Main Link Images if (!defined('E_16_ADMIN')) { - define('E_16_ADMIN', ""); + define('E_16_ADMIN', ""); } if (!defined('E_16_ADPASS')) { - define('E_16_ADPASS', ""); + define('E_16_ADPASS', ""); } if (!defined('E_16_BANLIST')) { - define('E_16_BANLIST', ""); + define('E_16_BANLIST', ""); } if (!defined('E_16_BANNER')) { - define('E_16_BANNER', ""); + define('E_16_BANNER', ""); } if (!defined('E_16_CACHE')) { - define('E_16_CACHE', ""); + define('E_16_CACHE', ""); } if (!defined('E_16_CREDITS')) { - define('E_16_CREDITS', ""); + define('E_16_CREDITS', ""); } if (!defined('E_16_CUST')) { - define('E_16_CUST', ""); + define('E_16_CUST', ""); } if (!defined('E_16_DATAB')) { - define('E_16_DATAB', ""); + define('E_16_DATAB', ""); } if (!defined('E_16_DOWNL')) { - define('E_16_DOWNL', ""); + define('E_16_DOWNL', ""); } if (!defined('E_16_EMOTE')) { - define('E_16_EMOTE', ""); + define('E_16_EMOTE', ""); } if (!defined('E_16_FILE')) { - define('E_16_FILE', ""); + define('E_16_FILE', ""); } if (!defined('E_16_FORUM')) { - define('E_16_FORUM', ""); + define('E_16_FORUM', ""); } if (!defined('E_16_FRONT')) { - define('E_16_FRONT', ""); + define('E_16_FRONT', ""); } if (!defined('E_16_IMAGES')) { - define('E_16_IMAGES', ""); + define('E_16_IMAGES', ""); } if (!defined('E_16_INSPECT')) { - define('E_16_INSPECT', ""); + define('E_16_INSPECT', ""); } if (!defined('E_16_LINKS')) { - define('E_16_LINKS', ""); + define('E_16_LINKS', ""); } if (!defined('E_16_WELCOME')) { - define('E_16_WELCOME', ""); + define('E_16_WELCOME', ""); } if (!defined('E_16_MAIL')) { - define('E_16_MAIL', ""); + define('E_16_MAIL', ""); } if (!defined('E_16_MAINTAIN')) { - define('E_16_MAINTAIN', ""); + define('E_16_MAINTAIN', ""); } if (!defined('E_16_MENUS')) { - define('E_16_MENUS', ""); + define('E_16_MENUS', ""); } if (!defined('E_16_META')) { - define('E_16_META', ""); + define('E_16_META', ""); } if (!defined('E_16_NEWS')) { - define('E_16_NEWS', ""); + define('E_16_NEWS', ""); } if (!defined('E_16_NEWSFEED')) { - define('E_16_NEWSFEED', ""); + define('E_16_NEWSFEED', ""); } if (!defined('E_16_NOTIFY')) { - define('E_16_NOTIFY', ""); + define('E_16_NOTIFY', ""); } if (!defined('E_16_PHP')) { - define('E_16_PHP', ""); + define('E_16_PHP', ""); } if (!defined('E_16_POLLS')) { - define('E_16_POLLS', ""); + define('E_16_POLLS', ""); } if (!defined('E_16_PREFS')) { - define('E_16_PREFS', ""); + define('E_16_PREFS', ""); } if (!defined('E_16_SEARCH')) { - define('E_16_SEARCH', ""); + define('E_16_SEARCH', ""); } if (!defined('E_16_UPLOADS')) { - define('E_16_UPLOADS', ""); + define('E_16_UPLOADS', ""); } if (!defined('E_16_USER')) { - define('E_16_USER', ""); + define('E_16_USER', ""); } if (!defined('E_16_USER_EXTENDED')) { - define('E_16_USER_EXTENDED', ""); + define('E_16_USER_EXTENDED', ""); } if (!defined('E_16_USERCLASS')) { - define('E_16_USERCLASS', ""); + define('E_16_USERCLASS', ""); } if (!defined('E_16_LANGUAGE')) { - define('E_16_LANGUAGE', ""); + define('E_16_LANGUAGE', ""); } // Small Admin Other Link Images if (!defined('E_16_PLUGIN')) { - define('E_16_PLUGIN', ""); + define('E_16_PLUGIN', ""); } if (!defined('E_16_PLUGMANAGER')) { - define('E_16_PLUGMANAGER', ""); + define('E_16_PLUGMANAGER', ""); } if (!defined('E_16_DOCS')) { - define('E_16_DOCS', ""); + define('E_16_DOCS', ""); } if (!defined('E_16_THEMEMANAGER')) { - define('E_16_THEMEMANAGER', ""); + define('E_16_THEMEMANAGER', ""); } // Small Admin Other Images if (!defined('E_16_COMMENT')) { - define('E_16_COMMENT', ""); + define('E_16_COMMENT', ""); } if (!defined('E_16_ADMINLOG')) { - define('E_16_ADMINLOG', ""); + define('E_16_ADMINLOG', ""); } // Large Admin Main Link Images if (!defined('E_32_ADMIN')) { - define('E_32_ADMIN', ""); + define('E_32_ADMIN', ""); } if (!defined('E_32_ADPASS')) { - define('E_32_ADPASS', ""); + define('E_32_ADPASS', ""); } if (!defined('E_32_BANLIST')) { - define('E_32_BANLIST', ""); + define('E_32_BANLIST', ""); } if (!defined('E_32_BANNER')) { - define('E_32_BANNER', ""); + define('E_32_BANNER', ""); } if (!defined('E_32_CACHE')) { - define('E_32_CACHE', ""); + define('E_32_CACHE', ""); } if (!defined('E_32_CREDITS')) { - define('E_32_CREDITS', ""); + define('E_32_CREDITS', ""); } if (!defined('E_32_CUST')) { - define('E_32_CUST', ""); + define('E_32_CUST', ""); } if (!defined('E_32_DATAB')) { - define('E_32_DATAB', ""); + define('E_32_DATAB', ""); } if (!defined('E_32_DOWNL')) { - define('E_32_DOWNL', ""); + define('E_32_DOWNL', ""); } if (!defined('E_32_EMOTE')) { - define('E_32_EMOTE', ""); + define('E_32_EMOTE', ""); } if (!defined('E_32_FILE')) { - define('E_32_FILE', ""); + define('E_32_FILE', ""); } if (!defined('E_32_FORUM')) { - define('E_32_FORUM', ""); + define('E_32_FORUM', ""); } if (!defined('E_32_FRONT')) { - define('E_32_FRONT', ""); + define('E_32_FRONT', ""); } if (!defined('E_32_IMAGES')) { - define('E_32_IMAGES', ""); + define('E_32_IMAGES', ""); } if (!defined('E_32_INSPECT')) { - define('E_32_INSPECT', ""); + define('E_32_INSPECT', ""); } if (!defined('E_32_LINKS')) { - define('E_32_LINKS', ""); + define('E_32_LINKS', ""); } if (!defined('E_32_WELCOME')) { - define('E_32_WELCOME', ""); + define('E_32_WELCOME', ""); } if (!defined('E_32_MAIL')) { - define('E_32_MAIL', ""); + define('E_32_MAIL', ""); } if (!defined('E_32_MAINTAIN')) { - define('E_32_MAINTAIN', ""); + define('E_32_MAINTAIN', ""); } if (!defined('E_32_MENUS')) { - define('E_32_MENUS', ""); + define('E_32_MENUS', ""); } if (!defined('E_32_META')) { - define('E_32_META', ""); + define('E_32_META', ""); } if (!defined('E_32_NEWS')) { - define('E_32_NEWS', ""); + define('E_32_NEWS', ""); } if (!defined('E_32_NEWSFEED')) { - define('E_32_NEWSFEED', ""); + define('E_32_NEWSFEED', ""); } if (!defined('E_32_NOTIFY')) { - define('E_32_NOTIFY', ""); + define('E_32_NOTIFY', ""); } if (!defined('E_32_PHP')) { - define('E_32_PHP', ""); + define('E_32_PHP', ""); } if (!defined('E_32_POLLS')) { - define('E_32_POLLS', ""); + define('E_32_POLLS', ""); } if (!defined('E_32_PREFS')) { - define('E_32_PREFS', ""); + define('E_32_PREFS', ""); } if (!defined('E_32_SEARCH')) { - define('E_32_SEARCH', ""); + define('E_32_SEARCH', ""); } if (!defined('E_32_UPLOADS')) { - define('E_32_UPLOADS', ""); + define('E_32_UPLOADS', ""); } if (!defined('E_32_USER')) { - define('E_32_USER', ""); + define('E_32_USER', ""); } if (!defined('E_32_USER_EXTENDED')) { - define('E_32_USER_EXTENDED', ""); + define('E_32_USER_EXTENDED', ""); } if (!defined('E_32_USERCLASS')) { - define('E_32_USERCLASS', ""); + define('E_32_USERCLASS', ""); } if (!defined('E_32_LANGUAGE')) { - define('E_32_LANGUAGE', ""); + define('E_32_LANGUAGE', ""); } // Large Admin Other Link Images if (!defined('E_32_PLUGIN')) { - define('E_32_PLUGIN', ""); + define('E_32_PLUGIN', ""); } if (!defined('E_32_PLUGMANAGER')) { - define('E_32_PLUGMANAGER', ""); + define('E_32_PLUGMANAGER', ""); } if (!defined('E_32_DOCS')) { - define('E_32_DOCS', ""); + define('E_32_DOCS', ""); } if (!defined('E_32_MAIN')) { - define('E_32_MAIN', ""); + define('E_32_MAIN', ""); } if (!defined('E_32_THEMEMANAGER')) { - define('E_32_THEMEMANAGER', ""); + define('E_32_THEMEMANAGER', ""); } // Large Admin Other Images if (!defined('E_32_COMMENT')) { - define('E_32_COMMENT', ""); + define('E_32_COMMENT', ""); } if (!defined('E_32_ADMINLOG')) { - define('E_32_ADMINLOG', ""); + define('E_32_ADMINLOG', ""); } if (!defined('E_32_LOGOUT')) { - define('E_32_LOGOUT', ""); + define('E_32_LOGOUT', ""); } $e_icon_array = array( diff --git a/e107_admin/admin_log.php b/e107_admin/admin_log.php index 9e827a2ea..d196cf0b2 100644 --- a/e107_admin/admin_log.php +++ b/e107_admin/admin_log.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/admin_log.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:11 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -74,21 +74,22 @@ $ns->tablerender(LAN_ADMINLOG_0, $text); require_once("footer.php"); function get_log_img($log_type) { + global $imode; switch ($log_type) { case E_LOG_INFORMATIVE: - return "".LAN_ADMINLOG_6.""; + return "".LAN_ADMINLOG_6.""; break; case E_LOG_NOTICE: - return "".LAN_ADMINLOG_8.""; + return "".LAN_ADMINLOG_8.""; break; case E_LOG_WARNING: - return "".LAN_ADMINLOG_10.""; + return "".LAN_ADMINLOG_10.""; break; case E_LOG_FATAL: - return "".LAN_ADMINLOG_12.""; + return "".LAN_ADMINLOG_12.""; break; case E_LOG_PLUGIN; - return "".LAN_ADMINLOG_6.""; + return "".LAN_ADMINLOG_6.""; break; } return $log_type; diff --git a/e107_admin/administrator.php b/e107_admin/administrator.php index 9168d4e5f..aa85070a0 100644 --- a/e107_admin/administrator.php +++ b/e107_admin/administrator.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/administrator.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:11 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once('../class2.php'); @@ -104,7 +104,7 @@ if($_POST['edit_admin'] || $action == "edit"){ } function show_admins(){ - global $sql,$tp,$ns,$pref; + global $sql, $tp, $ns, $pref, $imode; $sql->db_Select("user", "*", "user_admin='1'"); @@ -136,8 +136,8 @@ function show_admins(){ if($row['user_id'] != "1") { $text .= " - - toJS(ADMSLAN_59."? [".$row['user_name']."]")."') \" title='".ADMSLAN_59."' style='border:0px' />"; + + toJS(ADMSLAN_59."? [".$row['user_name']."]")."') \" title='".ADMSLAN_59."' style='border:0px' />"; } $text .= "  diff --git a/e107_admin/docs.php b/e107_admin/docs.php index 1d5361765..100033340 100644 --- a/e107_admin/docs.php +++ b/e107_admin/docs.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/docs.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:19 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -47,8 +47,8 @@ if (e_QUERY) { fclose ($fd); $text = $tp->toHTML($text, TRUE); - $text = preg_replace("/Q\>(.*?)A>/si", "\\1A>", $text); - $text = str_replace("A>", "", $text); + $text = preg_replace("/Q\>(.*?)A>/si", "\\1A>", $text); + $text = str_replace("A>", "", $text); $ns->tablerender(str_replace("_", " ", $helplist[e_QUERY]), $text."
"); unset($text); diff --git a/e107_admin/header.php b/e107_admin/header.php index 96d9b85a8..86b0b2acf 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/header.php,v $ -| $Revision: 1.3 $ -| $Date: 2006-12-07 12:59:43 $ -| $Author: mrpete $ +| $Revision: 1.4 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +---------------------------------------------------------------+ */ @@ -101,16 +101,16 @@ if (!defined('ADMIN_FALSE_ICON')) if (!defined('ADMIN_EDIT_ICON')) { - define("ADMIN_EDIT_ICON", ""); - define("ADMIN_EDIT_ICON_PATH", e_IMAGE."admin_images/edit_16.png"); + define("ADMIN_EDIT_ICON", ""); + define("ADMIN_EDIT_ICON_PATH", e_IMAGE."packs/".$imode."/admin_images/edit_16.png"); } if (!defined('ADMIN_DELETE_ICON')) { - define("ADMIN_DELETE_ICON", ""); - define("ADMIN_DELETE_ICON_PATH", e_IMAGE."admin_images/delete_16.png"); + define("ADMIN_DELETE_ICON", ""); + define("ADMIN_DELETE_ICON_PATH", e_IMAGE."packs/".$imode."/admin_images/delete_16.png"); } // diff --git a/e107_admin/links.php b/e107_admin/links.php index 3af69833e..d8a3eb799 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/links.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:24 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -316,7 +316,7 @@ class links } function display_row($row2, $indent = FALSE) { - global $sql, $rs, $ns, $tp, $linkArray,$previous_cat; + global $sql, $rs, $ns, $tp, $linkArray, $previous_cat, $imode; extract($row2); // @@ -340,7 +340,7 @@ class links } if ($indent) { - $subimage = ""; + $subimage = ""; $subspacer = ($indent > 1) ? " style='padding-left: ".(($indent - 1) * 16)."px'" : ""; $subindent = "".$subimage.""; } @@ -357,14 +357,14 @@ class links "; $text .= ""; - $text .= "".LINKLAN_10." "; + $text .= "".LINKLAN_10." "; $text .= "".ADMIN_EDIT_ICON." "; $text .= "toJS(LCLAN_58." [ $link_name ]")."') \" />"; $text .= ""; $text .= "".r_userclass("link_class[".$link_id."]", $link_class, "off", "public,guest,nobody,member,admin,classes").""; $text .= ""; - $text .= ""; - $text .= ""; + $text .= ""; + $text .= ""; $text .= ""; $text .= ""; $text .= " - toJS(LAN_CONFIRMDEL." [".$row2['gen_ip']."]")."') \" src='".e_IMAGE."admin_images/delete_16.png' alt='".LAN_DELETE."' title='".LAN_DELETE."' style='border:0px' /> + + toJS(LAN_CONFIRMDEL." [".$row2['gen_ip']."]")."') \" src='".e_IMAGE."packs/".$imode."/admin_images/delete_16.png' alt='".LAN_DELETE."' title='".LAN_DELETE."' style='border:0px' /> diff --git a/e107_admin/modcomment.php b/e107_admin/modcomment.php index fe5e39864..110305bb9 100644 --- a/e107_admin/modcomment.php +++ b/e107_admin/modcomment.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/modcomment.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:25 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -121,12 +121,12 @@ if (!$sql->db_Select("comments", "*", "(comment_type='".$type."' OR comment_type $comments .= " - ".($row['comment_blocked'] ? "" : " ")." + ".($row['comment_blocked'] ? "" : " ")." ".$datestamp." ".$comment_nick."
".$comment_str." ".$row['comment_comment']." - ".LAN_EDIT."" + ".LAN_EDIT."" ." ".($row['comment_blocked'] ? " ".MDCLAN_5."" : " ".MDCLAN_6."") ."  ".LAN_DELETE." diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 5eaa8d3b4..dab02355f 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:26 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:49 $ +| $Author: sweetas $ +---------------------------------------------------------------+ */ @@ -276,7 +276,7 @@ class newspost { function show_existing_items($action, $sub_action, $id, $from, $amount) { // ##### Display scrolling list of existing news items --------------------------------------------------------------------------------------------------------- - global $sql, $rs, $ns, $tp; + global $sql, $rs, $ns, $tp, $imode; $text = "
"; if (isset($_POST['searchquery'])) { @@ -313,7 +313,7 @@ class newspost { $text .= $ren_type[$news_render_type]; if($news_sticky) { - $sicon = (file_exists(THEME."images/sticky.png") ? THEME."images/sticky.png" : e_IMAGE."generic/".IMODE."/sticky.png"); + $sicon = (file_exists(THEME."images/sticky.png") ? THEME."images/sticky.png" : e_IMAGE."packs/".$imode."/generic/sticky.png"); $text .= " "; } $text .= " diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index d657a5b3e..9f4ceced9 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/plugin.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:27 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -405,7 +405,7 @@ $text .= render_plugs($uninstalled); function render_plugs($pluginList){ - global $tp; + global $tp, $imode; foreach($pluginList as $plug) { //Unset any possible eplug_ variables set by last plugin.php @@ -419,13 +419,13 @@ function render_plugs($pluginList){ include(e_PLUGIN.$plug['plugin_path'].'/plugin.php'); if ($eplug_conffile || is_array($eplug_table_names) || is_array($eplug_prefs) || is_array($eplug_user_prefs) || is_array($eplug_sc) || is_array($eplug_bb) || $eplug_module || $eplug_userclass || $eplug_status || $eplug_latest) { - $img = (!$plug['plugin_installflag'] ? "" : ""); + $img = (!$plug['plugin_installflag'] ? "" : ""); } else { - $img = ""; + $img = ""; } if ($plug['plugin_version'] != $eplug_version && $plug['plugin_installflag']) { - $img = ""; + $img = ""; } $plugin_icon = $eplug_icon ? "" : E_32_CAT_PLUG; @@ -496,10 +496,10 @@ return $text; $text .= "

- ".EPL_ADLAN_23."   - ".EPL_ADLAN_22."   - ".EPL_ADLAN_24."   - ".EPL_ADLAN_25."
"; + ".EPL_ADLAN_23."   + ".EPL_ADLAN_22."   + ".EPL_ADLAN_24."   + ".EPL_ADLAN_25.""; $ns->tablerender(EPL_ADLAN_16, $text); // ---------------------------------------------------------- diff --git a/e107_admin/upload.php b/e107_admin/upload.php index 65117594f..3ee558f83 100644 --- a/e107_admin/upload.php +++ b/e107_admin/upload.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/upload.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:30 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -239,8 +239,8 @@ if (!$active_uploads = $sql->db_Select("upload", "*", "upload_active=0 ORDER BY ".$upload_file ."
-
".UPLAN_COPYTODLS." - ".UPLLAN_16." +
".UPLAN_COPYTODLS." + ".UPLLAN_16." toJS(UPLLAN_45." [ $upload_name ]")."') \"/>
"; diff --git a/e107_admin/users_extended.php b/e107_admin/users_extended.php index b20fd1a62..5d66e5c23 100755 --- a/e107_admin/users_extended.php +++ b/e107_admin/users_extended.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:32 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -230,7 +230,7 @@ class users_ext function show_extended($current) { - global $sql, $ns, $ue, $curtype, $tp, $mySQLdefaultdb, $action, $sub_action; + global $sql, $ns, $ue, $curtype, $tp, $mySQLdefaultdb, $action, $sub_action, $imode; $catList = $ue->user_extended_get_categories(); $catList[0][0] = array('user_extended_struct_name' => EXTLAN_36); @@ -282,12 +282,12 @@ class users_ext "; if($i > 0){ $text .= " - + "; } if($i <= count($extendedList[$cn])-2) { - $text .= ""; + $text .= ""; } $text .= " @@ -605,7 +605,7 @@ class users_ext function show_categories($current) { - global $sql, $ns, $ue; + global $sql, $ns, $ue, $imode; $text = "
"; $text .= " @@ -639,12 +639,12 @@ class users_ext if($i > 0) { $text .= " - + "; } if($i <= count($catList)-2) { - $text .= ""; + $text .= ""; } $text .= " diff --git a/e107_files/bbcode/file.bb b/e107_files/bbcode/file.bb index 1e549ebce..1d646eb44 100644 --- a/e107_files/bbcode/file.bb +++ b/e107_files/bbcode/file.bb @@ -1,8 +1,8 @@ -global $pref, $fromadmin; +global $pref, $fromadmin, $imode; if (array_key_exists('forum_attach', $pref) && $pref['forum_attach'] && FILE_UPLOADS || ADMIN || $fromadmin) { - $image = (file_exists(THEME."images/file.png") ? THEME."images/file.png" : e_IMAGE."generic/".IMODE."/file.png"); + $image = (file_exists(THEME."images/file.png") ? THEME."images/file.png" : e_IMAGE."packs/".$imode."/generic/file.png"); list($fname, $uc) = explode("^", $parm."^"); if(isset($uc)) { diff --git a/e107_files/shortcode/admin_lang.sc b/e107_files/shortcode/admin_lang.sc index fcb2473a5..8277d87d6 100644 --- a/e107_files/shortcode/admin_lang.sc +++ b/e107_files/shortcode/admin_lang.sc @@ -1,5 +1,5 @@ if (ADMIN) { - global $ns, $sql, $pref; + global $ns, $sql, $pref, $imode; if ($pref['multilanguage']) { $filepath = e_PLUGIN."userlanguage_menu/languages/".e_LANGUAGE.".php"; @@ -52,7 +52,7 @@ if (ADMIN) { } - $text .= "
 "; + $text .= "
 "; if(isset($aff)) { $text .= $sql->mySQLlanguage; diff --git a/e107_files/shortcode/admin_status.sc b/e107_files/shortcode/admin_status.sc index 00b9c13d5..ae55ac5a2 100644 --- a/e107_files/shortcode/admin_status.sc +++ b/e107_files/shortcode/admin_status.sc @@ -1,7 +1,7 @@ if (ADMIN) { if (!function_exists('admin_status')) { function admin_status() { - global $sql, $ns, $pref; + global $sql, $ns, $pref, $imode; $members = $sql -> db_Count("user"); $unverified = $sql -> db_Count("user", "(*)", "WHERE user_ban=2"); $banned = $sql -> db_Count("user", "(*)", "WHERE user_ban=1"); @@ -24,7 +24,7 @@ if (ADMIN) { if($flo = $sql -> db_Count("generic", "(*)", "WHERE gen_type='failed_login'")) { - $text .= " ".ADLAN_146.": $flo"; + $text .= " ".ADLAN_146.": $flo"; } diff --git a/e107_files/shortcode/batch/comment_shortcodes.php b/e107_files/shortcode/batch/comment_shortcodes.php index 9455ff484..c3d6f7f85 100644 --- a/e107_files/shortcode/batch/comment_shortcodes.php +++ b/e107_files/shortcode/batch/comment_shortcodes.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/comment_shortcodes.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:40 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -97,16 +97,16 @@ return (isset($comrow['comment_blocked']) && $comrow['comment_blocked'] ? COMLAN SC_END SC_BEGIN COMMENTEDIT -global $COMMENTEDIT, $pref, $comrow; +global $COMMENTEDIT, $pref, $comrow, $imode; if ($pref['allowCommentEdit'] && USER && $comrow['user_id'] == USERID && $comrow['comment_lock'] != "1") { if (!strstr(e_QUERY, ".")) { - return "".COMLAN_318.""; + return "".COMLAN_318.""; } else { - return "".COMLAN_318.""; + return "".COMLAN_318.""; } } else diff --git a/e107_files/shortcode/batch/download_shortcodes.php b/e107_files/shortcode/batch/download_shortcodes.php index 31fb001f3..43acc3f2b 100644 --- a/e107_files/shortcode/batch/download_shortcodes.php +++ b/e107_files/shortcode/batch/download_shortcodes.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/download_shortcodes.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:40 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -281,7 +281,7 @@ SC_END SC_BEGIN DOWNLOAD_VIEW_RATING require_once(e_HANDLER."rate_class.php"); $rater = new rater; -global $dl; + global $dl, $imode; $text = " @@ -289,10 +289,10 @@ global $dl; if ($ratearray = $rater->getrating("download", $dl['download_id'])) { for($c = 1; $c <= $ratearray[1]; $c++) { - $text .= ""; + $text .= ""; } if ($ratearray[2]) { - $text .= ""; + $text .= ""; } if ($ratearray[2] == "") { $ratearray[2] = 0; diff --git a/e107_files/shortcode/batch/news_shortcodes.php b/e107_files/shortcode/batch/news_shortcodes.php index 782e6a0ac..478965847 100644 --- a/e107_files/shortcode/batch/news_shortcodes.php +++ b/e107_files/shortcode/batch/news_shortcodes.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/news_shortcodes.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:41 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -169,10 +169,11 @@ return $news_item['news_id']; SC_END SC_BEGIN ADMINOPTIONS +global $imode; $news_item = getcachedvars('current_news_item'); $param = getcachedvars('current_news_param'); if (ADMIN && getperms("H")) { - $adop_icon = (file_exists(THEME."images/newsedit.png") ? THEME."images/newsedit.png" : e_IMAGE."generic/".IMODE."/newsedit.png"); + $adop_icon = (file_exists(THEME."images/newsedit.png") ? THEME."images/newsedit.png" : e_IMAGE."packs/".$imode."/generic/newsedit.png"); return " \n"; } else { return ''; diff --git a/e107_files/shortcode/batch/user_shortcodes.php b/e107_files/shortcode/batch/user_shortcodes.php index 3601ad0c0..3b141839e 100644 --- a/e107_files/shortcode/batch/user_shortcodes.php +++ b/e107_files/shortcode/batch/user_shortcodes.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:41 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ if (!defined('e107_INIT')) { exit; } @@ -149,6 +149,7 @@ return $gen -> computeLapse($user['user_join'])." ".LAN_426; SC_END SC_BEGIN USER_REALNAME_ICON +global $imode; if(defined("USER_REALNAME_ICON")) { return USER_REALNAME_ICON; @@ -157,7 +158,7 @@ if(file_exists(THEME."images/user_realname.png")) { return " "; } -return " "; +return " "; SC_END SC_BEGIN USER_REALNAME @@ -166,6 +167,7 @@ return $user['user_login'] ? $user['user_login'] : "".LAN_401.""; SC_END SC_BEGIN USER_EMAIL_ICON +global $imode; if(defined("USER_EMAIL_ICON")) { return USER_EMAIL_ICON; @@ -174,7 +176,7 @@ if(file_exists(THEME."images/email.png")) { return " "; } -return " "; +return " "; SC_END SC_BEGIN USER_EMAIL_LINK @@ -188,6 +190,7 @@ return ($user['user_hideemail'] && !ADMIN) ? "".LAN_143."" : $tp->toHTML( SC_END SC_BEGIN USER_ICON +global $imode; if(defined("USER_ICON")) { return USER_ICON; @@ -196,11 +199,11 @@ if(file_exists(THEME."images/user.png")) { return " "; } -return " "; +return " "; SC_END SC_BEGIN USER_ICON_LINK -global $user; +global $user, $imode; if(defined("USER_ICON")) { $icon = USER_ICON; @@ -211,7 +214,7 @@ else if(file_exists(THEME."images/user.png")) } else { - $icon = " "; + $icon = " "; } return "{$icon}"; SC_END @@ -239,6 +242,7 @@ if(ADMIN && getperms("4")) { SC_END SC_BEGIN USER_BIRTHDAY_ICON +global $imode; if(defined("USER_BIRTHDAY_ICON")) { return USER_BIRTHDAY_ICON; @@ -247,7 +251,7 @@ if(file_exists(THEME."images/user_birthday.png")) { return " "; } -return " "; +return " "; SC_END SC_BEGIN USER_BIRTHDAY @@ -283,7 +287,7 @@ return $tp->parseTemplate("{SENDPM={$user['user_id']}}"); SC_END SC_BEGIN USER_RATING -global $pref, $user; +global $pref, $user, $imode; if($pref['profile_rate'] && USER) { include_once(e_HANDLER."rate_class.php"); @@ -294,7 +298,7 @@ if($pref['profile_rate'] && USER) $num = $rating[1]; for($i=1; $i<= $num; $i++) { - $ret .= ""; + $ret .= ""; } } if(!$rater->checkrated('user', $user['user_id'])) diff --git a/e107_files/shortcode/email_item.sc b/e107_files/shortcode/email_item.sc index 8935b02ff..5acaba65b 100644 --- a/e107_files/shortcode/email_item.sc +++ b/e107_files/shortcode/email_item.sc @@ -1,10 +1,12 @@ +global $imode; + if (defined("ICONMAIL") && file_exists(THEME."images/".ICONMAIL)) { $icon = THEME."images/".ICONMAIL; } else { - $icon = e_IMAGE."generic/".IMODE."/email.png"; + $icon = e_IMAGE."packs/".$imode."/generic/email.png"; } $parms = explode("^",$parm); // message^source^other_parms diff --git a/e107_files/shortcode/newsfile.sc b/e107_files/shortcode/newsfile.sc index 7d84bf074..e62125289 100644 --- a/e107_files/shortcode/newsfile.sc +++ b/e107_files/shortcode/newsfile.sc @@ -1,5 +1,5 @@ +global $imode; - -$image = (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."generic/".IMODE."/download.png"); +$image = (file_exists(THEME."images/download.png") ? THEME."images/download.png" : e_IMAGE."packs/".$imode."/generic/download.png"); return "".$parm.""; diff --git a/e107_files/shortcode/print_item.sc b/e107_files/shortcode/print_item.sc index 16326d3c5..e60cccd34 100644 --- a/e107_files/shortcode/print_item.sc +++ b/e107_files/shortcode/print_item.sc @@ -1,10 +1,12 @@ +global $imode; + if (defined("ICONPRINT") && file_exists(THEME."images/".ICONPRINT)) { $icon = THEME."images/".ICONPRINT; } else { - $icon = e_IMAGE."generic/".IMODE."/printer.png"; + $icon = e_IMAGE."packs/".$imode."/generic/printer.png"; } $parms = explode("^",$parm); return "{$parms[0]}"; \ No newline at end of file diff --git a/e107_files/shortcode/sitelinks_alt.sc b/e107_files/shortcode/sitelinks_alt.sc index f1e96bf55..a3aeb58b3 100644 --- a/e107_files/shortcode/sitelinks_alt.sc +++ b/e107_files/shortcode/sitelinks_alt.sc @@ -3,18 +3,18 @@ | e107 website system | | $Source: /cvs_backup/e107_0.8/e107_files/shortcode/sitelinks_alt.sc,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:40 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ - global $sql, $pref; + global $sql, $pref, $imode; $params = explode('+', $parm); if (isset($params[0]) && $params[0] && $params[0] != 'no_icons' && $params[0] != 'default') { $icon = $params[0]; } else { - $icon = e_IMAGE."generic/".IMODE."/arrow.png"; + $icon = e_IMAGE."packs/".$imode."/generic/arrow.png"; } function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id=FALSE, $cat_open=FALSE) { diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index f6aa0fa70..01389014a 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:42 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -172,7 +172,7 @@ class comment { */ function render_comment($row, $table, $action, $id, $width, $subject, $addrating=FALSE) { //addrating : boolean, to show rating system in rendered comment - global $sql, $sc_style, $comment_shortcodes, $COMMENTSTYLE, $rater, $gen; + global $sql, $sc_style, $comment_shortcodes, $COMMENTSTYLE, $rater, $gen, $imode; global $pref, $comrow, $tp, $NEWIMAGE, $USERNAME, $RATING, $datestamp; global $thisaction, $thistable, $thisid; @@ -196,10 +196,10 @@ class comment { $width = 0; } if(!defined("IMAGE_nonew_comments")){ - define("IMAGE_nonew_comments", (file_exists(THEME."images/nonew_comments.png") ? " " : "")); + define("IMAGE_nonew_comments", (file_exists(THEME."images/nonew_comments.png") ? " " : "")); } if(!defined("IMAGE_new_comments")){ - define("IMAGE_new_comments", (file_exists(THEME."images/new_comments.png") ? " " : " ")); + define("IMAGE_new_comments", (file_exists(THEME."images/new_comments.png") ? " " : " ")); } $ns = new e107table; if(!$gen || !is_object($gen)){ $gen = new convert; } diff --git a/e107_handlers/emailprint_class.php b/e107_handlers/emailprint_class.php index c061c0017..4856109e5 100644 --- a/e107_handlers/emailprint_class.php +++ b/e107_handlers/emailprint_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/emailprint_class.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:44 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -29,6 +29,9 @@ class emailprint { // $look = 0 --->display all icons // $look = 1 --->display email icon only // $look = 2 --->display print icon only + + global $imode; + $text_emailprint = ""; //new method emailprint_class : (only news is core, rest is plugin: searched for e_emailprint.php which should hold $email and $print values) @@ -51,11 +54,11 @@ class emailprint { } if ($look == 0 || $look == 1) { - $ico_mail = (file_exists(THEME."images/email.png") ? THEME."images/email.png" : e_IMAGE."generic/".IMODE."/email.png"); + $ico_mail = (file_exists(THEME."images/email.png") ? THEME."images/email.png" : e_IMAGE."packs/".$imode."/generic/email.png"); $text_emailprint .= "".LAN_EMAIL_7." "; } if ($look == 0 || $look == 2) { - $ico_print = (file_exists(THEME."images/printer.png") ? THEME."images/printer.png" : e_IMAGE."generic/".IMODE."/printer.png"); + $ico_print = (file_exists(THEME."images/printer.png") ? THEME."images/printer.png" : e_IMAGE."packs/".$imode."/generic/printer.png"); $text_emailprint .= "".LAN_PRINT_1.""; } return $text_emailprint; diff --git a/e107_handlers/level_handler.php b/e107_handlers/level_handler.php index df17ee5ab..69bf1787b 100644 --- a/e107_handlers/level_handler.php +++ b/e107_handlers/level_handler.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/level_handler.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:45 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -22,7 +22,7 @@ if (!defined('e107_INIT')) { exit; } function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_visits, $user_join, $user_admin, $user_perms, $pref, $fmod = "") { - global $tp; + global $tp, $imode; if (!$user_id) { return FALSE; @@ -95,7 +95,7 @@ function get_level($user_id, $user_forums, $user_comments, $user_chats, $user_vi $rank = 9; } - $data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."rate/".IMODE."/".$level_images[$rank]); + $data['pic'] = (file_exists(THEME."forum/".$level_images[$rank]) ? THEME."forum/".$level_images[$rank] : e_IMAGE."packs/".$imode."/rate/".$level_images[$rank]); $data['name'] = "[ ".$tp->toHTML($level_names[$rank], FALSE, 'defs')." ]"; if($level_names[$rank]) diff --git a/e107_handlers/news_class.php b/e107_handlers/news_class.php index 5b762374d..484b3d17e 100644 --- a/e107_handlers/news_class.php +++ b/e107_handlers/news_class.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/news_class.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:47 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +---------------------------------------------------------------+ */ @@ -108,7 +108,7 @@ class news { } function render_newsitem($news, $mode = 'default', $n_restrict = '', $NEWS_TEMPLATE = '', $param='') { - global $tp, $sql, $override, $pref, $ns, $NEWSSTYLE, $NEWSLISTSTYLE, $news_shortcodes, $loop_uid; + global $tp, $sql, $override, $pref, $ns, $NEWSSTYLE, $NEWSLISTSTYLE, $news_shortcodes, $loop_uid, $imode; if ($override_newsitem = $override -> override_check('render_newsitem')) { $result = call_user_func($override_newsitem, $news, $mode, $n_restrict, $NEWS_TEMPLATE, $param); if ($result == 'return') { @@ -131,13 +131,13 @@ class news { if (!$param) { if (!defined("IMAGE_nonew_small")){ - define("IMAGE_nonew_small", (file_exists(THEME."images/nonew_comments.png") ? " " : "")); + define("IMAGE_nonew_small", (file_exists(THEME."images/nonew_comments.png") ? " " : "")); } if (!defined("IMAGE_new_small")) { - define("IMAGE_new_small", (file_exists(THEME."images/new_comments.png") ? " " : " ")); + define("IMAGE_new_small", (file_exists(THEME."images/new_comments.png") ? " " : " ")); } if (!defined("IMAGE_sticky")){ - define("IMAGE_sticky", (file_exists(THEME."images/sticky.png") ? " " : " ")); + define("IMAGE_sticky", (file_exists(THEME."images/sticky.png") ? " " : " ")); } $param['image_nonew_small'] = IMAGE_nonew_small; diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index d3347dd33..576e793b4 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/theme_handler.php,v $ -| $Revision: 1.2 $ -| $Date: 2006-12-05 09:15:08 $ -| $Author: mrpete $ +| $Revision: 1.3 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -287,11 +287,11 @@ class themeHandler{ mode = 2 :: selected admin theme */ - global $ns, $pref; + global $ns, $pref, $imode; $author = ($theme['email'] ? "".$theme['author']."" : $theme['author']); $website = ($theme['website'] ? "".$theme['website']."" : ""); - $preview = "".($theme['preview'] ? "" : "").""; + $preview = "".($theme['preview'] ? "" : "").""; $selectmainbutton = ($mode != 1 ? "" : ""); $selectadminbutton = ($mode != 2 ? "" : ""); $previewbutton = (!$mode ? " " : ""); diff --git a/e107_handlers/user_select_class.php b/e107_handlers/user_select_class.php index ff08f61b4..265a32ae9 100644 --- a/e107_handlers/user_select_class.php +++ b/e107_handlers/user_select_class.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/user_select_class.php,v $ -| $Revision: 1.1.1.1 $ -| $Date: 2006-12-02 04:33:59 $ -| $Author: mcfly_e107 $ +| $Revision: 1.2 $ +| $Date: 2006-12-07 15:41:50 $ +| $Author: sweetas $ +----------------------------------------------------------------------------+ */ @@ -84,7 +84,7 @@ class user_select { } function select_form($type, $user_form, $user_value = '', $class_form = false, $class_value = '', $class = false) { - global $tp; + global $tp, $imode; $text .= "