This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $letters = $modx->runSnippet('tvssCloud', array( | |
| 'parents' => $modx->resource->get('id'), | |
| 'tv'=> '69', | |
| 'tpl' => '@INLINE {$tag}', | |
| 'tplWrapper' => '@INLINE {$output}' | |
| )); | |
| $arr = explode('||', $letters); | |
| $uarr = array_unique($arr); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $eventName = $modx->event->name; | |
| switch($eventName) { | |
| case 'OnDocFormSave': | |
| $modpar = array( | |
| 'rid' => $id | |
| ); | |
| $mod = $modx->getCollection('msopModification', $modpar); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| switch($modx->event->name) { | |
| case 'msOnBeforeCreateOrder': | |
| $data = $order->get(); | |
| $properties['mspra'] = array( | |
| 'inn_custom' => $data['inn_custom'], | |
| 'kpp_custom' => $data['kpp_custom'], | |
| 'yraddress' => $data['yraddress_custom'], | |
| ); | |
| $msOrder->set('properties', $properties); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/php | |
| <?php | |
| $options = array( | |
| 'filename' => '/home/.../site.ru/import.csv', | |
| 'db_server' => 'localhost', // Сервер БД | |
| 'db_user' => 'acberebx_auto', // Имя пользователя | |
| 'db_password' => 'jt%n9%nG', // Пароль | |
| 'db_base' => 'acberebx_auto' // Имя базы данных | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| /** @var modX $modx */ | |
| // Массив ID настроек полей для которых нужно использовать данный плагин http://prntscr.com/kkwx4r | |
| $presets = array(2); | |
| $subDelimeter = $modx->getOption('msimportexport.import.sub_delimeter', null, '|'); | |
| if (!empty($presets) && !in_array($preset, $presets)) return; | |
| switch ($modx->event->name) { | |
| case 'msieOnBeforePrepareImportProduct': | |
| $keys = array_flip($fields); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $('.about_job .form-open').on('click', function() { | |
| $('.about_job .forma').show(); | |
| var el = $(this).attr('href'); | |
| el = el.replace(/[^\#]*/, ''); | |
| $('body,html').animate({ | |
| scrollTop: $(el).offset().top - 100}, 1000); | |
| return false; | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| require_once 'simple_html_dom.php'; | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); | |
| curl_setopt($curl, CURLOPT_HEADER, false); | |
| curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); | |
| curl_setopt($curl, CURLOPT_URL, "$url"); | |
| curl_setopt($curl, CURLOPT_REFERER, "$url"); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); | |
| curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201'); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(en|ru)/assets(.*)$ assets$2 [L,QSA] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div class="tabs"> | |
| <ul class="tabs__caption"> | |
| <li class="active"></li> | |
| <li></li> | |
| </ul> | |
| <div class="tabs__content active"> | |
| </div> | |
| <div class="tabs__content"> | |
| </div> | |
| </div> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| // get the MODx server offset time in seconds | |
| $server_offset_time = $modx->config['server_offset_time']; | |
| if (!$server_offset_time) { | |
| $server_offset_time = 0; | |
| } | |
| // get the current time and apply the offset | |
| $timestamp = time() + $server_offset_time; | |
| // Set the current year | |
| $today_year = date('Y',$timestamp); | 
NewerOlder