diff --git a/e107_admin/ad_links.php b/e107_admin/ad_links.php index a9c00033c..c2b9b7d60 100644 --- a/e107_admin/ad_links.php +++ b/e107_admin/ad_links.php @@ -561,7 +561,7 @@ $array_functions = array( 6 => array(e_ADMIN.'db.php', ADLAN_44, ADLAN_45, '0', 4, E_16_DATAB, E_32_DATAB), // 7 => array(e_ADMIN.'download.php', ADLAN_24, ADLAN_25, 'R', 3, E_16_DOWNL, E_32_DOWNL), 8 => array(e_ADMIN.'emoticon.php', ADLAN_58, ADLAN_59, 'F', 1, E_16_EMOTE, E_32_EMOTE), - 9 => array(e_ADMIN.'filemanager.php', ADLAN_30, ADLAN_31, '6', 5, E_16_FILE, E_32_FILE), +// 9 => array(e_ADMIN.'filemanager.php', ADLAN_30, ADLAN_31, '6', 5, E_16_FILE, E_32_FILE), // replaced by media-manager 10 => array(e_ADMIN.'frontpage.php', ADLAN_60, ADLAN_61, 'G', 1, E_16_FRONT, E_32_FRONT), 11 => array(e_ADMIN.'image.php', LAN_MEDIAMANAGER, ADLAN_106, 'A', 5, E_16_IMAGES, E_32_IMAGES), 12 => array(e_ADMIN.'links.php', ADLAN_138, ADLAN_139, 'I', 1, E_16_LINKS, E_32_LINKS), @@ -575,7 +575,7 @@ $array_functions = array( 20 => array(e_ADMIN.'search.php', ADLAN_142, ADLAN_143, 'X', 1, E_16_SEARCH, E_32_SEARCH), 21 => array(e_ADMIN.'admin_log.php', ADLAN_155, ADLAN_156, 'S', 4, E_16_ADMINLOG, E_32_ADMINLOG), 22 => array(e_ADMIN.'theme.php', ADLAN_140, ADLAN_141, '1', 5, E_16_THEMEMANAGER, E_32_THEMEMANAGER), - 23 => array(e_ADMIN.'upload.php', ADLAN_72, ADLAN_73, 'V', 3, E_16_UPLOADS, E_32_UPLOADS), +// 23 => array(e_ADMIN.'upload.php', ADLAN_72, ADLAN_73, 'V', 3, E_16_UPLOADS, E_32_UPLOADS), 24 => array(e_ADMIN.'users.php', ADLAN_36, ADLAN_37, '4|U0|U1|U2|U3', 2, E_16_USER, E_32_USER), 25 => array(e_ADMIN.'userclass2.php', ADLAN_38, ADLAN_39, '4', 2, E_16_USERCLASS, E_32_USERCLASS), 26 => array(e_ADMIN.'language.php', ADLAN_132, ADLAN_133, '0', 1, E_16_LANGUAGE, E_32_LANGUAGE), diff --git a/e107_admin/header.php b/e107_admin/header.php index 27a428be0..1ac4d440e 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -45,7 +45,11 @@ e107::js('core', 'password/jquery.pwdMeter.js', 'jquery', 2); e107::js("core", "plupload/customUpload.js","jquery",3); e107::js("core", "core/mediaManager.js","jquery",3); +e107::js("core", "tooltip/jquery.tipsy.js","jquery",3); +e107::css('core', 'tooltip/tipsy.css', 'jquery'); +e107::js("core", "tags/jquery.tagit.js","jquery",3); +e107::css('core', 'tags/jquery.tagit.css', 'jquery'); // e107::js("core", "tooltip/jquery.qtip-1.0.0-rc3.min.js","jquery",3); diff --git a/e107_admin/image.php b/e107_admin/image.php index 1e684c7c5..2009561c5 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -74,7 +74,6 @@ class media_admin extends e_admin_dispatcher 'main/import' => array('caption'=> "Media Import", 'perm' => 'A|A2'), 'cat/list' => array('caption'=> 'Media Categories', 'perm' => 'A'), 'cat/create' => array('caption'=> "Create Category", 'perm' => 'A'), // is automatic. - // 'main/icons' => array('caption'=> IMALAN_71, 'perm' => 'A'), 'main/settings' => array('caption'=> LAN_PREFS, 'perm' => 'A'), 'main/avatar' => array('caption'=> IMALAN_23, 'perm' => 'A') @@ -84,8 +83,7 @@ class media_admin extends e_admin_dispatcher $var['main']['text'] = IMALAN_7; $var['main']['link'] = e_SELF; - $var['icons']['text'] = IMALAN_71; - $var['icons']['link'] = e_SELF."?icons"; + $var['avatars']['text'] = IMALAN_23; $var['avatars']['link'] = e_SELF."?avatars"; @@ -387,7 +385,7 @@ class media_admin_ui extends e_admin_ui if($this->getQuery('bbcode')) { - + //TODO this is not really used when jquery is running. e107::getJS()->headerInline(" /* Send the generated IMG bbcode back to the textarea/window */ @@ -628,7 +626,173 @@ class media_admin_ui extends e_admin_ui function settingsPage() { - main_config(); + global $pref; + + $frm = e107::getForm(); + $tp = e107::getParser(); + $sql = e107::getDb(); + $ns = e107::getRender(); + $mes = e107::getMessage(); + + if(function_exists('gd_info')) + { + $gd_info = gd_info(); + $gd_version = $gd_info['GD Version']; + } + else + { + $gd_version = " ".IMALAN_55.""; + } + + if($pref['resize_method'] == "ImageMagick" && (!vartrue(e107::getFolder('imagemagick')))) + { + + $mes->addWarning('Please add: $IMAGEMAGICK_DIRECTORY="'.$pref['im_path'].'"; to your e107_config.php file'); + } + + + //$IM_NOTE = ""; + $im_path = vartrue(e107::getFolder('imagemagick')); + if($im_path != "") + { + $im_file = $im_path.'convert'; + if(!file_exists($im_file)) + { + //$IM_NOTE = "".IMALAN_52.""; + $mes->addWarning(IMALAN_52); + } + else + { + $cmd = "{$im_file} -version"; + $tmp = `$cmd`; + if(strpos($tmp, "ImageMagick") === FALSE) + { + //$IM_NOTE = "".IMALAN_53.""; + $mes->addWarning(IMALAN_53); + } + } + } + + + + + + + $text = " +
"; + + echo $mes->render().$text; + return; + // $ns->tablerender(LAN_MEDIAMANAGER." :: ".IMALAN_7, $mes->render().$text); } function avatarPage() @@ -1630,163 +1794,7 @@ if (isset($_POST['check_avatar_sizes'])) $ns->tablerender(IMALAN_37, $emessage->render().$text); } -/* - * MAIN CONFIG SCREEN - */ - function main_config() - { - global $pref; - $frm = e107::getForm(); - $tp = e107::getParser(); - $sql = e107::getDb(); - $ns = e107::getRender(); - $mes = e107::getMessage(); - - if(function_exists('gd_info')) - { - $gd_info = gd_info(); - $gd_version = $gd_info['GD Version']; - } - else - { - $gd_version = " ".IMALAN_55.""; - } - - $IM_NOTE = ""; - if($pref['im_path'] != "") - { - $im_file = $pref['im_path'].'convert'; - if(!file_exists($im_file)) - { - $IM_NOTE = "".IMALAN_52.""; - } - else - { - $cmd = "{$im_file} -version"; - $tmp = `$cmd`; - if(strpos($tmp, "ImageMagick") === FALSE) - { - $IM_NOTE = "".IMALAN_53.""; - } - } - } - - $text = " - "; - - echo $mes->render().$text; - return; - $ns->tablerender(LAN_MEDIAMANAGER." :: ".IMALAN_7, $mes->render().$text); -} //Just in case... if(!e_AJAX_REQUEST) require_once("footer.php"); diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index bc9e21304..137151704 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -1800,7 +1800,7 @@ class admin_newspost $this->_pre_create(); require_once(e_HANDLER."userclass_class.php"); - require_once(e_HANDLER."form_handler.php"); + // require_once(e_HANDLER."form_handler.php"); // $frm = new e_form(true); //enable inner tabindex counter $frm = e107::getForm(); @@ -1913,6 +1913,9 @@ class admin_newspost ".$frm->text('news_summary', $tp->post_toForm($_POST['news_summary']), 250)." + + + "; @@ -2076,9 +2079,14 @@ class admin_newspost