Alternc
latest
Alternc logiel libre pour l'hébergement
|
This class manage awstats statistic sets. More...
Public Member Functions | |
m_aws () | |
Constructor. More... | |
hook_menu () | |
alternc_password_policy () | |
Password kind used in this class (hook for admin class) More... | |
alternc_module_description () | |
Name of the module function. More... | |
get_list () | |
Returns an array with all the statistics of a member. More... | |
get_stats_details ($id) | |
Return an array with the details for 1 statistic set. More... | |
host_list () | |
Return the list of domains / subdomains allowed for this member with the type (MX,URL,...) More... | |
prefix_list () | |
Returns the list of prefixes that can be used on current account. More... | |
select_prefix_list ($current) | |
Echoes <option> tags of all the domains hosted on the account + the login of the account They can be used as a root for the login that may have access to web statistics hosted on an account $current will be the selected value. More... | |
select_host_list ($current) | |
Draw options for a select html code with the list of allowed and availables domains for this member. More... | |
check_host_available ($current) | |
Check if hosts is already used by awstats of available for this member. More... | |
get_hostaliases ($id) | |
Return the hostaliases list with an id. More... | |
put_stats_details ($id, $users, $hostaliases, $public) | |
Edit a statistic set (change allowed user list) More... | |
delete_stats ($id) | |
Delete a statistic set. More... | |
add_stats ($hostname, $users="", $hostaliases, $public) | |
Create a new statistic set. More... | |
list_login () | |
list_allowed_login ($id) | |
get_view_public ($id) | |
login_exists ($login, $exists=1) | |
del_login ($login) | |
add_login ($login, $pass) | |
change_pass ($login, $pass) | |
allow_login ($login, $id, $noconf=0) | |
delete_allowed_login ($id, $noconf=0) | |
deny_login ($login, $id, $noconf=0) | |
alternc_del_member () | |
alternc_del_domain ($dom) | |
This function is called on each class when a domain name is uninstalled. More... | |
hook_quota_get () | |
This function is called when we are asked to compute the used quota for a service. More... | |
_check ($login) | |
_delconf ($hostname) | |
Delete the awstats configuration file for a statistic set. More... | |
_createconf ($id, $nochk=0) | |
Create a configuration file for a statistic set. More... | |
_createhtpasswd () | |
alternc_export () | |
Exports all the aws related information for an account. More... | |
crypt_apr1_md5 ($plainpasswd) | |
from http://php.net/crypt#73619 More... | |
Public Attributes | |
$CONFDIR ="/etc/awstats" | |
Where are the awstats configuration files : @access private. More... | |
$HTAFILE ="/etc/alternc/awstats.htpasswd" | |
$CACHEDIR ="/var/cache/awstats" | |
$TEMPLATEFILE ="/etc/alternc/templates/awstats/awstats.template.conf" | |
Where is the template for conf files : @access private. More... | |
This class manage awstats statistic sets.
Copyleft AlternC Team
m_aws::_check | ( | $login | ) |
Definition at line 664 of file m_aws.php.
References $c, $login, $mem, $msg, $r, and prefix_list().
Referenced by add_login(), allow_login(), change_pass(), and deny_login().
m_aws::_createconf | ( | $id, | |
$nochk = 0 |
|||
) |
Create a configuration file for a statistic set.
if nochk==1, does not check the owner of the stat set (for admin only) @access private
Definition at line 707 of file m_aws.php.
References $cuid, $db, $f, $msg, $uid, and $username.
Referenced by add_stats(), allow_login(), delete_allowed_login(), deny_login(), and put_stats_details().
m_aws::_createhtpasswd | ( | ) |
Definition at line 759 of file m_aws.php.
Referenced by add_login(), add_stats(), allow_login(), alternc_del_domain(), alternc_del_member(), change_pass(), del_login(), delete_allowed_login(), deny_login(), and put_stats_details().
m_aws::_delconf | ( | $hostname | ) |
Delete the awstats configuration file for a statistic set.
@access private
Definition at line 692 of file m_aws.php.
References $msg.
Referenced by alternc_del_domain(), alternc_del_member(), and delete_stats().
m_aws::add_login | ( | $login, | |
$pass | |||
) |
Definition at line 468 of file m_aws.php.
References $cuid, $db, $login, $msg, _check(), _createhtpasswd(), crypt_apr1_md5(), and login_exists().
m_aws::add_stats | ( | $hostname, | |
$users = "" , |
|||
$hostaliases, | |||
$public | |||
) |
Create a new statistic set.
string | $hostname | The domain name |
$uers | array the array of users that will be allowed | |
$hostaliases | array an array of host aliases | |
$public | boolean Shall this statistic set be public ? |
Definition at line 347 of file m_aws.php.
References $cuid, $db, $id, $key, $mem, $msg, $r, $val, _createconf(), _createhtpasswd(), allow_login(), and host_list().
m_aws::allow_login | ( | $login, | |
$id, | |||
$noconf = 0 |
|||
) |
Definition at line 518 of file m_aws.php.
References $cuid, $db, $id, $login, $msg, _check(), _createconf(), _createhtpasswd(), and login_exists().
Referenced by add_stats(), and put_stats_details().
m_aws::alternc_del_domain | ( | $dom | ) |
This function is called on each class when a domain name is uninstalled.
string | $dom | the domain to uninstall |
Definition at line 628 of file m_aws.php.
References $cuid, $db, $dom, $i, $msg, $t, _createhtpasswd(), and _delconf().
m_aws::alternc_del_member | ( | ) |
Definition at line 605 of file m_aws.php.
References $cuid, $db, $i, $msg, $t, _createhtpasswd(), and _delconf().
m_aws::alternc_export | ( | ) |
m_aws::alternc_module_description | ( | ) |
Name of the module function.
m_aws::alternc_password_policy | ( | ) |
m_aws::change_pass | ( | $login, | |
$pass | |||
) |
Definition at line 493 of file m_aws.php.
References $cuid, $db, $login, $msg, _check(), _createhtpasswd(), crypt_apr1_md5(), and login_exists().
m_aws::check_host_available | ( | $current | ) |
Check if hosts is already used by awstats of available for this member.
Definition at line 253 of file m_aws.php.
References $key, $msg, $r, $val, and get_list().
Referenced by select_host_list().
m_aws::crypt_apr1_md5 | ( | $plainpasswd | ) |
from http://php.net/crypt#73619
Definition at line 812 of file m_aws.php.
Referenced by add_login(), and change_pass().
m_aws::del_login | ( | $login | ) |
Definition at line 453 of file m_aws.php.
References $cuid, $db, $login, $msg, _createhtpasswd(), and login_exists().
m_aws::delete_allowed_login | ( | $id, | |
$noconf = 0 |
|||
) |
integer | $id |
Definition at line 554 of file m_aws.php.
References $cuid, $db, $id, $msg, _createconf(), and _createhtpasswd().
Referenced by delete_stats(), and put_stats_details().
m_aws::delete_stats | ( | $id | ) |
Delete a statistic set.
integer | $id | The statistic set ID |
Definition at line 319 of file m_aws.php.
References $cuid, $db, $id, $msg, _delconf(), and delete_allowed_login().
m_aws::deny_login | ( | $login, | |
$id, | |||
$noconf = 0 |
|||
) |
Definition at line 573 of file m_aws.php.
References $cuid, $db, $id, $login, $msg, _check(), _createconf(), _createhtpasswd(), and login_exists().
m_aws::get_hostaliases | ( | $id | ) |
m_aws::get_list | ( | ) |
Returns an array with all the statistics of a member.
Definition at line 96 of file m_aws.php.
References $cuid, $db, $msg, $r, and $t.
Referenced by check_host_available().
m_aws::get_stats_details | ( | $id | ) |
Return an array with the details for 1 statistic set.
integer | $id | ID of the set we want. |
Definition at line 138 of file m_aws.php.
References $cuid, $db, $id, and $msg.
Referenced by put_stats_details().
m_aws::hook_menu | ( | ) |
m_aws::hook_quota_get | ( | ) |
m_aws::host_list | ( | ) |
Return the list of domains / subdomains allowed for this member with the type (MX,URL,...)
Definition at line 172 of file m_aws.php.
References $cuid, $db, $msg, and $r.
Referenced by add_stats(), and select_host_list().
m_aws::list_allowed_login | ( | $id | ) |
m_aws::login_exists | ( | $login, | |
$exists = 1 |
|||
) |
Definition at line 440 of file m_aws.php.
References $cuid, $db, and $msg.
Referenced by add_login(), allow_login(), change_pass(), del_login(), and deny_login().
m_aws::prefix_list | ( | ) |
m_aws::put_stats_details | ( | $id, | |
$users, | |||
$hostaliases, | |||
$public | |||
) |
Edit a statistic set (change allowed user list)
integer | $id | the stat number we change |
array | $users | the list of allowed users |
Definition at line 294 of file m_aws.php.
References $cuid, $db, $id, $msg, _createconf(), _createhtpasswd(), allow_login(), delete_allowed_login(), and get_stats_details().
m_aws::select_host_list | ( | $current | ) |
Draw options for a select html code with the list of allowed and availables domains for this member.
Definition at line 235 of file m_aws.php.
References $c, $key, $r, $val, check_host_available(), and host_list().
m_aws::select_prefix_list | ( | $current | ) |
Echoes <option> tags of all the domains hosted on the account + the login of the account They can be used as a root for the login that may have access to web statistics hosted on an account $current will be the selected value.
string | $current | The default selected value |
Definition at line 219 of file m_aws.php.
References $c, $key, $r, $val, and prefix_list().
m_aws::$CONFDIR ="/etc/awstats" |
m_aws::$TEMPLATEFILE ="/etc/alternc/templates/awstats/awstats.template.conf" |