Giter Site home page Giter Site logo

sergix44 / xbackbone Goto Github PK

View Code? Open in Web Editor NEW
950.0 950.0 79.0 2.97 MB

A lightweight file manager with full ShareX support and more

Home Page: https://xbackbone.app

License: GNU Affero General Public License v3.0

PHP 76.36% CSS 0.63% JavaScript 3.46% Shell 0.70% Twig 18.00% Python 0.85%
backend file-server filemanager ftp gallery hacktoberfest linux-support php php8 screencloud self-hosted sharex sharex-server uploader

xbackbone's People

Contributors

70h avatar bentyger avatar camjac251 avatar comradekingu avatar denisbranisteanu avatar dependabot[bot] avatar dhfhfk avatar flakka2022 avatar idblock avatar kingchun avatar kombustor avatar lukasss93 avatar metroseksuaali avatar mrunknownde avatar nzsolt91 avatar oersen avatar olegkaspersky avatar owinrojas avatar ozsen06 avatar pe46dro avatar rezaalmanda avatar rubenixnagios avatar samrzhevsky avatar santossi avatar sergix44 avatar srs2225a avatar stylecibot avatar violinist-bot avatar weblate avatar whsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xbackbone's Issues

FireFox Rendering Error ON FireFox

System Info

  • PHP Version: PHP 7.3.3
  • XBackBone Version: XBackBone v2.5.2
  • Webserver: Apache2

Describe the bug
Since the Update to XBackBone v2.5.2 i noticed, that in FireFox the CSS is not loading. i Think this is an cache error, but i cleared the Firefox and Cloudflare Cache. Now i expect that its an rendering error, because on Google Chrome and Microsoft Edge it Works fine. I Also have delete all Files an reinstall XBackbone. Also i can't Upload Files from ShareX (https://hastebin.com/ximuyeciba.xml)

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://example.com/login' with Firefox and Chrome or Edge
  2. See Login Screen
  3. See error

Expected behavior
I have Updatet XBackbone over the Webpanel. I have successfully updated the Database, after i see the Buggy Page.

Screenshots

Check if mod_rewrite is enabled

Is your feature request related to a problem? Please describe.
As I was looking through the closed issues it seems like I'm not the only person who had this issue.

Describe the solution you'd like
In order to avoid problems like the one mentioned above you could implement a simple addition to the installer that checks if the apache2 module mod_rewrite is enabled.

Additional context
I'm not good at php by any means but I found this:
If in_array('mod_rewrite', apache_get_modules()) returns true then it's enabled.

RESPONSE in the bash script returns a cut off link

Here what I get with the current v3.0 RC2

curl -s -F "token=token_XXXXX" -F "[email protected]" https://xxx.xxx/xback/upload

"message":"OK.","version":"3.0.RC2","url":"\/xback\/929c5\/PikIfIPI07.jpg"}

As you see the url is trucated and no longer provides the full url

Also the new script does not use the full url for curl, hre is the portion from the generated script

RESPONSE="$(curl -s -F "token=XXXXX" -F "upload=@${1}" /xback/upload)";

Registration system

A self registration option with invite keys option

Additional context

Basically an option that will let people register by themselves with a special invite key or without, depends on whoever hosts

Login page issue

Hey there,
as requested I'm continuing the problem from #5 here.
I don't have any request headers specified in my webservers config. Error is reproducible with a fresh install of Debian Stretch / Ubuntu Bionic Beaver after installing PHP 7.2 or 7.1 (doesn´t matter) from this repo: https://packages.sury.org/php/ . Also its not important if you are using NGINX or Apache. After installing all the dependencies I followed the instructions in the README.md and tried to open the URL in Chrome and i see this: https://i.turbo.ooo/3h348.png (same as @TurboCheetah so i took his screenshot). It instantly redirects to /login and offers me to download the login file (content is the same as in index.php)
Thanks in Advance :)

Broken on Docker

System Info
Latest docker image

Describe the bug
xbackbone works fine until the docker is stopped. After it's stopped, it never comes back up.

To Reproduce
Steps to reproduce the behavior:

  1. Install docker image
  2. Run it
  3. Stop it
  4. start it

