diff --git a/class2.php b/class2.php index 2a9d5edfe..4570c3f6e 100644 --- a/class2.php +++ b/class2.php @@ -1087,6 +1087,10 @@ if(e_ADMIN_AREA) else { require_once (THEME.'theme.php'); + if(isset($SC_WRAPPER)) + { + e107::scStyle($SC_WRAPPER); + } } diff --git a/e107.robots.txt b/e107.robots.txt index 808bf0bab..4927f60c1 100644 --- a/e107.robots.txt +++ b/e107.robots.txt @@ -1,6 +1,16 @@ User-agent: * Disallow: /sitedown.php +Disallow: /cron.php +Disallow: /fpw.php +Disallow: /membersonly.php Disallow: /e107_admin/ -Disallow: /e107_handlers/ +Disallow: /e107_core/ +Disallow: /e107_docs/ Disallow: /e107_files/cache/ Disallow: /e107_files/public/avatars/ +Disallow: /e107_handlers/ +Disallow: /e107_languages/ +Disallow: /e107_media/ +Disallow: /e107_system/ +Disallow: /e107_themes/ +Disallow: /e107_web/ diff --git a/e107_admin/image.php b/e107_admin/image.php index 1de4d1678..35ed24b8e 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -668,7 +668,7 @@ class media_admin_ui extends e_admin_ui 'media_dimensions' => array('title'=> "Dimensions", 'type' => 'text', 'data'=> 'str', 'width' => '5%', 'readonly'=>TRUE, 'class'=>'nowrap','noedit'=>TRUE), 'media_userclass' => array('title'=> LAN_USERCLASS, 'type' => 'userclass', 'data'=> 'str', 'inline'=>true, 'width' => '10%', 'thclass' => 'center','filter'=>TRUE,'batch'=>TRUE ), 'media_tags' => array('title'=> "Tags/Keywords", 'type' => 'tags', 'data'=> 'str', 'width' => '10%', 'filter'=>TRUE,'batch'=>TRUE ), - 'media_usedby' => array('title'=> '', 'type' => 'text', 'data'=> 'text', 'width' => 'auto', 'thclass' => 'center', 'class'=>'center', 'nolist'=>true, 'readonly'=>TRUE ), + 'media_usedby' => array('title'=> 'Used by', 'type' => '', 'data'=> 'text', 'width' => 'auto', 'thclass' => 'center', 'class'=>'center', 'nolist'=>true, 'readonly'=>TRUE ), 'options' => array('title'=> LAN_OPTIONS, 'type' => 'method', 'data'=> null, 'forced'=>TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'center', 'batch'=>true, 'noedit'=>true) ); diff --git a/e107_admin/links.php b/e107_admin/links.php index 7e465b2e4..a32a330f8 100644 --- a/e107_admin/links.php +++ b/e107_admin/links.php @@ -492,7 +492,6 @@ class links_model_admin_tree extends e_admin_tree_model { $search[$model->get('link_parent')][$id] = $model; } - asort($search); $this->_tree_order($this->current_id, $search, $this->$var, 0, $modified); } @@ -522,11 +521,27 @@ class links_model_admin_tree extends e_admin_tree_model $src[$id] = $model; if($modified) { - $model->set('link_name', $level_image.$model->get('link_name')); + $model->set('link_name', $level_image.$this->bcClean($model->get('link_name'))); } $this->_tree_order($id, $search, $src, $level + 1, $modified); } } + + + function bcClean($link_name) + { + if(substr($link_name, 0,8) == 'submenu.') // BC Fix. + { + list($tmp,$tmp2,$link) = explode('.', $link_name, 3); + } + else + { + $link = $link_name; + } + + return $link; + } + } diff --git a/e107_admin/plugin.php b/e107_admin/plugin.php index 9c6be3aed..8267c952b 100644 --- a/e107_admin/plugin.php +++ b/e107_admin/plugin.php @@ -27,11 +27,10 @@ if(e_AJAX_REQUEST && isset($_GET['src'])) // Ajax $localfile = md5($remotefile.time()).".zip"; $status = "Downloading..."; -// e107::getFile()->getRemoteFile($remotefile,$localfile); - - e107::getFile()->download($remotefile,'plugin'); - - + $fl = e107::getFile(); + //$fl->setAuthKey('username','password'); + $fl->download($remotefile,'plugin'); + exit; /* @@ -265,14 +264,13 @@ class pluginManager{ "plugin_icon" => array("title" => EPL_ADLAN_82, "type"=>"icon", "width" => "5%", "thclass" => "middle center",'class'=>'center', "url" => ""), "plugin_name" => array("title" => EPL_ADLAN_10, 'forced'=>true, "type"=>"text", "width" => "auto", 'class'=>'left', "thclass" => "middle", "url" => ""), "plugin_version" => array("title" => EPL_ADLAN_11, "type"=>"numeric", "width" => "5%", "thclass" => "middle", "url" => ""), - "plugin_date" => array("title" => "Released ", "type"=>"text", "width" => "10%", "thclass" => "middle"), + "plugin_date" => array("title" => "Released ", "type"=>"text", "width" => "8%", "thclass" => "middle"), "plugin_folder" => array("title" => EPL_ADLAN_64, "type"=>"text", "width" => "10%", "thclass" => "middle"), "plugin_category" => array("title" => LAN_CATEGORY, "type"=>"text", "width" => "auto", "thclass" => "middle"), "plugin_author" => array("title" => EPL_ADLAN_12, "type"=>"text", "width" => "10%", "thclass" => "middle"), - // "plugin_website" => array("title" => EPL_WEBSITE, "type"=>"method", "width" => "5%", "thclass" => "middle center"), - "plugin_compatible" => array("title" => EPL_ADLAN_13, "type"=>"text", "width" => "5%", "thclass" => "middle"), - + "plugin_price" => array("title" => "Price", 'nolist'=>true, "forced"=>true, "type"=>"text", "width" => "5%", "thclass" => "left"), + "plugin_compatible" => array("title" => EPL_ADLAN_13, "type"=>"text", "width" => "5%", "thclass" => "middle"), "plugin_description" => array("title" => EPL_ADLAN_14, "type"=>"bbarea", "width" => "30%", "thclass" => "middle center", 'readParms' => 'expand=1&truncate=180&bb=1'), "plugin_compliant" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""), // "plugin_release" => array("title" => EPL_ADLAN_81, "type"=>"text", "width" => "5%", "thclass" => "middle center", "url" => ""), @@ -298,6 +296,11 @@ class pluginManager{ $this->action = $_GET['mode']; } + if($this->action == 'online') + { + $this->fields["plugin_price"]['nolist'] = false; // = array("title" => "Price", "forced"=>true, "type"=>"text", "width" => "5%", "thclass" => "middle center"); + } + $keys = array_keys($this -> titlearray); $this->pagetitle = (in_array($this->action,$keys)) ? $this -> titlearray[$this->action] : $this -> titlearray['installed']; @@ -343,9 +346,17 @@ class pluginManager{ $user_pref['admin_pluginmanager_columns'] = false; - $this -> fieldpref = (vartrue($user_pref['admin_pluginmanager_columns'])) ? $user_pref['admin_pluginmanager_columns'] : array("plugin_icon","plugin_name","plugin_version","plugin_date","plugin_description","plugin_category","plugin_compatible","plugin_author","plugin_website","plugin_notes"); + $this -> fieldpref = (vartrue($user_pref['admin_pluginmanager_columns'])) ? $user_pref['admin_pluginmanager_columns'] : array("plugin_icon","plugin_name","plugin_version","plugin_date","plugin_description","plugin_category","plugin_compatible","plugin_author","plugin_website","plugin_notes"); + foreach($this->fields as $key=>$val) + { + if($val['forced'] == true && substr($key,0,6)=='plugin') + { + $this->fieldpref[] = $key; + } + } + if($this->action == 'avail' || $this->action == 'installed') // Plugin Check is done during upgrade_routine. { @@ -465,13 +476,14 @@ class pluginManager{ { $row = $r['@attributes']; - $badge = $this->compatibilityLabel($row['compatibility']);; - $featured = ($row['featured']== 1) ? " Featured" : ''; + $badge = $this->compatibilityLabel($row['compatibility']);; + $featured = ($row['featured']== 1) ? " Featured" : ''; + $price = ($row['price'] > 0) ? "".$row['price']." credits" : "Free"; $data[] = array( 'plugin_id' => $c, 'plugin_icon' => vartrue($row['icon'],e_IMAGE."admin_images/plugins_32.png"), - 'plugin_name' => $row['name'].$featured, + 'plugin_name' => stripslashes($row['name']).$featured, 'plugin_folder' => $row['folder'], 'plugin_date' => vartrue($row['date']), 'plugin_category' => vartrue($r['category'][0]), @@ -482,8 +494,10 @@ class pluginManager{ 'plugin_website' => vartrue($row['authorUrl']), 'plugin_url' => $row['url'], - 'plugin_notes' => '' - ); + 'plugin_notes' => '', + 'plugin_price' => $price + ); + $c++; } @@ -498,7 +512,7 @@ class pluginManager{ $text = " -
diff --git a/e107_admin/theme.php b/e107_admin/theme.php index 5d51f4254..829656ac9 100644 --- a/e107_admin/theme.php +++ b/e107_admin/theme.php @@ -42,7 +42,7 @@ e107::css("inline"," .admin-theme-options:hover { opacity:0.8; } -.admin-theme-title { font-size: 15px; overflow:hidden; padding-left:5px; white-space:no-wrap; width:200px; position:relative; top:-132px; } +.admin-theme-title { line-height: 18px; overflow:hidden; padding-left:5px; white-space:no-wrap; width:200px; position:relative; top:-132px; } .admin-theme-select {border:1px dotted silver;background-color:#DDDDDD;float:left } diff --git a/e107_core/shortcodes/single/navigation.php b/e107_core/shortcodes/single/navigation.php index 1f4e3fc5c..947ef1b1b 100644 --- a/e107_core/shortcodes/single/navigation.php +++ b/e107_core/shortcodes/single/navigation.php @@ -18,5 +18,6 @@ function navigation_shortcode($parm='') // $data = $nav->collection($category); return $nav->render($data, $template); + } \ No newline at end of file diff --git a/e107_core/templates/header_default.php b/e107_core/templates/header_default.php index 4deff7c07..faffa62c5 100644 --- a/e107_core/templates/header_default.php +++ b/e107_core/templates/header_default.php @@ -625,7 +625,7 @@ if ($e107_popup != 1) { if(ADMIN) { - if(file_exists(e_BASE.'install.php')){ echo "