Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there)
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

98 righe
2.6 KiB

<script src="include/jquery.htmlstream.js"></script>
/* ajax updater */
function updateEnd(data){
//$("#updatepopup .panel_text").html(data);
function updateOn(data){
var patt=/§([^§]*)§/g;
var matches = data.match(patt);
data = data.replace(/§/g,"");
d = data.split("@");
elm = $("#updatepopup .panel_text #"+d[0]);
html = "<div id='"+d[0]+"' class='progress'>"+d[1]+"<span>"+d[2]+"</span></div>";
if (elm.length==0){
$("#updatepopup .panel_text").append(html);
} else {
var data={};
$(this).find("input").each(function(i, e){
name = $(e).attr('name');
value = $(e).val();
e.disabled = true;
$("#updatepopup .panel_text").html("");
$("#updatepopup .panel").hide().slideDown(500);
$("#updatepopup .panel").slideUp(500, function(){
return false;
<div id="updatepopup" class="popup">
<div class="background"></div>
<div class="panel">
<div class="panel_in">
<h1>Friendika Update</h1>
<div class="panel_text"></div>
<div class="panel_actions">
<input type="button" value="$close" class="panel_action_close">
<div id="adminpage">
<dl> <dt>Your version:</dt><dd>$localversion</dd> </dl>
{{ if $needupdate }}
<dl> <dt>New version:</dt><dd>$remoteversion</dd> </dl>
<form id="remoteupdate_form" method="POST" action="$baseurl/admin/update">
<input type="hidden" name="$remotefile.0" value="$remotefile.2">
{{ if $canwrite }}
<div class="submit"><input type="submit" name="remoteupdate" value="$submit" /></div>
{{ else }}
<h3>Your friendika installation is not writable by web server.</h3>
{{ if $canftp }}
<p>You can try to update via FTP</p>
{{ inc field_input.tpl with $field=$ftphost }}{{ endinc }}
{{ inc field_input.tpl with $field=$ftppath }}{{ endinc }}
{{ inc field_input.tpl with $field=$ftpuser }}{{ endinc }}
{{ inc field_password.tpl with $field=$ftppwd }}{{ endinc }}
<div class="submit"><input type="submit" name="remoteupdate" value="$submit" /></div>
{{ endif }}
{{ endif }}
{{ else }}
<h4>No updates</h4>
{{ endif }}