Expected behavior
To start up again

Screenshots
From the log:
image

Filename and path name the same?

System Info

  • PHP Version: 7.2.24
  • XBackBone Version: 2.6.6
  • Webserver: Apache2

For me would be better to have the same filename and storage path name, for example, my shareX generates a random 10 char name for every screenshot that I take, saves the screenshot on a local folder and sends it to my webserver running XBackBone which generates a new name for web access. https://domain.com/userCode/a9b8c7.png instead of the name that the file had (a1b2c3.png). Is there any way to have the same name on both sides?

Screenshots
T6bTaNGqa1

2FA

Would it be possible to include two factor authentication to logins, such as being able to enable it, or require it for certain users?

For example, a section in the system tab for enabling 2FA requirements for no one, admins, and everyone, and then another option to require it for specific users.

Critical issue!

In readme: "multi user managemant" should be "multi user management".

FTP-Server

Hello,

Maybe a little idea.
Whether one implements a function which makes it possible to outsource image files (or all files) to external FTP servers.

Best regards
Johannes K.

Thumbnails are not representing images properly

Hi

It looks like the thumbnails are created by cropping portion of an image which might work in some cases but I find the the detaul cropping most of the time misses the general point of the image, this gets even worse if the image is very big, you might end getting a very little portion of the image as the thumbnail.

It would be nice if ther eis setting to set how the thumbnails should be created like cropping or plain scaled down version of the image.

thanks.

404 error after installation

System Info

  • PHP Version: 7.1
  • XBackBone Version: 2.6.5
  • Webserver: apache2 2.4.18

Describe the bug
After installation the server returns a 404 error when visiting the URL http://mydomain.xxx/home

To Reproduce
Setup VPS with apache2, php, sqlite3
Download and extract build 2.6.5
Visit site to start installation wizard
Fill out all required details
Click Install

Expected behavior
xBackBone working after web installation.

FR: Auto categories

Hi

It would be great if ther eis a way to categorize the uploads automatically by predefined filters and by custom user created filters. For instance there could images, videos, gifs, files along with months, weeks etc.

Class 'finfo' not found

On PHP version 7.3.

After screenshotting and going to the link, it then provides a "500" error.

#0 /home/srspxoem/public_html/i2/vendor/league/flysystem/src/Filesystem.php(285): League\Flysystem\Adapter\Local->getMimetype('qAYO6/tOviloHoT...')

#1 /home/srspxoem/public_html/i2/app/Controllers/UploadController.php(113): League\Flysystem\Filesystem->getMimetype('qAYO6/tOviloHoT...')

#2 [internal function]: App\Controllers\UploadController->show(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)

#3 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(40): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)

#4 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/Route.php(281): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)

#5 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))

#6 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/Route.php(268): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))

#7 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/App.php(503): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))

#8 /home/srspxoem/public_html/i2/bootstrap/app.php(219): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))

#9 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))

#10 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/DeferredCallable.php(57): call_user_func_array(Object(Closure), Array)

#11 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))

#12 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))

#13 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))

#14 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/App.php(392): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))

#15 /home/srspxoem/public_html/i2/vendor/slim/slim/Slim/App.php(297): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))

#16 /home/srspxoem/public_html/i2/index.php(9): Slim\App->run()

#17 {main}

Above that, the specified error is:

Class 'finfo' not found (Line 319 in file /home/srspxoem/public_html/i2/vendor/league/flysystem/src/Adapter/Local.php)

Another thing I have noticed is it provides the same error on the index page.
Am I missing something?

Cannot install

System Info

  • PHP Version: PHP 7.3.5-1+0-20190503093827.38+stretch-1.gbp60a41b
  • XBackBone Version: 2.5.1
  • Webserver: Apache/2.4.25 (Debian)

Describe the bug
I cannot install it. I try to go to the site but it throws an error.

To Reproduce
Try to install XBackbone using the following setup.

Expected behavior
I expect to get the install screen.

Screenshots
https://sharex.freesh.xyz/2019/05/chrome_03_19-53-22.png

Edit due to the version number not playing nicely with the formatting.

Internal Server Error on user modification

