contenido\includes\functions.system.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    Project: Contenido Content Management System

    Description: Some system functions

    Requirements:

    Author
    unknown  
    Con_php_req
    5.0  
    Copyright
    four for business AG  
    License
    http://www.contenido.org/license/LIZENZ.txt  
    Link
    http://www.4fb.de  
    Link
    http://www.contenido.org  
    Package
    Contenido Backend includes  
    Since
    file available since contenido release <= 4.6 {@internal created unknown modified 2008-06-26, Frederic Schneider, add security fix modified 2008-06-27, Timo Trautmann, add check to emptyLogFile if there is a permission to write file modified 2008-07-07, Dominik Ziegler, fixed language bugs modified 2008-11-21, Andreas Lindner, enhance formatting of client information modified 2008-11-21, Andreas Lindner, beautify output for empty configuration values $Id: functions.system.php 888 2008-11-21 10:19:10Z andreas.lindner $: }}  
    Version
    1.2.0  

    Functions

    functioncheckPathInformation(string $strConUrl, string $strBrowserUrl) : string

    must be done

    must be done

    Parameters
    NameTypeDescription
    $strConUrlstring

    contenido fullhtmlPath

    $strBrowserUrlstring

    current browser string

    Returns
    TypeDescription
    stringstatus of path comparement
    functioncompareUrlStrings( $arrConUrl,  $arrBrowserUrl,  $isIP = false) : void

    check path informations

    checks two path informations against each other to get potential nonconformities

    Parameters
    NameTypeDescription
    $arrConUrl
    $arrBrowserUrl
    $isIP
    functionemptyLogFile() : string

    emptyLogFile - clears errorlog.txt

    clears Contenido standard errorlog.txt

    Returns
    TypeDescription
    stringreturns message if clearing was successfull or not
    Details
    Author
    Marco Jahn  
    functionisIPv4(string $strHostAdress) : boolean

    check for valid ip adress

    Parameters
    NameTypeDescription
    $strHostAdressstring

    ip adress

    Returns
    TypeDescription
    booleanif string is a valid ip or not
    functionphpInfoToHtml() : string

    phpInfoToHtml - grabs phpinfo() output

    grabs phpinfo() HTML output

    Returns
    TypeDescription
    stringreturns phpinfo() HTML output
    Details
    Author
    Marco Jahn  
    functionsendBugReport() : string

    sendBugReport - send users bugreport

    send users bugreport contains 4 attachements (1) errorlog.txt (2) install.log.txt (3) systemvariablen.html (generaten of writeSystemValuesOutput()) (4) phpinfo.html (generated of phpInfoToHtml())

    to avoid errors when filesize attachement (1) or (2) is 0kb temporarily attachements with a specified message will be created

    return value: - error code (0-3) 0) mail send successfull (no errors or missing data) 1) not all fields are filled out 2) email adress is not valid 3) user hasn't agreed to the declaration of consent

    Returns
    TypeDescription
    stringreturns several server and Contenido settings
    Details
    Author
    Marco Jahn  
    functionsystem_have_perm(integer $client) : boolean

    check users right for a client

    check if the user has a right for a defined client

    Parameters
    NameTypeDescription
    $clientinteger

    client id

    Returns
    TypeDescription
    booleanwether user has access or not
    Details
    Author
    Marco Jahn  
    functionwriteSystemValuesOutput( $usage) : string

    writeSystemValuesOutput - get several server and Contenido settings

    parse system and Contenido output into a string

    Parameters
    NameTypeDescription
    $usage
    Returns
    TypeDescription
    stringreturns a string containing several server and Contenido settings
    Details
    Author
    Marco Jahn  
    Documentation was generated by phpDocumentor 2.0.0a12.