•  Previous
  • 1
  • 40
  • 41
  • 42(current)
  • 43
  • 44
  • Next 
 
Thread Rating:
  • 8 Vote(s) - 4.63 Average
MovieLib - Your movie database on web
How do I add a checkout button?

The button would add the currently viewed / selected TV/Movie to a text/html list

this would let me know which movies/shows my friends/family are interested in watching.

that I could later review by logging into an admin page or something.
Reply
(2017-03-14, 23:30)hallohome Wrote: Hi, with the latest Version I get this error. I run it on a Qnap NAS. If I load "login.php" direct i can enter my password and everything works.

Notice: Undefined index: logged in /share/CACHEDEV1_DATA/Web/movielib/index.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /share/CACHEDEV1_DATA/Web/movielib/index.php:37) in /share/CACHEDEV1_DATA/Web/movielib/index.php on line 38
Can't redirect to login.php

If i delete:

ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

in the index.php it works, but the kodi plugin can not connect to the site anymore. I think it is because of your php7 changes. 2.8.2 worked fine. I never tried 2.9.
I only have php 5.6.29 on my Qnap.
How can I get this to work ?
Thanx
Reply
Code:
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

This code only enable reporting errors in php

Try change line 37:
Code:
if ($_SESSION['logged'] !== true) {

to:
Code:
if (!isset($_SESSION['logged']) or $_SESSION['logged'] !== true) {
Reply
(2017-03-18, 19:22)Regss Wrote:
Code:
if (!isset($_SESSION['logged']) or $_SESSION['logged'] !== true) {

That worked for me. Everything is fine.

thanks for your work.
Reply
after entering the password as xbmc and clicking ok on the installer page I get the following message:
Code:
No such file or directory

I am not sure what logs to check, or debug procedures to follow, anyone have any pointers for me?
Reply
Check that the script created the db.php file.
Check that tables have been created in the database.

Try edit install.php and in line 106 remove @ character. This show error if script can't create db.php:
Code:
$fp = @fopen('db.php', 'w');
Reply
Unfortunately I do not know linux file system but when you go through the installation process in last step script must create db.php file. Maybe some write permission must be set?
After remove @ character do you start install process again?
Do you have tables in mysql database? Try login to phpmyadmin and check this.
Reply
(2017-03-26, 17:17)xekon Wrote: Thank you for the reply Regss, I removed the @ character from line 106 so that it now reads:

Code:
$fp = fopen('db.php', 'w');

however after editing that file and rebooting the pc, it still does not show any error message.

however I opened a terminal and went to the folder that contains install.php, and I can see that no db.php file is created.

The folder '/var/www/html/movielib/' and all its contents are currently owned by root, I am wondering if the issue could be a permissions or ownership issue, but I am not sure what is required.

here is a screenshot of the directory, thank you again for your help Smile and awesome work.
Image

Could be a permission problem.
Try chown -R www-data:www-data /var/www/movielib
and restart your webserver.
Reply
well the admin panel appears to be fully working, I generated the auth token, and installed the movielib addon in kodi, i can see that movielib scanned my stuff while in kodi.

I tried viewing the library at the page: http://192.168.1.140/movielib/

but I get this error:

Fatal error: Uncaught Error: Call to undefined function mb_strtoupper() in /var/www/html/movielib/index.php:110 Stack trace: #0 {main} thrown in /var/www/html/movielib/index.php on line 110
Reply
Did you install php7.0-mbstring?
If not you should do it along with php7.0-gd and php7.0-curl.
Reply
Thank you darkside40, I am fully up and running now at both my house and my friends Smile
Reply
(2017-03-13, 22:30)darkside40 Wrote: Great another thing i noticed.
Would it be possible to embed the trailers using https instead of http?
This would eliminate mixed contents warning when using movielib via TLS.

I look at the code but i couldnt figure out what happens there, and a simple chang at line 679 didnt do the trick.

Btw. would anybody like a simple write down on how to get movielib running using nginx?

I got TLS working using this guide: https://www.digitalocean.com/community/t...untu-16-04 it involved using a self signed cert, however if you did anything differently or better darkside40 then I would still be very interested in seeing it.
Reply
cool, everything is working now, since I didnt have php7.0-gd installed at first I will probably need to clear the database and rescan, plus I disabled background fanart, so if I clear the DB then those files would not need to be scanned in.
Reply
Here you can see my nginx site config for Movielib, looking a bit ugly but works.
If you want to get rid of the self signed cert use Lets Encrypt.


Code:
server {
        listen 80;
        listen [::]:80;
        server_name example.example.tld;
        return 301 https://$server_name$request_uri;
}

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name example.example.tld;

        add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";

# SSL Settings
        ssl on;
        ssl_certificate /etc/letsencrypt/live/example.example.tld/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/example.example.tld/privkey.pem;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers 'AES256+EECDH:AES256+EDH';
        ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        ssl_session_timeout 1h;
        ssl_dhparam /etc/nginx/dhparam.pem;

        ssl_stapling on;
        ssl_stapling_verify on;

        resolver 8.8.4.4 8.8.8.8;
        
        location  / {
             index index.php;
             try_files $uri $uri/ =404;
        }


    root /var/www/movielib;

    access_log /var/log/nginx/movielib.log;
    error_log /var/log/nginx/movielib.log info;

location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                #fastcgi_pass 127.0.0.1:9000;

                fastcgi_pass   unix:/run/php/php7.0-fpm.sock;
                #fastcgi_index  index.php;
                fastcgi_param   SCRIPT_FILENAME    $document_root$fastcgi_script_name;
                fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;

                fastcgi_buffer_size 128k;
                fastcgi_buffers 256 16k;
                fastcgi_busy_buffers_size 256k;
                fastcgi_temp_file_write_size 256k;
        }

location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
         access_log        off;
         log_not_found     off;
         expires           10d;
     }

}
Reply
Thank you very much for sharing yours, I am going to compare.
Reply
  •  Previous
  • 1
  • 40
  • 41
  • 42(current)
  • 43
  • 44
  • Next 



MovieLib - Your movie database on web4.638