[HOW-TO] Fix Admin Plugin Manger for Safari

voxxitdesigns

Verified User
Joined
Apr 9, 2005
Messages
48
I found that using the Plugin Manager in Safari failed when trying to install Installatron. Looking into it further, it seemed that enctype="multipart/form-data" in the <form> tag is depreciated in Safari, as it is a much more standards-compliant browser.

Here is a fix that seemed to work cross-browser for me, including Safari.

Paste the following into:

/usr/local/directadmin/data/skins/enhanced (or your skin)/admin/plugin_manager.html

Code:
|LF_STANDARD|
|?TREE=» <a class=tree href="/CMD_PLUGIN_MANAGER">`LANG_PLUGING_MANAGER`</a>|
|?HELP_SECTION=`ADMIN_HELPER`|
|HTM_HEADER|
|HTM_HEADER_WIDE|

<br/>

|PLUGINS|

<br/>
<table class="list" cellspacing="1" cellpadding="5">
<form action="/CMD_PLUGIN_MANAGER" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10485760" />
<input type="hidden" name="action" value="add" />
<tr>
        <td class="listtitle" colspan="2">
                <strong>|LANG_ADD_PLUGIN|</strong> - |LANG_SELECT_UP_METH|
        </td>
</tr>

<tr>
        <td class="list">
                <input type="radio" name="type" value="url" checked="checked" />|LANG_URL|
        </td>
        <td class="list">
                <input type="text" name="url" size="32" value="http://" /> |LANG_ENTER_URL|
        </td>
</tr>

<tr>
        <td class="list">
                <input type="radio" name="type" value="file" />|LANG_FILE|
        </td>
        <td class="list">
                <input type="file" name="file1" size="32" /> |LANG_UPLOAD_FROM_LOC|
        </td>
</tr>

<tr>
        <td class="listtitle" colspan="2" align="right">
                <strong>|LANG_PASSWORD|</strong>: <input type="password" name="passwd" size="10" value="" />   
<input type="checkbox" name="install" value="yes" checked="checked" /> |LANG_INSTALL_AFTER_UP|   
<input type="submit" value="|LANG_ADD$
        </td>
</tr>
</form>
</table>
<br/><br/><br/>

|HTM_FOOTER_WIDE|
|HTM_FOOTER|

I basically just took out enctype= and made the page more standards-compliant (wrapped variable values in "", etc.)

Can someone let me know via e-mail ([email protected]) whether it works correctly in IE6/7?
 
Back
Top