System Info

  • PHP Version: 7.3.5
  • XBackBone Version: 2.6
  • Webserver: NGINX

Describe the bug
When editing or creating a user account i get an Internal Server Error. The logs say the database is read-only which shouldn't be as i set the owner to www-data.

To Reproduce
As stated in the recent issue #62

Expected behavior
The user data to be updated/saved

Screenshots
chrome_7jIAYFhDg9

Logs

[2019-08-30 22:25:38] app.INFO: User admin logged in. [] []
[2019-08-30 22:26:10] app.CRITICAL: Fatal exception during app execution {"exception":"[object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 8 attempt to write a readonly database at /var/www/felix.beer/html/share/app/Database/DB.php:54)
[stacktrace]
#0 /var/www/felix.beer/html/share/app/Database/DB.php(54): PDOStatement->execute()
#1 /var/www/felix.beer/html/share/app/Controllers/UserController.php(173): App\\Database\\DB->query(Object(PDOStatement), Array)
#2 [internal function]: App\\Controllers\\UserController->update(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)
#3 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)
#4 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/Route.php(356): Slim\\Handlers\\Strategies\\RequestResponse->__invoke(Array, Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)
#5 /var/www/felix.beer/html/share/app/Middleware/AdminMiddleware.php(25): Slim\\Route->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#6 [internal function]: App\\Middleware\\AdminMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))
#7 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Array, Array)
#8 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))
#9 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))
#10 /var/www/felix.beer/html/share/app/Middleware/CheckForMaintenanceMiddleware.php(24): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#11 [internal function]: App\\Middleware\\CheckForMaintenanceMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#12 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Array, Array)
#13 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#14 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#15 /var/www/felix.beer/html/share/app/Middleware/AuthMiddleware.php(31): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#16 [internal function]: App\\Middleware\\AuthMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#17 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Array, Array)
#18 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#19 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))
#20 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#21 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/Route.php(334): Slim\\Route->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#22 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/App.php(515): Slim\\Route->run(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#23 /var/www/felix.beer/html/share/bootstrap/app.php(216): Slim\\App->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#24 [internal function]: Closure->{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))
#25 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#26 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))
#27 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\App))
#28 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\\App->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#29 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/App.php(405): Slim\\App->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#30 /var/www/felix.beer/html/share/vendor/slim/slim/Slim/App.php(313): Slim\\App->process(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))
#31 /var/www/felix.beer/html/share/index.php(9): Slim\\App->run()
#32 {main}
"} []```

php bin/migrate --install error

When I run php bin/migrate --install I get this output:

Stack trace:
#0 /redacted/filehost/app/Database/DB.php(32): PDO->__construct('sqlite:resource...', NULL, NULL)
#1 /redacted/filehost/app/Database/DB.php(82): App\Database\DB->__construct('sqlite:resource...', NULL, NULL)
#2 /redacted/filehost/bin/migrate(21): App\Database\DB::driver()
#3 {main}
  thrown in/redacted/filehost/app/Database/DB.php on line 32

Any possible way to use this on Android?

Hi

I realize there is no Android app but I am wondering if there is a way to send files drom Android using some ways? It seems like it all takes to send some command to some the server. I ran out of ideas. Maybe someone has a decent idea to get this working so one can send screenshots via share to the possible solution which would upload the screen to the server.

Web upload

Hi,

It would be nice if one could also upload files via the web page, this is useful for when there is no client possible like Android, at least I do not know if there is any Android client for this.

thanks

Users page spacing

System Info

  • PHP Version: 7.2
  • XBackBone Version: 2.4.1
  • Webserver: apache2

Describe the bug
The users page has a scrollbar under it.

To Reproduce
Go to the users page.
See the scrollbar.

Expected behavior
It shouldn't have a scrollbar under the users, it should be spaced properly.

Screenshots

Thumbnails are not clickable in Table mode

System Info

  • PHP Version: 7.1
  • XBackBone Version: 2.6.4
  • Webserver: Apache

It seems like the thumbnails in the table mode are not clickable at all, in fact there is no way to open a media item to see it in real size.

It would be nice if one can actually click to see in the table mode.

Maintenance mode

I'd like a way to temporarily disable either the web interface, API, or both, bringing up a small page saying something like "We are undergoing maintenance."

Would be helpful if I'm working on backend stuff.

FR: Alternative url for the raw files

Hi

Is it possible to create alternative url for the raw downloads? Because the current method fails in some applications whe previewing the images.

This url fails in some apps

https://DOMAIN/sharex/e2e3e/MOkisOYa740.png/raw

It would nice if we could set an alternative method like below so that all apps can grab the files properly if they rely on file name formatting

https://DOMAIN/sharex/e2e3e/MOkisOYa740_RAW.png

thanks

Size limit? (bug)

I've noticed that somewhat large files error out with a 400 bad request error.

Message:
The remote server returned an error: (400) Bad Request.

Request URL:
https://XXXXXXXXX/upload

Response:
{"message":"Token not specified."}

Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, ResponseType responseType, HttpMethod method, String contentType, String metadata)

