Posted on: 10/12/08 11:54am
By: richard.bkk
With one of our websites which has MediaGallery 1.5.1 installed we get the following error when we try to add a picture to a media album.
Text Formatted Code
Fatal error: Call to undefined function: stripos() in /home/hosting/public_html/domain/mediagallery/getid3/getid3/getid3.php on line 17
Does anybody knows where this problem comes from, we had no problems with installation ....?
By the way we run Geeklog 1.5.1 ...
Re: Mediagallery 1.5.1
Posted on: 10/12/08 12:26pm
By: Dirk
stripos is only available as of PHP 5. My guess is you're on an older version.
bye, Dirk
Re: Mediagallery 1.5.1
Posted on: 10/13/08 01:37am
By: richard.bkk
True my hosting is not yet upgraded to PHP 5, is it possible to work around it?
Re: Mediagallery 1.5.1
Posted on: 10/13/08 05:50am
By: Anonymous (Guest)
Change to another host which in 2008 has PHP 5+.
Re: Mediagallery 1.5.1
Posted on: 10/13/08 06:01am
By: Dirk
Quote by: richard.bkkis it possible to work around it?
If it does what I think it does (trying to protect a file against direct execution), then you could either change the stripos to a plain strpos if you're on Unix/Linux with a filesystem that is case-sensitive. Otherwise, also use strpos but stick an strtolower in there, like we do in Geeklog 1.5.1 now. For example:
Text Formatted Code
if (strpos(strtolower($_SERVER['PHP_SELF']), 'lib-plugins.php') !== false) {
die('This file can not be used on its own!');
}
bye, Dirk
Re: Mediagallery 1.5.1
Posted on: 10/13/08 07:51am
By: ::Ben
Mediagallery 1.5.1 is a security fix for windows servers.
v1.5.1 - September 2008
[fix] Security vulnerability fix - RFI on Windows servers.
::Ben
Re: Mediagallery 1.5.1
Posted on: 10/13/08 09:39am
By: Anonymous (Guest)
Quote by: cordisteMediagallery 1.5.1 is a security fix for windows servers.
So what?
Re: Mediagallery 1.5.1
Posted on: 10/13/08 10:43am
By: ::Ben
So what?
If you are not on windows server try mediagallery 1.5.0 witch is php4 compatible.
::Ben
Re: Mediagallery 1.5.1
Posted on: 10/13/08 05:23pm
By: jmucchiello
Quote by: richard.bkkTrue my hosting is not yet upgraded to PHP 5, is it possible to work around it?
Place this in you lib-custom.php:
Text Formatted Code
if (!function_exists('stripos'))
{
require_once('PHP/Compat.php');
PHP_Compat::loadFunction('stripos');
}