11 Commits

Author SHA1 Message Date
Bill Zimmerman
c5f9c1593c Update release.yml 2025-08-21 18:59:55 +02:00
Bill Zimmerman
5cd39d6f0d Delete .github/workflows/torrent.yml 2025-08-21 17:03:04 +02:00
Bill Zimmerman
f0ceee0bcd Update release.yml 2025-08-21 17:02:47 +02:00
Bill Zimmerman
9db18fdefd Merge branch 'RaspAP:master' into master 2025-08-21 07:54:30 -07:00
Bill Zimmerman
7868c0d6c1 Create torrent.yml 2025-08-21 16:53:54 +02:00
Bill Zimmerman
e09e0590d7 Merge pull request #1935 from RaspAP/fix/custom-paths
Fix: Update class methods + js handler for custom path locations
2025-08-20 11:48:02 -07:00
Bill Zimmerman
771abe118e Merge pull request #1936 from RaspAP/fix/path-info-handling
Fix: Handle undefined PATH_INFO value
2025-08-20 11:47:35 -07:00
Bill Zimmerman
451c76afe8 Update torrent.yml 2025-08-20 18:58:33 +02:00
Bill Zimmerman
d21b1345bb Update torrent.yml 2025-08-20 18:50:43 +02:00
Bill Zimmerman
eca174a20b Create torrent.yml 2025-08-20 18:47:12 +02:00
billz
de9a3b1fc4 Update class methods + js handler for custom path locations 2025-08-19 17:17:27 -07:00
5 changed files with 17 additions and 4 deletions

View File

@@ -44,3 +44,15 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag || github.ref }} tag: ${{ github.event.inputs.tag || github.ref }}
overwrite: true 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

View File

@@ -542,7 +542,7 @@ function disableValidation(form) {
function updateActivityLED() { function updateActivityLED() {
const threshold_bytes = 300; const threshold_bytes = 300;
fetch('/app/net_activity') fetch('app/net_activity')
.then(res => res.text()) .then(res => res.text())
.then(data => { .then(data => {
const activity = parseInt(data.trim()); const activity = parseInt(data.trim());

View File

@@ -82,9 +82,10 @@ class HTTPAuth
session_regenerate_id(true); // generate a new session id session_regenerate_id(true); // generate a new session id
session_unset(); // unset all session variables session_unset(); // unset all session variables
session_destroy(); // destroy the session session_destroy(); // destroy the session
$basePath = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/');
$redirectUrl = $_SERVER['REQUEST_URI']; $redirectUrl = $_SERVER['REQUEST_URI'];
if (strpos($redirectUrl, '/login') === false) { if (strpos($redirectUrl, '/login') === false) {
header('Location: /login?action=' . urlencode($redirectUrl)); header('Location: ' . $basePath . '/login?action=' . urlencode(basename($redirectUrl)));
exit(); exit();
} }
} }

View File

@@ -19,7 +19,7 @@ class HtmlErrorRenderer
public function __construct() public function __construct()
{ {
$this->charset = 'UTF-8'; $this->charset = 'UTF-8';
$this->projectDir = $_SERVER['DOCUMENT_ROOT']; $this->projectDir = dirname(__DIR__, 3);
$this->template = '/templates/exception.php'; $this->template = '/templates/exception.php';
$this->debug = true; $this->debug = true;
} }

View File

@@ -32,7 +32,7 @@ class PluginInstaller
$this->tempSudoers = '/tmp/090_'; $this->tempSudoers = '/tmp/090_';
$this->destSudoers = '/etc/sudoers.d/'; $this->destSudoers = '/etc/sudoers.d/';
$this->refModules = '/refs/heads/master/.gitmodules'; $this->refModules = '/refs/heads/master/.gitmodules';
$this->rootPath = $_SERVER['DOCUMENT_ROOT']; $this->rootPath = dirname(__DIR__, 3);
$this->pluginsManifest = '/plugins/manifest.json'; $this->pluginsManifest = '/plugins/manifest.json';
$this->repoPublic = $this->getRepository(); $this->repoPublic = $this->getRepository();
$this->helperScriptPath = RASPI_CONFIG.'/plugins/plugin_helper.sh'; $this->helperScriptPath = RASPI_CONFIG.'/plugins/plugin_helper.sh';