Current time: 12-23-2024, 08:02 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CronJob Russian Solution
Author Message
server801 Offline
Moderator
*****
Moderators

Posts: 349
Joined: Mar 2009
Reputation: 1
Post: #21
RE: CronJob Russian Solution
выглядет впечатляюще.а теперь гид по установке под дебиан плиз Smile
12-07-2009 08:33 AM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #22
RE: CronJob Russian Solution
(12-07-2009 08:33 AM)server801 Wrote:  выглядет впечатляюще.а теперь гид по установке под дебиан плиз Smile

Вам и карты в руки.
Совсем забыл, оказывается ЛастРун мы уже сделали. Вот к чему приводит пост-новогодний опохмел. Работа сделана, а я не помню...

В общем то я так понимаю, всё уже сделано. Кроме коректной языковой поддержки.
Может разве что добавить в админку настройку запретов-разрешений для запускаемых скриптов. Но это уже излишества IMHO.
(This post was last modified: 12-07-2009 10:06 PM by data-stream_ru.)
12-07-2009 09:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #23
RE: CronJob Russian Solution
(12-07-2009 08:33 AM)server801 Wrote:  выглядет впечатляюще.а теперь гид по установке под дебиан плиз Smile

Межпрочим, ненцы уже WIKI сами для своих написали и RPM-ки компилят, покуда наши ждут у моря погоды.

Чукча не писатель. Чукча девелопер Wink
В атаче RPM под все RedHat совместимые системы на x64
Компилировалось под CentOS но это не должно быть важно.

Установку пока не проверял.
И не забываем про создание SQL таблиц и файлики /etc и собственно ispCP.
Вот как то так...


Attached File(s)
.gz  hcrond-ispCP-RH-0.3.2-1.x86_64.rpm.gz (Size: 24.74 KB / Downloads: 7)
(This post was last modified: 12-08-2009 05:53 PM by data-stream_ru.)
12-08-2009 04:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #24
RE: CronJob Russian Solution
P/S Могу для Mandriva-Server откомпилячить под x32, но это уже наверное извращение.
12-08-2009 06:07 PM
Visit this user's website Find all posts by this user Quote this message in a reply
server801 Offline
Moderator
*****
Moderators

Posts: 349
Joined: Mar 2009
Reputation: 1
Post: #25
RE: CronJob Russian Solution
под дебиан how to написали бы....центось не люблю Smile
12-08-2009 06:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #26
RE: CronJob Russian Solution
(12-08-2009 06:57 PM)server801 Wrote:  под дебиан how to написали бы....центось не люблю Smile

Вам уже немцы ответили, что они уже написали. Гугль-переводчик в помощь.
У МЕНЯ НЕТ ДЕБЬЯНА!!!
К тому, же RPM немцы выложили, всё остальное написано в инструкции на русском языке. Сложно не суметь поставить.

Если не выходит, надо нанять админа или воспользоваться услугой платной установки от аффтара.
12-08-2009 07:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
marchaos Offline
Junior Member
*

Posts: 57
Joined: Dec 2009
Reputation: 0
Post: #27
RE: CronJob Russian Solution
А дописать? Младенец вылез наполовину, когда родишь?
01-27-2010 04:15 AM
Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #28
RE: CronJob Russian Solution
(01-27-2010 04:15 AM)marchaos Wrote:  А дописать? Младенец вылез наполовину, когда родишь?

Это к чему относитсо?
01-30-2010 07:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #29
RE: CronJob Russian Solution
Под 1.0.3 единственное изменение -
В файлах
reseller/domain_delete.php
admin/user_delete.php

надо сделать так
PHP Code:
    // Remove support tickets:
    
$query "DELETE FROM `tickets` WHERE ticket_from = ? OR ticket_to = ?";
    
exec_query($sql$query, array($domain_admin_id$domain_admin_id));

    
// Remove CronJobs:
    
$query "DELETE FROM `hcrondtab` WHERE `domain` = ?";
    
exec_query($sql$query, array($domain_id)); 

Прям как маленькие, особенно буржуи.

Я вот думаю, седлать овервью кронов в админке.
Мультиленгвидж буду делать в самом конце для буржуев.
(This post was last modified: 02-02-2010 11:32 PM by data-stream_ru.)
02-02-2010 09:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
data-stream_ru Offline
Moderator
*****
Moderators

