Git Product home page Git Product logo

eportal's Introduction

NAME
    ePortal::Server - The core module of ePortal project.

SYNOPSIS
    ePortal is a set of perl packages and HTML::Mason components to easy
    implement intranet WEB site for a company. ePortal is writen with a help
    of Apache, mod_perl, HTML::Mason. The current version of ePortal uses
    MySQL as database backend.

    The ePortal project is open source software.

DOCUMENTATION
    Look at <http://eportal.sourceforge.net/eng_index.html> for complete
    documentation (Russian and English) and screen shots.

METHODS
  Application()
     $app = $ePortal->Application('appname');

    Returns ePortal::Application object or undef if no such object exists.

    Returns $ePortal itself for application called 'ePortal'.

    throws Exception::ApplicationNotInstalled if the application is not
    installed.

  ApplicationsInstalled()
    Returns array of installed application names based on modules found in
    ePortal::App directory

  CheckUserAccount($username,$password)
    Complete checks for a user account. If it is external user then local
    copy is created. If local copy is expired, then it is refreshed.

    This function is used during login phase.

    Parameters:

    * username
        User name to check. It is from login dialog box

    * password
        A password from login dialog box to verify

    Returns: "(username,reason)" in array context and "username" in scalar
    context.

    In case of bad login the "username" is undefined and "reason" is the
    code of denial.

    In case of successful login "username" returned

  cleanup_request()
    Cleans all internal variables and caches after request is completed.

  isAdmin()
    Check current for for admin privilegies.

    If the server run under command line then the user always is admin.

    Returns [1|0]

  UserConfig()
    Retrieve/store configuration parameter for a user. Anonymous users share
    the same parameters. Use $session hash for session specific parameters.

     UserConfig(parameter, value)

    Optional "value" may be hashref of arrayref

    Returns current or new value of the parameter.

  Config()
    The same as "UserConfig" but stores server specific parameters.

  dbh()
    In general "dbh()" is used to get ePortal's database handle.

    This function returns $dbh - database handle or throws
    ePortal::Exception::DBI.

  send_email($receipient,$subject,$text)
    Send an e-mail on behalf of ePortal server. send_email() make all
    character set conversions needed for e-mail.

  onDeleteUser()
    This is callback function. Do not call it directly. It calls once
    onDeleteUser(username) for every application installed.

    Parameters:

    * username
        User name to delete.

  onDeleteGroup()
    This is callback function. Do not call it directly. It calls once
    onDeleteGroup(groupname) for every application installed.

    Parameters:

    * groupname
        Group name to delete.

  max_allowed_packet()
    Maximum allowed packet size for database. By default MySQL server has
    limit to 1M packet size but this limit may be changed.

LOGIN PROCESS
    User authorization and authentication is ticket based. The ticked is
    created during login process and saved in user's cookie. The ticked is
    validated on every request.

  External users
    ePortal may authenticate an user in external directory like LDAP.
    Currently only Novell Netware LDAP server is tested.

AUTHOR
    Sergey Rusakov, <[email protected]>

eportal's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.