Inheritance: extends Plataforma
 /**
  * call parent constructor
  */
 public function __construct()
 {
     parent::__construct();
 }
示例#2
0
    public static function fileexists($strFileName)
    {
        global $log_file;
        global $lsb;
        global $lsbfile;
        if (file_exists($log_file) && ($lsb || $lsbfile || $strFileName != "/etc/lsb-release") && ($contents = @file_get_contents($log_file)) && preg_match("/^\\-\\-\\-\\-\\-\\-\\-\\-\\-\\-" . preg_quote($strFileName, '/') . "\\-\\-\\-\\-\\-\\-\\-\\-\\-\\-\n/m", $contents)) {
            return true;
        }
        return false;
    }
    public static function gdc()
    {
        return array();
    }
}
$system = new Linux();
if ($handle = opendir(APP_ROOT . '/sample/distrotest')) {
    echo "<table cellpadding=\"2\" border=\"1\"  CELLSPACING=\"0\"";
    echo "<tr>";
    echo "<td>Distrotest sample</td>";
    echo "<td>Distro Name</td>";
    echo "<td>Distro Icon</td>";
    echo "<td>Distro Name (no lsb_release)</td>";
    echo "<td>Distro Icon (no lsb_release)</td>";
    echo "<td>Distro Name (no lsb_release and no /etc/lsb-release)</td>";
    echo "<td>Distro Icon (no lsb_release and no /etc/lsb-release)</td>";
    echo "</tr>";
    while (false !== ($entry = readdir($handle))) {
        if ($entry != "." && $entry != "..") {
            if ($shandle = opendir(APP_ROOT . "/sample/distrotest/{$entry}")) {
                while (false !== ($sentry = readdir($shandle))) {
示例#3
0
 public function build()
 {
     parent::_distro();
 }
<?php

require_once 'windows.php';
require_once 'linux.php';
require_once 'procesadorX86.php';
require_once 'procesadorX64.php';
$procesador64 = new procesadorX64();
$procesador86 = new procesadorX86();
$windows = new Windows($procesador64);
$windows->mostrarDetalles();
$windows->miProcesador();
$windows = new Windows($procesador86);
$windows->mostrarDetalles();
$windows->miProcesador();
$linux = new Linux($procesador64);
$linux->mostrarDetalles();
$linux->miProcesador();
$linux = new Linux($procesador86);
$linux->mostrarDetalles();
$linux->miProcesador();
 function get_resource_hd()
 {
     $system = new Linux();
     return $system->get_resource_hd();
 }