<div dir="ltr">Ok, that was my change - but it was done as the quickest way to test if a zip was a zip. The old logic didn't work (as it accepted almost all mime types as zips).<div><br></div><div>I could repurpose using the existing class?</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 6, 2013 at 2:42 PM, Tom Reijnders <span dir="ltr"><<a href="mailto:reijnders@tor.nl" target="_blank">reijnders@tor.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hmm...<br>
    <br>
    I think I have another hotfix coming up...<br>
    <br>
    I deployed 2.1 to the same server as where the community website is
    running on, and import isn't working because of the fact that
    ZipArchive isn't supported in php on that machine. I want to get rid
    of that dependency, as we use another class for the actual unzipping
    anyways.<br>
    <br>
    Tom<br>
    <br>
    <div>Tom Reijnders schreef op 4-11-2013
      17:31:<br>
    </div>
    <blockquote type="cite">
      
      The2.1 zip is on the community website, but I haven't had the
      opportunity yet to test it, and to make sure it works as
      expected.....<br>
      <br>
      <div>Julian Tenney schreef op 4-11-2013
        14:45:<br>
      </div>
      <blockquote type="cite">
        
        
        
        <div>
          <p class="MsoNormal"><span style="color:#1f497d">Nice one,
              thanks for your help everybody. Another step forward!<u></u><u></u></span></p>
          <p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
          <div>
            <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                  [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                  <b>On Behalf Of </b>Tom Reijnders<br>
                  <b>Sent:</b> 04 November 2013 13:37<br>
                  <b>To:</b> For Xerte technical developers<br>
                  <b>Subject:</b> [Xerte-dev] Re: 2.1<u></u><u></u></span></p>
            </div>
          </div>
          <p class="MsoNormal"><u></u> <u></u></p>
          <p class="MsoNormal" style="margin-bottom:12.0pt">I had to set
            the tag, and mind you, it's really important to have a tag
            name that is different from a branch name (so v2.1, i.s.o.
            2.1)<br>
            <br>
            You have to specify --tags to the push command, to be able
            to set the tag on github as well.<br>
            <br>
            All seems to be fine now, so I'll try to get 2.1 uploaded to
            the website!<br>
            <br>
            Tom<u></u><u></u></p>
          <div>
            <p class="MsoNormal">Julian Tenney schreef op 4-11-2013
              14:25:<u></u><u></u></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal"><span style="color:#1f497d">OK, as far
                as I can tell I’ve just disabled Moscow’s traffic light
                system and sent the international space sation into a
                slightly wider orbit, and it’s entirely possible that
                along the way I also managed to merge the various
                branches and create a tag.</span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d">So master
                is now develop is now 2.1 and tagged.</span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d">Can you
                please check it looks as you think it should look?</span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d">Many
                thanks,</span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d">J</span><u></u><u></u></p>
            <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
            <div>
              <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                    [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                    <b>On Behalf Of </b>Tom Reijnders<br>
                    <b>Sent:</b> 04 November 2013 12:36<br>
                    <b>To:</b> For Xerte technical developers<br>
                    <b>Subject:</b> [Xerte-dev] Re: 2.1</span><u></u><u></u></p>
              </div>
            </div>
            <p class="MsoNormal"> <u></u><u></u></p>
            <p class="MsoNormal" style="margin-bottom:12.0pt">Yes!<br>
              <br>
              Give me a heads up when git is ready (i.e. 2.1 is merged
              into development again).<br>
              And it needs to merged into master.<br>
              We need (or I need) to set a tag v.2.1 to the merge point
              on master, and I'll make sure we get a 2.1 release from
              master on the Community Website.<br>
              <br>
              Tom<br>
              <br>
              <br>
              <u></u><u></u></p>
            <div>
              <p class="MsoNormal">Julian Tenney schreef op 4-11-2013
                13:32:<u></u><u></u></p>
            </div>
            <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
              <p class="MsoNormal"><span style="color:#1f497d">Shall we
                  go for it then?</span><u></u><u></u></p>
              <p class="MsoNormal"><span style="color:#1f497d"> </span><u></u><u></u></p>
              <div>
                <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
                  <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                      [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                      <b>On Behalf Of </b>Smith, John<br>
                      <b>Sent:</b> 04 November 2013 10:30<br>
                      <b>To:</b> For Xerte technical developers<br>
                      <b>Subject:</b> [Xerte-dev] Re: 2.1</span><u></u><u></u></p>
                </div>
              </div>
              <p class="MsoNormal"> <u></u><u></u></p>
              <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Nor do I…</span><u></u><u></u></p>
              <div>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Regards,</span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">John Smith</span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Learning Technologist</span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">School of Health & Life Sciences</span><u></u><u></u></p>
                <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">Glasgow Caledonian University</span><u></u><u></u></p>
              </div>
              <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
              <div>
                <div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
                  <p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>
                      [<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">mailto:xerte-dev-bounces@lists.nottingham.ac.uk</a>]
                      <b>On Behalf Of </b>Ron Mitchell<br>
                      <b>Sent:</b> Monday, November 04, 2013 10:25 AM<br>
                      <b>To:</b> For Xerte technical developers<br>
                      <b>Subject:</b> [Xerte-dev] Re: 2.1</span><u></u><u></u></p>
                </div>
              </div>
              <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
              <div>
                <p class="MsoNormal"><span lang="EN-US">Me neither....<br>
                    <br>
                    Sent from my iPhone</span><u></u><u></u></p>
              </div>
              <div>
                <p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
                    On 4 Nov 2013, at 10:21, Tom Reijnders <<a href="mailto:reijnders@tor.nl" target="_blank">reijnders@tor.nl</a>>

                    wrote:</span><u></u><u></u></p>
              </div>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <div>
                  <p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">I don't know of any showstoppers.<br>
                      <br>
                      Tom</span><u></u><u></u></p>
                  <div>
                    <p class="MsoNormal"><span lang="EN-US">Julian
                        Tenney schreef op 4-11-2013 10:57:</span><u></u><u></u></p>
                  </div>
                  <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                    <p class="MsoNormal"><span style="color:#1f497d" lang="EN-US">How close do you think we are to
                        the 2.1 release?</span><u></u><u></u></p>
                    <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
                    <p><span lang="EN-US">This message and any
                        attachment are intended solely for the addressee
                        and may contain confidential information. If you
                        have received this message in error, please send
                        it back to me, and immediately delete it.  
                        Please do not use, copy or disclose the
                        information contained in this message or in any
                        attachment.  Any views or opinions expressed by
                        the author of this email do not necessarily
                        reflect the views of the University of
                        Nottingham.</span><u></u><u></u></p>
                    <p><span lang="EN-US">This message has been checked
                        for viruses but the contents of an attachment
                        may still contain software viruses which could
                        damage your computer system, you are advised to
                        perform your own checks. Email communications
                        with the University of Nottingham may be
                        monitored as permitted by UK legislation.</span><u></u><u></u></p>
                    <p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
                        <br>
                        <br>
                        <br>
                        <br>
                      </span><u></u><u></u></p>
                    <pre><span lang="EN-US">_______________________________________________</span><u></u><u></u></pre>
                    <pre><span lang="EN-US">Xerte-dev mailing list</span><u></u><u></u></pre>
                    <pre><span lang="EN-US"><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a></span><u></u><u></u></pre>
                    <pre><span lang="EN-US"><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a></span><u></u><u></u></pre>
                  </blockquote>
                  <p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"> </span><u></u><u></u></p>
                  <pre><span lang="EN-US">-- </span><u></u><u></u></pre>
                  <pre><span lang="EN-US">--</span><u></u><u></u></pre>
                  <pre><span lang="EN-US"> </span><u></u><u></u></pre>
                  <pre><span lang="EN-US">Tom Reijnders</span><u></u><u></u></pre>
                  <pre><span lang="EN-US">TOR Informatica</span><u></u><u></u></pre>
                  <pre><span lang="EN-US">Chopinlaan 27</span><u></u><u></u></pre>
                  <pre><span lang="EN-US">5242HM Rosmalen</span><u></u><u></u></pre>
                  <pre><span lang="EN-US">Tel: 073 5226191</span><u></u><u></u></pre>
                  <pre><span lang="EN-US">Fax: 073 5226196</span><u></u><u></u></pre>
                  <pre><span lang="EN-US"> </span><u></u><u></u></pre>
                  <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
                  <p><span lang="EN-US">This message and any attachment
                      are intended solely for the addressee and may
                      contain confidential information. If you have
                      received this message in error, please send it
                      back to me, and immediately delete it.   Please do
                      not use, copy or disclose the information
                      contained in this message or in any attachment. 
                      Any views or opinions expressed by the author of
                      this email do not necessarily reflect the views of
                      the University of Nottingham.</span><u></u><u></u></p>
                  <p><span lang="EN-US">This message has been checked
                      for viruses but the contents of an attachment may
                      still contain software viruses which could damage
                      your computer system, you are advised to perform
                      your own checks. Email communications with the
                      University of Nottingham may be monitored as
                      permitted by UK legislation.</span><u></u><u></u></p>
                  <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
                </div>
              </blockquote>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <div>
                  <p class="MsoNormal"><span lang="EN-US">_______________________________________________<br>
                      Xerte-dev mailing list<br>
                      <a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><br>
                      <a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a></span><u></u><u></u></p>
                </div>
              </blockquote>
              <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
              <p><span lang="EN-US">This message and any attachment are
                  intended solely for the addressee and may contain
                  confidential information. If you have received this
                  message in error, please send it back to me, and
                  immediately delete it.   Please do not use, copy or
                  disclose the information contained in this message or
                  in any attachment.  Any views or opinions expressed by
                  the author of this email do not necessarily reflect
                  the views of the University of Nottingham.</span><u></u><u></u></p>
              <p><span lang="EN-US">This message has been checked for
                  viruses but the contents of an attachment may still
                  contain software viruses which could damage your
                  computer system, you are advised to perform your own
                  checks. Email communications with the University of
                  Nottingham may be monitored as permitted by UK
                  legislation.</span><u></u><u></u></p>
              <p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
              <p class="MsoNormal"><span lang="EN-US"><br>
                </span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:gray" lang="EN-US">Glasgow Caledonian University is a
                  registered Scottish charity, number SC021474<br>
                  <br>
                  Winner: Times Higher Education’s Widening
                  Participation Initiative of the Year 2009 and Herald
                  Society’s Education Initiative of the Year 2009.<br>
                  <a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html</a><br>
                  <br>
                  Winner: Times Higher Education’s Outstanding Support
                  for Early Career Researchers of the Year 2010, GCU as
                  a lead with Universities Scotland partners.<br>
                  <a href="http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html" target="_blank">http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html</a></span><u></u><u></u></p>

              <p class="MsoNormal"><span><br>
                  <br>
                  <br>
                  <br>
                </span><u></u><u></u></p>
              <pre>_______________________________________________<u></u><u></u></pre>
              <pre>Xerte-dev mailing list<u></u><u></u></pre>
              <pre><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><u></u><u></u></pre>
              <pre><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></pre>
            </blockquote>
            <p class="MsoNormal"><span><br>
                <br>
                <br>
              </span><u></u><u></u></p>
            <pre>-- <u></u><u></u></pre>
            <pre>--<u></u><u></u></pre>
            <pre> <u></u><u></u></pre>
            <pre>Tom Reijnders<u></u><u></u></pre>
            <pre>TOR Informatica<u></u><u></u></pre>
            <pre>Chopinlaan 27<u></u><u></u></pre>
            <pre>5242HM Rosmalen<u></u><u></u></pre>
            <pre>Tel: 073 5226191<u></u><u></u></pre>
            <pre>Fax: 073 5226196<u></u><u></u></pre>
            <pre> <u></u><u></u></pre>
            <p class="MsoNormal"><span><u></u> <u></u></span></p>
            <p>This message and any attachment are intended solely for
              the addressee and may contain confidential information. If
              you have received this message in error, please send it
              back to me, and immediately delete it.   Please do not
              use, copy or disclose the information contained in this
              message or in any attachment.  Any views or opinions
              expressed by the author of this email do not necessarily
              reflect the views of the University of Nottingham.<u></u><u></u></p>
            <p>This message has been checked for viruses but the
              contents of an attachment may still contain software
              viruses which could damage your computer system, you are
              advised to perform your own checks. Email communications
              with the University of Nottingham may be monitored as
              permitted by UK legislation.<u></u><u></u></p>
            <p class="MsoNormal"><span><br>
                <br>
                <br>
                <br>
                <u></u><u></u></span></p>
            <pre>_______________________________________________<u></u><u></u></pre>
            <pre>Xerte-dev mailing list<u></u><u></u></pre>
            <pre><a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a><u></u><u></u></pre>
            <pre><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><u></u><u></u></pre>
          </blockquote>
          <p class="MsoNormal"><span><br>
              <br>
              <u></u><u></u></span></p>
          <pre>-- <u></u><u></u></pre>
          <pre>--<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
          <pre>Tom Reijnders<u></u><u></u></pre>
          <pre>TOR Informatica<u></u><u></u></pre>
          <pre>Chopinlaan 27<u></u><u></u></pre>
          <pre>5242HM Rosmalen<u></u><u></u></pre>
          <pre>Tel: 073 5226191<u></u><u></u></pre>
          <pre>Fax: 073 5226196<u></u><u></u></pre>
          <pre><u></u> <u></u></pre>
        </div>
        <br>
        <p>This message and any attachment are intended solely for the
          addressee and may contain confidential information. If you
          have received this message in error, please send it back to
          me, and immediately delete it.   Please do not use, copy or
          disclose the information contained in this message or in any
          attachment.  Any views or opinions expressed by the author of
          this email do not necessarily reflect the views of the
          University of Nottingham.</p>
        <p>This message has been checked for viruses but the contents of
          an attachment may still contain software viruses which could
          damage your computer system, you are advised to perform your
          own checks. Email communications with the University of
          Nottingham may be monitored as permitted by UK legislation.</p>
        <br>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>
</pre>
      </blockquote>
      <br>
      <pre cols="72">-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196

</pre>
      <br>
      <p>This message and any attachment are intended solely for the
        addressee and may contain confidential information. If you have
        received this message in error, please send it back to me, and
        immediately delete it.   Please do not use, copy or disclose the
        information contained in this message or in any attachment.  Any
        views or opinions expressed by the author of this email do not
        necessarily reflect the views of the University of Nottingham.</p>
      <p>This message has been checked for viruses but the contents of
        an attachment may still contain software viruses which could
        damage your computer system, you are advised to perform your own
        checks. Email communications with the University of Nottingham
        may be monitored as permitted by UK legislation.</p>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Xerte-dev mailing list
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk" target="_blank">Xerte-dev@lists.nottingham.ac.uk</a>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a>
</pre>
    </blockquote>
    <br>
    <pre cols="72">-- 
--

Tom Reijnders
TOR Informatica
Chopinlaan 27
5242HM Rosmalen
Tel: 073 5226191
Fax: 073 5226196

</pre>
  
<br>
<p>This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.</p>
<p>This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.</p>
<br>
</div>

<br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br></blockquote></div><br></div>