parent
ddf9a38faf
commit
a6949498cb
|
@ -158,7 +158,6 @@ bureau/admin/ftp_edit.php -text
|
|||
bureau/admin/ftp_list.php -text
|
||||
bureau/admin/head.php -text
|
||||
bureau/admin/hippo_bleue.gif -text
|
||||
bureau/admin/hoster.png -text
|
||||
bureau/admin/hta_add.php -text
|
||||
bureau/admin/hta_adduser.php -text
|
||||
bureau/admin/hta_del.php -text
|
||||
|
@ -285,6 +284,7 @@ bureau/admin/js/prototype.js -text
|
|||
bureau/admin/login.php -text
|
||||
bureau/admin/logo.png -text
|
||||
bureau/admin/logo2.png -text
|
||||
bureau/admin/logo3.png -text
|
||||
bureau/admin/logs_download.php -text
|
||||
bureau/admin/logs_list.php -text
|
||||
bureau/admin/mail_add.php -text
|
||||
|
@ -350,6 +350,7 @@ bureau/admin/sql_users_password.php -text
|
|||
bureau/admin/sql_users_rights.php -text
|
||||
bureau/admin/stats_members.php -text
|
||||
bureau/admin/styles/passwordStrengthMeter.css -text
|
||||
bureau/admin/styles/style-bluedesktop10.css -text
|
||||
bureau/admin/styles/style-empty.css -text
|
||||
bureau/admin/styles/style-hw.css -text
|
||||
bureau/admin/styles/style.css -text
|
||||
|
|
|
@ -116,7 +116,7 @@ function retour() {
|
|||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="popupfile();">
|
||||
<body class="light" onload="popupfile();">
|
||||
<h3><?php __("Searching for a folder"); ?></h3>
|
||||
<?php
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ $lst_cron = $cron->lst_cron();
|
|||
<form method="post" action="cron.php" id="main" name="cron" >
|
||||
|
||||
|
||||
<table>
|
||||
<table class="tlist">
|
||||
<!--
|
||||
<tr>
|
||||
<th/>
|
||||
|
@ -47,7 +47,7 @@ if ( sizeof($lst_cron) > $max_cron ) $max_cron=sizeof($lst_cron);
|
|||
|
||||
for ($i=0; $i < $max_cron ; $i++) {
|
||||
?>
|
||||
<tr>
|
||||
<tr class="<?php echo ($i%2)?"lst1":"lst2"; ?>">
|
||||
<?php if (isset($lst_cron[$i])) echo "<input type='hidden' name='cronupdate[$i][id]' value='".$lst_cron[$i]['id']."' />"; ?>
|
||||
<td rowspan=2>
|
||||
<?php if (isset($lst_cron[$i])) { echo '#'.$lst_cron[$i]['id']; } ?><br/>
|
||||
|
@ -71,19 +71,14 @@ foreach ($cron->schedule() as $cs) {
|
|||
</select>
|
||||
<?php if (isset($lst_cron[$i])) {__("Next execution: "); echo $lst_cron[$i]['next_execution'];}?>
|
||||
</td>
|
||||
</tr><tr>
|
||||
</tr><tr class="<?php echo ($i%2)?"lst1":"lst2"; ?>">
|
||||
<td><input type="text" placeholder="<?php __("HTTP user (optionnal)"); ?>" id="crup_user_<?php echo $i?>" name="<?php echo "cronupdate[$i][user]";?>" size="20" maxlength="64" value="<?php if (isset($lst_cron[$i]['user'])) { echo htmlentities($lst_cron[$i]['user']);} ?>"/></td>
|
||||
<td><input type="text" placeholder="<?php __("HTTP password (optionnal)"); ?>" id="crup_pass_<?php echo $i?>" name="<?php echo "cronupdate[$i][password]";?>" size="20" maxlength="64" value="<?php if (isset($lst_cron[$i]['password'])) { echo htmlentities($lst_cron[$i]['password']);} ?>"/></td>
|
||||
<td><input type="text" placeholder="<?php __("Mail address (optionnal)"); ?>" id="crup_mail_<?php echo $i?>" name="<?php echo "cronupdate[$i][email]";?>" size="25" maxlength="64" value="<?php if (isset($lst_cron[$i]['email'])) { echo htmlentities($lst_cron[$i]['email']);} ?>"/></td>
|
||||
</tr>
|
||||
<tr><td colspan=4><hr/></td></tr>
|
||||
<?php } //foreach ?>
|
||||
<tr>
|
||||
<td/>
|
||||
<td>
|
||||
<input type="submit" name="submit" class="inb" value="<?php __("Apply the modifications"); ?>" />
|
||||
</td>
|
||||
</table>
|
||||
<p><input type="submit" name="submit" class="inb" value="<?php __("Apply the modifications"); ?>" /></p>
|
||||
|
||||
</form>
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ if (!$r['noerase']) {
|
|||
</td>
|
||||
</table>
|
||||
<div style="padding-left: 30px; padding-bottom: 20px" class="error"> <?php __("Warning: If you set this to 'no', all your email accounts and aliases on this domain will be immediately deleted."); ?></div>
|
||||
|
||||
<br/>
|
||||
<input type="submit" class="inb" name="submit" value="<?php __("Submit the changes"); ?>" />
|
||||
</form>
|
||||
|
||||
|
|
|
@ -35,7 +35,8 @@ if (!$charset) $charset="UTF-8";
|
|||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/passwordStrengthMeter.css" type="text/css" />
|
||||
|
||||
<link rel="stylesheet" href="styles/style-empty.css" type="text/css" title="Default - Blue Desktop"/>
|
||||
<link rel="stylesheet" href="styles/style-empty.css" type="text/css" title="Default - Desktop TNG"/>
|
||||
<link rel="alternate stylesheet" href="styles/style-bluedesktop10.css" type="text/css" title="Blue Desktop 1.0" />
|
||||
<link rel="alternate stylesheet" href="styles/style-hw.css" type="text/css" title="Halloween" />
|
||||
|
||||
<link rel="Shortcut Icon" href="favicon.ico" type="image/ico" />
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 860 B |
|
@ -55,7 +55,8 @@ if (!$charset) $charset="UTF-8";
|
|||
<p id="logo"> <img src="logo.png" border="0" alt="<?php __("Web Hosting Control Panel"); ?>" title="<?php __("Web Hosting Control Panel"); ?>" /></a>
|
||||
</p>
|
||||
<p> </p>
|
||||
<?php if (isset($error) && $error) echo "<font color=red>$error</font>"; ?>
|
||||
<?php if (isset($error) && $error) echo "<div class='error'>$error</div>"; ?>
|
||||
<br/>
|
||||
<?php
|
||||
if (isset($_GET['authip_token'])) $authip_token=$_GET['authip_token'];
|
||||
/*
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
|
@ -30,10 +30,13 @@
|
|||
require_once("../class/config.php");
|
||||
|
||||
?>
|
||||
<h3>Menu <?php echo $mem->user["login"]; ?></h3>
|
||||
<img src="logo3.png" class="menutoplogo" border="0" alt="AlternC" alt="<?php __("AlternC"); ?>"/>
|
||||
<p class="currentuser"><?php echo sprintf(_("Welcome %s"),$mem->user["login"]); ?></p>
|
||||
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/home.png" alt="<?php __("Home / Information"); ?>" /> <a href="main.php"><?php __("Home / Information"); ?></a></div>
|
||||
<a href="main.php">
|
||||
<div class="menu-title"><img src="images/home.png" alt="<?php __("Home / Information"); ?>" /> <?php __("Home / Information"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
// Force rebuilding quota, in case of add or edit of the quota and cache not up-to-date
|
||||
|
|
|
@ -27,23 +27,24 @@
|
|||
|
||||
if ($mem->checkRight()) { ?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="javascript:menu_toggle('menu-adm');">
|
||||
<img src="images/admin.png" alt="Administration" /> <span style="color: red;"><?php __("Administration"); ?></span>
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/></a>
|
||||
</div>
|
||||
<a href="javascript:menu_toggle('menu-adm');">
|
||||
<div class="menu-title">
|
||||
<img src="images/admin.png" alt="Administration" /> <span class="adminmenu"><?php __("Administration"); ?></span>
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id ="menu-adm">
|
||||
<ul>
|
||||
<li><a href="adm_list.php"><span style="color: red;"><?php __("Manage the Alternc accounts"); ?></span></a></li>
|
||||
<li><a href="quotas_users.php?mode=4"><span style="color: red;"><?php __("User Quotas"); ?></span></a></li>
|
||||
<li><a href="adm_list.php"><span class="adminmenu"><?php __("Manage the Alternc accounts"); ?></span></a></li>
|
||||
<li><a href="quotas_users.php?mode=4"><span class="adminmenu"><?php __("User Quotas"); ?></span></a></li>
|
||||
<?php if ($cuid == 2000) { ?>
|
||||
<li><a href="adm_panel.php"><span style="color: red;"><?php __("Admin Control Panel"); ?></span></a></li>
|
||||
<li><a href="/alternc-sql/"><span style="color: red;"><?php __("General PhpMyAdmin"); ?></span></a></li>
|
||||
<li><a href="alternc_debugme.php?enable=<?php echo $debug_alternc->status?"0":"1"; ?>"><span style="color: red;"><?php if ($debug_alternc->status) __("Switch debug Off"); else __("Switch debug On"); ?></span></a></li>
|
||||
<li><a href="adm_panel.php"><span class="adminmenu"><?php __("Admin Control Panel"); ?></span></a></li>
|
||||
<li><a href="/alternc-sql/"><span class="adminmenu"><?php __("General PhpMyAdmin"); ?></span></a></li>
|
||||
<li><a href="alternc_debugme.php?enable=<?php echo $debug_alternc->status?"0":"1"; ?>"><span class="adminmenu"><?php if ($debug_alternc->status) __("Switch debug Off"); else __("Switch debug On"); ?></span></a></li>
|
||||
<?php if ( empty($L_INOTIFY_UPDATE_DOMAIN) || file_exists("$L_INOTIFY_UPDATE_DOMAIN") ) { ?>
|
||||
<li><a href='javascript:alert("<?php __("Reload already in progress"); ?>");'><span style="color: red;"><?php __("Reload in progress..."); ?></span></a></li>
|
||||
<li><a href='javascript:alert("<?php __("Reload already in progress"); ?>");'><span class="adminmenu"><?php __("Reload in progress..."); ?></span></a></li>
|
||||
<?php } else { // file L_INOTIFY_UPDATE_DOMAIN don't exist ?>
|
||||
<li><a href="/adm_update_domains.php" onClick='return confirm("<?php echo addslashes(_("Server configuration is regenerate every 5 minutes (if there is changes). Do you want to force a regeneration right now?"));?>");'><span style="color: red;"><?php __("Force a reload"); ?></span></a></li>
|
||||
<li><a href="/adm_update_domains.php" onClick='return confirm("<?php echo addslashes(_("Server configuration is regenerate every 5 minutes (if there is changes). Do you want to force a regeneration right now?"));?>");'><span class="adminmenu"><?php __("Force a reload"); ?></span></a></li>
|
||||
<?php } // file exist L_INOTIFY_UPDATE_DOMAIN ?>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
|
|
|
@ -22,5 +22,7 @@
|
|||
*/
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/help.png" alt="<?php __("Online help"); ?>" /> <a href="<?php echo $help_baseurl; ?>" target="help"><?php __("Online help"); ?></a></div>
|
||||
<a href="<?php echo $help_baseurl; ?>" target="help">
|
||||
<div class="menu-title"><img src="images/help.png" alt="<?php __("Online help"); ?>" /> <?php __("Online help"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -23,5 +23,7 @@
|
|||
/* ############# BROUTEUR ############# */
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/folder.png" alt="<?php __("File browser"); ?>" /> <a href="bro_main.php"><?php __("File browser"); ?></a></div>
|
||||
<a href="bro_main.php">
|
||||
<div class="menu-title"><img src="images/folder.png" alt="<?php __("File browser"); ?>" /> <?php __("File browser"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -28,11 +28,11 @@ if ($q['t'] > 0 || $q['u'] > 0) {
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="cron.php">
|
||||
<div class="menu-title">
|
||||
<img src="images/schedule.png" alt="<?php __("Scheduled tasks"); ?>" width=16px height=16px/> <?php __("Scheduled tasks"); ?> (<?php echo $q["u"].'/'.$q["t"]; ?>)
|
||||
</a>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php
|
||||
} // fin du if pour les quotas
|
||||
|
|
|
@ -29,11 +29,12 @@ if ($q["t"] > 0 || $q['u'] > 0)
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title" id="test">
|
||||
<a href="javascript:menu_toggle('menu-dom');">
|
||||
<a href="javascript:menu_toggle('menu-dom');">
|
||||
<div class="menu-title" id="test">
|
||||
<img src="images/dom.png" alt="<?php __("Domains"); ?>" /> <?php __("Domains"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/></a>
|
||||
</div>
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-dom">
|
||||
<ul>
|
||||
<?php if ($quota->cancreate("dom")) { ?>
|
||||
|
|
|
@ -28,11 +28,12 @@ if ($q["t"] > 0 || $q['u'] > 0) {
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="javascript:menu_toggle('menu-ftp');">
|
||||
<div class="menu-title">
|
||||
<img src="images/ftp.png" alt="<?php __("FTP accounts"); ?>" /> <?php __("FTP accounts"); ?> <?php if (!$quota->cancreate("ftp")) { echo '<span class="full">'; } ?>(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)<?php if (!$quota->cancreate("ftp")) { echo '</span>'; } ?>
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/></a>
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-ftp">
|
||||
<ul>
|
||||
<?php if ($quota->cancreate("ftp")) { ?>
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/ip.png" alt="<?php __("Access security"); ?>" width="16" height="16" /> <a href="ip_main.php"><?php __("Access security"); ?></a> </div>
|
||||
<a href="ip_main.php">
|
||||
<div class="menu-title">
|
||||
<img src="images/ip.png" alt="<?php __("Access security"); ?>" width="16" height="16" /> <?php __("Access security"); ?>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<img src="/images/lang.png" alt="<?php __("Languages"); ?>" /> <a href="javascript:menu_toggle('menu-lang');"><?php __("Languages"); ?>
|
||||
<img src="/images/row-down.png" alt="" style="float:right;"/></a>
|
||||
</div>
|
||||
<a href="javascript:menu_toggle('menu-lang');">
|
||||
<div class="menu-title">
|
||||
<img src="/images/lang.png" alt="<?php __("Languages"); ?>" /> <?php __("Languages"); ?>
|
||||
<img src="/images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-lang">
|
||||
<ul>
|
||||
<?php foreach($locales as $l) { ?>
|
||||
|
|
|
@ -25,7 +25,9 @@
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/logs.png" alt="<?php __("Logs"); ?>" width="16" height="16" /> <a href="logs_list.php"><?php __("Logs"); ?></a> </div>
|
||||
<a href="logs_list.php">
|
||||
<div class="menu-title"><img src="images/logs.png" alt="<?php __("Logs"); ?>" width="16" height="16" /> <?php __("Logs"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -30,11 +30,12 @@ if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
|
|||
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="javascript:menu_toggle('menu-mail');">
|
||||
<img src="images/mail.png" alt="<?php __("Email Addresses"); ?>" /> <?php __("Email Addresses"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/></a>
|
||||
</div>
|
||||
<div class="menu-title">
|
||||
<img src="images/mail.png" alt="<?php __("Email Addresses"); ?>" /> <?php __("Email Addresses"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
|
||||
<img src="images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-mail">
|
||||
<ul>
|
||||
<?php
|
||||
|
|
|
@ -22,8 +22,12 @@
|
|||
*/
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/config.png" alt="<?php __("Settings"); ?>" /> <a href="mem_param.php"><?php __("Settings"); ?></a></div>
|
||||
<a href="mem_param.php">
|
||||
<div class="menu-title"><img src="images/config.png" alt="<?php __("Settings"); ?>" /> <?php __("Settings"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/exit.png" alt="<?php __("Logout"); ?>" /> <a href="mem_logout.php" target="_parent"><?php __("Logout"); ?></a></div>
|
||||
<a href="mem_logout.php" target="_parent">
|
||||
<div class="menu-title"><img src="images/exit.png" alt="<?php __("Logout"); ?>" /> <?php __("Logout"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -26,9 +26,11 @@ $q = $quota->getquota("piwik");
|
|||
if (!empty($piwik->piwik_server_uri) && ($q["t"] > 0 || $r["u"] > 0)) {
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="javascript:menu_toggle('menu-piwik');">
|
||||
<img src="images/stat.png" alt="<?php __("Piwik statistics"); ?>" /> <?php __("Piwik statistics"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)</a></div>
|
||||
<div class="menu-title">
|
||||
<img src="images/stat.png" alt="<?php __("Piwik statistics"); ?>" /> <?php __("Piwik statistics"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-piwik">
|
||||
<ul>
|
||||
<li><a href="piwik_userlist.php"><?php __("Piwik Users"); ?></a></li>
|
||||
|
|
|
@ -21,53 +21,60 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/quota.png" alt="<?php __("Show my quotas"); ?>" /> <a href="quota_show.php"><?php __("Show my quotas"); ?></a>
|
||||
<?php
|
||||
$q=$quota->getquota();
|
||||
<div class="menu-box menu-quota">
|
||||
<a href="quota_show.php">
|
||||
<div class="menu-title">
|
||||
<img src="images/quota.png" alt="<?php __("Show my quotas"); ?>" /> <?php __("Show my quotas"); ?>
|
||||
</div>
|
||||
</a>
|
||||
<?php
|
||||
$q=$quota->getquota();
|
||||
|
||||
$qlist=$quota->qlist();
|
||||
reset($qlist);
|
||||
$col=1;
|
||||
$qlist=$quota->qlist();
|
||||
reset($qlist);
|
||||
$col=1;
|
||||
|
||||
|
||||
if (!is_array($q) || empty($q) ) {
|
||||
// "No quotas for this account, or quotas currently unavailable
|
||||
return;
|
||||
}
|
||||
|
||||
$first=true;
|
||||
while (list($key,$val)=each($qlist)) {
|
||||
$col=3-$col;
|
||||
|
||||
// FIXME: rewrite it
|
||||
if (($key == 'bw_web' || $key == 'web') && (isset($q[$key]["t"]) && $q[$key]["t"] > 0)) {
|
||||
if ($first) {
|
||||
echo '<dt id="#quotas">' . _("Quotas") . '</dt>';
|
||||
$first=false;
|
||||
}
|
||||
|
||||
if ($key == 'web') {
|
||||
$q[$key]["u"] = $q[$key]["u"] * 1024;
|
||||
$q[$key]["t"] = $q[$key]["t"] * 1024;
|
||||
}
|
||||
|
||||
$usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100);
|
||||
$usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#f00' : '#0f0');
|
||||
$usage_color = ((85 < $usage_percent && $usage_percent < 100) ? '#ff0' : $usage_color); // yellow
|
||||
|
||||
$url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php');
|
||||
|
||||
echo "<dd>";
|
||||
echo '<div><a href="' . $url . '">' . /* _($val) */ $key . ' ' . $usage_percent . '%' . ' (' . format_size($q[$key]["u"]) . ' / ' . format_size($q[$key]["t"]) . ')</a></div>';
|
||||
echo "</dd>";
|
||||
echo "<dd>";
|
||||
echo '<div style="width: 100%; background: #fff;">';
|
||||
echo '<div style="width: ' . ($usage_percent > 100 ? 100 : $usage_percent) . '%; background: ' . $usage_color . ';"> </div>';
|
||||
echo '</div>';
|
||||
echo "</dd>";
|
||||
if (!is_array($q) || empty($q) ) {
|
||||
// "No quotas for this account, or quotas currently unavailable
|
||||
return;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
$first=true;
|
||||
while (list($key,$val)=each($qlist)) {
|
||||
$col=3-$col;
|
||||
|
||||
// FIXME: rewrite it
|
||||
if (($key == 'bw_web' || $key == 'web') && (isset($q[$key]["t"]) && $q[$key]["t"] > 0)) {
|
||||
/*
|
||||
// Quite useless, so i commented it out
|
||||
if ($first) {
|
||||
echo '<dt id="#quotas">' . _("Quotas") . '</dt>';
|
||||
$first=false;
|
||||
}
|
||||
*/
|
||||
|
||||
if ($key == 'web') {
|
||||
$q[$key]["u"] = $q[$key]["u"] * 1024;
|
||||
$q[$key]["t"] = $q[$key]["t"] * 1024;
|
||||
}
|
||||
|
||||
$usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100);
|
||||
$usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#f00' : '#0f0');
|
||||
$usage_color = ((85 < $usage_percent && $usage_percent < 100) ? '#ff0' : $usage_color); // yellow
|
||||
|
||||
$url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php');
|
||||
|
||||
echo "<dd>";
|
||||
echo '<div><a href="' . $url . '">' . /* _($val) */ $key . ' ' . $usage_percent . '%' . ' (' . format_size($q[$key]["u"]) . ' / ' . format_size($q[$key]["t"]) . ')</a></div>';
|
||||
echo "</dd>";
|
||||
echo "<dd>";
|
||||
echo '<div class="progress-bar">';
|
||||
echo '<div style="width: ' . ($usage_percent > 100 ? 100 : $usage_percent) . '%; background: ' . $usage_color . ';"> </div>';
|
||||
echo '</div>';
|
||||
echo "</dd>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div style="height: 5px;"> </div>
|
||||
</div>
|
||||
|
|
|
@ -24,11 +24,12 @@ $q = $quota->getquota("mysql");
|
|||
if ($q["t"] > 0 || $q['u'] >0) {
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title">
|
||||
<a href="javascript:menu_toggle('menu-sql');">
|
||||
<div class="menu-title">
|
||||
<img src="images/mysql.png" alt="MySQL" /> MySQL (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
|
||||
<img src="/images/row-down.png" alt="" style="float:right;"/></a>
|
||||
<img src="/images/row-down.png" alt="" style="float:right;"/>
|
||||
</div>
|
||||
</a>
|
||||
<div class="menu-content" id="menu-sql">
|
||||
<ul>
|
||||
<li><a href="sql_list.php"><?php __("Databases"); ?></a></li>
|
||||
|
|
|
@ -24,5 +24,7 @@
|
|||
/* ############# WEB ACCESS ############# */
|
||||
?>
|
||||
<div class="menu-box">
|
||||
<div class="menu-title"><img src="images/password.png" alt="<?php __("Protected folders"); ?>" /> <a href="hta_list.php"><?php __("Protected folders"); ?></a></div>
|
||||
<a href="hta_list.php">
|
||||
<div class="menu-title"><img src="images/password.png" alt="<?php __("Protected folders"); ?>" /> <?php __("Protected folders"); ?></div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,509 @@
|
|||
html, body {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000000;
|
||||
background-color: #F0F0FA;
|
||||
/* background-color: cyan; */
|
||||
}
|
||||
|
||||
body.light {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000000;
|
||||
background-color: #F0F0FA;
|
||||
/* background-color: cyan; */
|
||||
}
|
||||
|
||||
.hlp {
|
||||
font-family: Helvetica, Tahoma, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #202020;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000000;
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
th {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: black;
|
||||
background: #ABCDE4;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #10507C;
|
||||
text-align: left;
|
||||
padding: 11px;
|
||||
padding-left: 0;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.trbtn {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
color: #007777
|
||||
}
|
||||
|
||||
hr {
|
||||
color: #007799;
|
||||
height: 1px;
|
||||
border: 1px solid #007799;
|
||||
}
|
||||
|
||||
.inp {
|
||||
/* Should not be use anymore !!! */
|
||||
border-color: blue;
|
||||
border-width: 5px;
|
||||
background-color: #500000;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.inc, .inl {
|
||||
border: 1px solid black;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
border-style: none;
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.inb {
|
||||
border: 1px solid #999;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
padding: 4px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
color: black;
|
||||
background-color: #CFE3F1;
|
||||
cursor: pointer;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.inb:hover {
|
||||
background-color: #BFD3E1;
|
||||
}
|
||||
|
||||
input.ina:hover, input.ina, input.inav, input.inav:hover {
|
||||
border: 1px solid #999;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
padding: 2px 4px 2px 4px;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
/*float: right;*/
|
||||
}
|
||||
input.ina, .ina a {
|
||||
background-color: #F1F8FD;
|
||||
}
|
||||
input.ina:hover, .ina a:hover,
|
||||
input.inav, .inav a {
|
||||
background-color: #CFE3F1;
|
||||
}
|
||||
input.inav:hover, .inav a:hover, a.inav:hover {
|
||||
background-color: #F1F8FD;
|
||||
}
|
||||
|
||||
.ina-active a, a.ina-active, input.ina-active {
|
||||
background-color: #C1FFCD;
|
||||
}
|
||||
|
||||
.ina a, a.ina, .inav a, a.inav {
|
||||
color: black;
|
||||
white-space: nowrap;
|
||||
|
||||
border: 1px solid #999;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
padding: 4px;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ina a:hover, a.ina:hover, .inav a:hover, a.inav:hover {
|
||||
text-decoration: none;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.ina img, .ina img {
|
||||
vertical-align: middle;
|
||||
padding: 2px;
|
||||
}
|
||||
.bff {
|
||||
border: 1px solid #999;
|
||||
background-color: #F1F8FD;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
padding-left: 2px;
|
||||
padding-right: 4px;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
}
|
||||
.int {
|
||||
border: 1px dotted black;
|
||||
background-color: white;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
padding: 2px;
|
||||
}
|
||||
.intleft {
|
||||
border-right: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
.intright {
|
||||
border-left: 0px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.lst2 {
|
||||
/*background-color: #F1F8FD;*/
|
||||
background-color: #E7F0F9;
|
||||
}
|
||||
.lst1 {
|
||||
background-color: #CFE3F1;
|
||||
}
|
||||
|
||||
.dlogin {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.login {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Over quota class */
|
||||
.over {
|
||||
color: red;
|
||||
}
|
||||
|
||||
.code {
|
||||
font-size: 16px;
|
||||
font-family: Courier New, Fixed;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#global {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
width: 1020px;
|
||||
border: 5px solid #1D6A9F;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
background-color: #F0F0FA;
|
||||
/* background: #F1F8FD url(/admin/images/bgborder.gif) repeat-y scroll top left; */
|
||||
}
|
||||
|
||||
/* Main container */
|
||||
|
||||
#tdMenu, #tdContent {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#tdMenu {
|
||||
border-right: 1px dotted #1D6A9F;
|
||||
}
|
||||
|
||||
#content {
|
||||
display: block;
|
||||
width: 770px;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
/* Menu */
|
||||
|
||||
#menu {
|
||||
display: block;
|
||||
float: left;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
width: 200px;
|
||||
padding-right: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.menu-box {
|
||||
margin-bottom: 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.menu-box .menu-title {
|
||||
color: #000000;
|
||||
border: 1px solid #1D6A9F;
|
||||
background-color: #C0DCF0;
|
||||
padding: 3px;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.menu-box .menu-content {
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.menu-box ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.menu-box a {
|
||||
text-decoration: none;
|
||||
color: #0D5689;
|
||||
}
|
||||
|
||||
.menu-box a:hover {
|
||||
text-decoration: underline;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.menu-box li a {
|
||||
display: block;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px;
|
||||
color: #0D5689;
|
||||
padding-left: 2px;
|
||||
text-decoration: none;
|
||||
border: 1px solid #F1F8FD;
|
||||
line-height: 0.75em;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow: ellipsis; /* Opera 9*/
|
||||
}
|
||||
|
||||
.menu-box li a img {
|
||||
float: left;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
top: -3px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-box li a:hover {
|
||||
color: #000000;
|
||||
border: 1px solid #1D6A9F;
|
||||
text-decoration: none;
|
||||
background-color: #DFEEF8;
|
||||
}
|
||||
|
||||
.menu-box .full {
|
||||
color: red;
|
||||
}
|
||||
|
||||
/* Bars */
|
||||
|
||||
.barempty {
|
||||
background-color: white;
|
||||
border: 1px solid black;
|
||||
height: 8px;
|
||||
-webkit-border-radius:4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.barfill {
|
||||
float: left;
|
||||
background-color: red;
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
/* Infos */
|
||||
#recap table {
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.searchtable {
|
||||
width: 700px;
|
||||
border: 1px dotted #99f;
|
||||
margin: 20px 0 20px 0px;
|
||||
}
|
||||
|
||||
table.searchtable td {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
/* Others */
|
||||
.center {
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #0D5689;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.border {
|
||||
border: 1px solid #C0DCF0;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
#sendthisfile {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
#newdomwww, #sub, #usernpfx, #dbnpfx {
|
||||
border-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
#newdomain, #newsubname, #usern, #dbn {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
#create_dom_list_pfx {
|
||||
border-right: 0;
|
||||
padding: 3px;
|
||||
}
|
||||
#create_dom_list {
|
||||
border-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
input#email {
|
||||
border-right: 0;
|
||||
padding-right: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
span#emaildom {
|
||||
border-left: 0;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.tedit {
|
||||
border: 1px solid #aaa;
|
||||
padding: 6px;
|
||||
margin: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
.tedit td, .tedit th {
|
||||
border: 1px solid #aaa;
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.formcell {
|
||||
vertical-align: top;
|
||||
border: 1px solid #aaa;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.tlist, .tlist td, .tlist th,
|
||||
.tlist2, .tlist2 td, .tlist2 th {
|
||||
padding: 4px;
|
||||
margin: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.tlist {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.tlistb, .tlistb td, .tlistb th {
|
||||
padding: 4px;
|
||||
margin: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table.tlistb, .tlistb tr {
|
||||
border: solid 1px #AAA;
|
||||
}
|
||||
|
||||
.tlist tr:hover, .tlist2 tr:hover {
|
||||
background-color: #F1D5CF;
|
||||
}
|
||||
|
||||
.tlist th, .tlist2 th {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input#dir, input#sub_local {
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
.warningmsg {
|
||||
width: 500px;
|
||||
}
|
||||
|
||||
#mx {
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
#admlistbtn {
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
.advdom {
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.grey, .grey td {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.retour-auto {
|
||||
max-width:220px;
|
||||
word-wrap:break-word;
|
||||
}
|
|
@ -7,16 +7,11 @@ body {
|
|||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000000;
|
||||
background-color: #F0F0FA;
|
||||
/* background-color: cyan; */
|
||||
background-color: #B2CFE4;
|
||||
}
|
||||
|
||||
body.light {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: #000000;
|
||||
background-color: #F0F0FA;
|
||||
/* background-color: cyan; */
|
||||
background-color: #F0F0F4;
|
||||
}
|
||||
|
||||
.hlp {
|
||||
|
@ -40,20 +35,21 @@ th {
|
|||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 11px;
|
||||
color: black;
|
||||
background: #ABCDE4;
|
||||
background: #B2CFE4;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #10507C;
|
||||
font-size: 23px;
|
||||
font-weight: normal;
|
||||
color: #444;
|
||||
text-align: left;
|
||||
padding: 11px;
|
||||
padding-left: 0;
|
||||
margin: 0px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.trbtn {
|
||||
|
@ -68,9 +64,15 @@ h4 {
|
|||
}
|
||||
|
||||
hr {
|
||||
color: #007799;
|
||||
/*color: #007799;*/
|
||||
height: 1px;
|
||||
border: 1px solid #007799;
|
||||
/*border: 1px solid #007799;*/
|
||||
border: 1px solid #555;
|
||||
border-width: 1px 0 0 0;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
.inp {
|
||||
|
@ -133,13 +135,21 @@ input.inav:hover, .inav a:hover, a.inav:hover {
|
|||
.ina a, a.ina, .inav a, a.inav {
|
||||
color: black;
|
||||
white-space: nowrap;
|
||||
|
||||
border: 1px solid #999;
|
||||
font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
font-size: 10px;
|
||||
padding: 4px;
|
||||
padding: 4px 10px;
|
||||
color: black;
|
||||
cursor: pointer;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
input[type=button],
|
||||
input[type=submit] {
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.ina a:hover, a.ina:hover, .inav a:hover, a.inav:hover {
|
||||
text-decoration: none;
|
||||
|
@ -199,8 +209,12 @@ img {
|
|||
}
|
||||
|
||||
.error {
|
||||
color: red;
|
||||
color: #800;
|
||||
font-weight: bold;
|
||||
background-color: #FFEEDD;
|
||||
border: 1px solid #CC9966;
|
||||
padding: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Over quota class */
|
||||
|
@ -222,12 +236,12 @@ img {
|
|||
margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
width: 1020px;
|
||||
border: 5px solid #1D6A9F;
|
||||
border: 1px solid #888;
|
||||
-webkit-border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
background-color: #F0F0FA;
|
||||
/* background: #F1F8FD url(/admin/images/bgborder.gif) repeat-y scroll top left; */
|
||||
box-shadow: 1px 1px 15px #555;
|
||||
background-color: #F0F0F4;
|
||||
}
|
||||
|
||||
/* Main container */
|
||||
|
@ -237,7 +251,8 @@ img {
|
|||
}
|
||||
|
||||
#tdMenu {
|
||||
border-right: 1px dotted #1D6A9F;
|
||||
border-right: 1px solid #888;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#content {
|
||||
|
@ -259,52 +274,68 @@ img {
|
|||
padding-right: 10px;
|
||||
padding-bottom: 10px;
|
||||
padding-left: 10px;
|
||||
background-color: #EEE;
|
||||
border-radius: 10px 0 0 10px;
|
||||
-webkit-border-radius: 10px 0 0 10px;
|
||||
-moz-border-radius: 10px 0 0 10px;
|
||||
}
|
||||
|
||||
.menu-box {
|
||||
margin-bottom: 10px;
|
||||
font-size: 11px;
|
||||
background-color: #F4F4FA;
|
||||
box-shadow: 1px 1px 5px #555;
|
||||
border-radius: 4px 4px 0 0;
|
||||
-webkit-border-radius: 4px 4px 0 0;
|
||||
-moz-border-radius: 4px 4px 0 0;
|
||||
}
|
||||
|
||||
.menu-box .menu-title {
|
||||
color: #000000;
|
||||
border: 1px solid #1D6A9F;
|
||||
background-color: #C0DCF0;
|
||||
border-bottom: 2px solid #AAA;
|
||||
background-color: #CFE3F1;
|
||||
padding: 3px;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-border-radius: 4px 4px 0 0;
|
||||
-moz-border-radius: 4px 4px 0 0;
|
||||
border-radius: 4px 4px 0 0;
|
||||
}
|
||||
|
||||
.menu-box .menu-content {
|
||||
margin-top: 1px;
|
||||
.menu-box a .menu-title {
|
||||
}
|
||||
|
||||
.menu-box .menu-conmargin: {
|
||||
margin: 0 5px 5px 5px;
|
||||
}
|
||||
|
||||
.menu-box ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
padding: 5px 0 5px 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.menu-box li {
|
||||
}
|
||||
|
||||
.menu-box a {
|
||||
text-decoration: none;
|
||||
color: #0D5689;
|
||||
}
|
||||
|
||||
.menu-box a:hover {
|
||||
text-decoration: underline;
|
||||
color: #000000;
|
||||
.menu-box a:hover,
|
||||
.menu-box a:hover .menu-title {
|
||||
text-decoration: none;
|
||||
background-color: #DFEEF8;
|
||||
}
|
||||
|
||||
.menu-box li a {
|
||||
display: block;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px;
|
||||
padding: 5px 5px 5px 10px;
|
||||
color: #0D5689;
|
||||
padding-left: 2px;
|
||||
text-decoration: none;
|
||||
border: 1px solid #F1F8FD;
|
||||
border: 1px solid transparent;
|
||||
border-width: 1px 0;
|
||||
line-height: 0.75em;
|
||||
height: 10px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
|
@ -323,7 +354,8 @@ img {
|
|||
|
||||
.menu-box li a:hover {
|
||||
color: #000000;
|
||||
border: 1px solid #1D6A9F;
|
||||
border: 1px solid #C1D8E9;
|
||||
border-width: 1px 0;
|
||||
text-decoration: none;
|
||||
background-color: #DFEEF8;
|
||||
}
|
||||
|
@ -459,6 +491,7 @@ span#emaildom {
|
|||
|
||||
.tlist {
|
||||
width: 100%;
|
||||
border: 1px solid #C1D8E9;
|
||||
}
|
||||
|
||||
.tlistb, .tlistb td, .tlistb th {
|
||||
|
@ -468,7 +501,7 @@ span#emaildom {
|
|||
}
|
||||
|
||||
table.tlistb, .tlistb tr {
|
||||
border: solid 1px #AAA;
|
||||
border: solid 1px #C1D8E9;
|
||||
}
|
||||
|
||||
.tlist tr:hover, .tlist2 tr:hover {
|
||||
|
@ -476,7 +509,7 @@ table.tlistb, .tlistb tr {
|
|||
}
|
||||
|
||||
.tlist th, .tlist2 th {
|
||||
font-weight: bold;
|
||||
font-size: 125%;
|
||||
}
|
||||
|
||||
input#dir, input#sub_local {
|
||||
|
@ -507,3 +540,28 @@ input#dir, input#sub_local {
|
|||
max-width:220px;
|
||||
word-wrap:break-word;
|
||||
}
|
||||
|
||||
.menutoplogo {
|
||||
margin: 10px 0 0 5px;
|
||||
width: 190px;
|
||||
}
|
||||
|
||||
.currentuser {
|
||||
margin: 5px 5px 10px 5px;
|
||||
color:#444;
|
||||
}
|
||||
|
||||
.adminmenu {
|
||||
color: #800;
|
||||
}
|
||||
|
||||
.menu-quota dd {
|
||||
margin: 5px 5px 5px 10px;
|
||||
}
|
||||
|
||||
.menu-quota div.progress-bar {
|
||||
width: 180px;
|
||||
background: #fff;
|
||||
border: solid 1px #CACACA;
|
||||
padding-bottom
|
||||
}
|
||||
|
|
|
@ -166,6 +166,7 @@ class DB_Sql {
|
|||
if (isset($debug_alternc)) {
|
||||
$debug_alternc->add("SQL Query : (".substr($debug_chrono_start,0,5)." ms)\t $Query_String");
|
||||
$debug_alternc->nb_sql_query++;
|
||||
$debug_alternc->tps_sql_query += $debug_chrono_start;
|
||||
}
|
||||
|
||||
# Will return nada if it fails. That's fine.
|
||||
|
|
|
@ -634,7 +634,7 @@ function display_browser($dir="", $caller="main.dir", $width=350, $height=450) {
|
|||
open: function()
|
||||
{
|
||||
$('.ui-widget-overlay').css('opacity', .70);
|
||||
$('.ui-dialog-content').css('background-color', '#F0F0FA');
|
||||
$('.ui-dialog-content').css('background-color', '#F0F0F4');
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ class m_debug_alternc {
|
|||
var $infos="";
|
||||
var $status=false;
|
||||
var $nb_sql_query=0;
|
||||
var $tps_sql_query=0;
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** Constructor
|
||||
|
@ -37,6 +38,7 @@ class m_debug_alternc {
|
|||
ini_set('display_errors', true);
|
||||
}
|
||||
$this->nb_sql_query=0;
|
||||
$this->tps_sql_query=0;
|
||||
}
|
||||
|
||||
function activate() {
|
||||
|
@ -64,7 +66,7 @@ class m_debug_alternc {
|
|||
echo "<fieldset style='background-color: silver;'>";
|
||||
echo "<pre>";
|
||||
echo "+++ BEGIN Debug Mode+++\n\n";
|
||||
print_r("\n--- Total SQL Query : ".$this->nb_sql_query." ---\n");
|
||||
print_r("\n--- Total SQL Query : ".$this->nb_sql_query." req / ".$this->tps_sql_query." ms ---\n");
|
||||
print_r($this->infos);
|
||||
echo "\n\n--- GET ---\n";
|
||||
print_r($_GET);
|
||||
|
|
|
@ -195,17 +195,17 @@ class m_mem {
|
|||
return false;
|
||||
}
|
||||
|
||||
/* Faut finir de l'implémenter :)
|
||||
/* Faut finir de l'implémenter :) * /
|
||||
function authip_class() {
|
||||
global $cuid;
|
||||
$c = Array();
|
||||
$c['name']="Panel access";
|
||||
$c['protocol']="panel";
|
||||
$c['protocol']="mem";
|
||||
$c['values']=Array($cuid=>'');
|
||||
|
||||
return $c;
|
||||
}
|
||||
*/
|
||||
/* */
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
/** Vérifie que la session courante est correcte (cookie ok et ip valide).
|
||||
|
@ -220,6 +220,10 @@ class m_mem {
|
|||
function checkid() {
|
||||
global $db,$err,$cuid,$restrictip,$authip;
|
||||
if (isset($_REQUEST["username"])) {
|
||||
if ( empty($_REQUEST['password']) ) {
|
||||
$err->raise("mem",_("Missing password"));
|
||||
return false;
|
||||
}
|
||||
if ($_REQUEST["username"] && $_REQUEST["password"]) {
|
||||
return $this->login($_REQUEST["username"],$_REQUEST["password"],$_REQUEST["restrictip"]);
|
||||
}
|
||||
|
|
|
@ -4,5 +4,7 @@
|
|||
|
||||
. /etc/alternc/local.sh
|
||||
|
||||
test -x /usr/bin/logger && /usr/bin/logger -t ALTERNC Panel manual launch update_domain
|
||||
|
||||
test -e "$INOTIFY_UPDATE_DOMAIN" && /usr/lib/alternc/update_domains.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue