update php7 compatibility
This commit is contained in:
parent
0072c016c5
commit
8c1e4f5449
|
@ -3,7 +3,7 @@
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "NerdPack">
|
<!ENTITY name "NerdPack">
|
||||||
<!ENTITY author "dmacias72">
|
<!ENTITY author "dmacias72">
|
||||||
<!ENTITY version "2016.10.09">
|
<!ENTITY version "2016.10.20">
|
||||||
<!ENTITY launch "Settings/&name;">
|
<!ENTITY launch "Settings/&name;">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unRAID-plugins/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
<!ENTITY pluginURL "&gitURL;/plugins/&name;.plg">
|
||||||
|
@ -16,6 +16,8 @@
|
||||||
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
<PLUGIN name="&name;" author="&author;" version="&version;" launch="&launch;" pluginURL="&pluginURL;">
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
###2016.10.20
|
||||||
|
- fix: php7 compatibility
|
||||||
###2016.10.09
|
###2016.10.09
|
||||||
- fix: not creating package directory
|
- fix: not creating package directory
|
||||||
###2016.10.08
|
###2016.10.08
|
||||||
|
|
|
@ -11,8 +11,10 @@ This plugin allows installation of extra packages, mostly CLI, for advanced user
|
||||||
</Description>
|
</Description>
|
||||||
<Support>http://lime-technology.com/forum/index.php?topic=37541.0</Support>
|
<Support>http://lime-technology.com/forum/index.php?topic=37541.0</Support>
|
||||||
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
<Icon>https://raw.githubusercontent.com/dmacias72/unRAID-plugins/master/plugins/NerdPack.png</Icon>
|
||||||
<Date>2016-10-09</Date>
|
<Date>2016-10-20</Date>
|
||||||
<Changes>
|
<Changes>
|
||||||
|
###2016.10.20
|
||||||
|
- fix: php7 compatibility
|
||||||
###2016.10.09
|
###2016.10.09
|
||||||
- fix: not creating package directory
|
- fix: not creating package directory
|
||||||
###2016.10.08
|
###2016.10.08
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?
|
||||||
// Download a file from given url
|
// Download a file from given url
|
||||||
function get_file_from_url($file, $url) {
|
function get_file_from_url($file, $url) {
|
||||||
$chfile = fopen($file, 'w');
|
$chfile = fopen($file, 'w');
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?php
|
<?
|
||||||
require_once '/usr/local/emhttp/plugins/NerdPack/include/NerdPackHelpers.php';
|
require_once '/usr/local/emhttp/plugins/NerdPack/include/NerdPackHelpers.php';
|
||||||
require_once '/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php';
|
require_once '/usr/local/emhttp/plugins/NerdPack/include/DownloadHelpers.php';
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ foreach ($pkgs_github_array as $pkg_github) {
|
||||||
$pkg_set = "no";
|
$pkg_set = "no";
|
||||||
foreach ($pkg_cfg as $pkg_key => $pkg_line) {
|
foreach ($pkg_cfg as $pkg_key => $pkg_line) {
|
||||||
if (preg_match('/^'.$pkg_name.'.*/',$pkg_key)){
|
if (preg_match('/^'.$pkg_name.'.*/',$pkg_key)){
|
||||||
if(sizeof(array_diff(split('-', $pkg_key), split('-', $pkg_name))) < 2 ){
|
if(sizeof(array_diff(explode('-', $pkg_key), explode('-', $pkg_name))) < 2 ){
|
||||||
$pkg_set = $pkg_line;
|
$pkg_set = $pkg_line;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user