273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
|
$dir = dir(PLUGINS_ROOT);
while ($file = $dir->read())
{
if (substr($file, 0, 1) == '.')
continue;
if (!preg_match('!^([a-z0-9_-]+)\.tar.gz$!', $file, $match))
continue;
if (array_key_exists($match[1], $installed))
continue;
$list[$match[1]] = parse_ini_file('phar://' . PLUGINS_ROOT . '/' . $match[1] . '.tar.gz/garradin_plugin.ini', false);
}
|
|
|
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
|
$dir = dir(PLUGINS_ROOT);
while ($file = $dir->read())
{
if (substr($file, 0, 1) == '.')
continue;
if (!preg_match('!^([a-z0-9_.-]+)\.tar\.gz$!', $file, $match))
continue;
if (array_key_exists($match[1], $installed))
continue;
$list[$match[1]] = parse_ini_file('phar://' . PLUGINS_ROOT . '/' . $match[1] . '.tar.gz/garradin_plugin.ini', false);
}
|