Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Этому  есть замена ?


Recommended Posts

вот с этой фигней https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=30437&filter_search=API error

не могу заказы редактировать



но надо ip добавлять в надежные

Edited by KomissarJuve
Link to comment
Share on other sites

46 минут назад, KomissarJuve сказал:

а как тогда сделать чтоб постоянно IP не вводить в надежные ?


1) откройте файл /admin/controller/common/login.php
2) найдите там:

if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {

3) после него вставьте код:

$api_info = $this->model_user_api->getApi($this->config->get('config_api_id'));           
$this->model_user_api->addApiIp($api_info['api_id'], $this->request->server['REMOTE_ADDR']);

После любых оперций с файлами желательно обновить модификации в админке, чтобы сбросить кеш файлов.

  • +1 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.