Page 1 of 1

Warning: ini_set() has been disabled for security reasons in

Posted: Mon Apr 23, 2012 8:37 pm
by SS113
Version of script: 1.7

Write your message below:

Hello,

We recently did some security tweaks to our server and now it seems that it's conflicting with many PHP scripts on it including LinkMan.

It seems to be working fine but it always shows 2 Warnings on top of every page that say:
Warning: ini_set() has been disabled for security reasons in /home/domain/public_html/links/settings.php on line 116

Warning: ini_set() has been disabled for security reasons in /home/domain/public_html/links/settings.php on line 117
Is there a work around this other than changing the security back the way it was on the server? I read about putting a php.ini in the root of the site and then some other .htaccess tweaks but I'm not too sure if that's really the way.

Thanks

Re: Warning: ini_set() has been disabled for security reason

Posted: Tue Apr 24, 2012 2:14 pm
by Klemen
Try this:

1. open admin.php in Notepad
2. find these two lines:

Code: Select all

    ini_set(\'display_errors\', 0);
    ini_set(\'log_errors\', 1);
3. change them to exactly this:

Code: Select all

error_reporting(0);
4. find and delete this line:

Code: Select all

ini_set('user_agent', 'LinkMan '.$settings['verzija'].' by http://www.phpjunkyard.com');
5. save changes
6. open file "addlink.php" and delete line

Code: Select all

ini_set('user_agent', 'LinkMan '.$settings['verzija'].' by http://www.phpjunkyard.com');
Upload modified files to the server, login to admin panel, go to "Settings" and click "Save changes" button.