Code

Programming Languages: PHP

License: GNU General Public License version 2.0 (GPLv2)

Repositories

browse code, statistics cvs -d:pserver:anonymous@videodb.cvs.sourceforge.net:/cvsroot/videodb login

cvs -z3 -d:pserver:anonymous@videodb.cvs.sourceforge.net:/cvsroot/videodb co -P modulename

Show:

What's happening?

  • Comment: Notice: Undefined variable: permissions in functions.php

    Just to offer up my two cents (it's been quite a few years since I last messed around with the VideoDB code). If you look at the surrounding code, the line in question doesn't even make sense. It's the first assignment of $permissions within the function, and it's trying to OR it with itself (meaning it will always be 0 || $_SESSION['vdb']['permissions']['all']. Changing it to a straight...

    2012-02-19 20:23:15 PST by jpasher

  • Comment: getting open_basedir warning

    Add the cache directory to the open_basedir. Or have the cache in your home. It has to read and write files there, if this is blocked by open_basedir it cannot work.

    2012-02-18 13:22:38 PST by robelix

  • Comment: Notice: Undefined variable: permissions in functions.php

    Well, it's just a notice. And I really wonder that this is the only one. The usal setting for error_reporting is: E_ALL & ~E_NOTICE or you will often get flooded with notices. Or turn off display_errors an turn on log_errors - then only the log gets flooded.

    2012-02-18 13:08:18 PST by robelix

  • Comment: IMDB doesn't fetch director and country

    All these fixes and a few additional ones are in CVS Thanks guys sorry, that it took so long robelix.

    2012-02-18 12:57:20 PST by robelix

  • Notice: Undefined variable: permissions in functions.php

    Hi I was making some changes to my local copy of your site (version 3.1.0) and I turned on error reporting, I got an unexpected messages from the functions.php file... Notice: Undefined variable: permissions in C:\xampp\htdocs\froggit.local\core\functions.php on line 737 I have checked the code and it appears to be the line... $permissions |=...

    2012-02-05 04:58:34 PST by johnguy

  • Comment: IMDB doesn't fetch director and country

    This appears to get the genres as well... // Genres (as Array) preg_match('/Genres:<\/h4>(.+?)<\/div>/si', $resp['data'], $ary); preg_match_all('/<A .+?HREF="\/Genres?\/.+?"\s*?>(.+?)<\/A>/si', $ary[1], $ary, PREG_PATTERN_ORDER); foreach($ary[1] as $genre) { $data['genres'][] = trim($genre); } Regards.

    2012-01-31 14:00:17 PST by johnguy

  • Comment: IMDB doesn't fetch director and country

    Taking the lead from Jaime I noticed the following will fix the language issue... // Languages preg_match_all('/<A .+?HREF="\/Language\/.+?"\s*?>(.+?)<\/A>/si', $resp['data'], $ary, PREG_PATTERN_ORDER); $data['language'] = trim(strtolower(join(', ', $ary[1]))); Regards.

    2012-01-31 12:57:37 PST by johnguy

  • Comment: IMDB doesn't fetch director and country

    It would be nice to have an official fix for this, this is really bothering to have to enter the data manually. I made the changes with jaime's fix, but then I get some strange ???? characters on the top of my screen. Anyway a fix would be very appreciated.

    2012-01-30 14:25:44 PST by jbjoret

  • Comment: IMDB doesn't fetch director and country

    The changes that worked for me in imdb.php were: // Director preg_match('/<h4 class="inline">\s*Directors?:\s*<\/h4>(.*?)<\/div>/si', $resp['data'], $ary); preg_match_all('/<A .+?href="\/Name[?\/].+?"\s*?>(.+?)<\/A>/si', $ary[1], $ary, PREG_PATTERN_ORDER); // Countries preg_match('/Country:<\/h4>(.+?)<\/div>/si'...

    2012-01-30 07:41:48 PST by jaimeleon

  • Comment: getting open_basedir warning

    Hello. I went ahead and commented out in phpthumb.class.php the sections of code that generated the warning messages. The warnings disappeared and the thumbnails are still being displayed without any apparent problem. Videodb is now running well in a free hosting account without any warnings. I would agree that this is not a very elegant solution. I am also pretty sure I broke the class...

    2012-01-30 07:33:39 PST by jaimeleon

Our Numbers