The only problem is that the token is specified.

installing to nginx web server

hello
How can I shorten the url ?
It shows mydomain123344.12344555.png

How can set it to make it
Mydomain123.123png ?

thank you

Show raw by default

i'd like to have an option to show the raw picture by default, for example if i'm embedding it within content

Import old media?

Is your feature request related to a problem? Please describe.
I used to use a different manager for this and now I have over 4000+ files all raw in a folder.

Describe the solution you'd like
I'd like some sort of "Import" button where you can import any old media to your current manager.

3.0 RC2 upgrade resetted the token

System Info

  • PHP Version: 7.1.20-1
  • XBackBone Version: 3.0 RC2
  • Webserver: Apache/2.4.41 (Debian)
  • Database backend: Sqlte

I was finally able to upgrade to 3 after the new fix. But I see that the new update deleted the existing token, generally this is not a n issue but it makes scripted situations complicated because I had to replace that token in 3 different linux ends and couple Windows pcs.

While this is not that big of a deal but this can fail uploads without noticing.

It tried to paste the existing one back in the user profile ui but that does not seem to work.

thanks

Upgrade fails

Describe the bug
Just tried to upgrade to release-v3.0.RC1 it via the web ui and this is what I get 500 Internal Server Error

I then tried the manual update without much luck.

Apache Version 	Apache/2.4.41 (Debian)
Apache API Version 	20120211 

Please see the logs
https://paste.debian.net/hidden/9aa8291e/

Error

System Info

  • PHP Version: 7.3
  • XBackBone Version: Newest
  • Webserver: Apache 2.4.37

I am getting a Slim Application Error. I checked the error log and i am erroring out at like 318

ERROR OUTPUT:
[09-Feb-2019 22:17:26 America/New_York] Slim Application Error:
Type: Error
Message: Class 'finfo' not found
File: /home/killxfil/hangyourself.live/vendor/league/flysystem/src/Adapter/Local.php
Line: 318
Trace: #0 /home/killxfil/hangyourself.live/vendor/league/flysystem/src/Filesystem.php(284): League\Flysystem\Adapter\Local->getMimetype('297a4/5c5f97c34...')
#1 /home/killxfil/hangyourself.live/app/Controllers/UploadController.php(319): League\Flysystem\Filesystem->getMimetype('297a4/5c5f97c34...')
#2 /home/killxfil/hangyourself.live/app/Controllers/UploadController.php(100): App\Controllers\UploadController->streamMedia(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(League\Flysystem\Filesystem), Object(stdClass))
#3 [internal function]: App\Controllers\UploadController->show(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#4 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#5 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Array, Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#6 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#7 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#8 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/App.php(516): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /home/killxfil/hangyourself.live/bootstrap/app.php(127): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#11 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(Closure), Array)
#12 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#13 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call_user_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))
#14 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#15 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/App.php(407): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 /home/killxfil/hangyourself.live/vendor/slim/slim/Slim/App.php(315): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 /home/killxfil/hangyourself.live/index.php(8): Slim\App->run()
#18 {main}
View in rendered output by enabling the "displayErrorDetails" setting.

only maintenance mode

