[ Index ]

PHP Cross Reference of Nucleus CMS 3.32

title

Body

[close]

/nucleus/libs/ -> globalfunctions.php (summary)

(no description)

File Size: 1962 lines (56 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 24 files
 nucleus/libs/MANAGER.php
 nucleus/libs/NOTIFICATION.php
 nucleus/libs/COMMENT.php
 nucleus/libs/ACTIONLOG.php
 nucleus/libs/PAGEFACTORY.php
 nucleus/libs/xmlrpc.inc.php
 nucleus/libs/ITEM.php
 nucleus/libs/ACTION.php
 nucleus/libs/TEMPLATE.php
 nucleus/libs/BAN.php
 nucleus/libs/BLOG.php
 nucleus/libs/PARSER.php
 nucleus/libs/ADMIN.php
 nucleus/libs/PLUGIN.php
 nucleus/libs/COMMENTS.php
 nucleus/libs/PLUGINADMIN.php
 nucleus/libs/vars4.0.6.php
 nucleus/libs/SKIN.php
 nucleus/libs/SEARCH.php
 nucleus/libs/mysql.php
 nucleus/libs/BODYACTIONS.php
 nucleus/libs/entity.php
 nucleus/libs/vars4.1.0.php
 nucleus/libs/MEMBER.php

Defines 84 functions

  intPostVar()
  intGetVar()
  intRequestVar()
  intCookieVar()
  getNucleusVersion()
  getNucleusPatchLevel()
  sql_connect()
  sql_table()
  sendContentType()
  startUpError()
  sql_disconnect()
  sql_query()
  highlight()
  parseHighlight()
  isValidMailAddress()
  getBlogIDFromName()
  getBlogNameFromID()
  getBlogIDFromItemID()
  getBlogIDFromCommentID()
  getBlogIDFromCatID()
  getCatIDFromName()
  quickQuery()
  getPluginNameFromPid()
  selector()
  doError()
  getConfig()
  isValidShortName()
  isValidDisplayName()
  isValidCategoryName()
  isValidTemplateName()
  isValidSkinName()
  addBreaks()
  removeBreaks()
  shorten()
  mysqldate()
  selectBlog()
  selectSkin()
  selectCategory()
  selectItem()
  selectLanguage()
  parseFile()
  debug()
  addToLog()
  help()
  helpHtml()
  helplink()
  getMailFooter()
  getLanguageName()
  includephp()
  checkLanguage()
  checkPlugin()
  createItemLink()
  createMemberLink()
  createCategoryLink()
  createArchiveListLink()
  createArchiveLink()
  createBlogidLink()
  createLink()
  createBlogLink()
  addLinkParams()
  alterQueryStr()
  passVar()
  formatDate()
  checkVars()
  sanitizeParams()
  ticketForPlugin()
  _addInputTags()
  serverStringToArray()
  arrayToServerString()
  sanitizeArray()
  convArrayForSanitizing()
  revertArrayForSanitizing()
  redirect()
  stringStripTags()
  stringToAttribute()
  stringToXML()
  toAscii()
  _links_init()
  _links_add()
  _links_list()
  encode_desc()
  getBookmarklet()
  ifset()
  numberOfEventSubscriber()

Functions
Functions that are not part of a class:

intPostVar($name)   X-Ref


intGetVar($name)   X-Ref
No description

intRequestVar($name)   X-Ref
No description

intCookieVar($name)   X-Ref
No description

getNucleusVersion()   X-Ref
returns the currently used version (100 = 1.00, 101 = 1.01, etc...)


getNucleusPatchLevel()   X-Ref
power users can install patches in between nucleus releases. These patches
usually add new functionality in the plugin API and allow those to
be tested without having to install CVS.


sql_connect()   X-Ref
Connects to mysql server


sql_table($name)   X-Ref
returns a prefixed nucleus table name


sendContentType($contenttype, $pagetype = '', $charset = _CHARSET)   X-Ref
No description

startUpError($msg, $title)   X-Ref
Errors before the database connection has been made


sql_disconnect()   X-Ref
disconnects from SQL server


sql_query($query)   X-Ref
executes an SQL query


highlight($text, $expression, $highlight)   X-Ref
Highlights a specific query in a given HTML text (not within HTML tags) and returns it

param: $text
param: $expression
param: $highlight

parseHighlight($query)   X-Ref
Parses a query into an array of expressions that can be passed on to the highlight method


isValidMailAddress($address)   X-Ref
Checks if email address is valid


getBlogIDFromName($name)   X-Ref
No description

getBlogNameFromID($id)   X-Ref
No description

getBlogIDFromItemID($itemid)   X-Ref
No description

getBlogIDFromCommentID($commentid)   X-Ref
No description

getBlogIDFromCatID($catid)   X-Ref
No description

getCatIDFromName($name)   X-Ref
No description

quickQuery($q)   X-Ref
No description

getPluginNameFromPid($pid)   X-Ref
No description

selector()   X-Ref
No description

doError($msg, $skin = '')   X-Ref
Show error skin with given message. An optional skin-object to use can be given


getConfig()   X-Ref
No description

isValidShortName($name)   X-Ref
No description

isValidDisplayName($name)   X-Ref
No description

isValidCategoryName($name)   X-Ref
No description

isValidTemplateName($name)   X-Ref
No description

isValidSkinName($name)   X-Ref
No description

addBreaks($var)   X-Ref
No description

removeBreaks($var)   X-Ref
No description

shorten($text, $maxlength, $toadd)   X-Ref
No description

mysqldate($timestamp)   X-Ref
Converts a unix timestamp to a mysql DATETIME format, and places
quotes around it.


selectBlog($shortname)   X-Ref
functions for use in index.php


selectSkin($skinname)   X-Ref
No description

selectCategory($cat)   X-Ref
Can take either a category ID or a category name (be aware that
multiple categories can have the same name)


selectItem($id)   X-Ref
No description

selectLanguage($language)   X-Ref
No description

parseFile($filename, $includeMode = 'normal', $includePrefix = '')   X-Ref
No description

debug($msg)   X-Ref
Outputs a debug message


addToLog($level, $msg)   X-Ref
No description

help($id)   X-Ref
No description

helpHtml($id)   X-Ref
No description

helplink($id)   X-Ref
No description

getMailFooter()   X-Ref
No description

getLanguageName()   X-Ref
Returns the name of the language to use
preference priority: member - site
defaults to english when no good language found

checks if file exists, etc...

includephp($filename)   X-Ref
Includes a PHP file. This method can be called while parsing templates and skins


checkLanguage($lang)   X-Ref
Checks if a certain language/plugin exists


checkPlugin($plug)   X-Ref
No description

createItemLink($itemid, $extra = '')   X-Ref
Centralisation of the functions that generate links


createMemberLink($memberid, $extra = '')   X-Ref
No description

createCategoryLink($catid, $extra = '')   X-Ref
No description

createArchiveListLink($blogid = '', $extra = '')   X-Ref
No description

createArchiveLink($blogid, $archive, $extra = '')   X-Ref
No description

createBlogidLink($blogid, $params = '')   X-Ref
No description

createLink($type, $params)   X-Ref
No description

createBlogLink($url, $params)   X-Ref
No description

addLinkParams($link, $params)   X-Ref
No description

alterQueryStr($querystr, $param, $value)   X-Ref

param: $querystr
param: $param
param: $value

passVar($key, $value)   X-Ref
No description

formatDate($format, $timestamp, $defaultFormat, &$blog)   X-Ref
No description

checkVars($aVars)   X-Ref
No description

sanitizeParams()   X-Ref
Sanitize parameters such as $_GET and $_SERVER['REQUEST_URI'] etc.
to avoid XSS


ticketForPlugin()   X-Ref
Check ticket when not checked in plugin's admin page
to avoid CSRF.
Also avoid the access to plugin/index.php by guest user.


_addInputTags(&$keys,$prefix='')   X-Ref
No description

serverStringToArray($str, &$array, &$frontParam)   X-Ref
Convert the server string such as $_SERVER['REQUEST_URI']
to arry like arry['blogid']=1 and array['page']=2 etc.


arrayToServerString($array, $frontParam, &$str)   X-Ref
Convert array like array['blogid'] to server string
such as $_SERVER['REQUEST_URI']


sanitizeArray(&$array)   X-Ref
Sanitize array parameters.
This function checks both key and value.
- check key if it inclues " (double quote),  remove from array
- check value if it includes \ (escape sequece), remove remaining string


convArrayForSanitizing($src, &$array)   X-Ref
Convert array for sanitizeArray function


revertArrayForSanitizing($array, &$dst)   X-Ref
Revert array after sanitizeArray function


redirect($url)   X-Ref
Stops processing the request and redirects to the given URL.
- no actual contents should have been sent to the output yet
- the URL will be stripped of illegal or dangerous characters


stringStripTags($string)   X-Ref
Strip HTML tags from a string
This function is a bit more intelligent than a regular call to strip_tags(),
because it also deletes the contents of certain tags and cleans up any
unneeded whitespace.


stringToAttribute($string)   X-Ref
Make a string containing HTML safe for use in a HTML attribute
Tags are stripped and entities are normalized


stringToXML($string)   X-Ref
Make a string containing HTML safe for use in a XML document
Tags are stripped, entities are normalized and named entities are
converted to numeric entities.


toAscii($html)   X-Ref
No description

_links_init()   X-Ref
No description

_links_add($match)   X-Ref
No description

_links_list()   X-Ref
No description

encode_desc($data)   X-Ref


getBookmarklet($blogid)   X-Ref
Returns the Javascript code for a bookmarklet that works on most modern browsers

param: blogid

ifset(&$var)   X-Ref
Returns a variable or null if not set

param: mixed Variable
return: mixed Variable

numberOfEventSubscriber($event)   X-Ref
Returns number of subscriber to an event

param: event
return: number of subscriber(s)



Generated: Tue Feb 12 15:34:36 2008 Cross-referenced by PHPXref 0.7