Skip to content

Commit 629f148

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
2 parents 7d72427 + c7cc518 commit 629f148

File tree

7 files changed

+49
-14
lines changed

7 files changed

+49
-14
lines changed

interface/lib/classes/remote.d/aps.inc.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public function sites_aps_update_package_list($session_id)
4343
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
4444
return false;
4545
}
46-
47-
require_once '../../../lib/config.inc.php';
46+
4847
$app->load('aps_crawler');
4948

5049
$aps = new ApsCrawler($app, true); // true = Interface mode, false = Server mode

interface/web/sites/lib/lang/en_aps.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $wb['installation_txt'] = 'Installation';
2828
$wb['install_location_txt'] = 'Install location';
2929
$wb['btn_install_txt'] = 'Install';
3030
$wb['btn_cancel_txt'] = 'Cancel';
31-
$wb['acceptance_txt'] = 'Acceptance';
31+
$wb['acceptance_txt'] = 'I accept the license';
3232
$wb['acceptance_text_txt'] = 'Yes, i\'ve read the license and agree.';
3333
$wb['install_language_txt'] = 'Interface language';
3434
$wb['new_database_password_txt'] = 'New database password';

interface/web/sites/list/aps_installedpackages.list.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
*/
3030

31+
// Load the APS language file
32+
$lngfile = 'lib/lang/'.$app->functions->check_language($_SESSION['s']['language']).'_aps.lng';
33+
require_once $lngfile;
34+
$app->tpl->setVar($wb);
35+
$app->load_language_file('web/sites/'.$lngfile);
36+
3137
$liste['name'] = 'aps_instances'; // Name of the list
3238
$liste['table'] = 'aps_instances'; // Database table
3339
$liste['table_idx'] = 'id'; // Table index
@@ -85,9 +91,9 @@
8591
'prefix' => '',
8692
'suffix' => '',
8793
'width' => '',
88-
'value' => array(INSTANCE_INSTALL => $app->lng('Installation_task'),
89-
INSTANCE_ERROR => $app->lng('Installation_error'),
90-
INSTANCE_SUCCESS => $app->lng('Installation_success'),
91-
INSTANCE_REMOVE => $app->lng('Installation_remove')),
94+
'value' => array(INSTANCE_INSTALL => $app->lng('installation_task_txt'),
95+
INSTANCE_ERROR => $app->lng('installation_error_txt'),
96+
INSTANCE_SUCCESS => $app->lng('installation_success_txt'),
97+
INSTANCE_REMOVE => $app->lng('installation_remove_txt')),
9298
'table' => 'aps_instances');
9399
?>

interface/web/sites/templates/aps_install_package.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h1>
5757
<input type="hidden" name="install" value="0" />
5858
<div class="clear">
5959
<div class="right">
60-
<button class="btn btn-default formbutton-success" type="button" value="{tmpl_var name='btn_install_txt'}" name="btn_install" onclick="document.pageForm.install.value=1; ISPConfig.submitForm('pageForm','sites/aps_install_package.php?id={tmpl_var name='pkg_id'}');">{tmpl_var name='btn_install_txt'}</button>
60+
<button class="btn btn-default formbutton-success positive" type="button" value="{tmpl_var name='btn_install_txt'}" name="btn_install" onclick="document.pageForm.install.value=1; ISPConfig.submitForm('pageForm','sites/aps_install_package.php?id={tmpl_var name='pkg_id'}');">{tmpl_var name='btn_install_txt'}</button>
6161
<button class="btn btn-default formbutton-default" type="button" value="{tmpl_var name='btn_cancel_txt'}" data-load-content="sites/aps_availablepackages_list.php">{tmpl_var name='btn_cancel_txt'}</button>
6262
</div>
6363
</div>

