Author Topic: Where is the main.inc.php file?  (Read 2070 times)

Offline adobe

  • Newbie
  • *
  • Posts: 5
Where is the main.inc.php file?
« on: July 24, 2022, 10:00:22 PM »
In which file do you need to write a line to activate the plugin?
I installed the plugin, but there is no file where you need to register it at all, I didn’t even find it on the server through find, what should I do?

Offline adobe

  • Newbie
  • *
  • Posts: 5
Re: Where is the main.inc.php file?
« Reply #1 on: July 24, 2022, 10:06:28 PM »
He himself asked - he himself found the answer in 10 minutes. To activate the plugin, you need to register not in main.inc.php but in config.inc.php somewhere on line 85 you will find this:
Code: [Select]
$config['plugins'] = array(
     'autologin',
     'archive',
     'zip download',
);
In this array, add a line with the name of the plugin.
You won't figure it out yourself - no one will help you.

In simple words, in new versions of main.inc.php this is config.inc.php