|
@@ -690,139 +690,141 @@ function template_servers()
|
|
echo '
|
|
echo '
|
|
<div id="admin_form_wrapper">
|
|
<div id="admin_form_wrapper">
|
|
<div class="cat_bar">
|
|
<div class="cat_bar">
|
|
- <h3 class="catbg">', $txt['download_new_package'], '</h3>
|
|
|
|
- </div>';
|
|
|
|
-
|
|
|
|
- if ($context['package_download_broken'])
|
|
|
|
- {
|
|
|
|
- echo '
|
|
|
|
- <div class="cat_bar">
|
|
|
|
- <h3 class="catbg">', $txt['package_ftp_necessary'], '</h3>
|
|
|
|
|
|
+ <h3 class="catbg">' . $txt['package_upload_title'] . '</h3>
|
|
</div>
|
|
</div>
|
|
<div class="windowbg">
|
|
<div class="windowbg">
|
|
<div class="content">
|
|
<div class="content">
|
|
- <p>
|
|
|
|
- ', $txt['package_ftp_why_download'], '
|
|
|
|
- </p>
|
|
|
|
- <form action="', $scripturl, '?action=admin;area=packages;get" method="post" accept-charset="', $context['character_set'], '">
|
|
|
|
|
|
+ <form action="' . $scripturl . '?action=admin;area=packages;get;sa=upload" method="post" accept-charset="', $context['character_set'], '" enctype="multipart/form-data" style="margin-bottom: 0;">
|
|
<dl class="settings">
|
|
<dl class="settings">
|
|
<dt>
|
|
<dt>
|
|
- <label for="ftp_server">', $txt['package_ftp_server'], ':</label>
|
|
|
|
- </dt>
|
|
|
|
- <dd>
|
|
|
|
- <input type="text" size="30" name="ftp_server" id="ftp_server" value="', $context['package_ftp']['server'], '" class="input_text">
|
|
|
|
- <label for="ftp_port">', $txt['package_ftp_port'], ': </label> <input type="text" size="3" name="ftp_port" id="ftp_port" value="', $context['package_ftp']['port'], '" class="input_text">
|
|
|
|
- </dd>
|
|
|
|
- <dt>
|
|
|
|
- <label for="ftp_username">', $txt['package_ftp_username'], ':</label>
|
|
|
|
- </dt>
|
|
|
|
- <dd>
|
|
|
|
- <input type="text" size="50" name="ftp_username" id="ftp_username" value="', $context['package_ftp']['username'], '" style="width: 99%;" class="input_text">
|
|
|
|
- </dd>
|
|
|
|
- <dt>
|
|
|
|
- <label for="ftp_password">', $txt['package_ftp_password'], ':</label>
|
|
|
|
- </dt>
|
|
|
|
- <dd>
|
|
|
|
- <input type="password" size="50" name="ftp_password" id="ftp_password" style="width: 99%;" class="input_password">
|
|
|
|
- </dd>
|
|
|
|
- <dt>
|
|
|
|
- <label for="ftp_path">', $txt['package_ftp_path'], ':</label>
|
|
|
|
|
|
+ <strong>' . $txt['package_upload_select'] . ':</strong>
|
|
</dt>
|
|
</dt>
|
|
<dd>
|
|
<dd>
|
|
- <input type="text" size="50" name="ftp_path" id="ftp_path" value="', $context['package_ftp']['path'], '" style="width: 99%;" class="input_text">
|
|
|
|
|
|
+ <input type="file" name="package" size="38" class="input_file">
|
|
</dd>
|
|
</dd>
|
|
</dl>
|
|
</dl>
|
|
- <div class="righttext">
|
|
|
|
- <input type="submit" value="', $txt['package_proceed'], '" class="button_submit">
|
|
|
|
- </div>
|
|
|
|
|
|
+ <hr class="hrcolor">
|
|
|
|
+ <input type="submit" value="' . $txt['package_upload'] . '" class="button_submit">
|
|
|
|
+ <input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '">
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
- </div>';
|
|
|
|
- }
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <br>
|
|
|
|
+ <div class="cat_bar">
|
|
|
|
+ <h3 class="catbg"><a class="download_new_package">', $txt['download_new_package'], '</a></h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="new_package_content">';
|
|
|
|
|
|
- echo '
|
|
|
|
- <div class="windowbg2">
|
|
|
|
- <div class="content">
|
|
|
|
- <fieldset>
|
|
|
|
- <legend>' . $txt['package_servers'] . '</legend>
|
|
|
|
- <ul class="package_servers">';
|
|
|
|
- foreach ($context['servers'] as $server)
|
|
|
|
|
|
+ if ($context['package_download_broken'])
|
|
|
|
+ {
|
|
echo '
|
|
echo '
|
|
- <li class="flow_auto">
|
|
|
|
- <span class="floatleft">' . $server['name'] . '</span>
|
|
|
|
- <span class="package_server floatright"><a href="' . $scripturl . '?action=admin;area=packages;get;sa=remove;server=' . $server['id'] . ';', $context['session_var'], '=', $context['session_id'], '">[ ' . $txt['delete'] . ' ]</a></span>
|
|
|
|
- <span class="package_server floatright"><a href="' . $scripturl . '?action=admin;area=packages;get;sa=browse;server=' . $server['id'] . '">[ ' . $txt['package_browse'] . ' ]</a></span>
|
|
|
|
- </li>';
|
|
|
|
- echo '
|
|
|
|
- </ul>
|
|
|
|
- </fieldset>
|
|
|
|
- <fieldset>
|
|
|
|
- <legend>' . $txt['add_server'] . '</legend>
|
|
|
|
- <form action="' . $scripturl . '?action=admin;area=packages;get;sa=add" method="post" accept-charset="', $context['character_set'], '">
|
|
|
|
|
|
+ <div class="cat_bar">
|
|
|
|
+ <h3 class="catbg">', $txt['package_ftp_necessary'], '</h3>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="windowbg">
|
|
|
|
+ <div class="content">
|
|
|
|
+ <p>
|
|
|
|
+ ', $txt['package_ftp_why_download'], '
|
|
|
|
+ </p>
|
|
|
|
+ <form action="', $scripturl, '?action=admin;area=packages;get" method="post" accept-charset="', $context['character_set'], '">
|
|
<dl class="settings">
|
|
<dl class="settings">
|
|
<dt>
|
|
<dt>
|
|
- <strong>' . $txt['server_name'] . ':</strong>
|
|
|
|
|
|
+ <label for="ftp_server">', $txt['package_ftp_server'], ':</label>
|
|
</dt>
|
|
</dt>
|
|
<dd>
|
|
<dd>
|
|
- <input type="text" name="servername" size="44" value="SMF" class="input_text">
|
|
|
|
|
|
+ <input type="text" size="30" name="ftp_server" id="ftp_server" value="', $context['package_ftp']['server'], '" class="input_text">
|
|
|
|
+ <label for="ftp_port">', $txt['package_ftp_port'], ': </label> <input type="text" size="3" name="ftp_port" id="ftp_port" value="', $context['package_ftp']['port'], '" class="input_text">
|
|
</dd>
|
|
</dd>
|
|
<dt>
|
|
<dt>
|
|
- <strong>' . $txt['serverurl'] . ':</strong>
|
|
|
|
|
|
+ <label for="ftp_username">', $txt['package_ftp_username'], ':</label>
|
|
</dt>
|
|
</dt>
|
|
<dd>
|
|
<dd>
|
|
- <input type="text" name="serverurl" size="44" value="http://" class="input_text">
|
|
|
|
|
|
+ <input type="text" size="50" name="ftp_username" id="ftp_username" value="', $context['package_ftp']['username'], '" style="width: 99%;" class="input_text">
|
|
</dd>
|
|
</dd>
|
|
- </dl>
|
|
|
|
- <div class="righttext">
|
|
|
|
- <input type="submit" value="' . $txt['add_server'] . '" class="button_submit">
|
|
|
|
- <input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '">
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
- </fieldset>
|
|
|
|
- <fieldset>
|
|
|
|
- <legend>', $txt['package_download_by_url'], '</legend>
|
|
|
|
- <form action="', $scripturl, '?action=admin;area=packages;get;sa=download;byurl;', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '">
|
|
|
|
- <dl class="settings">
|
|
|
|
<dt>
|
|
<dt>
|
|
- <strong>' . $txt['serverurl'] . ':</strong>
|
|
|
|
|
|
+ <label for="ftp_password">', $txt['package_ftp_password'], ':</label>
|
|
</dt>
|
|
</dt>
|
|
<dd>
|
|
<dd>
|
|
- <input type="text" name="package" size="44" value="http://" class="input_text">
|
|
|
|
|
|
+ <input type="password" size="50" name="ftp_password" id="ftp_password" style="width: 99%;" class="input_password">
|
|
</dd>
|
|
</dd>
|
|
<dt>
|
|
<dt>
|
|
- <strong>', $txt['package_download_filename'], ':</strong>
|
|
|
|
|
|
+ <label for="ftp_path">', $txt['package_ftp_path'], ':</label>
|
|
</dt>
|
|
</dt>
|
|
<dd>
|
|
<dd>
|
|
- <input type="text" name="filename" size="44" class="input_text"><br>
|
|
|
|
- <span class="smalltext">', $txt['package_download_filename_info'], '</span>
|
|
|
|
|
|
+ <input type="text" size="50" name="ftp_path" id="ftp_path" value="', $context['package_ftp']['path'], '" style="width: 99%;" class="input_text">
|
|
</dd>
|
|
</dd>
|
|
</dl>
|
|
</dl>
|
|
<div class="righttext">
|
|
<div class="righttext">
|
|
- <input type="submit" value="', $txt['download'], '" class="button_submit">
|
|
|
|
|
|
+ <input type="submit" value="', $txt['package_proceed'], '" class="button_submit">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
- </fieldset>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <br>
|
|
|
|
- <div class="cat_bar">
|
|
|
|
- <h3 class="catbg">' . $txt['package_upload_title'] . '</h3>
|
|
|
|
- </div>
|
|
|
|
- <div class="windowbg">
|
|
|
|
- <div class="content">
|
|
|
|
- <form action="' . $scripturl . '?action=admin;area=packages;get;sa=upload" method="post" accept-charset="', $context['character_set'], '" enctype="multipart/form-data" style="margin-bottom: 0;">
|
|
|
|
- <dl class="settings">
|
|
|
|
- <dt>
|
|
|
|
- <strong>' . $txt['package_upload_select'] . ':</strong>
|
|
|
|
- </dt>
|
|
|
|
- <dd>
|
|
|
|
- <input type="file" name="package" size="38" class="input_file">
|
|
|
|
- </dd>
|
|
|
|
- </dl>
|
|
|
|
- <hr class="hrcolor">
|
|
|
|
- <input type="submit" value="' . $txt['package_upload'] . '" class="button_submit">
|
|
|
|
- <input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '">
|
|
|
|
- </form>
|
|
|
|
|
|
+ </div>
|
|
|
|
+ </div>';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ echo '
|
|
|
|
+ <div class="windowbg2">
|
|
|
|
+ <div class="content">
|
|
|
|
+ <fieldset>
|
|
|
|
+ <legend>' . $txt['package_servers'] . '</legend>
|
|
|
|
+ <ul class="package_servers">';
|
|
|
|
+ foreach ($context['servers'] as $server)
|
|
|
|
+ echo '
|
|
|
|
+ <li class="flow_auto">
|
|
|
|
+ <span class="floatleft">' . $server['name'] . '</span>
|
|
|
|
+ <span class="package_server floatright"><a href="' . $scripturl . '?action=admin;area=packages;get;sa=remove;server=' . $server['id'] . ';', $context['session_var'], '=', $context['session_id'], '">[ ' . $txt['delete'] . ' ]</a></span>
|
|
|
|
+ <span class="package_server floatright"><a href="' . $scripturl . '?action=admin;area=packages;get;sa=browse;server=' . $server['id'] . '">[ ' . $txt['package_browse'] . ' ]</a></span>
|
|
|
|
+ </li>';
|
|
|
|
+ echo '
|
|
|
|
+ </ul>
|
|
|
|
+ </fieldset>
|
|
|
|
+ <fieldset>
|
|
|
|
+ <legend>' . $txt['add_server'] . '</legend>
|
|
|
|
+ <form action="' . $scripturl . '?action=admin;area=packages;get;sa=add" method="post" accept-charset="', $context['character_set'], '">
|
|
|
|
+ <dl class="settings">
|
|
|
|
+ <dt>
|
|
|
|
+ <strong>' . $txt['server_name'] . ':</strong>
|
|
|
|
+ </dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <input type="text" name="servername" size="44" value="SMF" class="input_text">
|
|
|
|
+ </dd>
|
|
|
|
+ <dt>
|
|
|
|
+ <strong>' . $txt['serverurl'] . ':</strong>
|
|
|
|
+ </dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <input type="text" name="serverurl" size="44" value="http://" class="input_text">
|
|
|
|
+ </dd>
|
|
|
|
+ </dl>
|
|
|
|
+ <div class="righttext">
|
|
|
|
+ <input type="submit" value="' . $txt['add_server'] . '" class="button_submit">
|
|
|
|
+ <input type="hidden" name="' . $context['session_var'] . '" value="' . $context['session_id'] . '">
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </fieldset>
|
|
|
|
+ <fieldset>
|
|
|
|
+ <legend>', $txt['package_download_by_url'], '</legend>
|
|
|
|
+ <form action="', $scripturl, '?action=admin;area=packages;get;sa=download;byurl;', $context['session_var'], '=', $context['session_id'], '" method="post" accept-charset="', $context['character_set'], '">
|
|
|
|
+ <dl class="settings">
|
|
|
|
+ <dt>
|
|
|
|
+ <strong>' . $txt['serverurl'] . ':</strong>
|
|
|
|
+ </dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <input type="text" name="package" size="44" value="http://" class="input_text">
|
|
|
|
+ </dd>
|
|
|
|
+ <dt>
|
|
|
|
+ <strong>', $txt['package_download_filename'], ':</strong>
|
|
|
|
+ </dt>
|
|
|
|
+ <dd>
|
|
|
|
+ <input type="text" name="filename" size="44" class="input_text"><br>
|
|
|
|
+ <span class="smalltext">', $txt['package_download_filename_info'], '</span>
|
|
|
|
+ </dd>
|
|
|
|
+ </dl>
|
|
|
|
+ <div class="righttext">
|
|
|
|
+ <input type="submit" value="', $txt['download'], '" class="button_submit">
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </fieldset>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>';
|
|
</div>';
|