interface/web/sites/templates/aps_packages_list.htm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1>{tmpl_var name="list_head_txt"}</h1>
66
<table class="table">
77
<thead class="dark form-group-sm">
88
<tr>
9-
<th>{tmpl_var name='name_txt'}</th>
9+
<th colspan="2">{tmpl_var name='name_txt'}</th>
1010
<th>{tmpl_var name='version_txt'}</th>
1111
<th>{tmpl_var name='category_txt'}</th>
1212
<tmpl_if name='is_admin'>
@@ -15,7 +15,7 @@ <h1>{tmpl_var name="list_head_txt"}</h1>
1515
<th class="small-col text-right">&nbsp;</th>
1616
</tr>
1717
<tr>
18-
<td><input class="form-control" type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td>
18+
<td colspan="2"><input class="form-control" type="text" name="search_name" value="{tmpl_var name='search_name'}" /></td>
1919
<td><input class="form-control" type="text" name="search_version" value="{tmpl_var name='search_version'}" /></td>
2020
<td><select class="form-control" name="search_category" onChange="ISPConfig.submitForm('pageForm','sites/aps_availablepackages_list.php');">{tmpl_var name='search_category'}</select></td>
2121
<tmpl_if name='is_admin'>
@@ -27,7 +27,7 @@ <h1>{tmpl_var name="list_head_txt"}</h1>
2727
<tbody>
2828
<tmpl_loop name='records'>
2929
<tr>
30-
<td><a href="#" data-load-content="sites/aps_packagedetails_show.php?id={tmpl_var name='id'}">{tmpl_var name='name'}</a></td>
30+
<td colspan="2"><a href="#" data-load-content="sites/aps_packagedetails_show.php?id={tmpl_var name='id'}">{tmpl_var name='name'}</a></td>
3131
<td>{tmpl_var name='version'}-{tmpl_var name='release'}</td>
3232
<td>{tmpl_var name='category'}</td>
3333
<tmpl_if name='is_admin'>

remoting_client/API-docs/navigation.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html><head>
33
<title>ISCPConfig 3 API Functions</title>
44

5-
6-
5+
6+
77
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
88

9-
9+
1010
<style type="text/css">
1111
<!--
1212
.command {
@@ -200,6 +200,7 @@ <h3>S</h3>
200200
<p><a href="server_get_php_versions.html" target="content">server_get_php_versions</a></p>
201201
<p><a href="server_get_serverid_by_ip.html" target="content">server_get_serverid_by_ip</a></p>
202202
<p><a href="sites_aps_available_packages_list.html" target="content">sites_aps_available_packages_list</a></p>
203+
<p><a href="sites_aps_change_package_status.html" target="content">sites_aps_change_package_status</a></p>
203204
<p><a href="sites_aps_get_package_details.html" target="content">sites_aps_get_package_details</a></p>
204205
<p><a href="sites_aps_get_package_file.html" target="content">sites_aps_get_package_file</a></p>
205206
<p><a href="sites_aps_get_package_settings.html" target="content">sites_aps_get_package_settings</a></p>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+
<html><head><title>ISPConfig 3 remote API documentation</title>
3+
4+
5+
6+
7+
8+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9+
<link rel="stylesheet" type="text/css" href="definitionen.css">
10+
<style type="text/css">
11+
</style></head>
12+
13+
<body>
14+
<div style="padding:40px">
15+
<h1>sites_aps_change_package_status(<span class="var">$session_id</span>, <span class="var">$primary_id</span>, <span class="var">$params</span>);</h1>
16+
<br>
17+
<p class="headgrp">Description: </p>
18+
<p class="margin"> Changes the status for specified APS package. Supply the APS package ID in $primary_id.</p><br>
19+
<p class="headgrp">Input Variables: </p>
20+
<p class="margin"> <span class="var">$session_id</span>, <span class="var">$primary_id</span>, <span class="var">$params</span></p>
21+
<p class="headgrp">Parameters (in <span class="var">$params</span>): </p>
22+
<p class="margin"> package_status&nbsp;&nbsp;(<span class="paratype">int</span>) - can be 1 (= PACKAGE_LOCKED) or 2 (= PACKAGE_ENABLED)</p>
23+
<p class="headgrp">Output: </p>
24+
<p class="margin"> Returns true package status was changed.</p>
25+
<!--<b>Output:</b>
26+
<p style="margin-left:100px">Gives a record of </p> -->
27+
</div>
28+
29+
</body></html>

0 commit comments

Comments
 (0)