Posts: 471
Joined: Jan 2009
Reputation: 7
Post: #30
RE: CronJob Russian Solution
admin/domain_detals.php

PHP Code:
<?php
/**
 * ispCP П‰ (OMEGA) a Virtual Hosting Control System
 *
 * @copyright     2001-2006 by moleSoftware GmbH
 * @copyright     2006-2008 by ispCP | http://isp-control.net
 * @version     SVN: $ID$
 * @link         http://isp-control.net
 * @author         ispCP Team
 *
 * @license
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is "VHCS - Virtual Hosting Control System".
 *
 * The Initial Developer of the Original Code is moleSoftware GmbH.
 * Portions created by Initial Developer are Copyright (C) 2001-2006
 * by moleSoftware GmbH. All Rights Reserved.
 * Portions created by the ispCP Team are Copyright (C) 2006-2009 by
 * isp Control Panel. All Rights Reserved.
 */

require '../include/ispcp-lib.php';

check_login(__FILE__);

$tpl = new pTemplate();
$tpl->define_dynamic('page'Config::get('ADMIN_TEMPLATE_PATH') . '/domain_details.tpl');
$tpl->define_dynamic('logged_from''page');
$tpl->define_dynamic('custom_buttons''page');

$theme_color Config::get('USER_INITIAL_THEME');

$tpl->assign(
    array(
        
'TR_DETAILS_DOMAIN_PAGE_TITLE'    => tr('ispCP - Domain/Details'),
        
'THEME_COLOR_PATH'                => "../themes/$theme_color",
        
'THEME_CHARSET'                    => tr('encoding'),
        
'ISP_LOGO'                        => get_logo($_SESSION['user_id']),
    )
);

/*
 *
 * static page messages.
 *
 */

$tpl->assign(
    array(
        
'TR_DOMAIN_DETAILS'        => tr('Domain details'),
        
'TR_DOMAIN_NAME'        => tr('Domain name'),
        
'TR_DOMAIN_IP'            => tr('Domain IP'),
        
'TR_STATUS'                => tr('Status'),
        
'TR_PHP_SUPP'            => tr('PHP support'),
        
'TR_CGI_SUPP'            => tr('CGI support'),
        
'TR_DNS_SUPP'            => tr('Manual DNS support (EXPERIMENTAL)'),
        
'TR_MYSQL_SUPP'            => tr('MySQL support'),
        
'TR_TRAFFIC'            => tr('Traffic in MB'),
        
'TR_DISK'                => tr('Disk in MB'),
        
'TR_FEATURE'            => tr('Feature'),
        
'TR_USED'                => tr('Used'),
        
'TR_LIMIT'                => tr('Limit'),
        
'TR_MAIL_ACCOUNTS'        => tr('Mail accounts'),
        
'TR_FTP_ACCOUNTS'        => tr('FTP accounts'),
        
'TR_SQL_DB_ACCOUNTS'    => tr('SQL databases'),
        
'TR_SQL_USER_ACCOUNTS'    => tr('SQL users'),
        
'TR_SUBDOM_ACCOUNTS'    => tr('Subdomains'),
        
'TR_DOMALIAS_ACCOUNTS'    => tr('Domain aliases'),
        
'TR_UPDATE_DATA'        => tr('Submit changes'),
        
'TR_BACK'                => tr('Back'),
        
'TR_CRON_MANAGER' => tr('Cronjob Manager'),
        
'TR_MESSAGE_DELETE' => tr('Are you sure you want to delete %s?'true'%s'),
        
'TR_CRONJOBS' => tr('Cronjobs'),
        
'TR_ACTIVE' => tr('Active'),
        
'TR_ACTION' => tr('Active'),
        
'TR_EDIT' => tr('Edit'),
        
'TR_DELETE' => tr('Delete'),
        
'TR_ADD' => tr('Add Cronjob')
    )
);

gen_admin_mainmenu($tplConfig::get('ADMIN_TEMPLATE_PATH') . '/main_menu_users_manage.tpl');
gen_admin_menu($tplConfig::get('ADMIN_TEMPLATE_PATH') . '/menu_users_manage.tpl');

gen_page_message($tpl);
// Get user id that comes for manage domain
if (!isset($_GET['domain_id'])) {
    
user_goto('manage_users.php');
}

$editid $_GET['domain_id'];
gen_detaildom_page($tpl$_SESSION['user_id'], $editid);

