'.getconstStr('GetSecretIDandKEY').'
diff --git a/function/normal.php b/function/normal.php
index e6bf1e8..f8770ab 100644
--- a/function/normal.php
+++ b/function/normal.php
@@ -115,7 +115,7 @@ function setConfig($arr, $disktag = '')
function install()
{
global $constStr;
- if ($_GET['install1']) {
+ if ($_GET['install2']) {
if ($_POST['admin']!='') {
$tmp['admin'] = $_POST['admin'];
$tmp['language'] = $_POST['language'];
@@ -125,31 +125,74 @@ function install()
$title = 'Error';
return message($html, $title, 201);
} else {
- return output('Jump
', 302);
+ return output('Jump
', 302);
}
}
}
- if ($_GET['install0']) {
+ if ($_GET['install1']) {
if (!ConfigWriteable()) {
$html .= getconstStr('MakesuerWriteable');
$title = 'Error';
return message($html, $title, 201);
}
- if (!RewriteEngineOn()) {
+ /*if (!RewriteEngineOn()) {
$html .= getconstStr('MakesuerRewriteOn');
$title = 'Error';
return message($html, $title, 201);
+ }*/
+ $html .= '
+
+
+
+ ';
+ $title = getconstStr('SetAdminPassword');
+ return message($html, $title, 201);
+ }
+ if ($_GET['install0']) {
$html .= '
-
';
$title = getconstStr('SelectLanguage');
return message($html, $title, 201);
diff --git a/function/scf.php b/function/scf.php
index e8b6a5e..e996331 100644
--- a/function/scf.php
+++ b/function/scf.php
@@ -132,9 +132,9 @@ function install()
setConfig($tmp);
if (needUpdate()) {
updateProgram($_SERVER['function_name'], $_SERVER['Region'], $_SERVER['namespace'], $SecretId, $SecretKey);
- return message('update to github version, reinstall.
', 'Program updating', 201);
+ return message('update to github version, reinstall.
', 'Program updating', 201);
}
- return output('Jump
', 302);
+ return output('Jump
', 302);
}
if ($_GET['install1']) {
//if ($_POST['admin']!='') {
@@ -166,7 +166,7 @@ function install()
function notnull(t)
{
if (t.admin.value==\'\') {
- alert(\'Input admin\');
+ alert(\''.getconstStr('SetAdminPassword').'\');
return false;
}
return true;
diff --git a/theme/classic.php b/theme/classic.php
index ebbc6d4..7144d94 100644
--- a/theme/classic.php
+++ b/theme/classic.php
@@ -705,8 +705,8 @@
tmptextarea.select();
tmptextarea.setSelectionRange(0, tmptextarea.value.length);
document.execCommand("copy");
- alert(tmptextarea.innerHTML);
- //alert('Success');
+ //alert(tmptextarea.innerHTML);
+ alert('Success');
}
var sort=0;
function sortby(string) {
@@ -999,6 +999,7 @@
//window.open(lasturl);
document.getElementById('upfile_a_'+tdnum).href = lasturl;
document.getElementById('upfile_a1_'+tdnum).href = filename;
+ document.getElementById('upfile_cpbt_'+tdnum).style.display = "";
}
EndTime=new Date();
@@ -1008,7 +1009,7 @@
} else {
MiddleStr += ':'+size_format((totalsize-newstartsize)*1000/(EndTime.getTime()-StartTime.getTime()))+'/s
';
}
- document.getElementById('upfile_td1_'+tdnum).innerHTML='
';
+ document.getElementById('upfile_td1_'+tdnum).innerHTML='
';
label.innerHTML=StartStr+MiddleStr;
uploadbuttonshow();