sql error/wrong permission ?
Brought to you by:
corbyboy
hello,
I ended the installation with succes. I try now to
enter the administration part, but i've this message
when a load the admin.php:
Warning: set_time_limit() has been disabled for
security reasons in
/home/.sites/30/site309/web/webcards/admin.php on line 66
Warning: exec() has been disabled for security reasons
in
/home/.sites/30/site309/web/webcards/source/functions.php
on line 758
Administration Centre
could you please help me for that ?
(http://www.croixrougevaudoise.ch/webcards/admin.php)
greetings from Switzerland
Jay
Logged In: YES
user_id=678800
As the error suggests your web host has disabled the two
functions. Neither are essential. Can you still log into the
admin centre and use WebCards as normal.
Try these fixes and if they work I will add them to the next
release.
Open up admin.php and go to line 64:
if((bool) @ini_get('safe_mode') == 0)
{
@set_time_limit(0);
}
Change it to:
if((bool) @ini_get('safe_mode') == 0 &&
function_exists("set_time_limit") == 1)
{
@set_time_limit(0);
}
Next open up source/functions.php. Find line 752:
else
{
$load = exec('uptime');
$load = split('load averages?: ', $load);
$loadavg = explode(',', $load[1]);
}
Change that section to:
else
{
if(function_exists("exec") == 1)
{
$load = exec('uptime');
$load = split('load averages?: ', $load);
$loadavg = explode(',', $load[1]);
}
else
{
return 0;
}
}
Please let me know if that solves your problem.
Chris