-<cfif request.admintype EQ "web"><cflocation url="#request.self#" addtoken="no"></cfif>
+<!--- 
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either 
+ * version 2.1 of the License, or (at your option) any later version.
+ * 
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public 
+ * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
+ * 
+ ---><cfif request.admintype EQ "web"><cflocation url="#request.self#" addtoken="no"></cfif>
 
 <cfparam name="url.action2" default="none">
 <cfset error.message="">
 <cfset error.detail="">
-<cfset restBasePath="/rest/update/provider/">
 
 <cftry>
 <cfswitch expression="#url.action2#">

				<tfoot>
					<tr>
						<td>
							<input type="submit" class="bs button submit" name="mainAction" value="#stText.services.update.exeRun#">
						</td>
					</tr>
				</tfoot>

		<cfscript>
			// Jira
			jira=stText.services.update.jira;
			jira=replace(jira,'{a}','<a href="https://bitbucket.org/lucee/lucee/issues" target="_blank">');
			jira=replace(jira,'{/a}','</a>');
			try	{
				// Changelog
				content=getAvailableVersionDoc();
				start=1;
				arr=array();
				matches=REMatchNoCase("\[\ *(##([0-9]*)) *\]",content);
				for(i=arrayLen(matches);i>=1;i--){
					match=trim(matches[i]);
					nbr=trim(mid(match,4,len(match)-4));
					content=replace(content,match,'<a target="_blank" href="https://bitbucket.org/lucee/lucee/issue/'&nbr&'">##'& nbr & '</a>',"all");
				}
					content=replace(content,"
Version ","

Version ","all");
			}
			catch(e){}
		</cfscript>
		<h2>#stText.services.update.infoTitle#</h2>
		<div class="text">
			#replace(replace(replace(stText.services.update.update,'{available}','<b>(#avi#)</b>'),'{current}','<b>(#curr#)</b>'),'{available}','<b>(#avi#)</b>')#
		</div>
		<div style="overflow:auto;height:200px;border-style:solid;border-width:1px;padding:10px"><pre>#trim(content)#</pre></div>
		#jira#
	<cfelseif not needNewJars>
		<h2>#stText.services.update.infoTitle#</h2>
		<div class="text">#replace(stText.services.update.noUpdate,'{current}',curr)#</div>
	</cfif>
	
	
