zip support check

Post Reply
User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

zip support check

Post by nikokara - BANNED » Mon Oct 16, 2017 2:18 pm

Hi Jachim

What about adding this in errorChecker.php ???

Code: Select all

//=========new zip check by nik ============
    $checks[] = array($title,$span,$text,$correct);

    $title = "Zip support ";

   if( extension_loaded("zip")){
        $span = $correctDiv;
        $text = "zip support is enabled on your server. ";
        $correct = "";
    }
    else{
        $span = $incorrectDiv;
        $text = "zip is not enabled on your server. 
        This is likely to cause issues with the <auto update> function.";
        $correct = "You need to enable this on your server.
         If you are running your own server, change this in the php.ini, 
         if external webhosting, ask your provider about this, 
         or enable \'Zip support\' in your Web Control Panel";
    }
enjoy 8-)
niko

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: zip support check

Post by Jachym » Mon Oct 16, 2017 2:43 pm

Yes I guess I could add it, I never thought about it because for example I cannot enable/disable it in my hosting so it didnt occur to me some people can.

User avatar
Fraggboy
Forecaster
Forecaster
Posts: 193
Joined: Wed Sep 27, 2017 2:45 pm
Location: Sunny California
Station model: Bloomsky II + Storm
Software: Bloomsky
Contact:

Re: zip support check

Post by Fraggboy » Mon Oct 16, 2017 4:53 pm

+1 in adding this. Just another function that is necessary for MT to work as intended.
Image

Post Reply