Показать сообщение отдельно
Старый 29.02.2008, 10:01     # 398
Makc666
mod
Makc666-2004-3004
 
Аватар для Makc666
 
Регистрация: 26.11.2001
Адрес: MSK-RU
Пол: Male
Сообщения: 4 577

Makc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 Гипербог
Makc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 ГипербогMakc666 Гипербог
Цитата:
Сообщение от igorbv Посмотреть сообщение
Имелась в виду автоматизация обнуления квоты анонимуса
Да, я уже понял, что неправильно Вам написал в первый раз.

Выход у Вас один, как я думаю.
Это использование Domain ODBC (Domain Parameters), т.е. хранение настроек домена в базе данных.

Далее написание скрипта, который будет подсчитывать текущее место на диске и обновлять цифры в базе данных.

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

Единственное, что меня немного смущает, это что будет после обновления квоты в базе данных с пользователями, которые подключились к FTP ранее.
И 1 минута это очень часто, как я думаю

Читать в: Serv-U Administrator Program -> Configuration Tabs -> Domain Parameters -> Domain ODBC

Цитата:
Column name of enable quota

This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. When enabled (TRUE) the account has disk quota enforced, when disabled (FALSE) there is no disk quota management for the account. This is a boolean field.

Column name of current disk quota

This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. This is the number of currently used bytes of disk quota for the account. It is a 64-bit integer field. If only 32-bit integers are available in the underlying database, such as in MS Access, this can be used but disk quota will be limited to a maximum of around 2GB.

Column name of maximum disk quota

This field is used in the user accounts table and is optional. If disk quota support is needed this field needs to be present. This is the maximum number of bytes the account is allowed to use. It is a 64-bit integer field. If only 32-bit integers are available in the underlying database, such as in MS Access, this can be used but disk quota will be limited to a maximum of around 2GB.
__________________
Проблемы с закачкой? Почитай тут!
[IMG] код Выкл. "А стукачков мы не любим!"

Последний раз редактировалось Makc666; 29.02.2008 в 10:04.
Makc666 вне форума