File:  [mozdev] / hon / www / uninstallation.html
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Tue Sep 30 18:38:04 2003 UTC (16 years, 3 months ago) by traguin
Branches: MAIN
CVS tags: HEAD
old uninstallation instructions

<?php
  // Taken and adapted from themes.mozdev.org
  function worksWith($worx, $nobr = 1, $sq = 0)
  {
  
    $worxArray = explode(':', $worx);
  
    $rhett = ''; // <img alt="" class="" src="" title="" />
  
    for($i=0; $worxArray[$i] != ''; $i++)
    {
      switch($worxArray[$i])
      {
        case 'm10':  $rhett_alt = 'Mozilla 1.0.x';
                     $rhett_src = 'images/moz10.png';
                     break;
  
        case 'm11':  $rhett_alt = 'Mozilla 1.1.x/1.2a';
                     $rhett_src = 'images/moz11.png';
                     break;
  
        case 'n7':   $rhett_alt = 'Netscape 7.0';
                     $rhett_src = 'images/n7.png';
                     break;
  
        case 'n701':   $rhett_alt = 'Netscape 7.01/7.02';
                     $rhett_src = 'images/n701.png';
                     break;
  
        case 'n71':   $rhett_alt = 'Netscape 7.1';
                     $rhett_src = 'images/n71.png';
                     break;
  
        case 'm12':  $rhett_alt = 'Mozilla 1.2.x';
                     $rhett_src = 'images/moz12.png';
                     break;
  
        case 'm13':  $rhett_alt = 'Mozilla 1.3.x';
                     $rhett_src = 'images/moz13.png';
                     break;
  
        case 'm14':  $rhett_alt = 'Mozilla 1.4';
                     $rhett_src = 'images/moz14.png';
                     break;
  
        case 'trunk':  $rhett_alt = 'Mozilla 1.5a';
                     $rhett_src = 'images/trunk.png';
                     break;
  
        case 'px':  $rhett_alt = 'Mozilla Firebird 0.6';
                     $rhett_src = 'images/px.png';
                     break;
  
        case 'fbtrunk': $rhett_alt = 'Mozilla Firebird 0.6.1';
                        $rhett_src = 'images/fbtrunk.png';
                        break;
  		   
        default: $rhett_alt = $worx;
  
      }
  
      $rhett .= '<img style="vertical-align: middle;" alt="' . $rhett_alt . '" src="';
      $rhett .= $rhett_src . '" ';
      
      if( $nobr == 0 ): $rhett .= 'style="margin-top: 2px;" '; endif;
  
      $rhett .= 'title="' . $rhett_alt . '" />';
  
      if( $sq == 1 )
      {
        if( $nobr == 0 && $i%2 != 0 )
          $rhett .= '<br />';
      }
      elseif( $nobr == 0 )
      {
        $rhett .= '<br />';
      }
      
      if ( $rhett_alt == $worx )
      {
        $rhett = $worx;
      }
    }
  
    return $rhett;
  
  }
  
  function which()
  {
  
     if ( ereg('Gecko', $_SERVER["HTTP_USER_AGENT"]) )
     {
       if ( ereg( 'rv:1.0', $_SERVER["HTTP_USER_AGENT"] ) && !ereg( 'Netscape/7', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'm10';
       }
       elseif ( ereg( 'rv:1.1', $_SERVER["HTTP_USER_AGENT"] ) || ereg( 'rv:1.2a', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'm11';
       }
       elseif ( ereg( 'Netscape/7.1', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'n71';
       }
       elseif ( ereg( 'Netscape/7.0+[1|2]', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'n701';
       }
       elseif ( ereg( 'Netscape/7', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'n7';
       }
       elseif ( ereg( 'rv:1.2+[^a]', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Phoenix', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Firebird', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'm12';
       }
       elseif ( ereg( 'rv:1.3', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Phoenix', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Firebird', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'm13';
       }
       elseif ( ereg( 'rv:1.4', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Netscape', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Phoenix', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Firebird', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'm14';
       }
       elseif ( ereg( 'rv:1.5+[ab]?', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Phoenix', $_SERVER["HTTP_USER_AGENT"] ) &&
                !ereg( 'Firebird', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'trunk';
       }
       elseif ( ereg( 'Firebird/0.6.1', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'fbtrunk';
       }
       elseif ( ereg( 'Phoenix', $_SERVER["HTTP_USER_AGENT"] ) ||
                ereg( 'Firebird', $_SERVER["HTTP_USER_AGENT"] ) )
       {
         return 'px';
       }
       else
       {
         return 'a non-supported browser.';
       }
  
    }
    else
    {
      return 'a non-supported browser.';
    }
    
  }
  
  function isHONcodeStatusMozCompatible()
  {
    switch (which())
    {
      case 'm13':   echo 'install';
                    break;
      case 'm14':   echo 'install';
                    break;
      case 'trunk': echo 'install';
                    break;
      case 'n7':    echo 'install';
                    break;
      case 'n701':  echo 'install';
                    break;
      case 'n71':  echo 'install';
                    break;
      default:      echo 'installUnsure';
                    break;
    }
  }
  
  function isHONcodeStatusPxCompatible()
  {
    switch (which())
    {
      case 'px':    echo 'install';
                    break;
      case 'fbtrunk': echo 'install';
                      break;
      default:      echo 'installUnsure';
                    break;
    }
  }
  
  function isHONlookupCompatible()
  {
    switch (which())
    {
      case 'm13':   echo 'install';
                    break;
      case 'm14':   echo 'install';
                    break;
      case 'trunk': echo 'install';
                    break;
      case 'n7':    echo 'install';
                    break;
      case 'n701':  echo 'install';
                    break;
      case 'n71':  echo 'install';
                    break;
      case 'px':    echo 'install';
                    break;
      case 'fbtrunk': echo 'install';
                      break;
      default:      echo 'installUnsure';
                    break;
    }
  }
  
  function isSherlockCompatible()
  {
    switch (which())
    {
      case 'm10':   echo 'install';
                    break;
      case 'm11':   echo 'install';
                    break;
      case 'm12':   echo 'install';
                    break;
      case 'm13':   echo 'install';
                    break;
      case 'm14':   echo 'install';
                    break;
      case 'trunk': echo 'install';
                    break;
      case 'n7':    echo 'install';
                    break;
      case 'n701':  echo 'install';
                    break;
      case 'n71':  echo 'install';
                    break;
      case 'px':    echo 'install';
                    break;
      case 'fbtrunk': echo 'install';
                      break;
      default:      echo 'installUnsure';
                    break;
    }
  }
  
  function getDownloadLinkLabel()
  {
    switch (which())
    {
      case 'm10':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'm11':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'm12':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'm13':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'm14':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'trunk': echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'n7':    echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'n701':  echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'n71':   echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
      case 'px':    echo 'Right-click and select \\\'Save Link As...\\\' to download.';
                    break;
      case 'fbtrunk': echo 'Right-click and select \\\'Save Link As...\\\' to download.';
                      break;
      default:      echo 'Right-click and select \\\'Save Link Target As...\\\' to download.';
                    break;
    }
  }
?>
<br/>
<div class="dotted"><img src="http://www.mozdev.org/sharedimages/search_arrow.gif"
         alt="" border="0"
         style="vertical-align: middle"/> Uninstallation Instructions (pre-1.x release)</div>
<p>These instructions are for HONcode Status v0.8 (or earlier) and HONlookup v0.4 (or earlier). Versions 
above 1.0 include an uninstaller. Be careful though, as improper uninstallation could break your browser installation! It is recommended 
to backup you global Mozilla chrome folder (e.g. for Mozilla on windows, usual path is
'<code>C:\Program Files\mozilla.org\Mozilla\chrome</code>') before doing any change!</p>
<p><u>Note</u>: Uninstallation instructions are adapted to the browser your using.</p>

<ul>
  <li><a id="hon" href="#honstatus">How to remove the HONcode Status plugin</a></li>
  <li><a id="hon" href="#honlookup">How to remove the HONlookup plugin</a></li>
</ul>
<div align="right">
  <a href="#" id="hon" class="top">top</a>
</div>
<ul>
  <li>
    <a name="honstatus"></a>
    <b>HONcode Status</b>
    <p>
      1. Delete the '<code>honstatus</code>' folder in your global Mozilla chrome folder.
    </p>
    <p>
      2. Remove the following portions of code from the '<code>chrome.rdf</code>' file in your Mozilla chrome folder:
      <pre class="code">&lt;RDF:Description about="urn:mozilla:package:honstatus"
                 c:baseURL="resource:/chrome/honstatus/content/"
                 c:locType="install"
                 c:displayName="HONcode Status Extension v0.8"
                 c:author="Thierry Raguin"
                 c:name="honstatus"
                 c:extension="true"
<?php
  if ((which() == "px")
      || (which() == "fbtrunk"))
  {
?>
                 c:description="Displays the HONcode logo if the currently visited Website is HONcode accredited"
                 c:settingsURL="chrome://honstatus/content/honstatusSettings.xul" />
<?php
  }
  else
  {
?>
                 c:description="Displays the HONcode logo if the currently visited Website is HONcode accredited" />
<?php
  }
?>
</pre> 
      and <pre class="code">&lt;RDF:li resource="urn:mozilla:package:honstatus"/></pre>
    </p>
    <p>
      3. Remove every occurrence of the following line from the '<code>installed-chrome.txt</code>' file in your global Mozilla chrome folder:
      <pre class="code">content,install,url,resource:/chrome/honstatus/content/</pre>
    </p>
    <p>
      4. Remove the following line from the '<code>overlayinfo/navigator/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honstatus/content/honstatusOverlay.xul&lt;/RDF:li></pre>
    </p>
<?php
  if ((which() == "px")
      || (which() == "fbtrunk"))
  {
?>
    <p>
      5. Remove the following line from the '<code>overlayinfo/browser/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honstatus/content/honstatusOverlay.xul&lt;/RDF:li></pre>
    </p>
<?php
  }
  else
  {
?>
    <p>
      5. Remove the following lines from the '<code>overlayinfo/communicator/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honstatus/content/honstatusPrefOverlay.xul&lt;/RDF:li></pre>
      If the surrounding tag (<code>&lt;RDF:Seq></code>) becomes empty, you should delete it as well!
    </p>
<?php
  }
?>
    <div align="right">
      <a href="#" id="hon" class="top">top</a>
    </div>
  </li>
  <li>
    <a name="honlookup"></a>
    <b>HONlookup</b>
    <p>
      1. Delete the '<code>honlookup</code>' folder in your global Mozilla chrome folder.
    </p>
    <p>
      2. Remove the following portions of code from the '<code>chrome.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:Description about="urn:mozilla:package:honlookup"
                 c:baseURL="resource:/chrome/honlookup/content/"
                 c:locType="install"
                 c:displayName="HONLookup"
                 c:author="Thierry Raguin"
                 c:name="honlookup"
                 c:description="Right-click context menu to search selected text on HONcodeHunt"
                 c:extension="true" /></pre>
      and <pre class="code">&lt;RDF:li resource="urn:mozilla:package:honlookup"/></pre>
    </p>
    <p>
      3. Remove every occurrence of the following line from the '<code>installed-chrome.txt</code>' file in your global Mozilla chrome folder:
      <pre class="code">content,install,url,resource:/chrome/honlookup/content/</pre>
    </p>
    <p>
      4. Remove the following line from the '<code>overlayinfo/navigator/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honlookup/content/honlookup.xul&lt;/RDF:li></pre>
    </p>
    <p>
      5. Remove the following line from the '<code>overlayinfo/browser/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honlookup/content/honlookup.xul&lt;/RDF:li></pre>
    </p>
<?php
  if ((which() != "px")
      && (which() != "fbtrunk"))
  {
?>
    <p>
      6. Remove the following line from the '<code>overlayinfo/messenger/content/overlays.rdf</code>' file in your global Mozilla chrome folder:
      <pre class="code">&lt;RDF:li>chrome://honlookup/content/honlookup-mail.xul&lt;/RDF:li></pre>
    </p>
<?php
  }
?>
    <div align="right">
      <a href="#" id="hon" class="top">top</a>
    </div>
  </li>
</ul>
<div align="right">
  <a href="#" id="hon" class="top">top</a>
</div>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>