advertising :: InstallFiles: Bitrix method

      
<?php 
//  advertising :: InstallFiles()
//  /dist/bitrix/modules/advertising/install/index.php:60

    
function InstallFiles()
    {
        if(
$_ENV["COMPUTERNAME"]!='BX')
        {
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/admin"$_SERVER["DOCUMENT_ROOT"]."/bitrix/admin");
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/public"$_SERVER["DOCUMENT_ROOT"]."/bitrix");
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/public/images"$_SERVER["DOCUMENT_ROOT"]."/bitrix/images/advertising/"truetrue);
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/themes"$_SERVER["DOCUMENT_ROOT"]."/bitrix/themes"truetrue);
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/components"$_SERVER["DOCUMENT_ROOT"]."/bitrix/components/"TrueTrue);
            
CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/advertising/install/js"$_SERVER["DOCUMENT_ROOT"]."/bitrix/js/"TrueTrue);
        }
        return 
true;
    }