System Info

  • PHP Version: 7.3.11
  • XBackBone Version: 3.0
  • Webserver: Apache, Debian 9, Plesk 18.0.21
  • Database backend: SQLite

Hi,

I have updated my "XBackBone" instance to 3.0. Unfortunately, I can no longer log in to my upload user because the page is in maintenance mode, only I have disabled the maintenance mode via Config.

Best Regards
Johannes | MrUnknownDE

Add HTML to page <head> sections

Is your feature request related to a problem? Please describe.
It would be nice to be able to insert code into the section of each page, eg for analytics or cookie popups.

Describe the solution you'd like
Perhaps something like that used in Bookstack (BookStackApp/BookStack) where you can add custom HTML into. See this example:

Example

Additional context
Bookstack implements this as shown:

Example

LDAP support for AuthN/AuthZ

I host services for a number of friends and would like them to be able to use their LDAP accounts to log in to avoid credential proliferation.

Install as suburl?

Hi

I am trying to install this as https://DOMAIN/sharex so that is also what I define in the install.

After the install it directs to

https://DOMAIN/?afterInstall=true

And https://DOMAIN/sharex leads to

https://DOMAIN/sharex/sharex/home with

404 Not Found
Cannot find the requested resource.

Basically I need to install tis under a sub not on the actual root.

I am using the release zip file.

thanks

Config import does not work

System Info

  • PHP Version:
    Configuration File (php.ini) Path /etc/php/7.1/apache2

  • XBackBone Version:
    2.6

  • Webserver:
    Apache/2.4.41 (Debian)

Describe the bug
I installed Xbackboen using Docker, then I reverse proxied it. The backend seems to work, I am able to login, create users, download Sharex config. The issue happens inside sharex, I import the config from Xbackbone then test the uploaders, and all seem to throw these errors

At this point I d onot know if this is an issue for this Xbackbone or ShareX. Let me know if this is a ShareX issue I will file it there too.


Error message:
The remote server returned an error: (500) Internal Server Error.

Request URL:
https://DOMAIN/myshare/upload

Status code:
500 InternalServerError

Headers:
Pragma: no-cache
Connection: close
Content-Length: 2684
Cache-Control: no-store, no-cache, must-revalidate
Content-Type: text/html; charset=UTF-8
Date: Fri, 13 Sep 2019 21:09:41 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Set-Cookie: xbackbone_session=h8hsnfb358g9g52a2m5gko7pdf; path=/; HttpOnly
Server: nginx/1.14.2

Response text:
<!doctype html>
<html lang="">
<head>
    <title>Internal Server Error | XBackBone</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, myshareink-to-fit=no">
    <meta name="description" content="XBackBone is a simple and lightweight PHP backend for ShareX">
    <link rel="shortcut icon" href="https://DOMAIN/myshare/favicon.ico" type="image/x-icon">
    <link rel="icon" href="https://DOMAIN/myshare/favicon.ico" type="image/x-icon">
    <link rel="preload" href="https://DOMAIN/myshare/static/bootstrap/css/bootstrap.min.css" as="style">
    <link rel="preload" href="https://DOMAIN/myshare/static/app/app.css" as="style">
    <link rel="preload" href="https://DOMAIN/myshare/static/jquery/jquery.min.js" as="script">
    <link rel="preload" href="https://DOMAIN/myshare/static/bootstrap/js/bootstrap.bundle.min.js" as="script">
    <link rel="preload" href="https://DOMAIN/myshare/static/fontawesome/js/all.min.js" as="script">
    <link rel="preload" href="https://DOMAIN/myshare/static/app/app.js" as="script">
    <link href="https://DOMAIN/myshare/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://DOMAIN/myshare/static/highlightjs/styles/monokai.css" rel="stylesheet">
    <link href="https://DOMAIN/myshare/static/videojs/video-js.min.css" rel="stylesheet">
    <link href="https://DOMAIN/myshare/static/app/app.css" rel="stylesheet">
    <script src="https://DOMAIN/myshare/static/jquery/jquery.min.js"></script>
    <script src="https://DOMAIN/myshare/static/bootstrap/js/bootstrap.bundle.min.js"></script>
    <script src="https://DOMAIN/myshare/static/fontawesome/js/all.min.js"></script>
    <script src="https://DOMAIN/myshare/static/highlightjs/highlight.pack.min.js"></script>
    <script src="https://DOMAIN/myshare/static/clipboardjs/clipboard.min.js"></script>
    <script src="https://DOMAIN/myshare/static/videojs/video.min.js"></script>
    <script src="https://DOMAIN/myshare/static/app/app.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
    <script>window.AppConfig = {'base_url': 'https://DOMAIN/myshare', 'lang': {'publish': 'Publish', 'hide': 'Hide'}}</script>
    </head>
