You appear to be a bot. Output may be restricted
Description
Determine the CMS typeSets the global $bw_cms_version for Drupal
Usage
$string = bw_get_cms_type();
Parameters
Returns
string global $bw_cms_type: "WordPress", "Drupal" or "unknown" NOT TRANSLATABLESource
File name: oik/includes/bobbcomp.phpLines:
1 to 15 of 15
function bw_get_cms_type() { global $bw_cms_type, $bw_cms_version; if ( function_exists( 'is_blog_installed' )) { $bw_cms_type = 'WordPress'; return( $bw_cms_type ); } elseif ( function_exists( 'drupal_bootstrap' )) { $bw_cms_type = 'Drupal'; if (defined( 'VERSION' ) ) { $bw_cms_version = VERSION; } } else { $bw_cms_type = "unknown"; } return( $bw_cms_type ); }View on GitHub View on Trac