Version 3.0.5
This commit is contained in:
1 parent
19b38c7c74
commit
1d4720f3e2
3755 files changed
+508378
-664541
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Group editing form interface
|
||||
* Last Updated: $Date: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since June 10 2008
|
||||
* @version $Revision: 3887 $
|
||||
*/
|
||||
|
||||
interface admin_group_form
|
||||
{
|
||||
/**
|
||||
* Returns HTML tab content for the page.
|
||||
*
|
||||
* @access public
|
||||
* @author Brandon Farber
|
||||
* @param array Group data
|
||||
* @param integer Number of tabs used so far (your ids should be this + 1)
|
||||
* @return array Array of 'tabs' (HTML for the tabs), 'content' (HTML for the content), 'tabsUsed' (number of tabs you have used)
|
||||
*/
|
||||
public function getDisplayContent();
|
||||
|
||||
/**
|
||||
* Process the entries for saving and return
|
||||
*
|
||||
* @access public
|
||||
* @author Brandon Farber
|
||||
* @return array Array of keys => values for saving
|
||||
*/
|
||||
public function getForSave();
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Member form plugin interface
|
||||
* Last Updated: $Date: 2009-02-04 18:12:36 -0500 (Wed, 04 Feb 2009) $
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since IP.Board 3.0
|
||||
* @version $Revision: 3890 $
|
||||
*/
|
||||
|
||||
interface admin_member_form
|
||||
{
|
||||
/**
|
||||
* Returns sidebar links for a tab
|
||||
* You may return an empty array or FALSE to not have
|
||||
* any links show in the sidebar for this block.
|
||||
*
|
||||
* The links must have 'section=xxxxx&module=xxxxx[&do=xxxxxx]'. The rest of the URL
|
||||
* is added automatically. member_id will contain the Member ID
|
||||
*
|
||||
* The image must be a full URL or blank to use a default image.
|
||||
*
|
||||
* Use the format:
|
||||
* $array[] = array( 'img' => '', 'url' => '', 'title' => '' );
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param array Member data
|
||||
* @return array Array of links
|
||||
*/
|
||||
public function getSidebarLinks();
|
||||
|
||||
/**
|
||||
* Returns HTML tab content for the page.
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param array Member data
|
||||
* @return array Array of 'tabs' (HTML for the tabs), 'content' (HTML for the content)
|
||||
*/
|
||||
public function getDisplayContent();
|
||||
|
||||
/**
|
||||
* Process the entries for saving and return
|
||||
*
|
||||
* @access public
|
||||
* @author Brandon Farber
|
||||
* @return array Multi-dimensional array (core, extendedProfile) for saving
|
||||
*/
|
||||
public function getForSave();
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<html>␍<head><title>IP.Board - Bulletin Board System</title></head>␍<body>␍<h1>403: IP.Board -> Forbidden</h1>␍<hr>␍You have reached this page in error, please use your back button to return to the forum.␍<hr>␍<a href="http://www.invisionboard.com/">IP.Board</a>␍</body>␍</html>␍
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Custom bbcode plugin interfaces
|
||||
*
|
||||
* @author $author$
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 3890 $
|
||||
**/
|
||||
|
||||
interface bbcodePlugin
|
||||
{
|
||||
/**
|
||||
* Method that is run before the content is stored in the database
|
||||
* You are responsible for ensuring you mark the replaced text appropriately so that you
|
||||
* are able to unparse it, if you wish to have bbcode parsed on save
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt BBCode text from submission to be stored in database
|
||||
* @return string Formatted content, ready for display
|
||||
*/
|
||||
public function preDbParse( $txt );
|
||||
|
||||
/**
|
||||
* Method that is run before the content is displayed to the user
|
||||
* This is the safest method of parsing, as the original submitted text is left in tact.
|
||||
* No markers are necessary if you use parse on display.
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt BBCode/parsed text from database to be displayed
|
||||
* @return string Formatted content, ready for display
|
||||
*/
|
||||
public function preDisplayParse( $txt );
|
||||
|
||||
/**
|
||||
* Method that is run before the content is placed into an editor for editing
|
||||
* If you use "parse on display" you may simply return $txt
|
||||
*
|
||||
* @access public
|
||||
* @param string $txt Parsed text from database to be edited
|
||||
* @return string BBCode content, ready for editing
|
||||
*/
|
||||
public function preEditParse( $txt );
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Output formats interface
|
||||
* Last Updated: $Date: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
|
||||
*
|
||||
* @author MattMecham
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since Wednesday 28th May 2008 16:42 GMT
|
||||
* @version $Revision: 3887 $
|
||||
*
|
||||
*/
|
||||
|
||||
interface interface_output
|
||||
{
|
||||
/**
|
||||
* Prints any header information for this output module
|
||||
*
|
||||
* @access public
|
||||
* @return void Prints header() information
|
||||
*/
|
||||
public function printHeader();
|
||||
|
||||
/**
|
||||
* Fetches the output
|
||||
*
|
||||
* @access public
|
||||
* @param string Output gathered
|
||||
* @param string Title of the document
|
||||
* @param array Navigation gathered
|
||||
* @param array Array of document head items
|
||||
* @param array Array of JS loader items
|
||||
* @param array Array of extra data
|
||||
* @return string Output to be printed to the client
|
||||
*/
|
||||
public function fetchOutput( $output, $title, $navigation, $documentHeadItems, $jsLoaderItems, $extraData=array() );
|
||||
|
||||
/**
|
||||
* Finish / clean up after sending output
|
||||
*
|
||||
* @access public
|
||||
* @return null
|
||||
*/
|
||||
public function finishUp();
|
||||
|
||||
/**
|
||||
* Adds more items into the document header like CSS / RSS, etc
|
||||
*
|
||||
* @access public
|
||||
* @return null
|
||||
*/
|
||||
public function addHeadItems();
|
||||
|
||||
/**
|
||||
* Replace IPS tags
|
||||
* Converts over <#IMG_DIR#>, etc
|
||||
*
|
||||
* @access public
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
public function parseIPSTags( $text );
|
||||
|
||||
/**
|
||||
* Silent redirect (Redirects without a screen or other notification)
|
||||
*
|
||||
* @access public
|
||||
* @param URL
|
||||
* @return mixed
|
||||
*/
|
||||
public function silentRedirect( $url );
|
||||
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* Search Interfaces
|
||||
*
|
||||
* @author $author$
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @version $Rev: 4440 $
|
||||
**/
|
||||
|
||||
interface iSearchRebuild
|
||||
{
|
||||
/**
|
||||
* Clears the search index for the app
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function clear();
|
||||
|
||||
/**
|
||||
* Function to handle rebuilding the search index
|
||||
*
|
||||
* @access public
|
||||
* @param integer $st Position to start indexing
|
||||
* @param integer $per_go Number of entries to process
|
||||
* @return integer Number of entries processed
|
||||
*/
|
||||
public function doRebuild( $st, $per_go );
|
||||
}
|
||||
|
||||
interface iSearchDisplay
|
||||
{
|
||||
/**
|
||||
* Formats the search result for display
|
||||
*
|
||||
* @access public
|
||||
* @param array $search_row Array of data from search_index
|
||||
* @return string Formatted content, ready for display
|
||||
*/
|
||||
public function formatContent( $search_row );
|
||||
|
||||
/**
|
||||
* Retuns the html for displaying the filter box on the advanced search page
|
||||
*
|
||||
* @access public
|
||||
* @return string
|
||||
*/
|
||||
public function getFilterHTML();
|
||||
|
||||
/**
|
||||
* Returns an array used in the searchplugin's setCondition method
|
||||
*
|
||||
* @access public
|
||||
* @param array $data Array of data for filtering
|
||||
* @return array Array with column, operator, and value keys, for use in the setCondition call
|
||||
*/
|
||||
public function buildFilterSQL( $data );
|
||||
}
|
||||
|
||||
/* May end up making this an abstract class */
|
||||
interface iSearchIndexPlugin
|
||||
{
|
||||
/**
|
||||
* Performs search and returns an array of results
|
||||
*
|
||||
* @access public
|
||||
* @param string $search_term
|
||||
* @param array $limit_clause The param should be array( begin, end )
|
||||
* @param string $sort_by Either relevance or date
|
||||
* @param string [$group_by] Field to group on
|
||||
* @param bool $content_title_only Only search title records
|
||||
* @return array
|
||||
*/
|
||||
public function getSearchResults( $search_term, $limit_clause, $sort_by, $group_by='', $content_title_only=false );
|
||||
|
||||
/**
|
||||
* Performs live search and returns an array of results
|
||||
*
|
||||
* @access public
|
||||
* @param string $search_term
|
||||
* @return array
|
||||
*/
|
||||
public function getLiveSearchResults( $search_term );
|
||||
|
||||
/**
|
||||
* Returns the total number of results the search will return
|
||||
*
|
||||
* @access public
|
||||
* @param string $search_term
|
||||
* @param string $group_by
|
||||
* @param bool $content_title_only
|
||||
* @return integer
|
||||
*/
|
||||
public function getSearchCount( $search_term, $group_by='', $content_title_only=false );
|
||||
|
||||
/**
|
||||
* Restrict the date range that the search is performed on
|
||||
*
|
||||
* @access public
|
||||
* @param timestamp $begin
|
||||
* @param timestamp [$end]
|
||||
* @return void
|
||||
*/
|
||||
public function setDateRange( $begin, $end=0 );
|
||||
|
||||
/**
|
||||
* Generic function for adding special search conditions
|
||||
*
|
||||
* @access public
|
||||
* @param string $column sql table column for this condition
|
||||
* @param string $operator Operation to perform for this condition, ex: =, <>, IN, NOT IN
|
||||
* @param mixed $value Value to check with
|
||||
* @return void
|
||||
*/
|
||||
public function setCondition( $column, $operator, $value );
|
||||
|
||||
/**
|
||||
* Reassigns fields in a way the index exepcts
|
||||
*
|
||||
* @param array $r
|
||||
* @return array
|
||||
**/
|
||||
public function formatFieldsForIndex( $r );
|
||||
|
||||
/**
|
||||
* This function grabs the actual results for display
|
||||
*
|
||||
* @param array $ids
|
||||
* @return query result
|
||||
**/
|
||||
public function getResultsForSphinx( $ids );
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Invision Power Services
|
||||
* IP.Board v3.0.5
|
||||
* User CP: Handles form display / saving as well as custom events
|
||||
* Last Updated: $Date: 2009-02-04 15:03:36 -0500 (Wed, 04 Feb 2009) $
|
||||
*
|
||||
* @author MattMecham
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.iinvisionpower.com/community/board/license.html
|
||||
* @package Invision Power Board
|
||||
* @link http://www.iinvisionpower.com
|
||||
* @since Wednesday 28th May 2008 16:42 GMT
|
||||
* @version $Revision: 3887 $
|
||||
*
|
||||
*/
|
||||
|
||||
interface interface_usercp
|
||||
{
|
||||
|
||||
/**
|
||||
* Return links for this tab
|
||||
* You may return an empty array or FALSE to not have
|
||||
* any links show in the tab.
|
||||
*
|
||||
* The links must have 'area=xxxxx'. The rest of the URL
|
||||
* is added automatically.
|
||||
* 'area' can only be a-z A-Z 0-9 - _
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @return array Array of links
|
||||
*/
|
||||
public function getLinks();
|
||||
|
||||
/**
|
||||
* Initiates the module. You can put any global set-up in this section!
|
||||
*
|
||||
* @access public
|
||||
* @author Matt mecham
|
||||
* @return void
|
||||
*/
|
||||
public function init();
|
||||
|
||||
/**
|
||||
* Run custom event
|
||||
*
|
||||
* If you pass a 'do' in the URL / post form that is not either:
|
||||
* save / save_form or show / show_form then this function is loaded
|
||||
* instead. You can return a HTML chunk to be used in the UserCP (the
|
||||
* tabs and footer are auto loaded) or redirect to a link.
|
||||
*
|
||||
* If you are returning HTML, you can use $this->hide_form_and_save_button = 1;
|
||||
* to remove the form and save button that is automatically placed there.
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param string The current area as retrieved from 'area=xxxx' in the URL
|
||||
* @return mixed html or void
|
||||
*/
|
||||
public function runCustomEvent( $currentArea );
|
||||
|
||||
/**
|
||||
* UserCP Form Show
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param string Current area as defined by 'getLinks'
|
||||
* @param array Error array
|
||||
* @return string Processed HTML
|
||||
*/
|
||||
public function showForm( $current_area, $errors=array() );
|
||||
|
||||
/**
|
||||
* UserCP Form Save
|
||||
*
|
||||
* @access public
|
||||
* @author Matt Mecham
|
||||
* @param string Current area as defined by 'getLinks'
|
||||
* @return void
|
||||
*/
|
||||
public function saveForm( $current_area );
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user