photogallery :: photogallery: Bitrix method

      
<?php 
//  photogallery :: photogallery()
//  /dist/bitrix/modules/photogallery/install/index.php:16

    
function photogallery()
    {
        
$arModuleVersion = array();

        
$path str_replace("\\""/"__FILE__);
        
$path substr($path0strlen($path) - strlen("/index.php"));
        include(
$path."/version.php");

        if (
is_array($arModuleVersion) && array_key_exists("VERSION"$arModuleVersion))
        {
            
$this->MODULE_VERSION $arModuleVersion["VERSION"];
            
$this->MODULE_VERSION_DATE $arModuleVersion["VERSION_DATE"];
        }
        else
        {
            
$this->MODULE_VERSION FORUM_VERSION;
            
$this->MODULE_VERSION_DATE FORUM_VERSION_DATE;
        }

        
$this->MODULE_NAME GetMessage("P_MODULE_NAME");
        
$this->MODULE_DESCRIPTION GetMessage("P_MODULE_DESCRIPTION");
    }