Merge pull request #141 from BNoiZe/master
Moving "add"-links to top, removing unused froxlorclient
This commit is contained in:
@@ -1,369 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This file is part of the Froxlor project.
|
|
||||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the COPYING
|
|
||||||
* file that was distributed with this source code. You can also view the
|
|
||||||
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
||||||
*
|
|
||||||
* @copyright (c) the authors
|
|
||||||
* @author Michael Kaufmann <mkaufmann@nutime.de>
|
|
||||||
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
||||||
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
||||||
* @package Multiserver
|
|
||||||
*
|
|
||||||
* @link http://www.nutime.de/
|
|
||||||
* @since 0.9.14-svn8
|
|
||||||
*
|
|
||||||
* Multiserver - FroxlorClient-Class
|
|
||||||
*/
|
|
||||||
|
|
||||||
class froxlorclient
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Userinfo
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
private $userinfo = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Database handler
|
|
||||||
* @var db
|
|
||||||
*/
|
|
||||||
private $db = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Client ID
|
|
||||||
* @var cid
|
|
||||||
*/
|
|
||||||
private $cid = -1;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Client Data Array
|
|
||||||
* @var c_data
|
|
||||||
*/
|
|
||||||
private $c_data = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Client Settings_Data Array
|
|
||||||
* @var s_data
|
|
||||||
*/
|
|
||||||
private $s_data = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Client-Object-Array
|
|
||||||
* @var clients
|
|
||||||
*/
|
|
||||||
static private $clients = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Class constructor.
|
|
||||||
*
|
|
||||||
* @param array $userinfo userdetails array of logged in user
|
|
||||||
* @param resource $db database-object
|
|
||||||
* @param int $cid client-id
|
|
||||||
*/
|
|
||||||
private function __construct($userinfo, $db, $cid = -1)
|
|
||||||
{
|
|
||||||
$this->userinfo = $userinfo;
|
|
||||||
$this->db = $db;
|
|
||||||
$this->cid = $cid;
|
|
||||||
|
|
||||||
// read data from database
|
|
||||||
$this->_readData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* static function to initialize the class using
|
|
||||||
* singleton design pattern
|
|
||||||
*
|
|
||||||
* @param array $_usernfo userdetails array of logged in user
|
|
||||||
* @param resource $_db database-object
|
|
||||||
* @param int $_cid client-id
|
|
||||||
*/
|
|
||||||
static public function getInstance($_usernfo, $_db, $_cid)
|
|
||||||
{
|
|
||||||
if(!isset(self::$clients[$_cid]))
|
|
||||||
{
|
|
||||||
self::$clients[$_cid] = new froxlorclient($_usernfo, $_db, $_cid);
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$clients[$_cid];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* return an array of enabled froxlor-client ids
|
|
||||||
*
|
|
||||||
* @param resource mysql-object
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
static public function getFroxlorClients($_db = null)
|
|
||||||
{
|
|
||||||
$sql = "SELECT `id` FROM `".TABLE_FROXLOR_CLIENTS."` WHERE `enabled` = '1';";
|
|
||||||
$res = $_db->query($sql);
|
|
||||||
$result = array();
|
|
||||||
while($_r = mysql_fetch_array($res))
|
|
||||||
{
|
|
||||||
$result[] = $_r['id'];
|
|
||||||
}
|
|
||||||
return $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Insert new client to database
|
|
||||||
*/
|
|
||||||
public function Insert()
|
|
||||||
{
|
|
||||||
$this->db->query("INSERT INTO
|
|
||||||
`" . TABLE_FROXLOR_CLIENTS . "`
|
|
||||||
SET
|
|
||||||
`name` = '" . $this->db->escape($this->Get('name')) . "',
|
|
||||||
`desc` = '" . $this->db->escape($this->Get('desc')) . "',
|
|
||||||
`enabled` = '" . (int)$this->Get('enabled') . "';
|
|
||||||
");
|
|
||||||
$this->cid = $this->db->insert_id();
|
|
||||||
return $this->cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update data in database
|
|
||||||
*/
|
|
||||||
public function Update()
|
|
||||||
{
|
|
||||||
$this->db->query("UPDATE
|
|
||||||
`" . TABLE_FROXLOR_CLIENTS . "`
|
|
||||||
SET
|
|
||||||
`name` = '" . $this->db->escape($this->Get('name')) . "',
|
|
||||||
`desc` = '" . $this->db->escape($this->Get('desc')) . "',
|
|
||||||
`enabled` = '" . (int)$this->Get('enabled') . "'
|
|
||||||
WHERE
|
|
||||||
`id` = '" . (int)$this->cid . "';
|
|
||||||
");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This function removes a Froxlor-Client and its settings
|
|
||||||
* from the database. Optionally the Froxlor-Client data
|
|
||||||
* can be removed by setting the $delete_me parameter
|
|
||||||
*
|
|
||||||
* @param bool $delete_me removes client-data (not customer data) on the client
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*
|
|
||||||
* @TODO
|
|
||||||
* - remove client settings in panel_settings (sid = client-id)
|
|
||||||
* - implement $delete_me parameter
|
|
||||||
*/
|
|
||||||
public function Delete($delete_me = false)
|
|
||||||
{
|
|
||||||
// delete froxlor-client from the database
|
|
||||||
$this->db->query('DELETE FROM
|
|
||||||
`' . TABLE_FROXLOR_CLIENTS . '`
|
|
||||||
WHERE
|
|
||||||
`id` = "' . (int)$this->cid . '";
|
|
||||||
');
|
|
||||||
|
|
||||||
// Delete settings from panel_settings
|
|
||||||
$this->db->query('DELETE FROM
|
|
||||||
`' . TABLE_PANEL_SETTINGS . '`
|
|
||||||
WHERE
|
|
||||||
`sid` = "' . (int)$this->cid . '";
|
|
||||||
');
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* return the complete client-settings array
|
|
||||||
* for the settings page
|
|
||||||
*/
|
|
||||||
public function getSettingsArray()
|
|
||||||
{
|
|
||||||
return $this->Get('settings');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* get a value from the internal data array
|
|
||||||
*
|
|
||||||
* @param string $_var
|
|
||||||
* @param string $_vartrusted
|
|
||||||
*
|
|
||||||
* @return mixed or null if not found
|
|
||||||
*/
|
|
||||||
public function Get($_var = '', $_vartrusted = false)
|
|
||||||
{
|
|
||||||
if($_var != '')
|
|
||||||
{
|
|
||||||
if(!$_vartrusted)
|
|
||||||
{
|
|
||||||
$_var = htmlspecialchars($_var);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($this->c_data[$_var]))
|
|
||||||
{
|
|
||||||
return $this->c_data[$_var];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* set a value in the internal data array
|
|
||||||
*
|
|
||||||
* @param string $_var
|
|
||||||
* @param string $_value
|
|
||||||
* @param bool $_vartrusted
|
|
||||||
* @param bool $_valuetrusted
|
|
||||||
*/
|
|
||||||
public function Set($_var = '', $_value = '', $_vartrusted = false, $_valuetrusted = false)
|
|
||||||
{
|
|
||||||
if($_var != ''
|
|
||||||
&& $_value != ''
|
|
||||||
) {
|
|
||||||
if(!$_vartrusted)
|
|
||||||
{
|
|
||||||
$_var = htmlspecialchars($_var);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_valuetrusted)
|
|
||||||
{
|
|
||||||
$_value = htmlspecialchars($_value);
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->c_data[$_var] = $_value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* get a value from the internal settings array
|
|
||||||
*
|
|
||||||
* @param string $_grp
|
|
||||||
* @param string $_var
|
|
||||||
* @param bool $_grptrusted
|
|
||||||
* @param bool $_vartrusted
|
|
||||||
*
|
|
||||||
* @return mixed or null if not found
|
|
||||||
*/
|
|
||||||
public function getSetting($_grp = '', $_var = '', $_grptrusted = false, $_vartrusted = false)
|
|
||||||
{
|
|
||||||
if($_grp != ''
|
|
||||||
&& $_var != ''
|
|
||||||
) {
|
|
||||||
|
|
||||||
if(!$_grptrusted)
|
|
||||||
{
|
|
||||||
$_grp = htmlspecialchars($_grp);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_vartrusted)
|
|
||||||
{
|
|
||||||
$_var = htmlspecialchars($_var);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($this->c_data['settings'][$_grp][$_var]))
|
|
||||||
{
|
|
||||||
return $this->c_data['settings'][$_grp][$_var];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* set a value in the internal settings array
|
|
||||||
*
|
|
||||||
* @param string $_grp
|
|
||||||
* @param string $_var
|
|
||||||
* @param string $_value
|
|
||||||
* @param bool $_grptrusted
|
|
||||||
* @param bool $_vartrusted
|
|
||||||
* @param bool $_valuetrusted
|
|
||||||
*/
|
|
||||||
public function setSetting($_grp = '', $_var = '', $_value = '', $_grptrusted = false, $_vartrusted = false, $_valuetrusted = false)
|
|
||||||
{
|
|
||||||
if($_grp != ''
|
|
||||||
&& $_var != ''
|
|
||||||
&& $_value != ''
|
|
||||||
) {
|
|
||||||
if(!$_grptrusted)
|
|
||||||
{
|
|
||||||
$_grp = htmlspecialchars($_grp);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_vartrusted)
|
|
||||||
{
|
|
||||||
$_var = htmlspecialchars($_var);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!$_valuetrusted)
|
|
||||||
{
|
|
||||||
$_value = htmlspecialchars($_value);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!isset($this->c_data['settings']) || !is_array($this->c_data['settings'])) {
|
|
||||||
$this->c_data['settings'] = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!isset($this->c_data['settings'][$_grp]) || !is_array($this->c_data['settings'][$_grp])) {
|
|
||||||
$this->c_data['settings'][$_grp] = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->c_data['settings'][$_grp][$_var] = $_value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* read client settings from database
|
|
||||||
*/
|
|
||||||
private function _readSettings()
|
|
||||||
{
|
|
||||||
if(isset($this->cid)
|
|
||||||
&& $this->cid != - 1
|
|
||||||
) {
|
|
||||||
$spath = makeCorrectDir(dirname(dirname(dirname(dirname(__FILE__)))));
|
|
||||||
$this->s_data = loadConfigArrayDir(
|
|
||||||
makeCorrectDir($spath.'/actions/admin/settings/'),
|
|
||||||
makeCorrectDir($spath.'/actions/multiserver/clientsettings/')
|
|
||||||
);
|
|
||||||
$settings = loadSettings($this->s_data, $this->db, $this->cid);
|
|
||||||
|
|
||||||
foreach($settings as $group => $fv)
|
|
||||||
{
|
|
||||||
foreach($fv as $field => $value)
|
|
||||||
{
|
|
||||||
$this->setSetting($group, $field, $value, true, true, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Read client data from database.
|
|
||||||
*/
|
|
||||||
private function _readData()
|
|
||||||
{
|
|
||||||
if(isset($this->cid)
|
|
||||||
&& $this->cid != - 1
|
|
||||||
) {
|
|
||||||
$_client = $this->db->query_first('SELECT * FROM `' . TABLE_FROXLOR_CLIENTS . '` WHERE `id` = "' . $this->cid . '"');
|
|
||||||
|
|
||||||
foreach($_client as $field => $value)
|
|
||||||
{
|
|
||||||
$this->Set($field, $value, true, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// after we have details about the client,
|
|
||||||
// we need its settings too
|
|
||||||
$this->_readSettings();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclient_settings']}
|
|
||||||
"<a href="$filename?s=$s&page=$page&action=view&id={$id}">{$client->Get('name')}</a>"</b>
|
|
||||||
[<a href="$filename?page=clients&action=settings&part=&s=$s&id={$id}">{$lng['admin']['configfiles']['compactoverview']}</a>]</td>
|
|
||||||
</tr>
|
|
||||||
$fields
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<if $_part != ''>
|
|
||||||
<input type="hidden" name="part" value="{$_part}" />
|
|
||||||
</if>
|
|
||||||
<input type="hidden" name="id" value="{$id}" />
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" align="center" colspan="3">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}
|
|
||||||
"<a href="$filename?s=$s&page=$page&action=view&id={$id}">{$client->Get('name')}</a>"</b>
|
|
||||||
[<a href="$filename?page=clients&action=settings&part=all&s=$s&id={$id}">{$lng['admin']['configfiles']['overview']}</a>]
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
$fields
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="3">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$title}</b>
|
|
||||||
</td>
|
|
||||||
<td class="main_field_display_small" nowrap="nowrap">{$option}</td>
|
|
||||||
<td class="main_field_display_small" nowrap="nowrap">
|
|
||||||
<if $activated == 1>
|
|
||||||
<a href="$filename?page=clients&action=settings&part=$part&s=$s&id={$server_id}">{$lng['admin']['configfiles']['serverconfiguration']}</a>
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
$header
|
|
||||||
<form action="$filename" method="post">
|
|
||||||
<input type="hidden" name="s" value="$s"/>
|
|
||||||
<input type="hidden" name="page" value="$page"/>
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_search_left" colspan="3"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']}</b></td>
|
|
||||||
<td class="maintitle_search_right" colspan="1">{$searchcode}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" style="width:70px;">#</td>
|
|
||||||
<td class="field_display">{$lng['admin']['froxlorclients']['name']} {$arrowcode['name']}<br />{$lng['admin']['froxlorclients']['desc']}</td>
|
|
||||||
<td class="field_display" style="width:35px;">{$lng['admin']['froxlorclients']['enabled']} {$arrowcode['enabled']}</td>
|
|
||||||
<td class="field_display_search" style="width:250px;">{$sortcode}</td>
|
|
||||||
</tr>
|
|
||||||
$froxlorclients
|
|
||||||
<if $pagingcode != ''>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" colspan="4" style=" text-align: center; ">{$pagingcode}</td>
|
|
||||||
</tr>
|
|
||||||
</if>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['froxlorclients']['add']}</a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
$header
|
|
||||||
<form method="post" action="$filename">
|
|
||||||
<input type="hidden" name="s" value="$s" />
|
|
||||||
<input type="hidden" name="page" value="$page" />
|
|
||||||
<input type="hidden" name="action" value="$action" />
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['add']}</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['client']}</b>
|
|
||||||
</td>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name">{$lng['admin']['froxlorclients']['name']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" size="255" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['desc']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="desc"></textarea></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['enabled']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap">$client_enabled</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
|
||||||
<td class="field_name_border_left">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="Client #{$row['id']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
{$row['name']}
|
|
||||||
</a><br /><span style="font-size:80%">{$row['desc']}</span>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<if $row['enabled'] == 1>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=disableclient&id={$row['id']}" title="Quick disable">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/tick.png" alt="{$lng['panel']['yes']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=enableclient&id={$row['id']}" title="Quick enable">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/no.png" alt="{$lng['panel']['no']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/view.png" alt="{$lng['admin']['froxlorclients']['view']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
$header
|
|
||||||
<form method="post" action="$filename">
|
|
||||||
<input type="hidden" name="s" value="$s" />
|
|
||||||
<input type="hidden" name="page" value="$page" />
|
|
||||||
<input type="hidden" name="action" value="$action" />
|
|
||||||
<input type="hidden" name="id" value="$id" />
|
|
||||||
<input type="hidden" name="send" value="send" />
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['edit']}</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['client']}</b>
|
|
||||||
</td>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name">{$lng['admin']['froxlorclients']['name']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$client->Get('name')}" size="255" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['desc']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="desc">{$client->Get('desc')}</textarea></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['enabled']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap">$client_enabled</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_confirm" colspan="2"><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
$header
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" class="maintitle"><b><img src="templates/{$theme}/assets/img/title.gif" alt="" /> {$lng['admin']['multiservercronjobs']}</b></td>
|
|
||||||
</tr>
|
|
||||||
{$outstanding_tasks}
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="text-align: center;">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$client->Get('id')}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="{$client->Get('name')}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<br /><br />
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$client->Get('id')}">{$client->Get('name')}</a>
|
|
||||||
</td>
|
|
||||||
<td class="field_display">
|
|
||||||
<ul class="crontasklist">
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
$header
|
|
||||||
<form action="$filename" method="post">
|
|
||||||
<input type="hidden" name="s" value="$s"/>
|
|
||||||
<input type="hidden" name="page" value="$page"/>
|
|
||||||
<input type="hidden" name="id" value="$id"/>
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="4"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']} "{$client->Get('name')}"</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="Client #{$row['id']}" style="border:0;" />
|
|
||||||
</td>
|
|
||||||
<td class="field_display" colspan="3">
|
|
||||||
<h3>Froxlor-client "{$client->Get('name')}"</h3>
|
|
||||||
<p>{$client->Get('desc')}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left" colspan="4" style="text-align:right;">
|
|
||||||
<if $client_enabled ==1>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=settings&id={$id}" title="{$lng['admin']['froxlorclients']['settings']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/settings.png" alt="{$lng['admin']['froxlorclients']['settings']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=deploy&id={$id}" title="{$lng['admin']['froxlorclients']['deploy']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/deploy.png" alt="{$lng['admin']['froxlorclients']['deploy']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/settings_dis.png" alt="{$lng['admin']['froxlorclients']['settings']} :: {$lng['admin']['froxlorclients']['clientdisabled']}" style="border:0;" />
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/deploy_dis.png" alt="{$lng['admin']['froxlorclients']['deploy']} :: {$lng['admin']['froxlorclients']['clientdisabled']}" style="border:0;" />
|
|
||||||
</if>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=edit&id={$id}" title="{$lng['panel']['edit']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/edit.png" alt="{$lng['panel']['edit']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=delete&id={$id}" title="{$lng['panel']['delete']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/trash.png" alt="{$lng['panel']['delete']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br /><br />
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><strong>{$lng['froxlorclient']['base_config']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
<if $client_enabled ==1>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left" colspan="2" style="text-align:right;">
|
|
||||||
{$lastrefresh}
|
|
||||||
<if $refreshactive >
|
|
||||||
<a href="$filename?s=$s&page=$page&action=refreshsysinfo&id={$id}" title="{$lng['admin']['froxlorclients']['refreshsysinfo']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/refresh.png" alt="{$lng['admin']['froxlorclients']['refreshsysinfo']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/refresh_dis.png" alt="{$lastrefresh}" style="border:0;" />
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</if>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['ipaddress']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'ipaddress')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['hostname']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'hostname')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['install_destination']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'install_destination')}</td>
|
|
||||||
</tr>
|
|
||||||
$info
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Kernel:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'kernel')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Memory:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'memory')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Swap:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'swap')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">CPU:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'cpu')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Load:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'loadavg')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Uptime:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'uptime')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Diskusage:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'diskusage')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">PHP version:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'phpversion')}</td>
|
|
||||||
</tr>
|
|
||||||
20
templates/Sparkle/admin/admins/admins.tpl
vendored
20
templates/Sparkle/admin/admins/admins.tpl
vendored
@@ -15,12 +15,10 @@ $header
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $count >
|
<div class="overviewadd">
|
||||||
<div class="overviewadd">
|
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
<a href="{$linker->getLink(array('section' => 'admins', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['admin_add']}</a>
|
||||||
<a href="{$linker->getLink(array('section' => 'admins', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['admin_add']}</a>
|
</div>
|
||||||
</div>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -55,10 +53,12 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $count >
|
||||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'admins', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['admin_add']}</a>
|
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'admins', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['admin_add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
4
templates/Sparkle/admin/domains/domains.tpl
vendored
4
templates/Sparkle/admin/domains/domains.tpl
vendored
@@ -15,7 +15,7 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && 15 < $count && 0 < $countcustomers >
|
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && $countcustomers !=0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && $countcustomers !=0 >
|
<if ($userinfo['domains_used'] < $userinfo['domains'] || $userinfo['domains'] == '-1') && 15 < $count && 0 < $countcustomers >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'domains', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['domain_add']}</a>
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclient_settings']}
|
|
||||||
"<a href="$filename?s=$s&page=$page&action=view&id={$id}">{$client->Get('name')}</a>"</b>
|
|
||||||
[<a href="$filename?page=clients&action=settings&part=&s=$s&id={$id}">{$lng['admin']['configfiles']['compactoverview']}</a>]</td>
|
|
||||||
</tr>
|
|
||||||
$fields
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="2">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<if $_part != ''>
|
|
||||||
<input type="hidden" name="part" value="{$_part}" />
|
|
||||||
</if>
|
|
||||||
<input type="hidden" name="id" value="{$id}" />
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" align="center" colspan="3">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['configfiles']['serverconfiguration']}
|
|
||||||
"<a href="$filename?s=$s&page=$page&action=view&id={$id}">{$client->Get('name')}</a>"</b>
|
|
||||||
[<a href="$filename?page=clients&action=settings&part=all&s=$s&id={$id}">{$lng['admin']['configfiles']['overview']}</a>]
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
$fields
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap" colspan="3">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /> <input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$title}</b>
|
|
||||||
</td>
|
|
||||||
<td class="main_field_display_small" nowrap="nowrap">{$option}</td>
|
|
||||||
<td class="main_field_display_small" nowrap="nowrap">
|
|
||||||
<if $activated == 1>
|
|
||||||
<a href="$filename?page=clients&action=settings&part=$part&s=$s&id={$server_id}">{$lng['admin']['configfiles']['serverconfiguration']}</a>
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
$header
|
|
||||||
<form action="$filename" method="post">
|
|
||||||
<input type="hidden" name="s" value="$s"/>
|
|
||||||
<input type="hidden" name="page" value="$page"/>
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_search_left" colspan="3"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']}</b></td>
|
|
||||||
<td class="maintitle_search_right" colspan="1">{$searchcode}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" style="width:70px;">#</td>
|
|
||||||
<td class="field_display">{$lng['admin']['froxlorclients']['name']} {$arrowcode['name']}<br />{$lng['admin']['froxlorclients']['desc']}</td>
|
|
||||||
<td class="field_display" style="width:35px;">{$lng['admin']['froxlorclients']['enabled']} {$arrowcode['enabled']}</td>
|
|
||||||
<td class="field_display_search" style="width:250px;">{$sortcode}</td>
|
|
||||||
</tr>
|
|
||||||
$froxlorclients
|
|
||||||
<if $pagingcode != ''>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" colspan="4" style=" text-align: center; ">{$pagingcode}</td>
|
|
||||||
</tr>
|
|
||||||
</if>
|
|
||||||
<tr>
|
|
||||||
<td class="field_display_border_left" colspan="4"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['froxlorclients']['add']}</a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
$header
|
|
||||||
<form method="post" action="$filename">
|
|
||||||
<input type="hidden" name="s" value="$s" />
|
|
||||||
<input type="hidden" name="page" value="$page" />
|
|
||||||
<input type="hidden" name="action" value="$action" />
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['add']}</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['client']}</b>
|
|
||||||
</td>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name">{$lng['admin']['froxlorclients']['name']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="" size="255" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['desc']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="desc"></textarea></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['enabled']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap">$client_enabled</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_confirm" colspan="2"><input type="hidden" name="send" value="send" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
|
||||||
<td class="field_name_border_left">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="Client #{$row['id']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
{$row['name']}
|
|
||||||
</a><br /><span style="font-size:80%">{$row['desc']}</span>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<if $row['enabled'] == 1>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=disableclient&id={$row['id']}" title="Quick disable">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/tick.png" alt="{$lng['panel']['yes']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=enableclient&id={$row['id']}" title="Quick enable">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/no.png" alt="{$lng['panel']['no']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
<td class="field_name">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/view.png" alt="{$lng['admin']['froxlorclients']['view']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
$header
|
|
||||||
<form method="post" action="$filename">
|
|
||||||
<input type="hidden" name="s" value="$s" />
|
|
||||||
<input type="hidden" name="page" value="$page" />
|
|
||||||
<input type="hidden" name="action" value="$action" />
|
|
||||||
<input type="hidden" name="id" value="$id" />
|
|
||||||
<input type="hidden" name="send" value="send" />
|
|
||||||
<table cellpadding="5" cellspacing="4" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['edit']}</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle_apply_left">
|
|
||||||
<b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['admin']['froxlorclients']['client']}</b>
|
|
||||||
</td>
|
|
||||||
<td class="maintitle_apply_right" nowrap="nowrap">
|
|
||||||
<input class="bottom" type="reset" value="{$lng['panel']['reset']}" /><input class="bottom" type="submit" value="{$lng['panel']['save']}" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name">{$lng['admin']['froxlorclients']['name']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><input type="text" class="text" name="name" value="{$client->Get('name')}" size="255" /></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['desc']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap"><textarea class="textarea_border" rows="12" cols="60" name="desc">{$client->Get('desc')}</textarea></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_name" valign="top">{$lng['admin']['froxlorclients']['enabled']}:</td>
|
|
||||||
<td class="main_field_display" nowrap="nowrap">$client_enabled</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="main_field_confirm" colspan="2"><input class="bottom" type="submit" value="{$lng['panel']['save']}" /></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
$header
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" class="maintitle"><b><img src="templates/{$theme}/assets/img/title.gif" alt="" /> {$lng['admin']['multiservercronjobs']}</b></td>
|
|
||||||
</tr>
|
|
||||||
{$outstanding_tasks}
|
|
||||||
</table>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left" style="text-align: center;">
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$client->Get('id')}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="{$client->Get('name')}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<br /><br />
|
|
||||||
<a href="$filename?s=$s&page=$page&action=view&id={$client->Get('id')}">{$client->Get('name')}</a>
|
|
||||||
</td>
|
|
||||||
<td class="field_display">
|
|
||||||
<ul class="crontasklist">
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
$header
|
|
||||||
<form action="$filename" method="post">
|
|
||||||
<input type="hidden" name="s" value="$s"/>
|
|
||||||
<input type="hidden" name="page" value="$page"/>
|
|
||||||
<input type="hidden" name="id" value="$id"/>
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="4"><b><img src="templates/${theme}/assets/img/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']} "{$client->Get('name')}"</b></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/server.png" alt="Client #{$row['id']}" style="border:0;" />
|
|
||||||
</td>
|
|
||||||
<td class="field_display" colspan="3">
|
|
||||||
<h3>Froxlor-client "{$client->Get('name')}"</h3>
|
|
||||||
<p>{$client->Get('desc')}</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left" colspan="4" style="text-align:right;">
|
|
||||||
<if $client_enabled ==1>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=settings&id={$id}" title="{$lng['admin']['froxlorclients']['settings']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/settings.png" alt="{$lng['admin']['froxlorclients']['settings']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=deploy&id={$id}" title="{$lng['admin']['froxlorclients']['deploy']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/deploy.png" alt="{$lng['admin']['froxlorclients']['deploy']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/settings_dis.png" alt="{$lng['admin']['froxlorclients']['settings']} :: {$lng['admin']['froxlorclients']['clientdisabled']}" style="border:0;" />
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/deploy_dis.png" alt="{$lng['admin']['froxlorclients']['deploy']} :: {$lng['admin']['froxlorclients']['clientdisabled']}" style="border:0;" />
|
|
||||||
</if>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=edit&id={$id}" title="{$lng['panel']['edit']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/edit.png" alt="{$lng['panel']['edit']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<a href="$filename?s=$s&page=$page&action=delete&id={$id}" title="{$lng['panel']['delete']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/trash.png" alt="{$lng['panel']['delete']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<br /><br />
|
|
||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable_60">
|
|
||||||
<tr>
|
|
||||||
<td class="maintitle" colspan="2"><strong>{$lng['froxlorclient']['base_config']}</strong></td>
|
|
||||||
</tr>
|
|
||||||
<if $client_enabled ==1>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left" colspan="2" style="text-align:right;">
|
|
||||||
{$lastrefresh}
|
|
||||||
<if $refreshactive >
|
|
||||||
<a href="$filename?s=$s&page=$page&action=refreshsysinfo&id={$id}" title="{$lng['admin']['froxlorclients']['refreshsysinfo']}">
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/refresh.png" alt="{$lng['admin']['froxlorclients']['refreshsysinfo']}" style="border:0;" />
|
|
||||||
</a>
|
|
||||||
<else>
|
|
||||||
<img src="templates/{$theme}/assets/img/multiserver/refresh_dis.png" alt="{$lastrefresh}" style="border:0;" />
|
|
||||||
</if>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</if>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['ipaddress']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'ipaddress')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['hostname']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'hostname')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">{$lng['froxlorclient']['install_destination']}:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('client', 'install_destination')}</td>
|
|
||||||
</tr>
|
|
||||||
$info
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
$footer
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Kernel:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'kernel')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Memory:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'memory')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Swap:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'swap')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">CPU:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'cpu')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Load:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'loadavg')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Uptime:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'uptime')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">Diskusage:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'diskusage')}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="field_name_border_left">PHP version:</td>
|
|
||||||
<td class="field_display">{$client->getSetting('clientinfo', 'phpversion')}</td>
|
|
||||||
</tr>
|
|
||||||
@@ -15,12 +15,10 @@ $header
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $count>
|
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ipsports_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/ipsports_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['ipsandports']['add']}</a>
|
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['ipsandports']['add']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -55,10 +53,12 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $count>
|
||||||
<img src="templates/{$theme}/assets/img/icons/ipsports_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['ipsandports']['add']}</a>
|
<img src="templates/{$theme}/assets/img/icons/ipsports_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'ipsandports', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['ipsandports']['add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
13
templates/Sparkle/admin/logger/logger.tpl
vendored
13
templates/Sparkle/admin/logger/logger.tpl
vendored
@@ -15,12 +15,11 @@ $header
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $log_count >
|
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -44,10 +43,12 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<if 15 < $log_count >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/syslog_truncate.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
<a href="{$linker->getLink(array('section' => 'logger', 'page' => 'log', 'action' => 'truncate'))}">{$lng['logger']['truncate']}</a>
|
||||||
</div>
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
14
templates/Sparkle/admin/phpconfig/overview.tpl
vendored
14
templates/Sparkle/admin/phpconfig/overview.tpl
vendored
@@ -9,12 +9,10 @@ $header
|
|||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
<if 15 < $count>
|
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/phpsettings_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/phpsettings_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'phpsettings', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['phpsettings']['addnew']}</a>
|
<a href="{$linker->getLink(array('section' => 'phpsettings', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['phpsettings']['addnew']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -29,11 +27,13 @@ $header
|
|||||||
$tablecontent
|
$tablecontent
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $count>
|
||||||
<img src="templates/{$theme}/assets/img/icons/phpsettings_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'phpsettings', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['phpsettings']['addnew']}</a>
|
<img src="templates/{$theme}/assets/img/icons/phpsettings_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'phpsettings', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['phpsettings']['addnew']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
29
templates/Sparkle/admin/templates/templates.tpl
vendored
29
templates/Sparkle/admin/templates/templates.tpl
vendored
@@ -8,6 +8,13 @@ $header
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<if $add>
|
||||||
|
<div class="overviewadd">
|
||||||
|
<img src="templates/{$theme}/assets/img/icons/templates_add.png" alt="" />
|
||||||
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['templates']['template_add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -20,14 +27,6 @@ $header
|
|||||||
{$templates}
|
{$templates}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<if $add>
|
|
||||||
<div class="overviewadd">
|
|
||||||
<img src="templates/{$theme}/assets/img/icons/templates_add.png" alt="" />
|
|
||||||
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add'))}">{$lng['admin']['templates']['template_add']}</a>
|
|
||||||
</div>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
@@ -41,6 +40,13 @@ $header
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
<if $filetemplateadd>
|
||||||
|
<div class="overviewadd">
|
||||||
|
<img src="templates/{$theme}/assets/img/icons/templates_add.png" alt="" />
|
||||||
|
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add', 'files' => 'files'))}">{$lng['admin']['templates']['template_add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -52,13 +58,6 @@ $header
|
|||||||
{$filetemplates}
|
{$filetemplates}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<if $filetemplateadd>
|
|
||||||
<div class="overviewadd">
|
|
||||||
<img src="templates/{$theme}/assets/img/icons/templates_add.png" alt="" />
|
|
||||||
<a href="{$linker->getLink(array('section' => 'templates', 'page' => $page, 'action' => 'add', 'files' => 'files'))}">{$lng['admin']['templates']['template_add']}</a>
|
|
||||||
</div>
|
|
||||||
</if>
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
12
templates/Sparkle/admin/tickets/categories.tpl
vendored
12
templates/Sparkle/admin/tickets/categories.tpl
vendored
@@ -15,12 +15,10 @@ $header
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $categories_count >
|
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/categories_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/categories_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'categories', 'action' => 'addcategory'))}">{$lng['ticket']['ticket_newcateory']}</a>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'categories', 'action' => 'addcategory'))}">{$lng['ticket']['ticket_newcateory']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -51,10 +49,12 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $categories_count >
|
||||||
<img src="templates/{$theme}/assets/img/icons/categories_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'categories', 'action' => 'addcategory'))}">{$lng['ticket']['ticket_newcateory']}</a>
|
<img src="templates/{$theme}/assets/img/icons/categories_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'categories', 'action' => 'addcategory'))}">{$lng['ticket']['ticket_newcateory']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
4
templates/Sparkle/admin/tickets/tickets.tpl
vendored
4
templates/Sparkle/admin/tickets/tickets.tpl
vendored
@@ -15,7 +15,7 @@ $header
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count >
|
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && $countcustomers !=0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||||
@@ -54,7 +54,7 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && $countcustomers !=0 >
|
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||||
|
|||||||
5
templates/Sparkle/assets/css/main.css
vendored
5
templates/Sparkle/assets/css/main.css
vendored
@@ -358,10 +358,9 @@ aside.right {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.overviewsearch {
|
.overviewsearch {
|
||||||
position:absolute;
|
float: right;
|
||||||
top:125px;
|
|
||||||
right:36px;
|
|
||||||
font-size:80%;
|
font-size:80%;
|
||||||
|
text-align: right;
|
||||||
}
|
}
|
||||||
.overviewsearch input[type="text"] {
|
.overviewsearch input[type="text"] {
|
||||||
width: 150px;
|
width: 150px;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<section>
|
<section>
|
||||||
|
|
||||||
<if ($userinfo['email_autoresponder_used'] < $userinfo['email_autoresponder'] || $userinfo['email_autoresponder'] == '-1') && 15 < $count >
|
<if ($userinfo['email_autoresponder_used'] < $userinfo['email_autoresponder'] || $userinfo['email_autoresponder'] == '-1') >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/autoresponder_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/autoresponder_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'autoresponder', 'action' => 'add'))}">{$lng['autoresponder']['autoresponder_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'autoresponder', 'action' => 'add'))}">{$lng['autoresponder']['autoresponder_add']}</a>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<if ($userinfo['email_autoresponder_used'] < $userinfo['email_autoresponder'] || $userinfo['email_autoresponder'] == '-1') >
|
<if ($userinfo['email_autoresponder_used'] < $userinfo['email_autoresponder'] || $userinfo['email_autoresponder'] == '-1') && 15 < $count >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/autoresponder_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/autoresponder_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'autoresponder', 'action' => 'add'))}">{$lng['autoresponder']['autoresponder_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'autoresponder', 'action' => 'add'))}">{$lng['autoresponder']['autoresponder_add']}</a>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && 15 < $domains_count && $parentdomains_count != 0 >
|
<if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && $parentdomains_count != 0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'add'))}">{$lng['domains']['subdomain_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'add'))}">{$lng['domains']['subdomain_add']}</a>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && $parentdomains_count != 0 >
|
<if ($userinfo['subdomains_used'] < $userinfo['subdomains'] || $userinfo['subdomains'] == '-1') && 15 < $domains_count && $parentdomains_count != 0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/domain_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'add'))}">{$lng['domains']['subdomain_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'domains', 'page' => 'domains', 'action' => 'add'))}">{$lng['domains']['subdomain_add']}</a>
|
||||||
|
|||||||
5
templates/Sparkle/customer/email/emails.tpl
vendored
5
templates/Sparkle/customer/email/emails.tpl
vendored
@@ -15,7 +15,8 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && 15 < $emails_count && $emaildomains_count !=0 >
|
|
||||||
|
<if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && $emaildomains_count !=0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/email_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/email_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'add'))}">{$lng['emails']['emails_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'add'))}">{$lng['emails']['emails_add']}</a>
|
||||||
@@ -54,7 +55,7 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && $emaildomains_count !=0 >
|
<if ($userinfo['emails_used'] < $userinfo['emails'] || $userinfo['emails'] == '-1') && 15 < $emails_count && $emaildomains_count !=0 >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/email_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/email_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'add'))}">{$lng['emails']['emails_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'email', 'page' => $page, 'action' => 'add'))}">{$lng['emails']['emails_add']}</a>
|
||||||
|
|||||||
24
templates/Sparkle/customer/extras/htaccess.tpl
vendored
24
templates/Sparkle/customer/extras/htaccess.tpl
vendored
@@ -15,13 +15,11 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $count >
|
<div class="overviewadd">
|
||||||
<div class="overviewadd">
|
<img src="templates/{$theme}/assets/img/icons/htaccess_add.png" alt="" />
|
||||||
<img src="templates/{$theme}/assets/img/icons/htaccess_add.png" alt="" />
|
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htaccess', 'action' => 'add'))}">{$lng['extras']['pathoptions_add']}</a>
|
||||||
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htaccess', 'action' => 'add'))}">{$lng['extras']['pathoptions_add']}</a>
|
</div>
|
||||||
</div>
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -52,11 +50,13 @@
|
|||||||
<input type="hidden" name="s" value="$s" />
|
<input type="hidden" name="s" value="$s" />
|
||||||
<input type="hidden" name="page" value="$page" />
|
<input type="hidden" name="page" value="$page" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $count >
|
||||||
<img src="templates/{$theme}/assets/img/icons/htaccess_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htaccess', 'action' => 'add'))}">{$lng['extras']['pathoptions_add']}</a>
|
<img src="templates/{$theme}/assets/img/icons/htaccess_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htaccess', 'action' => 'add'))}">{$lng['extras']['pathoptions_add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
25
templates/Sparkle/customer/extras/htpasswds.tpl
vendored
25
templates/Sparkle/customer/extras/htpasswds.tpl
vendored
@@ -15,12 +15,11 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if 15 < $count >
|
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/htpasswd_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/htpasswd_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htpasswds', 'action' => 'add'))}">{$lng['extras']['directoryprotection_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htpasswds', 'action' => 'add'))}">{$lng['extras']['directoryprotection_add']}</a>
|
||||||
</div>
|
</div>
|
||||||
</if>
|
|
||||||
|
|
||||||
<table class="bradius">
|
<table class="bradius">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -48,12 +47,14 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="overviewadd">
|
<if 15 < $count >
|
||||||
<img src="templates/{$theme}/assets/img/icons/htpasswd_add.png" alt="" />
|
<div class="overviewadd">
|
||||||
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htpasswds', 'action' => 'add'))}">{$lng['extras']['directoryprotection_add']}</a>
|
<img src="templates/{$theme}/assets/img/icons/htpasswd_add.png" alt="" />
|
||||||
</div>
|
<a href="{$linker->getLink(array('section' => 'extras', 'page' => 'htpasswds', 'action' => 'add'))}">{$lng['extras']['directoryprotection_add']}</a>
|
||||||
|
</div>
|
||||||
|
</if>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
$footer
|
$footer
|
||||||
|
|||||||
4
templates/Sparkle/customer/ftp/accounts.tpl
vendored
4
templates/Sparkle/customer/ftp/accounts.tpl
vendored
@@ -15,7 +15,7 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') && 15 < $ftps_count >
|
<if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'ftp', 'page' => 'accounts', 'action' => 'add'))}">{$lng['ftp']['account_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'ftp', 'page' => 'accounts', 'action' => 'add'))}">{$lng['ftp']['account_add']}</a>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') >
|
<if ($userinfo['ftps_used'] < $userinfo['ftps'] || $userinfo['ftps'] == '-1') && 15 < $ftps_count >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/user_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'ftp', 'page' => 'accounts', 'action' => 'add'))}">{$lng['ftp']['account_add']}</a>
|
<a href="{$linker->getLink(array('section' => 'ftp', 'page' => 'accounts', 'action' => 'add'))}">{$lng['ftp']['account_add']}</a>
|
||||||
|
|||||||
4
templates/Sparkle/customer/mysql/mysqls.tpl
vendored
4
templates/Sparkle/customer/mysql/mysqls.tpl
vendored
@@ -15,7 +15,7 @@
|
|||||||
{$searchcode}
|
{$searchcode}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') && 15 < $mysqls_count >
|
<if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/mysql_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/mysql_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'add'))}">{$lng['mysql']['database_create']}</a>
|
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'add'))}">{$lng['mysql']['database_create']}</a>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') >
|
<if ($userinfo['mysqls_used'] < $userinfo['mysqls'] || $userinfo['mysqls'] == '-1') && 15 < $mysqls_count >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/mysql_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/mysql_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'add'))}">{$lng['mysql']['database_create']}</a>
|
<a href="{$linker->getLink(array('section' => 'mysql', 'page' => 'mysqls', 'action' => 'add'))}">{$lng['mysql']['database_create']}</a>
|
||||||
|
|||||||
12
templates/Sparkle/customer/tickets/tickets.tpl
vendored
12
templates/Sparkle/customer/tickets/tickets.tpl
vendored
@@ -11,10 +11,6 @@ $header
|
|||||||
|
|
||||||
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
<form action="{$linker->getLink(array('section' => 'tickets'))}" method="post" enctype="application/x-www-form-urlencoded">
|
||||||
|
|
||||||
<div class="overviewsearch">
|
|
||||||
{$searchcode}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<if 0 < $supportavailable >
|
<if 0 < $supportavailable >
|
||||||
<div class="successcontainer bradius">
|
<div class="successcontainer bradius">
|
||||||
<div class="successtitle">{$lng['ticket']['supportstatus']}</div>
|
<div class="successtitle">{$lng['ticket']['supportstatus']}</div>
|
||||||
@@ -28,7 +24,11 @@ $header
|
|||||||
</div>
|
</div>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
<div class="overviewsearch">
|
||||||
|
{$searchcode}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||||
@@ -67,7 +67,7 @@ $header
|
|||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
<if ($userinfo['tickets_used'] < $userinfo['tickets'] || $userinfo['tickets'] == '-1') && 15 < $tickets_count && ($ticketsopen < $settings['ticket']['concurrently_open'] || ($settings['ticket']['concurrently_open'] == '-1' || $settings['ticket']['concurrently_open'] == '')) >
|
||||||
<div class="overviewadd">
|
<div class="overviewadd">
|
||||||
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
<img src="templates/{$theme}/assets/img/icons/ticket_add.png" alt="" />
|
||||||
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
<a href="{$linker->getLink(array('section' => 'tickets', 'page' => 'tickets', 'action' => 'new'))}">{$lng['ticket']['ticket_new']}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user