Авторство |
Последнее изменение |
Открыть журнал
| Скачать
| RSS
<?php
class Core
{
function getDistribution
($message) {
if (preg_match("/debian/i",$message)) {
$answer = "Debian GNU/Linux";
}
if (preg_match("/ubuntu/i",$message)) {
$answer = "Ubuntu Linux";
}
if (preg_match("/infralinux/i",$message)) {
$answer = "InfraLinux";
}
return $answer;
}
function getLinuxOS
($message) {
if (preg_match("/linux/i",$message)) {
return true;
} else {
return false;
}
}
}
?>