Go to the source code of this file.
|
| N_ ($s) |
|
| print_r2 ($z, $ret=false) |
|
| AddLogMsg ($msg, $cut=80) |
|
| deprecatedFunction ($msg= '') |
|
| AddWarningMsg ($msg) |
|
| getMailAddr ($userid, $full=false) |
|
| getTmpDir ($def= '/tmp') |
|
| getParam ($name, $def="") |
| must be in core or global type
|
|
| getCoreParam ($name, $def="") |
| must be in core or global type
|
|
| getSessionValue ($name, $def="") |
|
| getLayoutFile ($app, $layfile) |
|
| mb_ucfirst ($s) |
|
| microtime_diff ($a, $b) |
|
| getDebugStack ($slice=1) |
|
| getDbid ($dbaccess) |
|
| getDbAccess () |
|
| getDbAccessCore () |
|
| getDbAccessFreedom () |
|
| getDbEnv () |
|
| getFreedomContext () |
|
| getServiceCore () |
|
| getServiceFreedom () |
|
| getDbName ($dbaccess) |
|
| getServiceName ($dbaccess) |
|
| simpleQuery ($dbaccess, $query, &$result=array(), $singlecolumn=false, $singleresult=false) |
|
| getAuthType ($freedomctx="") |
|
| getAuthProvider ($freedomctx="") |
|
| getAuthProviderList ($freedomctx="") |
|
| getAuthTypeParams ($freedomctx="") |
|
| getAuthParam ($freedomctx="", $provider="") |
|
| getWshCmd ($nice=false, $userid=0, $sudo=false) |
|
| getUserId () |
|
| bgexec ($tcmd, &$result, &$err) |
|
| wbartext ($text) |
|
| wbar ($reste, $total, $text="", $fbar=false) |
|
| getJsVersion () |
|
| setMailtoAnchor ($to, $acontent="", $subject="", $cc="", $bcc="", $from="", $anchorattr=array(), $forcelink="") |
|
| isUTF8 ($string) |
|
| seems_utf8 ($Str) |
|
| usefreedomuser () |
|
| WhatInitialisation () |
|
| setSystemLogin ($login) |
|
| mkpasswd ($length=8, $charspace="") |
|
| getLcdate () |
|
| getLocaleConfig ($core_lang= '') |
|
| setLanguage ($lang) |
|
AddLogMsg |
( |
|
$msg, |
|
|
|
$cut = 80 |
|
) |
| |
send a message to system log
- Parameters
-
string | $msg | message to log |
int | $cut | size limit |
Definition at line 37 of file Lib.Common.php.
bgexec |
( |
|
$tcmd, |
|
|
& |
$result, |
|
|
& |
$err |
|
) |
| |
exec list of unix command in background
- Parameters
-
array | $tcmd | unix command strings |
Definition at line 523 of file Lib.Common.php.
deprecatedFunction |
( |
|
$msg = '' | ) |
|
send a message to system log
- Parameters
-
Definition at line 46 of file Lib.Common.php.
getAuthParam |
( |
|
$freedomctx = "" , |
|
|
|
$provider = "" |
|
) |
| |
getAuthProvider |
( |
|
$freedomctx = "" | ) |
|
getAuthProviderList |
( |
|
$freedomctx = "" | ) |
|
getAuthType |
( |
|
$freedomctx = "" | ) |
|
getAuthTypeParams |
( |
|
$freedomctx = "" | ) |
|
getCoreParam |
( |
|
$name, |
|
|
|
$def = "" |
|
) |
| |
must be in core or global type
return value of a parameter
- Parameters
-
string | $name | param name |
string | $def | default value if value is empty |
- Returns
- string
Definition at line 114 of file Lib.Common.php.
getDebugStack |
( |
|
$slice = 1 | ) |
|
getLayoutFile |
( |
|
$app, |
|
|
|
$layfile |
|
) |
| |
return lcdate use in database : iso or dmy
- Returns
- string
Definition at line 790 of file Lib.Common.php.
getLocaleConfig |
( |
|
$core_lang = '' | ) |
|
getMailAddr |
( |
|
$userid, |
|
|
|
$full = false |
|
) |
| |
get mail addr of a user
- Parameters
-
- Returns
- string mail address, false if user not exists
Definition at line 62 of file Lib.Common.php.
getParam |
( |
|
$name, |
|
|
|
$def = "" |
|
) |
| |
must be in core or global type
return value of parameters
- Parameters
-
string | $name | param name |
string | $def | default value if value is empty |
- Returns
- string
Definition at line 98 of file Lib.Common.php.
getServiceName |
( |
|
$dbaccess | ) |
|
getSessionValue |
( |
|
$name, |
|
|
|
$def = "" |
|
) |
| |
- Parameters
-
string | $name | the variable |
string | $def | default value if variable is not defined |
- Returns
- unknown_type
Definition at line 138 of file Lib.Common.php.
getTmpDir |
( |
|
$def = '/tmp' | ) |
|
getWshCmd |
( |
|
$nice = false , |
|
|
|
$userid = 0 , |
|
|
|
$sudo = false |
|
) |
| |
return shell commande for wsh depending of database (in case of several instances)
- Parameters
-
bool | $nice | set to true if want nice mode |
int | $userid | the user identificator to send command (if 0 send like admin without specific user parameter) |
bool | $sudo | set to true if want to be send with sudo (need /etc/sudoers correctly configured) |
- Returns
- string the command
Definition at line 497 of file Lib.Common.php.
Returns true
if the string or array of string is encoded in UTF8.
Example of use. If you want to know if a file is saved in UTF8 format : $array = file('one file.txt'); $isUTF8 = isUTF8($array); if (!$isUTF8) –> we need to apply utf8_encode() to be in UTF8 else –> we are in UTF8 :)
- Parameters
-
mixed | A string, or an array from a file() function. |
- Returns
- boolean
Definition at line 679 of file Lib.Common.php.
like ucfirst for utf-8
- Parameters
-
- Returns
- string
Definition at line 193 of file Lib.Common.php.
microtime_diff |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
mkpasswd |
( |
|
$length = 8 , |
|
|
|
$charspace = "" |
|
) |
| |
Returns a random password of specified length composed with chars from the given charspace string or pattern
Definition at line 753 of file Lib.Common.php.
print_r2 |
( |
|
$z, |
|
|
|
$ret = false |
|
) |
| |
Returns true
if the string is encoded in UTF8.
- Parameters
-
- Returns
- boolean
Definition at line 690 of file Lib.Common.php.
setMailtoAnchor |
( |
|
$to, |
|
|
|
$acontent = "" , |
|
|
|
$subject = "" , |
|
|
|
$cc = "" , |
|
|
|
$bcc = "" , |
|
|
|
$from = "" , |
|
|
|
$anchorattr = array() , |
|
|
|
$forcelink = "" |
|
) |
| |
produce an anchor mailto '<a ...>'
- Parameters
-
string | to a valid mail address or list separated by comma -supported by client- |
string | anchor content <a...>anchor content |
string | subject |
string | cc |
string | bcc |
array | treated as html anchor attribute : key is attribute name and value.. value |
string | force link to be produced according the value |
- Returns
- string like user admin dbname anakeen
Definition at line 589 of file Lib.Common.php.
simpleQuery |
( |
|
$dbaccess, |
|
|
|
$query, |
|
|
& |
$result = array() , |
|
|
|
$singlecolumn = false , |
|
|
|
$singleresult = false |
|
) |
| |
send simple query to database
- Parameters
-
string | $dbaccessaccess | database coordonates |
string | $query | sql query |
| string/array | &$result query result |
boolean | $singlecolumn | set to true if only onz field is return |
boolean | $singleresult | set to true is only one row is expected (return the first row). If is combined with singlecolumn return the value not an array |
- Returns
- string error message. Empty message if no errors.
Definition at line 346 of file Lib.Common.php.
wbar |
( |
|
$reste, |
|
|
|
$total, |
|
|
|
$text = "" , |
|
|
|
$fbar = false |
|
) |
| |
Initialise WHAT : set global $action whithout an authorized user
Definition at line 720 of file Lib.Common.php.