mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-27 15:34:28 +01:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c5f9c1593c | ||
|
|
5cd39d6f0d | ||
|
|
f0ceee0bcd | ||
|
|
9db18fdefd | ||
|
|
7868c0d6c1 | ||
|
|
e09e0590d7 | ||
|
|
771abe118e | ||
|
|
451c76afe8 | ||
|
|
d21b1345bb | ||
|
|
eca174a20b | ||
|
|
de9a3b1fc4 |
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -44,3 +44,15 @@ jobs:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag: ${{ github.event.inputs.tag || github.ref }}
|
||||
overwrite: true
|
||||
|
||||
torrent:
|
||||
needs: build-raspap-image
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Generate torrents for release
|
||||
uses: devopsx/action-torrent@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
local: false
|
||||
|
||||
@@ -542,7 +542,7 @@ function disableValidation(form) {
|
||||
|
||||
function updateActivityLED() {
|
||||
const threshold_bytes = 300;
|
||||
fetch('/app/net_activity')
|
||||
fetch('app/net_activity')
|
||||
.then(res => res.text())
|
||||
.then(data => {
|
||||
const activity = parseInt(data.trim());
|
||||
|
||||
@@ -82,9 +82,10 @@ class HTTPAuth
|
||||
session_regenerate_id(true); // generate a new session id
|
||||
session_unset(); // unset all session variables
|
||||
session_destroy(); // destroy the session
|
||||
$basePath = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
|
||||
$redirectUrl = $_SERVER['REQUEST_URI'];
|
||||
if (strpos($redirectUrl, '/login') === false) {
|
||||
header('Location: /login?action=' . urlencode($redirectUrl));
|
||||
header('Location: ' . $basePath . '/login?action=' . urlencode(basename($redirectUrl)));
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ class HtmlErrorRenderer
|
||||
public function __construct()
|
||||
{
|
||||
$this->charset = 'UTF-8';
|
||||
$this->projectDir = $_SERVER['DOCUMENT_ROOT'];
|
||||
$this->projectDir = dirname(__DIR__, 3);
|
||||
$this->template = '/templates/exception.php';
|
||||
$this->debug = true;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class PluginInstaller
|
||||
$this->tempSudoers = '/tmp/090_';
|
||||
$this->destSudoers = '/etc/sudoers.d/';
|
||||
$this->refModules = '/refs/heads/master/.gitmodules';
|
||||
$this->rootPath = $_SERVER['DOCUMENT_ROOT'];
|
||||
$this->rootPath = dirname(__DIR__, 3);
|
||||
$this->pluginsManifest = '/plugins/manifest.json';
|
||||
$this->repoPublic = $this->getRepository();
|
||||
$this->helperScriptPath = RASPI_CONFIG.'/plugins/plugin_helper.sh';
|
||||
|
||||
Reference in New Issue
Block a user