//Add Cron table
$domain user_vs_domain($tpl$sql$editid);
gen_cron_jobs($tpl$sql$domain);

$tpl->parse('PAGE''page');

$tpl->prnt();

if (
Config::get('DUMP_GUI_DEBUG')) {
    
dump_gui_debug();
}
unset_messages();

// Begin function block

function gen_detaildom_page(&$tpl$user_id$domain_id) {
    
$sql Database::getInstance();
    
// Get domain data
    
$query "
        SELECT
            *,
            IFNULL(`domain_disk_usage`, 0) AS domain_disk_usage
        FROM
            `domain`
        WHERE
            `domain_id` = ?;
    "
;

    
$res exec_query($sql$query, array($domain_id));
    
$data $res->FetchRow();

    if (
$res->RecordCount() <= 0) {
        
user_goto('manage_users.php');
    }
    
// Get admin data
    
$query "SELECT `admin_name` FROM `admin` WHERE `admin_id` = ?";
    
$res1 exec_query($sql$query, array($data['domain_admin_id']));
    
$data1 $res1->FetchRow();
    if (
$res1->RecordCount() <= 0) {
        
user_goto('manage_users.php');
    }
    
// Get IP info
    
$query "SELECT * FROM `server_ips` WHERE `ip_id` = ?";
    
$ipres exec_query($sql$query, array($data['domain_ip_id']));
    
$ipdat $ipres->FetchRow();
    
// Get status name
    
$dstatus $data['domain_status'];

    if (
$dstatus == Config::get('ITEM_OK_STATUS')
        || 
$dstatus == Config::get('ITEM_DISABLED_STATUS')
        || 
$dstatus == Config::get('ITEM_DELETE_STATUS')
        || 
$dstatus == Config::get('ITEM_ADD_STATUS')
        || 
$dstatus == Config::get('ITEM_RESTORE_STATUS')
        || 
$dstatus == Config::get('ITEM_CHANGE_STATUS')
        || 
$dstatus == Config::get('ITEM_TOENABLE_STATUS')
        || 
$dstatus == Config::get('ITEM_TODISABLED_STATUS')) {
        
$dstatus translate_dmn_status($data['domain_status']);
    } else {
        
$dstatus "<b><font size=\"3\" color=\"red\">" $data['domain_status'] . "</font></b>";
    }

    
// Traffic diagram
    
$fdofmnth mktime(000date("m"), 1date("Y"));
    
$ldofmnth mktime(100date("m") + 10date("Y"));
    
$query "
        SELECT
            IFNULL(SUM(`dtraff_web`), 0) AS dtraff_web,
            IFNULL(SUM(`dtraff_ftp`), 0) AS dtraff_ftp,
            IFNULL(SUM(`dtraff_mail`), 0) AS dtraff_mail,
            IFNULL(SUM(`dtraff_pop`), 0) AS dtraff_pop
        FROM
            `domain_traffic`
        WHERE
            `domain_id` = ?
        AND
            `dtraff_time` > ?
        AND
            `dtraff_time` < ?
    "
;

    
$res7 exec_query($sql$query, array($data['domain_id'], $fdofmnth$ldofmnth));
    
$dtraff $res7->FetchRow();
    
$sumtraff $dtraff['dtraff_web'] + $dtraff['dtraff_ftp'] + $dtraff['dtraff_mail'] + $dtraff['dtraff_pop'];
    
$dtraffmb sprintf("%.1f", ($sumtraff 1024) / 1024);

    
$month date("m");
    
$year date("Y");

    
$query "SELECT * FROM `server_ips` WHERE `ip_id` = ?";
    
$res8 exec_query($sql$query, array($data['domain_ip_id']));
    
$ipdat $res8->FetchRow();

    
$domain_traffic_limit $data['domain_traffic_limit'];
    
$domain_all_traffic $sumtraff//$dtraff['traffic'];

    
$traff = ($domain_all_traffic 1024) / 1024;
    
$mtraff sprintf("%.2f"$traff);

    if (
$domain_traffic_limit == 0) {
        
$pr 0;
    } else {
        
$pr = ($traff $domain_traffic_limit) * 100;
        
$pr sprintf("%.2f"$pr);
    }

    
$indx = (int)$pr;

    list(
$traffic_percent$indx$a) = make_usage_vals($domain_all_traffic$domain_traffic_limit 1024 1024);
    
// Get disk status
    
$domdu $data['domain_disk_usage'];
    
$domdl $data['domain_disk_limit'];

    
$tmp = ($domdu 1024) / 1024;

    if (
$domdu == 0) {
        
$dpr 0;
    } else if (
$domdl == 0) {
        
$dpr 0;
    } else {
        
$dpr = ($tmp $domdl) * 100;
        
$dpr sprintf("%.2f"$dpr);
    }

    
$dindx = (int) $dpr;
    
$domduh sizeit($domdu);

    list(
$disk_percent$dindx$b) = make_usage_vals($domdu$domdl 1024 1024);
    
// Get current mail count
    
$query "SELECT COUNT(`mail_id`) AS mcnt
        FROM `mail_users`
        WHERE `domain_id` = ?
        AND `mail_type` NOT RLIKE '_catchall'"
;
    if (
Config::get('COUNT_DEFAULT_EMAIL_ADDRESSES') == 0) {
        
$query .= " AND `mail_acc` != 'abuse'
            AND `mail_acc` != 'postmaster'
            AND `mail_acc` != 'webmaster'"
;
    }
    
$res6 exec_query($sql$query, array($data['domain_id']));
    
$dat3 $res6->FetchRow();
    
$mail_limit translate_limit_value($data['domain_mailacc_limit']);
    
// FTP stat
    
$query "SELECT `gid` FROM `ftp_group` WHERE `groupname` = ?";
    
$res4 exec_query($sql$query, array($data['domain_name']));
    
$ftp_gnum $res4->RowCount();
    if (
$ftp_gnum == 0) {
        
$used_ftp_acc 0;
    } else {
        
$dat1 $res4->FetchRow();
        
$query "SELECT COUNT(*) AS ftp_cnt FROM `ftp_users` WHERE `gid` = ?";
        
$res5 exec_query($sql$query, array($dat1['gid']));
        
$dat2 $res5->FetchRow();

        
$used_ftp_acc $dat2['ftp_cnt'];
    }
    
$ftp_limit translate_limit_value($data['domain_ftpacc_limit']);
    
// Get sql database count
    
$query "SELECT COUNT(*) AS dnum FROM `sql_database` WHERE `domain_id` = ?";
    
$res exec_query($sql$query, array($data['domain_id']));
    
$dat5 $res->FetchRow();
    
$sql_db translate_limit_value($data['domain_sqld_limit']);
    
// Get sql users count
    
$query "SELECT COUNT(u.`sqlu_id`) AS ucnt FROM `sql_user` u, `sql_database` d WHERE u.`sqld_id` = d.`sqld_id` AND d.`domain_id` = ?";
    
$res exec_query($sql$query, array($data['domain_id']));
    
$dat6 $res->FetchRow();
    
$sql_users translate_limit_value($data['domain_sqlu_limit']);
    
// Get subdomain
    
$query "SELECT COUNT(`subdomain_id`) AS sub_num FROM `subdomain` WHERE `domain_id` = ?";
    
$res1 exec_query($sql$query, array($data['domain_id']));
    
$sub_num_data $res1->FetchRow();
    
$query "SELECT COUNT(`subdomain_alias_id`) AS sub_num FROM `subdomain_alias` WHERE `alias_id` IN (SELECT `alias_id` FROM `domain_aliasses` WHERE `domain_id` = ?)";
    
$res1 exec_query($sql$query, array($domain_id));
    
$alssub_num_data $res1->FetchRow();
    
$sub_dom translate_limit_value($data['domain_subd_limit']);
    
// Get domain aliases
    
$query "SELECT COUNT(*) AS alias_num FROM `domain_aliasses` WHERE `domain_id` = ?";
    
$res1 exec_query($sql$query, array($data['domain_id']));
    
$alias_num_data $res1->FetchRow();

    
$dom_alias translate_limit_value($data['domain_alias_limit']);
    
// Fill in the fields
    
$tpl->assign(
        array(
            
'DOMAIN_ID'                    => $data['domain_id'],
            
'VL_DOMAIN_NAME'            => decode_idna($data['domain_name']),
            
'VL_DOMAIN_IP'                => $ipdat['ip_number'] . ' (' $ipdat['ip_alias'] . ')',
            
'VL_STATUS'                    => $dstatus,
            
'VL_PHP_SUPP'                => ($data['domain_php'] == 'yes') ? tr('Enabled') : tr('Disabled'),
            
'VL_CGI_SUPP'                => ($data['domain_cgi'] == 'yes') ? tr('Enabled') : tr('Disabled'),
            
'VL_DNS_SUPP'                => ($data['domain_dns'] == 'yes') ? tr('Enabled') : tr('Disabled'),
            
'VL_MYSQL_SUPP'                => ($data['domain_sqld_limit'] >= 0) ? tr('Enabled') : tr('Disabled'),
            
'VL_TRAFFIC_PERCENT'        => $traffic_percent,
            
'VL_TRAFFIC_USED'            => sizeit($domain_all_traffic),
            
'VL_TRAFFIC_LIMIT'            => sizeit($domain_traffic_limit'MB'),
            
'VL_DISK_PERCENT'            => $disk_percent,
            
'VL_DISK_USED'                => $domduh,
            
'VL_DISK_LIMIT'                => sizeit($data['domain_disk_limit'], 'MB'),
            
'VL_MAIL_ACCOUNTS_USED'        => $dat3['mcnt'],
            
'VL_MAIL_ACCOUNTS_LIIT'        => $mail_limit,
            
'VL_FTP_ACCOUNTS_USED'        => $used_ftp_acc,
            
'VL_FTP_ACCOUNTS_LIIT'        => $ftp_limit,
            
'VL_SQL_DB_ACCOUNTS_USED'    => $dat5['dnum'],
            
'VL_SQL_DB_ACCOUNTS_LIIT'    => $sql_db,
            
'VL_SQL_USER_ACCOUNTS_USED'    => $dat6['ucnt'],
            
'VL_SQL_USER_ACCOUNTS_LIIT'    => $sql_users,
            
'VL_SUBDOM_ACCOUNTS_USED'    => $sub_num_data['sub_num'] + $alssub_num_data['sub_num'],
            
'VL_SUBDOM_ACCOUNTS_LIIT'    => $sub_dom,
            
'VL_DOMALIAS_ACCOUNTS_USED'    => $alias_num_data['alias_num'],
            
'VL_DOMALIAS_ACCOUNTS_LIIT'    => $dom_alias
        
)
    );
// End of load_user_data();


# Get CronJobs

function gen_cron_jobs(&$tpl, &$sql$user_id) {

    
$query = <<<SQL_QUERY
        SELECT
            id, name, lastrun, activ, coment, domain
        FROM
            hcrondtab
        WHERE
            domain = 
$user_id
        ORDER BY
            id
SQL_QUERY;

    
$rs exec_query($sql$query, array($user_id));

    if (
$rs->RecordCount() == 0) {
        
$tpl->assign(
            array(
'NAME' => tr('Jobs list is empty!'),
                
'DESCRIPTION' => '',
                
'ACTIVE' => '',
                
'LASTRUN' => ''
                
)
            );

    } else {

        
$counter 0;
        while (!
$rs->EOF) {
            if (
$counter == 0) {
                
$tpl->assign('ITEM_CLASS''content');
            } else {
                
$tpl->assign('ITEM_CLASS''content2');
            }
            if (
$rs->fields['activ'] == 1) {$activ 'Yes';}
            else {
$activ 'No';};
            
$lastrun $rs->fields['lastrun'];
            if (
$lastrun == ) {$lastrun '';}
                else {
$lastrun date("Y-m-d H:i:s",$lastrun);}
            
$tpl->assign(
                array(
'NAME' => $rs->fields['name'],
                    
'DESCRIPTION' => $rs->fields['coment'],
                    
'LASTRUN' => $lastrun,
                    
'ACTIVE' => $activ,
                    
'ID'  => $rs->fields['id']
                    )
                );
            
$tpl->parse('CRONJOBS''.cronjobs');
            
$rs->MoveNext();
            
$counter++;
        }

    }

// End of gen_cron_job

function user_vs_domain(&$tpl, &$sql$domain_id) {

    
$query = <<<SQL_QUERY
        SELECT
            domain_admin_id
        FROM
            domain
        WHERE
            domain_id = 
$domain_id
SQL_QUERY;

    
$rs exec_query($sql$query, array($domain_id));

    return 
$rs->fields['domain_admin_id'];;
//End user_vs_domain 

/var/www/ispcp/gui/themes/omega_original/admin/domain_detals.tpl
PHP Code:
<?xml version="1.0" encoding="{THEME_CHARSET}" ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{TR_DETAILS_DOMAIN_PAGE_TITLE}</title>
<meta name="robots" content="nofollow, noindex" />
<meta http-equiv="Content-Type" content="text/html; charset={THEME_CHARSET}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link href="{THEME_COLOR_PATH}/css/ispcp.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{THEME_COLOR_PATH}/css/ispcp.js"></script>
</head>

<body onload="MM_preloadImages('{THEME_COLOR_PATH}/images/icons/database_a.gif','{THEME_COLOR_PATH}/images/icons/hosting_plans_a.gif','{THEME_COLOR_PATH}/images/icons/domains_a.gif','{THEME_COLOR_PATH}/images/icons/general_a.gif' ,'{THEME_COLOR_PATH}/images/icons/manage_users_a.gif','{THEME_COLOR_PATH}/images/icons/webtools_a.gif','{THEME_COLOR_PATH}/images/icons/statistics_a.gif','{THEME_COLOR_PATH}/images/icons/support_a.gif')">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100%;padding:0;margin:0 auto;">
<tr>
<td align="left" valign="top" style="vertical-align: top; width: 195px; height: 56px;"><img src="{THEME_COLOR_PATH}/images/top/top_left.jpg" width="195" height="56" border="0" alt="ispCP Logogram" /></td>
<td style="height: 56px; width:100%; background-color: #0f0f0f"><img src="{THEME_COLOR_PATH}/images/top/top_left_bg.jpg" width="582" height="56" border="0" alt="" /></td>
<td style="width: 73px; height: 56px;"><img src="{THEME_COLOR_PATH}/images/top/top_right.jpg" width="73" height="56" border="0" alt="" /></td>
</tr>
    <tr>
        <td style="width: 195px; vertical-align: top;">{MENU}</td>
        <td colspan="2" style="vertical-align: top;"><table style="width: 100%; padding:0;margin:0;" cellspacing="0">
                <tr style="height:95px;">
                  <td style="padding-left:30px; width: 100%; background-image: url({THEME_COLOR_PATH}/images/top/middle_bg.jpg);">{MAIN_MENU}</td>
                    <td style="padding:0;margin:0;text-align: right; width: 73px;vertical-align: top;"><img src="{THEME_COLOR_PATH}/images/top/middle_right.jpg" width="73" height="95" border="0" alt="" /></td>
                </tr>
                <tr>
                  <td colspan="3"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left"><table width="100%" cellpadding="5" cellspacing="5">
                          <tr>
                            <td width="25"><img src="{THEME_COLOR_PATH}/images/content/table_icon_domains.png" width="25" height="25" alt="" /></td>
                            <td colspan="2" class="title">{TR_DOMAIN_DETAILS}</td>
                          </tr>
                      </table></td>
                      <td width="27" align="right">&nbsp;</td>
                    </tr>
                    <tr>
                      <td><table width="100%" cellpadding="5" cellspacing="5">
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_DOMAIN_NAME}</td>
                            <td class="content" colspan="2">{VL_DOMAIN_NAME}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_DOMAIN_IP}</td>
                            <td class="content" colspan="2">{VL_DOMAIN_IP}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_STATUS}</td>
                            <td class="content" colspan="2">{VL_STATUS}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_PHP_SUPP} </td>
                            <td class="content" colspan="2">{VL_PHP_SUPP}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_CGI_SUPP}</td>
                            <td class="content" colspan="2">{VL_CGI_SUPP}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_DNS_SUPP}</td>
                            <td class="content" colspan="2">{VL_DNS_SUPP}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_MYSQL_SUPP}</td>
                            <td class="content" colspan="2">{VL_MYSQL_SUPP}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_TRAFFIC}</td>
                           <td colspan="2" class="content"><table width="252" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="3"><img src="{THEME_COLOR_PATH}/images/bars/stats_left.png" width="3" height="20"></td>
                                  <td class="statsBar"><table border="0" cellspacing="0" cellpadding="0" align="left">
                                      <tr>
                                        <td class="statsBar"><img src="{THEME_COLOR_PATH}/images/bars/stats_progress.png" width="{VL_TRAFFIC_PERCENT}" height="20"></td>
                                      </tr>
                                  </table></td>
                                  <td width="3"><img src="{THEME_COLOR_PATH}/images/bars/stats_right.png" width="3" height="20"></td>
                                </tr>
                              </table>
                                <br />
                              {VL_TRAFFIC_USED} / {VL_TRAFFIC_LIMIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_DISK}</td>
                            <td colspan="2" class="content"><table width="252" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="3"><img src="{THEME_COLOR_PATH}/images/bars/stats_left.png" width="3" height="20"></td>
                                  <td class="statsBar"><table border="0" cellspacing="0" cellpadding="0" align="left">
                                      <tr>
                                        <td class="statsBar"><img src="{THEME_COLOR_PATH}/images/bars/stats_progress.png" width="{VL_DISK_PERCENT}" height="20"></td>
                                      </tr>
                                  </table></td>
                                  <td width="3"><img src="{THEME_COLOR_PATH}/images/bars/stats_right.png" width="3" height="20"></td>
                                </tr>
                              </table>
                                <br />
                              {VL_DISK_USED} / {VL_DISK_LIMIT}</td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                            <td class="content3"><strong>{TR_FEATURE}</strong></td>
                            <td width="200" class="content3"><strong>{TR_USED}</strong></td>
                            <td class="content3"><strong>{TR_LIMIT}</strong></td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_MAIL_ACCOUNTS}</td>
                            <td class="content">{VL_MAIL_ACCOUNTS_USED}</td>
                            <td class="content">{VL_MAIL_ACCOUNTS_LIIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_FTP_ACCOUNTS}</td>
                            <td class="content">{VL_FTP_ACCOUNTS_USED}</td>
                            <td class="content">{VL_FTP_ACCOUNTS_LIIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_SQL_DB_ACCOUNTS}</td>
                            <td class="content">{VL_SQL_DB_ACCOUNTS_USED}</td>
                            <td class="content">{VL_SQL_DB_ACCOUNTS_LIIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_SQL_USER_ACCOUNTS}</td>
                            <td class="content">{VL_SQL_USER_ACCOUNTS_USED}</td>
                            <td class="content">{VL_SQL_USER_ACCOUNTS_LIIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_SUBDOM_ACCOUNTS}</td>
                            <td class="content">{VL_SUBDOM_ACCOUNTS_USED}</td>
                            <td class="content">{VL_SUBDOM_ACCOUNTS_LIIT}</td>
                          </tr>
                          <tr>
                            <td width="25">&nbsp;</td>
                            <td class="content2" width="193">{TR_DOMALIAS_ACCOUNTS}</td>
                            <td class="content">{VL_DOMALIAS_ACCOUNTS_USED}</td>
                            <td class="content">{VL_DOMALIAS_ACCOUNTS_LIIT}</td>
                          </tr>


               <tr>
                    <!-- BDP: page_message -->
                    <tr>
                      <td width="25">&nbsp;</td>
                      <td colspan="3" class="title"><span class="message">{MESSAGE}</span></td>
                    </tr>
                    <!-- EDP: page_message -->
                    <tr>
                      <td width="25">&nbsp;</td>
                      <td class="content3"><strong>{TR_CRONJOBS}</strong></td>
                      <td align="center" class="content3"><strong>{TR_ACTIVE}</strong></td>
                      <td align="center" class="content3"><strong>Last Run</strong></td>
                      </tr>
                    
                      <!-- BDP: cronjobs -->
            <tr>
                      <td nowrap="nowrap">&nbsp;</td>
                      <td nowrap="nowrap" class="{ITEM_CLASS}"><strong>{NAME}</strong><br>
                        {DESCRIPTION}</td>
                      <td width="100" align="center" nowrap="nowrap" class="{ITEM_CLASS}">{ACTIVE}</td>
                      <td width="150" align="center" nowrap="nowrap" class="{ITEM_CLASS}">{LASTRUN}</td>
                   </tr>
                      <!-- cronjobs -->

                </tr>




                          <tr>
                            <td>&nbsp;</td>


                           <td colspan="3"><form name="buttons" method="post" action="?">
                                <input name="Submit" type="submit" class="button" onclick="MM_goToURL('parent','manage_users.php');return document.MM_returnValue" value="  {TR_BACK}  " />
                              &nbsp;&nbsp;&nbsp;
                            </form></td>
                          </tr>
                      </table></td>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
                </tr>
            </table></td>
    </tr>
</table>
</body>
</html> 

Не совсем то, что хотелось, но лучше не перекраивая все шаблоны не сделать.

У ресселлера делается точно так же.
02-02-2010 11:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)