diff --git a/.gitignore b/.gitignore index 20d8463..3710f9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ bitrix/* !bitrix/php_interface/init.php upload/ +google* +robots.txt +sitemap* +.xml \ No newline at end of file diff --git a/.htaccess.restore b/.htaccess.restore deleted file mode 100644 index 11fa291..0000000 --- a/.htaccess.restore +++ /dev/null @@ -1,34 +0,0 @@ -Options -Indexes -ErrorDocument 404 /404.php - - - php_flag session.use_trans_sid off - - - - php_flag session.use_trans_sid off - - - - Options +FollowSymLinks - RewriteEngine On - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-l - RewriteCond %{REQUEST_FILENAME} !-d - RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$ - RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L] - RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}] - - - - DirectoryIndex index.php index.html - - - - ExpiresActive on - ExpiresByType image/jpeg "access plus 3 day" - ExpiresByType image/gif "access plus 3 day" - ExpiresByType image/png "access plus 3 day" - ExpiresByType text/css "access plus 3 day" - ExpiresByType application/javascript "access plus 3 day" - diff --git a/api/index.php b/api/index.php index 5691eb7..5201733 100644 --- a/api/index.php +++ b/api/index.php @@ -591,7 +591,6 @@ switch($PARAM_1) } $post_event_name = "FORM_FILLING_".$_REQUEST['form']; - file_put_contents($_SERVER['DOCUMENT_ROOT']."/files.txt", var_export($attached_files, true)); CEvent::Send($post_event_name, "s1", $fields, "N", "", $attached_files); } @@ -606,43 +605,46 @@ switch($PARAM_1) } //HERE - $url = API_HOST."/site/RequestFromSite"; + if($form_code === "FORM_LEASING_REQUESTS") + { + $url = API_HOST."/site/RequestFromSite"; - $payload = json_encode([ - "region" => "Московская область", - "name" => $REQ['FORM_FIELD_FIO'], - "phone" => $REQ['FORM_FIELD_PHONE'], - "email" => $REQ['FORM_FIELD_EMAIL'], - "org_title" => $REQ['FORM_FIELD_COMPANY'], - "brand" => $REQ['FORM_FIELD_BRAND'], - "model" => $REQ['FORM_FIELD_MODEL'], - "modification" => $REQ['FORM_FIELD_MODIFICATION'], - "price" => (int) $REQ['FORM_FIELD_PRICE'], - "prepaid" => (int) $REQ['FORM_FIELD_PREPAID'], - "term" => (int) $REQ['FORM_FIELD_TERM'], - "redemption" => (int) $REQ['FORM_FIELD_REDEMPTION'], - "utm_source" => null, - "utm_medium" => null, - "utm_campaign" => null, - "utm_term" => null, - "utm_content" => null, - "page_url" => $REQ['FORM_FIELD_PAGE_URL'], - "page_name" => $REQ['FORM_FIELD_PAGE_NAME'], - ]); + $payload = json_encode([ + "region" => "Московская область", + "name" => $REQ['FORM_FIELD_FIO'], + "phone" => $REQ['FORM_FIELD_PHONE'], + "email" => $REQ['FORM_FIELD_EMAIL'], + "org_title" => $REQ['FORM_FIELD_COMPANY'], + "brand" => $REQ['FORM_FIELD_BRAND'], + "model" => $REQ['FORM_FIELD_MODEL'], + "modification" => $REQ['FORM_FIELD_MODIFICATION'], + "price" => (int) $REQ['FORM_FIELD_PRICE'], + "prepaid" => (int) $REQ['FORM_FIELD_PREPAID'], + "term" => (int) $REQ['FORM_FIELD_TERM'], + "redemption" => (int) $REQ['FORM_FIELD_REDEMPTION'], + "utm_source" => null, + "utm_medium" => null, + "utm_campaign" => null, + "utm_term" => null, + "utm_content" => null, + "page_url" => $REQ['FORM_FIELD_PAGE_URL'], + "page_name" => $REQ['FORM_FIELD_PAGE_NAME'], + ]); - $c = curl_init(); - curl_setopt($c, CURLOPT_URL, API_HOST."/site/RequestFromSite"); - curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30); - curl_setopt($c, CURLOPT_TIMEOUT, 30); - curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0); - curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); - curl_setopt($c, CURLOPT_POST, 1); - curl_setopt($c, CURLOPT_POSTFIELDS, $payload); - curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); + $c = curl_init(); + curl_setopt($c, CURLOPT_URL, API_HOST."/site/RequestFromSite"); + curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 30); + curl_setopt($c, CURLOPT_TIMEOUT, 30); + curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0); + curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); + curl_setopt($c, CURLOPT_POST, 1); + curl_setopt($c, CURLOPT_POSTFIELDS, $payload); + curl_setopt($c, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); - $response = curl_exec($c); - curl_close($c); + $response = curl_exec($c); + curl_close($c); + } } else { diff --git a/files.txt b/files.txt deleted file mode 100644 index e41191c..0000000 --- a/files.txt +++ /dev/null @@ -1,3 +0,0 @@ -array ( - 0 => '784', -) \ No newline at end of file diff --git a/index.php b/index.php index 00c976f..455e1d3 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ SetTitle("Эволюция автолизинга"); +$APPLICATION->SetTitle("Эволюция автолизинга. Лизинг автомобилей"); ?> IncludeComponent( "evolution:slider.main", diff --git a/robots.txt b/robots.txt deleted file mode 100644 index d4722d1..0000000 --- a/robots.txt +++ /dev/null @@ -1,72 +0,0 @@ -User-Agent: * # правила для всех роботов -Disallow: /cgi-bin # папка на хостинге -Disallow: /bitrix/ # папка с системными файлами битрикса -Disallow: *bitrix_*= # GET-запросы битрикса -Disallow: /local/ # папка с системными файлами битрикса -Disallow: /*index.php$ # дубли страниц index.php -Disallow: /auth/ # авторизация -Disallow: *auth= # авторизация -Disallow: /personal/ # личный кабинет -Disallow: *register= # регистрация -Disallow: *forgot_password= # забыли пароль -Disallow: *change_password= # изменить пароль -Disallow: *login= # логин -Disallow: *logout= # выход -Disallow: */search/ # поиск -Disallow: *action= # действия -Disallow: *print= # печать -Disallow: *?new=Y # новая страница -Disallow: *?edit= # редактирование -Disallow: *?preview= # предпросмотр -Disallow: *backurl= # трекбеки -Disallow: *back_url= # трекбеки -Disallow: *back_url_admin= # трекбеки -Disallow: *captcha # каптча -Disallow: */feed # все фиды -Disallow: */rss # rss фид -Disallow: *?FILTER*= # здесь и ниже различные популярные параметры фильтров -Disallow: *?ei= -Disallow: *?p= -Disallow: *?q= -Disallow: *?tags= -Disallow: *B_ORDER= -Disallow: *BRAND= -Disallow: *CLEAR_CACHE= -Disallow: *ELEMENT_ID= -Disallow: *price_from= -Disallow: *price_to= -Disallow: *PROPERTY_TYPE= -Disallow: *PROPERTY_WIDTH= -Disallow: *PROPERTY_HEIGHT= -Disallow: *PROPERTY_DIA= -Disallow: *PROPERTY_OPENING_COUNT= -Disallow: *PROPERTY_SELL_TYPE= -Disallow: *PROPERTY_MAIN_TYPE= -Disallow: *PROPERTY_PRICE[*]= -Disallow: *S_LAST= -Disallow: *SECTION_ID= -Disallow: *SECTION[*]= -Disallow: *SHOWALL= -Disallow: *SHOW_ALL= -Disallow: *SHOWBY= -Disallow: *SORT= -Disallow: *SPHRASE_ID= -Disallow: *TYPE= -Disallow: *utm*= # ссылки с utm-метками -Disallow: *openstat= # ссылки с метками openstat -Disallow: *from= # ссылки с метками from -Disallow: /test/ -Disallow: /temp/ -Disallow: /evo/* -Allow: */upload/ # открываем папку с файлами uploads -Allow: /bitrix/*.js # здесь и далее открываем для индексации скрипты -Allow: /bitrix/*.css -Allow: /local/*.js -Allow: /local/*.css -Allow: /local/*.jpg -Allow: /local/*.jpeg -Allow: /local/*.png -Allow: /local/*.gif -# Укажите один или несколько файлов Sitemap -Sitemap: https://evoleasing.ru/sitemap.xml -Host: https://evoleasing.ru \ No newline at end of file