Host disabled PHPinfo - cant upload photos
Go to page Previous  1, 2  :| |:
-> Coppermine

#16: Re: Host disabled PHPinfo - cant upload photos Author: jzkyLocation: Norway - Harstad PostPosted: Tue Dec 11, 2007 8:46 pm
    ----
strange reply..

Check for your self.. klick

Code::
Array
(
)

Thats the response from that script..

#17: Re: Host disabled PHPinfo - cant upload photos Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Tue Dec 11, 2007 10:14 pm
    ----
yousite.com/admin.php?op=info&mods

empty page or ... ?

#18: Re: Host disabled PHPinfo - cant upload photos Author: jzkyLocation: Norway - Harstad PostPosted: Tue Dec 11, 2007 11:50 pm
    ----
yes. Get this note: Warning line 26: phpinfo() has been disabled for security reasons

#19: Re: Host disabled PHPinfo - cant upload photos Author: NanoCaiordoLocation: Melbourne, AU PostPosted: Wed Dec 12, 2007 9:11 am
    ----
1 - quick and hard-coded solution
2 - you have php > 5
3 - we know that gd is there

modules/coppermine/admin/index.inc at line 65 you will found gdVersion() function, replace the function with this:
PHP:
<?php
function gdVersion() {
# start hard-coded solution
return 2;
# end hard-coded solution
if (!extension_loaded('gd')) {
return;
}
ob_start();
phpinfo(8);
$info=ob_get_contents();
ob_end_clean();
$info=stristr($info, 'gd version');
preg_match('/\d/', $info, $gd);
return
$gd[0];
}
// end function gdVersion()

#20: Re: Host disabled PHPinfo - cant upload photos Author: jzkyLocation: Norway - Harstad PostPosted: Wed Dec 12, 2007 4:51 pm
    ----
Thank you verry much Very Happy

Now coppermine works perfect Very Happy (atleast I havent found any bugs yet.. )



-> Coppermine

All times are GMT

Go to page Previous  1, 2  :| |:
Page 2 of 2