Procedural File: bbsengine2.php

Source Location: /bbsengine2.php



Classes:

Page Details:

this file is part of bbsengine2.

(C) 2008 Zoid Technologies. All Rights Reserved.

thank you for using software that sucks less.


Includes:
require_once("HTML/QuickForm.php") [line 16]

pull in pear::html_quickform

require_once("Smarty.class.php") [line 27]

pull in smarty class

require_once("HTML/QuickForm/Renderer/Array.php") [line 22]

pull in array renderer for quickform

require_once("MDB2.php") [line 32]

pull in PEAR::MDB2 (database abstraction module)




datestamp

void datestamp( $stamp, [ $format = null])

[line 530]

Parameters

  • $stamp -
  • $format -

[ Top ]

dbconnect

object|error &dbconnect( string $dsn)

[line 404]

connect to a DSN using the MDB2 "singleton" function, configures the object, and returns a reference to it.

Parameters

  • string $dsn - dsn

[ Top ]

displayerrormessage

void displayerrormessage( string $message)

[line 147]

display an error page template with message

Tags:

  • access - public

Parameters

  • string $message -

[ Top ]

displayfooter

void displayfooter( )

[line 162]

display a page footer template

Tags:

  • access - public

Parameters

[ Top ]

displayheader

void displayheader( [string $title = null], [array $css = null], [array $script = null])

[line 177]

display a page header template with optional title string

Tags:

  • access - public

Parameters

  • string $title - title of page
  • array $css -
  • array $script -

[ Top ]

displaypermissiondenied

void displaypermissiondenied( )

[line 299]

display a permission denied template

Tags:

  • access - public

Parameters

[ Top ]

displayredirectpage

void displayredirectpage( string $message, [string $url = null])

[line 119]

display a redirect page template with message and optional url

Tags:

  • access - public

Parameters

  • string $message -
  • string $url -

[ Top ]

displaysidebar

void displaysidebar( [ $items = null])

[line 188]

Parameters

  • $items -

[ Top ]

emailaddressformrule

void emailaddressformrule( $value, [ $id = 0])

[line 498]

Parameters

  • $value -
  • $id -

[ Top ]

getcurrentmember

void getcurrentmember( )

[line 492]

Parameters

[ Top ]

getcurrentmemberid

int getcurrentmemberid( )

[line 437]

return the "current member id" for the session

Parameters

[ Top ]

getflag

boolean getflag( $flag $flag, $id $id)

[line 585]

returns flag value given the flag name and member id.

Parameters

  • $flag $flag - string flag name
  • $id $id - integer member id

[ Top ]

getflags

array getflags( $memberid $memberid)

[line 622]

return the set of flags and their values for a given memberid.

Tags:

  • return - or PEAR_Error
  • since - 20081002

Parameters

  • $memberid $memberid - integer

[ Top ]

getmember

array|PEAR::Error &getmember( integer $id)

[line 464]

returns data for a given member id.

Tags:

  • access - public

Parameters

  • integer $id -

[ Top ]

getquickform

void &getquickform( $name, [ $method = "post"], [ $action = ""], [ $target = ""], [ $attributes = ""], [ $tracksubmit = true])

[line 37]

Tags:

  • since - 20081006

Parameters

  • $name -
  • $method -
  • $action -
  • $target -
  • $attributes -
  • $tracksubmit -

[ Top ]

getreturnto

void getreturnto( )

[line 254]

Parameters

[ Top ]

getreturntotitle

void getreturntotitle( )

[line 275]

Parameters

[ Top ]

getreturntourl

void getreturntourl( )

[line 259]

Parameters

[ Top ]

getsmarty

void &getsmarty( )

[line 52]

return a smarty template object, configured for the website

Parameters

[ Top ]

logentry

void logentry( string $message, [enum $priority = LOG_INFO])

[line 203]

put $message into a log at the a particular priority

Tags:

  • since - 20080105

Parameters

  • string $message -
  • enum $priority -

[ Top ]

permission

boolean permission( string $name, [integer $memberid = 0])

[line 322]

permission checking function

permissions "PUBLIC" and "AUTHENTICATED" are built-in and checked for specially before any database connection is made. other permissions are in uppercase and must be listed in the flag table. if the member being checked does not have a value set for a particular flag, the default value will be returned.

Tags:

  • since - 20080324

Parameters

  • string $name -
  • integer $memberid -

[ Top ]

safestripslashes

string safestripslashes( string $value)

[line 289]

only strip slashes from a string if get_magic_quotes_gpc() returns true

this function was ripped from PEAR::Services_Amazon.

Tags:

  • return - with slashes stripped

Parameters

  • string $value -

[ Top ]

setcurrentmemberid

int setcurrentmemberid( int $id)

[line 450]

set the "current member id" for the session

Tags:

  • return - previous value

Parameters

  • int $id -

[ Top ]

setflag

void setflag( $id, $flag, $value)

[line 544]

Parameters

  • $id -
  • $flag -
  • $value -

[ Top ]

setreturnto

old setreturnto( string $url, [string $title = null])

[line 243]

set the 'returnto' session variable

Tags:

  • return - value

Parameters

  • string $url -
  • string $title -

[ Top ]


Documentation generated on Fri, 02 Jan 2009 13:21:00 -0500 by phpDocumentor 1.4.2