Answer the question
In order to leave comments, you need to log in
DDoS protection by cloudflare open cart appeared in modules?
I didn’t connect any protections, the hoster didn’t do anything either, but the following appeared in the admin panel in the modules.
I can’t understand what it is and where it comes from. The page reloads after 5 seconds.
Answer the question
In order to leave comments, you need to log in
Do not worry, these are problems on the server from which the ads are being pulled. You can treat it like this:
In the fileadmin/controller/extension/extension/promotion.php
class ControllerExtensionExtensionPromotion extends Controller {
public function index() {
return '';
// $curl = curl_init();
//
// curl_setopt($curl, CURLOPT_URL, OPENCART_SERVER . 'index.php?route=api/promotion&type=' . substr($this->request->get['route'], strrpos($this->request->get['route'], '/') + 1));
// curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
// curl_setopt($curl, CURLOPT_HEADER, false);
// curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
// curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 30);
// curl_setopt($curl, CURLOPT_TIMEOUT, 30);
//
// $response = curl_exec($curl);
//
// curl_close($curl);
//
// if ($response) {
// return $response;
// } else {
// return '';
// }
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question