equal
deleted
inserted
replaced
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); |