includes/plugins.php
changeset 378 c1c7fa6b329f
parent 322 5f1cd51bf1be
child 379 82b991bee797
equal deleted inserted replaced
377:bb3e6c3bd4f4 378:c1c7fa6b329f
    37           {
    37           {
    38             if(getConfig('plugin_'.$file) == '1' || in_array($file, $this->system_plugins))
    38             if(getConfig('plugin_'.$file) == '1' || in_array($file, $this->system_plugins))
    39             {
    39             {
    40               $this->load_list[] = $dir . $file;
    40               $this->load_list[] = $dir . $file;
    41               $plugid = substr($file, 0, strlen($file)-4);
    41               $plugid = substr($file, 0, strlen($file)-4);
    42               $f = file_get_contents($dir . $file);
    42               $f = @file_get_contents($dir . $file);
       
    43               if ( empty($f) )
       
    44                 continue;
    43               $f = explode("\n", $f);
    45               $f = explode("\n", $f);
    44               $f = array_slice($f, 2, 7);
    46               $f = array_slice($f, 2, 7);
    45               $f[0] = substr($f[0], 13);
    47               $f[0] = substr($f[0], 13);
    46               $f[1] = substr($f[1], 12);
    48               $f[1] = substr($f[1], 12);
    47               $f[2] = substr($f[2], 13);
    49               $f[2] = substr($f[2], 13);