PEAK XOOPS - Re: Install ALTSYS on XOOPS 2.3.x in englishin japanese

Re: Install ALTSYS on XOOPS 2.3.x

List posts in the topic

none Re: Install ALTSYS on XOOPS 2.3.x

msg# 1.3.1.1.1
depth:
4
Previous post - Next post | Parent - Children.1 .2 | Posted on 2008/12/20 5:21 | Last modified
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi info.

I've found a curious behavior in your post.

Quote:

Changing the value in extra_sides doesn't make a difference, it seems. I guess I'll need to see what *should* be happening.
'extra_sides' should not be displayed for XOOPS >= 2.0.14
Perhaps, it might be a bug in the recognition of versions.

Check the codes in include/altsys_functions.php
define( 'ALTSYS_CORE_TYPE_X20' , 1 ) ; // 2.0.0-2.0.13 and 2.0.x-JP
define( 'ALTSYS_CORE_TYPE_X20S' , 2 ) ; // 2.0.14- and 2.3.0- from xoops.org
define( 'ALTSYS_CORE_TYPE_ORE' , 4 ) ; // ORETEKI by marijuana
define( 'ALTSYS_CORE_TYPE_X22' , 8 ) ; // 2.2 from xoops.org
define( 'ALTSYS_CORE_TYPE_ICMS' , 12 ) ; // ImpressCMS
define( 'ALTSYS_CORE_TYPE_XC21L' , 16 ) ; // XOOPS Cube 2.1 Legacy

function altsys_get_core_type()
{
	if( defined( 'XOOPS_ORETEKI' ) ) return ALTSYS_CORE_TYPE_ORE ;
	else if( defined( 'XOOPS_CUBE_LEGACY' ) ) return ALTSYS_CORE_TYPE_XC21L ;
	else if( defined( 'ICMS_VERSION_NAME' ) ) return ALTSYS_CORE_TYPE_ICMS ;
	else if( strstr( XOOPS_VERSION , 'JP' ) ) return ALTSYS_CORE_TYPE_X20 ;
	else {
		$versions = array_map( 'intval' , explode( '.' , preg_replace( '/[^0-9.]/' , '' , XOOPS_VERSION ) ) ) ;
		if( $versions[0] == 2 && $versions[1] == 2 ) {
			return ALTSYS_CORE_TYPE_X22 ;
		} else if( $versions[0] == 2 && $versions[1] == 0 && $versions[2] > 13 ) {
			return ALTSYS_CORE_TYPE_X20S ;
		} else if( $versions[0] == 2 && $versions[1] > 2 ) {
			return ALTSYS_CORE_TYPE_X20S ;
		} else {
			return ALTSYS_CORE_TYPE_X20 ;
		}
	}
}
Votes:11 Average:7.27

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!