47 if( ! defined(
'URL_WORD_SEPARATOR' ) ) {
48 define(
'URL_WORD_SEPARATOR' ,
'-' );
55 foreach( array_keys( $site[
'domains'] ) as
$status ) {
57 # TODO nelle composizioni qui di seguito considerare $language 62 ( ! empty(
$cf[
'site'][
'hosts'][ $status ] ) )
63 ?
$cf[
'site'][
'hosts'][ $status ] . ( ( ! empty(
$cf[
'site'][
'domains'][ $status ] ) ) ?
'.' : NULL )
67 ( ( isset(
$cf[
'site'][
'folders'][
$cf[
'site'][
'status'] ] ) ) ?
$cf[
'site'][
'folders'][
$cf[
'site'][
'status'] ] : NULL );
71 #L } // fine ciclo sulle lingue 73 # TODO nelle composizioni qui di seguito considerare $language 76 $cf[
'site'][
'home'] = &
$cf[
'site'][
'homes'][
$cf[
'site'][
'status'] ];
79 $cf[
'site'][
'url'] = &$cf[
'site'][
'urls'][ $cf[
'site'][
'status'] ];
82 $cf[
'site'][
'domain'] = &$cf[
'site'][
'domains'][ $cf[
'site'][
'status'] ];
83 #L $cf['site']['domain'] = &$cf['site']['domains'][ $_REQUEST['__lg__'] ][ $cf['site']['status'] ]; // eccetera (sopra e sotto) 86 $cf[
'site'][
'host'] = &$cf[
'site'][
'hosts'][ $cf[
'site'][
'status'] ];
89 $cf[
'site'][
'fqdn'] = $cf[
'site'][
'host'] . ( ( ! empty( $cf[
'site'][
'domain'] ) ) ?
'.' . $cf[
'site'][
'domain'] : NULL );
92 $cf[
'site'][
'root'] =
'/' . ( ( isset( $cf[
'site'][
'folders'][ $cf[
'site'][
'status'] ] ) ) ? $cf[
'site'][
'folders'][ $cf[
'site'][
'status'] ] : NULL );
95 $ct[
'site'] = &$cf[
'site'];
99 if( isset( $cx[
'site'] ) ) {
100 $cf[
'site'] = array_replace_recursive( $cf[
'site'], $cx[
'site'] );
104 if( isset( $_SERVER[
'REDIRECT_URL'] ) ) {
105 $_SERVER[
'REDIRECT_URL'] = substr( $_SERVER[
'REDIRECT_URL'], strlen( $cf[
'site'][
'root'] ) );
if(! defined( 'URL_WORD_SEPARATOR')) foreach(array_keys( $site['domains']) as $status) $cf['site']['home']