diff --git a/platform/Heroku.php b/platform/Heroku.php index 434b092..a37da8d 100644 --- a/platform/Heroku.php +++ b/platform/Heroku.php @@ -126,7 +126,14 @@ function install() $html = api_error_msg($response); $title = 'Error'; } else { - return output('Jump', 302); + return output('Jump + + ', 302); } return message($html, $title, 201); } @@ -156,7 +163,10 @@ language:
'; document.cookie="timezone="+timezone+"; path=/; "+expires; function changelanguage(str) { - document.cookie=\'language=\'+str+\'; path=/\'; + var expd = new Date(); + expd.setTime(expd.getTime()+(2*60*60*1000)); + var expires = "expires="+expd.toGMTString(); + document.cookie=\'language=\'+str+\'; path=/; \'+expires; location.href = location.href; } function notnull(t) @@ -250,7 +260,7 @@ function_name:' . $_SERVER['function_name'] . '
function OnekeyUpate($auth = 'qkqpttgf', $project = 'OneManager-php', $branch = 'master') { //'https://github.com/qkqpttgf/OneManager-php/tarball/master/'; - $source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . $branch . '/'; + $source = 'https://github.com/' . $auth . '/' . $project . '/tarball/' . urlencode($branch) . '/'; return json_decode(updateHerokuapp(getConfig('function_name'), getConfig('APIKey'), $source)['body'], true); }