Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

unRAID wrapper to populate globals like $_GET

Featured Replies

The 'document root' is /usr/local/emhttp so for your 'caution.png' file, it would need to exist in

/usr/local/emhttp/bubba/caution.png

or better,

/usr/local/emhttp/plugins/bubba/caution.png

(and url is http://192.168.0.51/plugins/bubba/caution.png).

 

Something else to be aware of... at present, if the first component of a pathname starts with a capital letter, emhttp will treat as a "page" and will invoke 'template.php', passing the path in a querystring.

See /usr/local/plugins/webGui/template.php.

 

Speaking of wrappers... I will be creating a 'wrapper' PHP file that fills in certain globals such as _GET[].  Code would look something like this:

 

<?php
// for http://tower/filename.php?querystring
// wrapper.php invoked like this:
// /usr/bin/php wrapper.php filename.php querystring
parse_str(str_replace("+","%2B",$argv[2]), $_GET);
include $argv[1];
?>

 

  • Author

There is a bug in using:

 

parse_str(str_replace("+","%2B",$argv[2]), $_GET);

 

php's parse_str() function hoses up periods in the string... converts them the underscores.

 

I'm using this now:

 

    $_GET = array();
    foreach (explode("&", str_replace("+","%2B",$argv[1])) as $item) {
        list($k, $v) = array_map("urldecode", explode("=", $item));
        $_GET[$k] = $v;
    } 

 

If someone is also using php_cgi, they can test for unRAID's php+cli using:

 

if (php_sapi_name() =="cli") {
  // unRAID php_cli is in use
} else {
  // real php_cgi is in use
}

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.