Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 04:30 pm EST
Geeklog Forums
Mediagallery 1.5.1
Status: offline
richard.bkk
Forum User
Junior
Registered: 09/27/08
Posts: 21
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.
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 ...
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 ...
5
9
Quote
Status: offline
richard.bkk
Forum User
Junior
Registered: 09/27/08
Posts: 21
True my hosting is not yet upgraded to PHP 5, is it possible to work around it?
10
7
Quote
Guest
Anonymous
Change to another host which in 2008 has PHP 5+.
6
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: richard.bkk
is 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
9
8
Quote
Status: offline
::Ben
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
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
I'm available to customise your themes or plugins for your Geeklog CMS
v1.5.1 - September 2008
[fix] Security vulnerability fix - RFI on Windows servers.
::Ben
I'm available to customise your themes or plugins for your Geeklog CMS
8
9
Quote
Guest
Anonymous
Quote by: cordiste
Mediagallery 1.5.1 is a security fix for windows servers.
So what?
9
7
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Quote by: richard.bkk
Place this in you lib-custom.php:True my hosting is not yet upgraded to PHP 5, is it possible to work around it?
Text Formatted Code
if (!function_exists('stripos'))
{
require_once('PHP/Compat.php');
PHP_Compat::loadFunction('stripos');
}
9
9
Quote
All times are EST. The time is now 04:30 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content