diff --git a/cron/.htaccess b/cron/.htaccess new file mode 100644 index 0000000..f239fe8 --- /dev/null +++ b/cron/.htaccess @@ -0,0 +1,2 @@ +order deny,allow +deny from all \ No newline at end of file diff --git a/cron/.section.php b/cron/.section.php new file mode 100644 index 0000000..f2d1ff0 --- /dev/null +++ b/cron/.section.php @@ -0,0 +1,3 @@ + +$sSectionName="cron"; +?> \ No newline at end of file diff --git a/cron/yasprav.log b/cron/yasprav.log new file mode 100644 index 0000000..c36c7f9 --- /dev/null +++ b/cron/yasprav.log @@ -0,0 +1 @@ +
1 => MO1
2 => SP1
3 => BN1
4 => BG1
5 => VL1
6 => VR1
7 => EK1
8 => IR1
9 => KZ1
10 => KG1
11 => KL1
12 => KM1
13 => KR1
14 => KS2
15 => KS1
16 => LP1
17 => NC1
18 => NN1
19 => NV1
20 => NR1
21 => NS1
22 => OM1
23 => OR1
24 => PR1
25 => RD1
26 => RZ1
27 => SM1
28 => SR1
29 => SG1
30 => ST1
31 => TL1
32 => TM1
33 => UF1
34 => CB1
35 => CL1
36 => YR1Ok! Сохранено по ссылке! 15.04.2022 \ No newline at end of file diff --git a/cron/yasprav.php b/cron/yasprav.php new file mode 100644 index 0000000..84191f5 --- /dev/null +++ b/cron/yasprav.php @@ -0,0 +1,78 @@ + +$_SERVER['DOCUMENT_ROOT'] = '/home/bitrix/www/'; // на один уровень выше, чем /cron/ +define('NO_KEEP_STATISTIC', true); +define('NOT_CHECK_PERMISSIONS',true); +define('SITE_ID', 's1'); +$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; +require($DOCUMENT_ROOT.'/bitrix/modules/main/include/prolog_before.php'); +?> + +$xmlbody = '
+ $i++; + print_r($i." => ".$arFields["PROPERTY_YAID_VALUE"]); +?>+} +?>
+ //print_r($arFields); +?>+$xmlbody .= '
//print_r($xmlbody);?>+$file = $DOCUMENT_ROOT . "/upload/docs/yasprav.xml"; + +$handle = fopen($file, "w+");//Открываем для записи в конец. +if (!$handle) { + echo "Oшибка: файл не создался-".$text; +} else { + fputs ($handle, $xmlbody); + fclose($handle); + echo "Ok! Сохранено по ссылке! ".$today; +} +?> + diff --git a/local/components/evolution/form.vacancy/templates/.default/template.php b/local/components/evolution/form.vacancy/templates/.default/template.php index ac5a7fd..4098b22 100644 --- a/local/components/evolution/form.vacancy/templates/.default/template.php +++ b/local/components/evolution/form.vacancy/templates/.default/template.php @@ -52,7 +52,7 @@ $this->setFrameMode(true);
Напишите на hr@evoleasing.ru или заполните форму
+Напишите на hr@evoleasing.ru или заполните форму