日期:2014-05-17 浏览次数:20549 次
function MU( $url, $type, $vars = array( ), $domain = false ) { $path = explode( "/", trim( $url, "/" ) ); $model = strtolower( $path[1] ); $action = isset( $path[2] ) ? strtolower( $path[2] ) : ""; $http = ud( $path ); case "article" : default : switch ( $type ) { if ( !isset( $vars['id'] ) ) { unset( $path[0] ); $url = implode( "/", $path )."/"; $newurl = $url; } else { if ( $UN_1 || strtolower( GROUP_NAME ) == strtolower( c( "DEFAULT_GROUP" ) ) ) { unset( $path[0] ); $url = implode( "/", $path )."/"; } $newurl = $url.$vars['id'].$vars['suffix']; } break; case "typelist" : if ( strtolower( GROUP_NAME ) == strtolower( c( "DEFAULT_GROUP" ) ) ) { unset( $path[0] ); $url = implode( "/", $path ); } $newurl = $url.$vars['suffix']; break; } return $http.$newurl; }