initial commit of file from CVS for smeserver-webhosting on Sat Sep 7 16:45:03 AEST 2024
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<div id='wh_list'>
|
||||
|
||||
<p>
|
||||
%=l 'wh_FIRSTPAGE_DESC'
|
||||
<br><br>
|
||||
</p>
|
||||
|
||||
% my $numIbays = @$ibays;
|
||||
% if ($numIbays == 0){
|
||||
%=l 'wh_NO_IBAYS'
|
||||
% } else {
|
||||
<table class="sme-border TableSort"><thead>
|
||||
<tr>
|
||||
<th class='sme-border'>
|
||||
%=l 'NAME'
|
||||
</th>
|
||||
<th class='sme-border'>
|
||||
%=l 'DESCRIPTION'
|
||||
</th>
|
||||
<th class='sme-border'>
|
||||
%=l 'ACTION'
|
||||
</th>
|
||||
</tr>
|
||||
</thead><tbody>
|
||||
% foreach my $ibay (@$ibays)
|
||||
% {
|
||||
% my $modifiable = $ibay->prop('Modifiable') || 'yes';
|
||||
<tr>
|
||||
%= t td => (class => 'sme-border') => $ibay->key
|
||||
%= t td => (class => 'sme-border') => $ibay->prop('Name')
|
||||
% my $actionModify = ' ';
|
||||
% if ($modifiable eq 'yes') {
|
||||
% $actionModify = "<a href='webhosting2?CsrfDef=TOKEN&trt=UPD&ibay=" . $ibay->key . "'>" . l('MODIFY') . "</a>";
|
||||
% }
|
||||
<td class='sme-border'><%= $c->render_to_string(inline => $actionModify) %></td>
|
||||
|
||||
</tr>
|
||||
% }
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<%} %>
|
||||
|
||||
%= hidden_field 'trt' => $wh_datas->{trt}
|
||||
|
||||
</div>
|
@@ -0,0 +1,149 @@
|
||||
<div id='wh_upd'>
|
||||
|
||||
%= form_for '/webhosting' => (method => 'POST') => begin
|
||||
<p>
|
||||
<h2>
|
||||
%=l 'wh_ADD_TITLE'
|
||||
</h2>
|
||||
<br>
|
||||
%=l 'wh_NAME_FIELD_DESC'
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<span class=label>
|
||||
%=l 'wh_NAME_LABEL', class => 'label'
|
||||
</span><span class=data>
|
||||
%= $wh_datas->{ibay}, class => 'data'
|
||||
</span>
|
||||
</p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_INDEXES'
|
||||
</span><span class=data>
|
||||
% param 'indexes' => $wh_datas->{indexes} unless param 'indexes';
|
||||
%= select_field 'indexes' => $c->print_options('Indexes'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_FOLLOWSYMLINKS'
|
||||
</span><span class=data>
|
||||
% param 'followSymLinks' => $wh_datas->{followsymLinks} unless param 'followSymLinks';
|
||||
%= select_field 'followSymLinks' => $c->print_options('FollowSymLinks'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_ALLOWOVERRIDE'
|
||||
</span><span class=data>
|
||||
% param 'allowOverride' => $wh_datas->{allowoverride} unless param 'allowOverride';
|
||||
%= select_field 'allowOverride' => $c->print_options('AllowOverride'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><%=l 'wh_DESC_DAV_SETTINGS', class => 'label'%></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_ENABLE_MOD_DAV'
|
||||
</span><span class=data>
|
||||
% param 'modDav' => $wh_datas->{moddav} unless param 'modDav';
|
||||
%= select_field 'modDav' => $c->print_options('ModDav'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><%=l 'wh_DESC_PHP_SETTINGS', class => 'label'%></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_PHPVERSION'
|
||||
</span><span class=data>
|
||||
% param 'phpVersion' => $wh_datas->{phpversion} unless param 'phpVersion';
|
||||
%= select_field 'phpVersion' => $c->get_php_options(), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_ALLOWURLFOPEN'
|
||||
</span><span class=data>
|
||||
% param 'allowUrlFopen' => $wh_datas->{allowurlfopen} unless param 'allowUrlFopen';
|
||||
%= select_field 'allowUrlFopen' => $c->print_options('AllowUrlFopen'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_MEMORYLIMIT'
|
||||
</span><span class=data>
|
||||
% param 'memorylimit' => $wh_datas->{memorylimit} unless param 'memorylimit';
|
||||
%= select_field 'memorylimit' => $c->print_options('MemoryLimit'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_FILEUPLOAD'
|
||||
</span><span class=data>
|
||||
% param 'fileupload' => $wh_datas->{fileupload} unless param 'fileupload';
|
||||
%= select_field 'fileupload' => $c->print_options('FileUpload'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_UPLOADMAXFILESIZE'
|
||||
</span><span class=data>
|
||||
% param 'uploadmaxfilesize' => $wh_datas->{uploadmaxfilesize} unless param 'uploadmaxfilesize';
|
||||
%= select_field 'uploadmaxfilesize' => $c->print_options('UploadMaxFilesize'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_POSTMAXSIZE'
|
||||
</span><span class=data>
|
||||
% param 'postmaxsize' => $wh_datas->{postmaxsize} unless param 'postmaxsize';
|
||||
%= select_field 'postmaxsize' => $c->print_options('PostMaxSize'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_MAXEXECUTIONTIME'
|
||||
</span><span class=data>
|
||||
% param 'maxexecutiontime' => $wh_datas->{maxexecutiontime} unless param 'maxexecutiontime';
|
||||
%= select_field 'maxexecutiontime' => $c->print_options('MaxExecutionTime'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_MAXINPUTTIME'
|
||||
</span><span class=data>
|
||||
% param 'maxinputtime' => $wh_datas->{maxinputtime} unless param 'maxinputtime';
|
||||
%= select_field 'maxinputtime' => $c->print_options('MaxInputTime'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_ALLOWPHTML'
|
||||
</span><span class=data>
|
||||
% param 'allowphtml' => $wh_datas->{allowphtml} unless param 'allowphtml';
|
||||
%= select_field 'allowphtml' => $c->print_options('AllowPHTML'), class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_MAILFORCESENDER'
|
||||
</span><span class=data>
|
||||
% param 'mailforcesender' => $wh_datas->{mailforcesender} unless param 'mailforcesender';
|
||||
%=text_field 'mailforcesender' => size => '60', class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_DISABLEDFUNCTIONS'
|
||||
</span><span class=data>
|
||||
% param 'disabledfunctions' => $wh_datas->{disabledfunctions} unless param 'disabledfunctions';
|
||||
%=text_field 'disabledfunctions' => size => '60', class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><%= $c->print_disabledfunctions() %></p>
|
||||
|
||||
<p><span class=label>
|
||||
%=l 'wh_PHPBASEDIR'
|
||||
</span><span class=data>
|
||||
% param 'phpbasedir' => $wh_datas->{phpbasedir} unless param 'phpbasedir';
|
||||
%=text_field 'phpbasedir' => size => '60', class => 'input'
|
||||
<br></span></p>
|
||||
|
||||
<p><%= $c->print_phpbasedir() %></p>
|
||||
|
||||
<div class='center'>
|
||||
%= submit_button l('SAVE'), class => 'action'
|
||||
</div>
|
||||
|
||||
%= hidden_field 'trt' => $wh_datas->{trt}
|
||||
%= hidden_field 'ibay' => $wh_datas->{ibay}
|
||||
|
||||
% end
|
||||
|
||||
</div>
|
@@ -0,0 +1,33 @@
|
||||
% layout 'default', title => "Sme server 2 - webhosting";
|
||||
|
||||
% content_for 'module' => begin
|
||||
<div id="module" class="module panel-webhosting">
|
||||
|
||||
% if ($config->{debug} == 1) {
|
||||
<p>
|
||||
%= dumper $c->current_route
|
||||
%= dumper $wh_datas
|
||||
</p>
|
||||
% }
|
||||
|
||||
% if ( stash 'error' ) {
|
||||
<br><div class=sme-error>
|
||||
%= $c->render_to_string(inline => stash 'error')
|
||||
</div>
|
||||
%}
|
||||
|
||||
<h1><%= $title%></h1>
|
||||
|
||||
% if ( stash 'modul' ) {
|
||||
%= $c->render_to_string(inline => stash 'modul' );
|
||||
% }
|
||||
|
||||
% if ($wh_datas->{trt} eq 'UPD') {
|
||||
%= include 'partials/_wh_upd'
|
||||
%} else {
|
||||
%= include 'partials/_wh_list'
|
||||
%}
|
||||
|
||||
</div>
|
||||
%end
|
||||
|
Reference in New Issue
Block a user