@@ -13,11 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Exchange1c\Exchange; |
| 15 | 15 | |
| 16 | -class Info extends \Exchange1c\Mode |
|
| 17 | -{ |
|
| 16 | +class Info extends \Exchange1c\Mode { |
|
| 18 | 17 | |
| 19 | - public function process() |
|
| 20 | - { |
|
| 18 | + public function process() { |
|
| 21 | 19 | echo "version=2.03"; |
| 22 | 20 | $this->end(); |
| 23 | 21 | } |
@@ -13,19 +13,16 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Exchange1c\Exchange; |
| 15 | 15 | |
| 16 | -class Init extends \Exchange1c\Mode |
|
| 17 | -{ |
|
| 16 | +class Init extends \Exchange1c\Mode { |
|
| 18 | 17 | |
| 19 | - public function process() |
|
| 20 | - { |
|
| 21 | - if($this->log->type=='catalog'){ |
|
| 18 | + public function process() { |
|
| 19 | + if($this->log->type=='catalog') { |
|
| 22 | 20 | echo "zip=yes\n"; |
| 23 | 21 | echo 'file_limit=' . \Tools::toBytes(ini_get('upload_max_filesize')); |
| 24 | - } elseif($this->log->type=='sale'){ |
|
| 22 | + } elseif($this->log->type=='sale') { |
|
| 25 | 23 | echo "zip=no\n"; |
| 26 | 24 | } |
| 27 | - if(!empty($_GET["version"])) |
|
| 28 | - { |
|
| 25 | + if(!empty($_GET["version"])) { |
|
| 29 | 26 | echo $this->log->exchange->session."\n"; |
| 30 | 27 | echo "version=2.03"; |
| 31 | 28 | } |