mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 17:13:49 +00:00
31 lines
397 B
PHP
31 lines
397 B
PHP
<?php
|
|
|
|
/**
|
|
* software class
|
|
*
|
|
* @method string version
|
|
*/
|
|
if (!class_exists('software')) {
|
|
class software {
|
|
|
|
/**
|
|
* version
|
|
*/
|
|
public static function version() {
|
|
return '4.5.23';
|
|
}
|
|
|
|
/**
|
|
* numeric_version
|
|
*/
|
|
public static function numeric_version() {
|
|
$v = explode('.', software::version());
|
|
$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
|
|
return $n;
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
?>
|