Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • admin_approval
  • auto_backup
  • cacheManager
  • cacheManagerFeed
  • cloneZenphoto
  • googleVerifyOptions
  • ipBlocker
  • publishContent
  • rewriteTokens
  • search_statistics
  • security_logger
  • setupexternalFeed
  • setupRSS
  • static_html_cache
  • tinymce4Options
  • zenphoto_org_news
  • zenphotoDonate

Functions

  • admin_showupdate
  • checkForUpdate
  • getTinyMCE4ConfigFiles
  • googleVerifyHead
  • printNews
  • site_upgrade_button
  • site_upgrade_status
  • tinymce4ConfigJS
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class security_logger

Option handler class

Package: plugins\admin
Author: Stephen Billard (sbillard)
Located at zp-extensions/security-logger.php
Methods summary
public security_logger
# __construct( )

class instantiation function

class instantiation function

Returns

security_logger
public array
# getOptionsSupported( )

Reports the supported options

Reports the supported options

Returns

array
public
# handleOption( $option, $currentValue )
public static integer
# adminLoginLogger( integer $success, string $user, string $pass, $auth = 'zp_admin_auth' )

Logs an attempt to log onto the back-end or as an admin user Returns the rights to grant

Logs an attempt to log onto the back-end or as an admin user Returns the rights to grant

Parameters

$success
the admin rights granted
$user
$pass
$auth

Returns

integer
public static integer
# federatedLoginLogger( integer $success, string $user, string $pass,… )

Logs an attempt to log on via the federated_logon plugin Returns the rights to grant

Logs an attempt to log on via the federated_logon plugin Returns the rights to grant

Parameters

$success
the admin rights granted
$user
$pass,…

Returns

integer
public static boolean
# guestLoginLogger( boolean $success, string $user, string $pass, string $athority )

Logs an attempt for a guest user to log onto the site Returns the "success" parameter.

Logs an attempt for a guest user to log onto the site Returns the "success" parameter.

Parameters

$success
$user
$pass
$athority
what kind of login

Returns

boolean
public static
# adminGate( boolean $allow, string $page )

Logs blocked accesses to Admin pages

Logs blocked accesses to Admin pages

Parameters

$allow
set to true to override the block
$page
the "return" link
public static
# adminCookie( $allow, $auth, $id )
public static
# adminAlbumGate( boolean $allow, string $page )

Logs blocked accesses to Managed albums

Logs blocked accesses to Managed albums

Parameters

$allow
set to true to override the block
$page
the "return" link
public static
# UserSave( string $discard, object $userobj, string $class )

logs attempts to save on the user tab

logs attempts to save on the user tab

Parameters

$discard
$userobj
user object upon which the save was targeted
$class
what the action was.
public static boolean
# admin_XSRF_access( boolean $discard, string $token )

Loggs Cross Site Request Forgeries

Loggs Cross Site Request Forgeries

Parameters

$discard
$token

Returns

boolean
public static
# log_action( boolean $allow, string $log, string $action )

logs security log actions

logs security log actions

Parameters

$allow
$log
$action
public static
# log_setup( boolean $success, string $action, string $txt )

Logs setup actions

Logs setup actions

Parameters

$success
$action
$txt
$file
public static
# security_misc( boolean $success, string $requestor, string $auth, string $txt )

Catch all logger for miscellaneous security records

Catch all logger for miscellaneous security records

Parameters

$success
$requestor
$auth
$txt
Zenphoto doc API documentation generated by ApiGen