2006-04-26 12:28:53 +00:00
< ? php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
2012-08-26 16:11:53 +00:00
Copyright ( C ) 2000 - 2012 by the AlternC Development Team .
https :// alternc . org /
2006-04-26 12:28:53 +00:00
----------------------------------------------------------------------
LICENSE
This program is free software ; you can redistribute it and / or
modify it under the terms of the GNU General Public License ( GPL )
as published by the Free Software Foundation ; either version 2
of the License , or ( at your option ) any later version .
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
To read the license please visit http :// www . gnu . org / copyleft / gpl . html
----------------------------------------------------------------------
*/
/* ############# FTP ############# */
2009-09-08 05:29:38 +00:00
$q = $quota -> getquota ( " ftp " );
2012-08-26 16:11:53 +00:00
if ( $q [ " t " ] > 0 || $q [ 'u' ] > 0 ) {
2009-09-08 05:29:38 +00:00
2006-04-26 12:28:53 +00:00
?>
2009-09-08 05:29:38 +00:00
< div class = " menu-box " >
< div class = " menu-title " >
2012-04-06 10:10:36 +00:00
< a href = " javascript:menu_toggle('menu-ftp'); " >
2012-08-06 10:14:44 +00:00
< img src = " images/ftp.png " alt = " <?php __( " FTP accounts " ); ?> " />& nbsp ; < ? 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>'; } ?>
2012-04-06 10:10:36 +00:00
< img src = " images/row-down.png " alt = " " style = " float:right; " /></ a >
</ div >
2009-09-08 05:29:38 +00:00
< div class = " menu-content " id = " menu-ftp " >
< ul >
< ? php if ( $quota -> cancreate ( " ftp " )) { ?>
2013-01-29 09:38:50 +00:00
< li >< a href = " ftp_edit.php?create=1 " >< img src = " images/new.png " alt = " <?php __( " Create a new ftp account " ); ?> " />& nbsp ; < ? php __ ( " Create a new ftp account " ); ?> </a></li>
2009-09-08 05:29:38 +00:00
< ? php } ?>
2013-01-29 09:38:50 +00:00
< ? php if ( $q [ 'u' ] > 0 ) { // if there are some FTP accounts ?>
< li >< a href = " ftp_list.php " >< ? php __ ( " FTP accounts list " ); ?> </a></li>
< ? php } //no existing FTP accounts ?>
2009-09-08 05:29:38 +00:00
</ ul >
</ div >
</ div >
2012-04-06 10:10:36 +00:00
< ? php } ?>