<body>
    <div class="container-fluid mt-5">
        <div class="text-center">
            <div class="row">
                <div class="col-md-12">
                    <h1 class="display-1">500 Internal Server Error</h1>
                    <p class="lead">Unexpected error while handling the request.</p>
                </div>
            </div>
        </div>
            </div>
</body>
</html>


Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at ShareX.UploadersLib.Uploader.SendRequestFile(String url, Stream data, String fileName, String fileFormName, Dictionary`2 args, NameValueCollection headers, CookieCollection cookies, HttpMethod method, String contentType, String relatedData)



Question

How would i change the max upload size & post max size

Warning: require([redacted]/vendor/autoload.php): failed to open stream

Hiya,

I'm using cPanel on a shared host. I'm trying to run the install script, but whenever I visit a page in this directory I'm getting errors complaining vendor/autoload.php. I know this has something to do with Composer, I wondered if you'd be able to shed more light on it?

I do not have SSH access to my webserver.

Installer error

System Info

  • PHP Version: PHP 7.3.5
  • XBackBone Version: XBackBone 2.5.3
  • Webserver: Apache/2.4.25
  • Cloudflare: I am using Cloudflare but i think this isn't the problem.

Describe the bug
After i click on configure and Install it comes this. "The config folder is not writable (/home/users/webspace/www/cdn.example.com/install/../config.php)" I had SQLite and gived the File Permissions with "chmod -R 777 *"

To Reproduce
Steps to reproduce the behavior:

  1. Go to example.com/install
  2. Click on Install
  3. See error

Expected behavior
I think it's and error in the installer.

Screenshots
If applicable, add screenshots to help explain your problem.

The requested URL /xbackbone/home was not found on this server.

System Info

  • PHP Version: 7.2.15-0ubuntu0.18.10.1
  • XBackBone Version: 2.5
  • Webserver: Apache/2.4.34 (Ubuntu)

Describe the bug
"The requested URL /xbackbone/home was not found on this server." After finishing web installation.

Config file:

<?php
return array (
  'base_url' => 'https://xxxxx',
  'storage_dir' => 'storage',
  'db' => 
  array (
    'connection' => 'mysql',
    'dsn' => 'host=localhost;port=3306;dbname=xbackbone',
    'username' => 'xbackbone',
    'password' => 'xxxxx',
  ),
);

Search with OCR / image recognition

It would be awesome to integrate a search function with something like Tesseract OCR or Google's OCR and Vision APIs.

This would let users search their screenshots, etc. based on the text on the screen at the time of the screenshot, or content of the image upload (e.g., "zebra", "dog", etc.).

NGINX Installation

System Info

  • PHP Version: PHP 7.3.5
  • XBackBone Version: XBackBone v2.6
  • Webserver: NGINX

After installing manually with sqlite i can't access the xbackbone/home url (Error 404).

When automatically installing there is a slim error:

Slim Application Error
The application could not run because of the following error after clicking install:

Details
Type: RuntimeException
Message: Named route does not exist for name: https://share.domain.com/install/
File: /var/www/domain.com/html/share/vendor/slim/slim/Slim/Router.php
Line: 296
Trace
#0 /var/www/domain.com/html/share/vendor/slim/slim/Slim/Router.php(381): Slim\Router->getNamedRoute('https://share.f...')
#1 /var/www/domain.com/html/share/vendor/slim/slim/Slim/Router.php(446): Slim\Router->relativePathFor('https://share.f...', Array, Array)
#2 /var/www/domain.com/html/share/app/helpers.php(131): Slim\Router->pathFor('https://share.f...', Array)
#3 /var/www/domain.com/html/share/app/helpers.php(98): route('https://share.f...', Array)
#4 /var/www/domain.com/html/share/install/index.php(253): redirect(Object(Slim\Http\Response), 'https://share.f...')
#5 [internal function]: Closure->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#6 /var/www/domain.com/html/share/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#7 /var/www/domain.com/html/share/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#8 /var/www/domain.com/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#9 /var/www/domain.com/html/share/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#10 /var/www/domain.com/html/share/vendor/slim/slim/Slim/App.php(515): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 /var/www/domain.com/html/share/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#12 /var/www/domain.com/html/share/vendor/slim/slim/Slim/App.php(405): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#13 /var/www/domain.com/html/share/vendor/slim/slim/Slim/App.php(313): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#14 /var/www/domain.com/html/share/install/index.php(309): Slim\App->run()
#15 {main}

Thanks for your help🙂

Issue with Theme Loading

System Info

  • PHP Version: PHP Version 7.3.3
  • XBackBone Version: XBackBone v2.5
  • Webserver: Apache2

Describe the bug
A clear and concise description of what the bug is:

I have an Issue with my xBackbone Version, the theme can't be change. When i will change the Theme it come this Error: "
500 Internal Server Error

Unexpected error while handling the request.
".

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://example.com/system'
  2. Click on 'Theme -> Choose one theme -> Apply'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

I have no idea. But when you need some logs, for example Error.log of the vHost i can give it to you.

Screenshots
If applicable, add screenshots to help explain your problem.

500 Internal Server Error: https://cdn.noajoder.ch/4b967/5cab9c2290cbd.png

Customization of app name

Describe the solution you'd like
Ability to change the app name in config.php without having to change the app name in bootstrap folder
Additional context
This does not get rid of the link on the bottom, this solely is to change the login page/title/header from XBackBone to custom

Remember me functionality

Is your feature request related to a problem? Please describe.
Having to login at least once a day if you haven't accessed XBackBone for about 30 minutes (default PHP session exp is 24 minutes).
The remember me functionality would make the hazzle of accessing XBackBone lower by still being logged in even when you haven't accessed XBackBone for some time.

Describe the solution you'd like
A remember me checkbox on the login page. if the checkbox is checked a cookie is created with a token that is also stored in the database. A possible expiration time of the cookie could be one year.

Additional context
The user may only be granted access through the remember me cookie if the token can be found in the database. The userID or username (or something unique to the user) could be stored as well in the remember cookie to minimize the risk of being authenitcated to the wrong account.

Couple of questions

What does orphaned files mean?
Is there a way to let site guests upload a photo without any logins?
How can i let users who are not admins to change the gallery view? (I tried removing the if *admin but it didnt work quite well)

Sorry im really shit at coding just trying to figure out some things :)

HTTP 500 error after clearing orphans

System Info

  • PHP Version: 7.2
  • XBackBone Version: 2.6.4
  • Webserver: Apache2
  • Storage: Google Cloud bucket

Describe the bug
After deleting a user and clearing orphaned files, every page in the UI (bar the login and view screenshot page) returns a HTTP 500 error (it's worth noting that you can still upload and view files).

To Reproduce
Steps to reproduce the behavior:

  1. Make a user.
  2. Upload images to user.
  3. Delete user.
  4. Delete orphaned images.
  5. See error on reload of page

Expected behavior
Y'know.... to work? 😅

Screenshots
https://www.tdpain.net/sharex/suxE1/DoNOYEFite503.png (see, still works!)

Error Message PHP 7.3

System Info

  • PHP Version: PHP Version 7.3.3
  • XBackBone Version: XBackBone v2.5.1
  • Webserver: Apache/2.4.25 (Debian)

Describe the bug
xBackbone don't have any restriction but it spams the error.log

Error.log Message: https://hastebin.com/ojujufosuq.cs

To Reproduce
Steps to reproduce the behavior:

  1. The Error is spamming in the error.log of the Apache2 Log. The Error Message comes when i logging in xBackbone.

Expected behavior

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.