aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/template/twig/node/includejs.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-02 17:28:07 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-02 17:36:39 +0100
commita166f6f42c1910c7987eef5597341863b2434b32 (patch)
tree5323f007bd9d1118ad742dd6f64fc76ee7e4f923 /phpBB/phpbb/template/twig/node/includejs.php
parent9f59aa59d92c6641308a0c1d51a5d4e41d37b2ec (diff)
downloadforums-a166f6f42c1910c7987eef5597341863b2434b32.tar
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.gz
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.bz2
forums-a166f6f42c1910c7987eef5597341863b2434b32.tar.xz
forums-a166f6f42c1910c7987eef5597341863b2434b32.zip
[ticket/13569] Add missing sql_freeresults and remove unneeded results
PHPBB3-13569
Diffstat (limited to 'phpBB/phpbb/template/twig/node/includejs.php')
0 files changed, 0 insertions, 0 deletions
id='n32' href='#n32'>32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
use diagnostics;
use strict;

my $scsiDeviceAvailable;
my $CSADeviceAvailable;

1;

sub scsiDeviceAvailable {
    defined $scsiDeviceAvailable and return $scsiDeviceAvailable;
    local *F;
    open F, "/proc/scsi/scsi" or log::l("failed to open /proc/scsi/scsi: $!"), return 0;
    foreach (<F>) {
	/devices: none/ and log::l("no scsi devices are available"), return $scsiDeviceAvailable = 0;
    }
    log::l("scsi devices are available");
    $scsiDeviceAvailable = 1;
}

sub CompaqSmartArrayDeviceAvailable {
    defined $CSADeviceAvailable and return $CSADeviceAvailable;
    -r "/proc/array/ida0" or log::l("failed to open /proc/array/ida0: $!"), return $CSADeviceAvailable = 0;
    log::l("Compaq Smart Array controllers available");
    $CSADeviceAvailable = 1;
}

sub scsiGetDevices {
    my @drives;
    my ($driveNum, $cdromNum, $tapeNum) = qw(0 0 0);