Alternc
3.2
Alternc logiel libre pour l'hébergement
|
Go to the source code of this file.
Functions | |
fl ($str) | |
variable_get ($name, $default=null, $createit_comment=null, $type=null) | |
checkhostallow ($domain, $dns) | |
checkhostallow_nodns ($domain) | |
get_remote_ip () | |
checkurl ($url) | |
checksubtxt ($txt) | |
checkcname ($cname) | |
checkip ($ip) | |
checkipv6 ($ip) | |
checkloginmail ($mail) | |
checkmail ($mail) | |
checkfqdn ($fqdn) | |
checkuserpath ($path) | |
getuserpath ($user=null) | |
get the home of the user | |
cbox ($test) | |
selected ($bool) | |
ecif ($test, $tr, $fa="", $affiche=1) | |
__ ($str) | |
ife ($test, $tr, $fa="") | |
format_size ($size, $html=0) | |
getlinkhelp ($hid) | |
linkhelp ($hid) | |
format_date ($format, $date) | |
ssla ($str) | |
_md5cr ($pass, $salt="") | |
Hashe un mot de passe en clair en MD5 avec un salt aléatoire. | |
split_mysql_database_name ($dbname) | |
split mysql database name between username and custom database name | |
xml_entities ($string) | |
Echappe les caractères pouvant perturber un flux XML standard : | |
pretty_months ($months) | |
Converti un nombre de mois en une chaine plus lisible. |
string $name Nom pour le composasnt | |
Fabrique un drop-down pour les durées de comptes number Option selectionée du composant
| |
const | DEFAULT_PASS_SIZE = 8 |
duration_list ($name, $selected=0) | |
eoption ($values, $cur, $onedim=false) | |
ehe ($str, $affiche=1) | |
getFields ($fields, $requestOnly=false) | |
printVar ($array) | |
list_properties_order ($a, $b) | |
pager ($offset, $count, $total, $url, $before="", $after="") | |
Show a pager as Previous page 0 1 2 ... | |
create_pass ($length=8) | |
display_div_generate_password ($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="") | |
display_browser ($dir="", $caller="main.dir", $width=350, $height=450) | |
auto_wrap ($message="", $max=10, $wrap_string="<wbr/>") | |
fHSVtoRGB ($iH, $iS, $iV) | |
hexa ($hex) | |
PercentToColor ($p=0) | |
panel_lock () | |
panel_unlock () | |
panel_islocked () |
__ | ( | $str | ) |
Definition at line 261 of file functions.php.
Referenced by display_div_generate_password(), and sub_domains_edit().
_md5cr | ( | $pass, | |
$salt = "" |
|||
) |
Hashe un mot de passe en clair en MD5 avec un salt aléatoire.
string | $pass | Mot de passe à crypter (max 32 caractères) |
Definition at line 348 of file functions.php.
References $i.
Referenced by m_ftp\add_ftp(), m_aws\add_login(), m_admin\add_mem(), m_hta\add_user(), m_hta\change_pass(), m_mem\login(), m_mem\passwd(), m_ftp\put_ftp_details(), and m_admin\update_mem().
auto_wrap | ( | $message = "" , |
|
$max = 10 , |
|||
$wrap_string = "<wbr/>" |
|||
) |
Definition at line 667 of file functions.php.
References isset.
cbox | ( | $test | ) |
Definition at line 235 of file functions.php.
Referenced by sub_domains_edit(), and var_input().
checkcname | ( | $cname | ) |
Definition at line 131 of file functions.php.
Referenced by m_dom\check_type_value().
checkfqdn | ( | $fqdn | ) |
Definition at line 164 of file functions.php.
References $key, $members, and $val.
Referenced by m_dom\add_domain(), checkurl(), m_dom\edit_domain(), m_dom\get_domain_all(), and m_dom\set_sub_domain().
checkhostallow | ( | $domain, | |
$dns | |||
) |
Definition at line 43 of file functions.php.
References $db, $dom, $domain, $found, $i, $key, and $val.
Referenced by m_dom\add_domain(), and m_dom\edit_domain().
checkhostallow_nodns | ( | $domain | ) |
Definition at line 82 of file functions.php.
References $db, $domain, $found, $key, and $val.
Referenced by m_dom\add_domain().
checkip | ( | $ip | ) |
Definition at line 136 of file functions.php.
Referenced by m_dom\add_slave_ip(), m_dom\check_type_value(), m_dom\del_slave_ip(), m_authip\ip_save(), and m_authip\list_ip().
checkipv6 | ( | $ip | ) |
Definition at line 142 of file functions.php.
Referenced by m_dom\check_type_value(), m_authip\ip_save(), and m_authip\list_ip().
checkloginmail | ( | ) |
checkmail | ( | ) |
Definition at line 155 of file functions.php.
Referenced by m_cron\_update_one(), m_admin\add_mem(), and m_admin\mailallmembers().
checksubtxt | ( | $txt | ) |
Definition at line 127 of file functions.php.
checkurl | ( | $url | ) |
Definition at line 113 of file functions.php.
References $t, and checkfqdn().
checkuserpath | ( | $path | ) |
Definition at line 189 of file functions.php.
References $mem, $user, ALTERNC_HTML, and getuserpath().
Referenced by m_dom\check_type_value().
create_pass | ( | $length = 8 | ) |
Definition at line 604 of file functions.php.
Referenced by m_mysql\add_db(), m_mysql\alternc_add_member(), and m_piwik\user_add().
display_browser | ( | $dir = "" , |
|
$caller = "main.dir" , |
|||
$width = 350 , |
|||
$height = 450 |
|||
) |
Definition at line 628 of file functions.php.
References ehe().
Referenced by sub_domains_edit().
display_div_generate_password | ( | $pass_size = DEFAULT_PASS_SIZE , |
|
$fields_to_fill1 = "" , |
|||
$fields_to_fill2 = "" |
|||
) |
Definition at line 618 of file functions.php.
References __().
duration_list | ( | $name, | |
$selected = 0 |
|||
) |
Definition at line 402 of file functions.php.
References $res, and pretty_months().
ecif | ( | $test, | |
$tr, | |||
$fa = "" , |
|||
$affiche = 1 |
|||
) |
Definition at line 249 of file functions.php.
ehe | ( | $str, | |
$affiche = 1 |
|||
) |
Definition at line 446 of file functions.php.
Referenced by add_var(), display_browser(), edit_var(), and var_input().
eoption | ( | $values, | |
$cur, | |||
$onedim = false |
|||
) |
Definition at line 429 of file functions.php.
Referenced by add_var().
fHSVtoRGB | ( | $iH, | |
$iS, | |||
$iV | |||
) |
Definition at line 693 of file functions.php.
Referenced by PercentToColor().
fl | ( | $str | ) |
Definition at line 31 of file functions.php.
format_date | ( | $format, | |
$date | |||
) |
format_size | ( | $size, | |
$html = 0 |
|||
) |
Definition at line 272 of file functions.php.
References $r.
Referenced by m_quota\display_val(), and m_quota\hook_menu().
get_remote_ip | ( | ) |
Definition at line 106 of file functions.php.
Referenced by m_mem\checkid(), m_mem\del_session(), m_err\log(), m_mem\login(), m_mem\resetlast(), and m_mem\setid().
getFields | ( | $fields, | |
$requestOnly = false |
|||
) |
Definition at line 459 of file functions.php.
References $fields, $options, $value, and isset.
getlinkhelp | ( | $hid | ) |
Definition at line 310 of file functions.php.
Referenced by linkhelp().
getuserpath | ( | $user = null | ) |
get the home of the user
string $user the username, if null will use the global $mem. no security checks performed on path
Definition at line 224 of file functions.php.
References $mem, $user, and ALTERNC_HTML.
Referenced by m_ftp\add_ftp(), m_admin\add_mem(), m_bro\alternc_export_data(), checkuserpath(), m_admin\del_mem(), m_bro\DeleteFile(), m_bro\DownloadTBZ(), m_bro\DownloadTGZ(), m_bro\DownloadZ(), m_dom\generate_apacheconf(), m_ftp\get_ftp_details(), m_mysql\get_mysql_details(), m_bro\get_user_root(), m_ftp\is_ftp(), and m_ftp\put_ftp_details().
hexa | ( | $hex | ) |
Definition at line 735 of file functions.php.
ife | ( | $test, | |
$tr, | |||
$fa = "" |
|||
) |
Definition at line 265 of file functions.php.
Referenced by _subbrowse(), and browseforfolder().
linkhelp | ( | $hid | ) |
list_properties_order | ( | $a, | |
$b | |||
) |
Definition at line 508 of file functions.php.
pager | ( | $offset, | |
$count, | |||
$total, | |||
$url, | |||
$before = "" , |
|||
$after = "" |
|||
) |
Show a pager as Previous page 0 1 2 ...
16 17 18 19 20 ... 35 36 37 Next page Arguments are as follow : $offset = the current offset from 0 $count = The number of elements shown per page $total = The total number of elements $url = The url to show for each page. %offset%% will be replace by the proper offset $before & $after are HTML code to show before and after the pager only if the pager is to be shown
Definition at line 525 of file functions.php.
panel_islocked | ( | ) |
Definition at line 765 of file functions.php.
References ALTERNC_LOCK_PANEL.
Referenced by m_mem\checkid(), and m_mem\login().
panel_lock | ( | ) |
Definition at line 753 of file functions.php.
References $cuid, $err, $mem, and ALTERNC_LOCK_PANEL.
panel_unlock | ( | ) |
Definition at line 759 of file functions.php.
References $cuid, $err, $mem, and ALTERNC_LOCK_PANEL.
PercentToColor | ( | $p = 0 | ) |
Definition at line 741 of file functions.php.
References $p, and fHSVtoRGB().
pretty_months | ( | $months | ) |
Converti un nombre de mois en une chaine plus lisible.
number | $months | Nombre de mois |
Definition at line 386 of file functions.php.
Referenced by duration_list().
printVar | ( | $array | ) |
Definition at line 503 of file functions.php.
selected | ( | $bool | ) |
Definition at line 243 of file functions.php.
split_mysql_database_name | ( | $dbname | ) |
split mysql database name between username and custom database name
string | $dbname | database name |
Definition at line 363 of file functions.php.
Referenced by m_mysql\get_dblist(), and m_mysql\get_mysql_details().
ssla | ( | $str | ) |
Definition at line 334 of file functions.php.
Referenced by m_bro\ChangePermissions(), m_bro\CopyFile(), m_bro\CreateDir(), m_bro\CreateFile(), m_bro\DeleteFile(), m_bro\MoveFile(), and m_bro\RenameFile().
variable_get | ( | $name, | |
$default = null , |
|||
$createit_comment = null , |
|||
$type = null |
|||
) |
Definition at line 33 of file functions.php.
References $variables.
Referenced by m_action\archive(), m_admin\hook_admin_add_member(), m_admin\m_admin(), m_dom\m_dom(), m_ftp\m_ftp(), m_lxc\m_lxc(), m_mail\m_mail(), m_mysql\m_mysql(), m_piwik\m_piwik(), m_quota\m_quota(), and m_mysql\put_mysql_backup().
xml_entities | ( | $string | ) |
Echappe les caractères pouvant perturber un flux XML standard :
string | $string | Chaine de caractère à encoder en valeur xml. |
Definition at line 376 of file functions.php.
const DEFAULT_PASS_SIZE = 8 |
Definition at line 615 of file functions.php.