Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -3,17 +3,17 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Admin Output Library
|
||||
* Last Updated: $LastChangedDate: 2011-10-04 08:19:01 -0400 (Tue, 04 Oct 2011) $
|
||||
* Last Updated: $LastChangedDate: 2012-07-03 10:29:35 -0400 (Tue, 03 Jul 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: mark $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @version $Rev: 9578 $
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 11026 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -107,7 +107,8 @@ class adminOutput extends output
|
||||
/* Update paths and such */
|
||||
$this->settings['base_url'] = $this->settings['_original_base_url'];
|
||||
$this->settings['public_url'] = $this->settings['_original_base_url'] . '/index.php?';
|
||||
|
||||
$this->settings['public_dir'] = $this->settings['_original_base_url'] . '/' . PUBLIC_DIRECTORY . '/';
|
||||
|
||||
$this->settings['base_acp_url'] = $this->settings['base_url'] . '/' . CP_DIRECTORY;
|
||||
$this->settings['skin_acp_url'] = $this->settings['base_url'] . '/' . CP_DIRECTORY . "/skin_cp";
|
||||
$this->settings['skin_app_url'] = $this->settings['skin_acp_url'] ;
|
||||
@@ -248,15 +249,15 @@ class adminOutput extends output
|
||||
//-----------------------------------------
|
||||
// Figure out title...
|
||||
//-----------------------------------------
|
||||
$this->html_title = "IP.Board: ";
|
||||
$this->html_title = "IP.Board:";
|
||||
|
||||
if ( ipsRegistry::$current_application )
|
||||
{
|
||||
$this->html_title .= " > " . ipsRegistry::$applications[ ipsRegistry::$current_application ]['app_title'];
|
||||
$this->html_title .= " " . IPSLIb::getAppTitle( ipsRegistry::$current_application );
|
||||
|
||||
if ( ipsRegistry::$current_module )
|
||||
{
|
||||
$this->html_title .= " > " . ipsRegistry::$modules_by_section[ ipsRegistry::$current_application ][ ipsRegistry::$current_module ]['sys_module_title'];
|
||||
$this->html_title .= " > " . ( isset($this->lang->words[ 'module__' . ipsRegistry::$current_application . '_' . ipsRegistry::$current_module ]) ? $this->lang->words[ 'module__' . ipsRegistry::$current_application . '_' . ipsRegistry::$current_module ] : ipsRegistry::$modules_by_section[ ipsRegistry::$current_application ][ ipsRegistry::$current_module ]['sys_module_title'] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,7 +387,7 @@ class adminOutput extends output
|
||||
* @param string Text to display
|
||||
* @return @e void
|
||||
*/
|
||||
public function multipleRedirectFinish($text='Готово!')
|
||||
public function multipleRedirectFinish($text='Completed!')
|
||||
{
|
||||
print $this->global_template->global_redirect_done( $text );
|
||||
exit();
|
||||
@@ -467,9 +468,10 @@ class adminOutput extends output
|
||||
/**
|
||||
* Output the HTML to the browser
|
||||
*
|
||||
* @param bool Return finished output instead of printing
|
||||
* @return @e void
|
||||
*/
|
||||
public function sendOutput()
|
||||
public function sendOutput( $return=false )
|
||||
{
|
||||
$this->_sendOutputSetUp( 'normal' );
|
||||
|
||||
@@ -577,11 +579,11 @@ class adminOutput extends output
|
||||
|
||||
if ( ipsRegistry::$current_application )
|
||||
{
|
||||
$this->html_title .= " > " . ipsRegistry::$applications[ ipsRegistry::$current_application ]['app_title'];
|
||||
$this->html_title .= " " . IPSLIb::getAppTitle( ipsRegistry::$current_application );
|
||||
|
||||
if ( ipsRegistry::$current_module )
|
||||
{
|
||||
$this->html_title .= " > " . ipsRegistry::$modules_by_section[ ipsRegistry::$current_application ][ ipsRegistry::$current_module ]['sys_module_title'];
|
||||
$this->html_title .= " > " . ( isset($this->lang->words[ 'module__' . ipsRegistry::$current_application . '_' . ipsRegistry::$current_module ]) ? $this->lang->words[ 'module__' . ipsRegistry::$current_application . '_' . ipsRegistry::$current_module ] : ipsRegistry::$modules_by_section[ ipsRegistry::$current_application ][ ipsRegistry::$current_module ]['sys_module_title'] );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -633,12 +635,13 @@ class adminOutput extends output
|
||||
$_seen_nav[ $data[1] ] = 1;
|
||||
}
|
||||
|
||||
$_nav = ( isset( $_last_nav['nav'] ) ) ? $_last_nav['nav'] . ' > ' . $data[1] : $data[1];
|
||||
|
||||
$_nav = isset($_last_nav['nav']) ? $_last_nav['nav'] . ' > ' . $data[1] : $data[1];
|
||||
|
||||
# Append last nav...
|
||||
$_last_nav = array( 'url' => $page_location,
|
||||
$_last_nav = array( 'url' => $data[0],
|
||||
'title' => $data[1],
|
||||
'nav' => $_nav );
|
||||
|
||||
if ( $data[0] )
|
||||
{
|
||||
$navigation[] = "<a href='" . $data[0] . "'>" . $data[1] . "</a>";
|
||||
@@ -663,13 +666,13 @@ class adminOutput extends output
|
||||
$_seen_nav[ $data[1] ] = 1;
|
||||
}
|
||||
|
||||
$_nav = ( $_last_nav['nav'] ) ? $_last_nav['nav'] . ' > ' . $data[1] : $data[1];
|
||||
|
||||
$_nav = isset($_last_nav['nav']) ? $_last_nav['nav'] . ' > ' . $data[1] : $data[1];
|
||||
|
||||
# Append last nav...
|
||||
$_last_nav = array( 'url' => $page_location,
|
||||
$_last_nav = array( 'url' => $data[0],
|
||||
'title' => $data[1],
|
||||
'nav' => $_nav );
|
||||
|
||||
|
||||
if ( $data[0] )
|
||||
{
|
||||
$navigation[] = "<a href='" . $data[0] . "'>" . $data[1] . "</a>";
|
||||
@@ -723,7 +726,7 @@ class adminOutput extends output
|
||||
$__files = get_included_files();
|
||||
|
||||
$files = '';
|
||||
|
||||
|
||||
foreach( $__files as $__f )
|
||||
{
|
||||
$files .= "<strong>{$__f}</strong><br />";
|
||||
@@ -815,6 +818,13 @@ class adminOutput extends output
|
||||
// OUTPUT
|
||||
//-----------------------------------------
|
||||
|
||||
if( $return )
|
||||
{
|
||||
$this->_IS_PRINTED = 1;
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
print $html;
|
||||
|
||||
$this->_IS_PRINTED = 1;
|
||||
@@ -949,10 +959,10 @@ class adminOutput extends output
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$_tab_title = $data['sys_module_title'];
|
||||
|
||||
$_tab_title = $this->lang->words[ 'module__' . $_checkApp . '_' . $data['sys_module_key'] ] ? $this->lang->words[ 'module__' . $_checkApp . '_' . $data['sys_module_key'] ] : $data['sys_module_title'];
|
||||
$_tab_key = $data['sys_module_key'];
|
||||
|
||||
|
||||
$tabs[ $_checkApp ]['items'][ $_tab_key ] = array( 'tab_title' => $_tab_title,
|
||||
'tab_key' => $_tab_key );
|
||||
$tabs[ $_checkApp ]['data'] = $data;
|
||||
@@ -1139,9 +1149,11 @@ class adminOutput extends output
|
||||
{
|
||||
$skip = TRUE;
|
||||
$__current_module = $_current_module;
|
||||
|
||||
$_current_module = preg_replace( '/^\d+?_(.*)$/', "\\1", $_current_module );
|
||||
|
||||
|
||||
/* Fix language abstraction for module title */
|
||||
$module_data['title'] = isset($this->lang->words[ 'module__' . $app_dir . '_' . $_current_module ]) ? $this->lang->words[ 'module__' . $app_dir . '_' . $_current_module ] : $module_data['title'];
|
||||
|
||||
/* Fake app content? If so.. remove.. */
|
||||
foreach( $fakeApps as $_app => $_fdata )
|
||||
{
|
||||
@@ -1241,7 +1253,7 @@ class adminOutput extends output
|
||||
|
||||
if ( ! stristr( $this->settings['query_string_safe'], 'section=' ) )
|
||||
{
|
||||
$this->settings['query_string_safe'] = $this->settings[ 'query_string_safe' ] . '&section=' . ipsRegistry::$request['section'];
|
||||
$this->settings['query_string_safe'] = $this->settings['query_string_safe'] . '&section=' . ipsRegistry::$request['section'];
|
||||
}
|
||||
|
||||
$this->settings['query_string_safe'] = '&do=' . $_do;
|
||||
@@ -1284,19 +1296,21 @@ class adminOutput extends output
|
||||
|
||||
if ( $item['title'] AND $item['section'] )
|
||||
{
|
||||
$this->menu[ $app_dir ][ $__current_module ]['items'][] = array( 'title' => $item['title'],
|
||||
'module' => $_current_module,
|
||||
'section' => $item['section'],
|
||||
'url' => $item['url'],
|
||||
'redirect' => $item['redirect'] );
|
||||
|
||||
$this->menu[ $app_dir ][ $__current_module ]['title'] = ( count($this->menu[ $app_dir ][ $__current_module ]['items']) > 1 ) ? $module_data['title'] : $item['title'];
|
||||
$this->menu[ $app_dir ][ $__current_module ]['items'][] = array( 'title' => $item['title'],
|
||||
'module' => $_current_module,
|
||||
'section' => $item['section'],
|
||||
'url' => $item['url'],
|
||||
'redirect' => $item['redirect']
|
||||
);
|
||||
|
||||
|
||||
$this->menu[ $app_dir ][ $__current_module ]['title'] = ( count($this->menu[ $app_dir ][ $__current_module ]['items']) > 1 ) ? $module_data['title'] : ( isset($this->lang->words[ 'module__' . $app_dir . '_' . $_current_module ]) ? $this->lang->words[ 'module__' . $app_dir . '_' . $_current_module ] : $item['title'] );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#echo "<pre>";print_r($this->menu);exit;
|
||||
if ( isset( $this->menu ) && count( $this->menu ) )
|
||||
{
|
||||
return $this->global_template->menu_sub_navigation( $this->menu );
|
||||
@@ -1352,7 +1366,7 @@ class adminOutput extends output
|
||||
$this->lang->loadLanguageFile( array( 'admin_menulang' ), $app_dir );
|
||||
|
||||
foreach( $data as $_current_module => $module_data )
|
||||
{
|
||||
{
|
||||
$_thisApp = $app_dir;
|
||||
$__current_module = $_current_module;
|
||||
$_current_module = preg_replace( '/^\d+?_(.*)$/', "\\1", $_current_module );
|
||||
@@ -1401,13 +1415,13 @@ class adminOutput extends output
|
||||
|
||||
if ( $item['title'] AND $item['section'] )
|
||||
{
|
||||
$_subMenu[ $_thisApp ][ $_current_module ]['items'][] = array( 'title' => $item['title'],
|
||||
'module' => $_current_module,
|
||||
'section' => $item['section'],
|
||||
'url' => $item['url'],
|
||||
'redirect' => $item['redirect'],
|
||||
'app_dir' => $app_dir,
|
||||
'pos' => preg_replace( '/^(\d+)?_.*$/', "\\1", $__current_module )
|
||||
$_subMenu[ $_thisApp ][ $_current_module ]['items'][] = array( 'title' => $item['title'],
|
||||
'module' => $_current_module,
|
||||
'section' => $item['section'],
|
||||
'url' => $item['url'],
|
||||
'redirect' => $item['redirect'],
|
||||
'app_dir' => $app_dir,
|
||||
'pos' => preg_replace( '/^(\d+)?_.*$/', "\\1", $__current_module )
|
||||
);
|
||||
|
||||
$_subMenu[ $_thisApp ][ $_current_module ]['title'] = ( count($_subMenu[ $_thisApp ][ $_current_module ]['items']) > 1 ) ? $module_data['title'] : $item['title'];
|
||||
@@ -1423,7 +1437,7 @@ class adminOutput extends output
|
||||
{
|
||||
foreach( ipsRegistry::$modules[ $app_dir ] as $data )
|
||||
{
|
||||
if ( ! $data['sys_module_admin'] )
|
||||
if ( !$data['sys_module_admin'] )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -1444,7 +1458,13 @@ class adminOutput extends output
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Title
|
||||
//-----------------------------------------
|
||||
|
||||
$data['sys_module_title'] = isset($this->lang->words[ 'module__' . $app_dir . '_' . $data['sys_module_key'] ]) ? $this->lang->words[ 'module__' . $app_dir . '_' . $data['sys_module_key'] ] : $data['sys_module_title'];
|
||||
|
||||
$_titleMenu[ $_thisApp ][ $data['sys_module_key'] ] = array( 'url' => $this->settings['_base_url'] . 'app=' . $app_dir . '&module=' . $data['sys_module_key'],
|
||||
'title' => $data['sys_module_title'],
|
||||
'module' => $data['sys_module_key'] );
|
||||
@@ -1489,9 +1509,10 @@ class adminOutput extends output
|
||||
* @param mixed Selected ID(s)
|
||||
* @param boolean Multiselect (TRUE is yes)
|
||||
* @param string HTML id attribute value
|
||||
* @param integer Multiselect size
|
||||
* @return string HTML dropdown menu
|
||||
*/
|
||||
public function generateGroupDropdown( $formFieldName, $selected, $multiselect=FALSE, $formFieldID='' )
|
||||
public function generateGroupDropdown( $formFieldName, $selected, $multiselect=FALSE, $formFieldID='', $multiselectSize=5 )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
@@ -1512,11 +1533,11 @@ class adminOutput extends output
|
||||
|
||||
if ( $multiselect === TRUE )
|
||||
{
|
||||
return $this->formMultiDropdown( $formFieldName, $groups, $selected, 5, $formFieldID );
|
||||
return $this->formMultiDropdown( $formFieldName, $groups, $selected, $multiselectSize, $formFieldID );
|
||||
}
|
||||
else
|
||||
{
|
||||
return $this->formDropdown( $formFieldName, $groups, $selected, "", $formFieldID );
|
||||
return $this->formDropdown( $formFieldName, $groups, $selected, $formFieldID );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1697,7 +1718,27 @@ class adminOutput extends output
|
||||
$id = $id ? $id : $name;
|
||||
|
||||
$html = "<select name='{$name}'{$js} id='{$id}' class='dropdown{$css}'>\n";
|
||||
|
||||
|
||||
if ( is_string( $list ) )
|
||||
{
|
||||
if ( $list == '--groups--' )
|
||||
{
|
||||
$options = array();
|
||||
$groups = $this->caches['group_cache'];
|
||||
|
||||
foreach( $groups as $id => $data )
|
||||
{
|
||||
$options[] = array( $id, $data['g_title'] );
|
||||
}
|
||||
|
||||
$list = $options;
|
||||
}
|
||||
else
|
||||
{
|
||||
$list = array();
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Support for optgroups
|
||||
//-----------------------------------------
|
||||
@@ -1719,8 +1760,14 @@ class adminOutput extends output
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$disabled = '';
|
||||
if ( isset( $v['disabled'] ) and $v['disabled'] === TRUE )
|
||||
{
|
||||
$disabled = ' disabled="disabled"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . $disabled . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$_printed++;
|
||||
}
|
||||
@@ -1742,8 +1789,14 @@ class adminOutput extends output
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$disabled = '';
|
||||
if ( isset( $v['disabled'] ) and $v['disabled'] === TRUE )
|
||||
{
|
||||
$disabled = ' disabled="disabled"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . $disabled . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$_printed++;
|
||||
}
|
||||
@@ -1768,8 +1821,14 @@ class adminOutput extends output
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$disabled = '';
|
||||
if ( isset( $v['disabled'] ) and $v['disabled'] === TRUE )
|
||||
{
|
||||
$disabled = ' disabled="disabled"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . $disabled . ">" . $v[1] . "</option>\n";
|
||||
}
|
||||
|
||||
$html .= "</optgroup>\n";
|
||||
@@ -1785,13 +1844,18 @@ class adminOutput extends output
|
||||
foreach ( $list as $v )
|
||||
{
|
||||
$selected = "";
|
||||
|
||||
if ( ($default_val !== "") and ($v[0] == $default_val) )
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
||||
$disabled = '';
|
||||
if ( isset( $v['disabled'] ) and $v['disabled'] === TRUE )
|
||||
{
|
||||
$disabled = ' disabled="disabled"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . $disabled . ">" . $v[1] . "</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1830,9 +1894,29 @@ class adminOutput extends output
|
||||
|
||||
$html = "<select name='{$name}'{$js} id='{$id}' class='dropdown{$css}' multiple='multiple' size='{$size}'>\n";
|
||||
|
||||
if ( is_string( $list ) )
|
||||
{
|
||||
if ( $list == '--groups--' )
|
||||
{
|
||||
$options = array();
|
||||
$groups = $this->caches['group_cache'];
|
||||
|
||||
foreach( $groups as $id => $data )
|
||||
{
|
||||
$options[] = array( $id, $data['g_title'] );
|
||||
}
|
||||
|
||||
$list = $options;
|
||||
}
|
||||
else
|
||||
{
|
||||
$list = array();
|
||||
}
|
||||
}
|
||||
|
||||
if ( !is_array($default) )
|
||||
{
|
||||
$default = array();
|
||||
$default = is_string( $list ) ? array( $list ) : array();
|
||||
}
|
||||
|
||||
foreach ($list as $v)
|
||||
@@ -1843,8 +1927,14 @@ class adminOutput extends output
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . ">" . $v[1] . "</option>\n";
|
||||
|
||||
$disabled = '';
|
||||
if ( isset( $v['disabled'] ) and $v['disabled'] === TRUE )
|
||||
{
|
||||
$disabled = ' disabled="disabled"';
|
||||
}
|
||||
|
||||
$html .= "<option value='" . $v[0] . "'" . $selected . $disabled . ">" . $v[1] . "</option>\n";
|
||||
}
|
||||
|
||||
$html .= "</select>\n\n";
|
||||
@@ -2025,7 +2115,9 @@ class adminOutput extends output
|
||||
array( 'app' => 'core',
|
||||
'module' => 'posts' ),
|
||||
array( 'app' => 'core',
|
||||
'module' => 'languages' )
|
||||
'module' => 'languages' ),
|
||||
array( 'app' => 'core',
|
||||
'module' => 'mobileapp' )
|
||||
),
|
||||
'support' => array(
|
||||
array( 'app' => 'core',
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.2.3
|
||||
* IP.Board v3.3.4
|
||||
* Ouput format: HTML
|
||||
* (Matt Mecham)
|
||||
* Last Updated: $Date: 2010-12-17 08:01:38 -0500 (Fri, 17 Dec 2010) $
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license This is NULLED!
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://hatynka.in
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 7445 $
|
||||
* @version $Revision: 10914 $
|
||||
*
|
||||
*/
|
||||
$config = array();
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,10 +1,10 @@
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,10 +1,10 @@
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Ouput format: XML
|
||||
* (Matt Mecham)
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
$config = array();
|
||||
|
||||
/* Identifies publicly as... */
|
||||
$config['identifies_as'] = 'XML';
|
||||
|
||||
/* Gateway file? */
|
||||
$config['gateway_file'] = 'xml.php';
|
||||
@@ -0,0 +1,10 @@
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,365 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* Ouput format: HTML
|
||||
* (Matt Mecham)
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
*
|
||||
*/
|
||||
|
||||
class xmlOutput extends coreOutput implements interface_output
|
||||
{
|
||||
/**
|
||||
* Main output class
|
||||
*
|
||||
* @access protected
|
||||
* @var object
|
||||
*/
|
||||
protected $output;
|
||||
|
||||
/**
|
||||
* CSS array
|
||||
*
|
||||
* @access protected
|
||||
* @var array
|
||||
*/
|
||||
protected $_css = array( 'import' => array(), 'inline' => array() );
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @access public
|
||||
* @param object Output object
|
||||
* @return @e void
|
||||
*/
|
||||
public function __construct( output $output )
|
||||
{
|
||||
/* Make object */
|
||||
parent::__construct( $output );
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints any header information for this output module
|
||||
*
|
||||
* @access public
|
||||
* @return null Prints header() information
|
||||
*/
|
||||
public function printHeader()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Start GZIP compression
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->settings['disable_gzip'] != 1 )
|
||||
{
|
||||
$buffer = "";
|
||||
|
||||
if ( count( ob_list_handlers() ) )
|
||||
{
|
||||
$buffer = ob_get_contents();
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
@ob_start('ob_gzhandler');
|
||||
print $buffer;
|
||||
}
|
||||
|
||||
if ( isset( $_SERVER['SERVER_PROTOCOL'] ) AND strstr( $_SERVER['SERVER_PROTOCOL'], '/1.0' ) )
|
||||
{
|
||||
header("HTTP/1.0 200 OK" );
|
||||
}
|
||||
else
|
||||
{
|
||||
header("HTTP/1.1 200 OK" );
|
||||
}
|
||||
|
||||
/* This now forces UTF-8 */
|
||||
header( "Content-type: text/xml;charset=UTF-8" );
|
||||
|
||||
if ( $this->settings['nocache'] )
|
||||
{
|
||||
header("Cache-Control: no-cache, must-revalidate, max-age=0");
|
||||
header("Expires: 0");
|
||||
header("Pragma: no-cache");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Display error
|
||||
*
|
||||
* @access public
|
||||
* @param string Error message
|
||||
* @param integer Error code
|
||||
* @return mixed You can print a custom message here, or return formatted data to be sent do registry->output->sendOutput
|
||||
*/
|
||||
public function displayError( $message, $code=0 )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display board offline
|
||||
*
|
||||
* @access public
|
||||
* @param string Message
|
||||
* @return mixed You can print a custom message here, or return formatted data to be sent do registry->output->sendOutput
|
||||
*/
|
||||
public function displayBoardOffline( $message )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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() )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$system_vars_cache = $this->caches['systemvars'];
|
||||
$showPMBox = '';
|
||||
|
||||
$currentCharSet = $this->settings['gb_char_set'];
|
||||
|
||||
/* Force UTF-8 for the skin */
|
||||
$this->settings['gb_char_set'] = 'UTF-8';
|
||||
|
||||
//-----------------------------------------
|
||||
// NORMAL
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->_outputType == 'normal' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Grab output
|
||||
//-----------------------------------------
|
||||
|
||||
$finalOutput = $this->output->getTemplate('global')->globalTemplate( $output, $documentHeadItems, $this->_css, $jsLoaderItems, $this->_metaTags,
|
||||
array( 'title' => $title,
|
||||
'applications' => $this->core_fetchApplicationData(),
|
||||
'page' => $this->_current_page_title ),
|
||||
array( 'navigation' => $navigation ),
|
||||
array( 'time' => $this->registry->getClass( 'class_localization')->getDate( time(), 'SHORT', 1 ),
|
||||
'lang_chooser' => $this->html_buildLanguageDropDown(),
|
||||
'skin_chooser' => $this->html_fetchSetsDropDown(),
|
||||
'stats' => $this->html_showDebugInfo(),
|
||||
'copyright' => $this->html_fetchCopyright() ),
|
||||
array( 'ex_time' => sprintf( "%.4f", IPSDebug::endTimer() ),
|
||||
'gzip_status' => ( $this->settings['disable_gzip'] == 1 ) ? $this->lang->words['gzip_off'] : $this->lang->words['gzip_on'],
|
||||
'server_load' => ipsRegistry::$server_load,
|
||||
'queries' => $this->DB->getQueryCount() )
|
||||
);
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab output
|
||||
// REDIRECT
|
||||
//-----------------------------------------
|
||||
|
||||
else if ( $this->_outputType == 'redirect' )
|
||||
{
|
||||
# SEO?
|
||||
if ( $extraData['seoTitle'] )
|
||||
{
|
||||
$extraData['url'] = $this->output->buildSEOUrl( $extraData['url'], 'none', $extraData['seoTitle'] );
|
||||
$extraData['full'] = 1;
|
||||
}
|
||||
|
||||
$finalOutput = $this->output->getTemplate('global')->redirectTemplate( $documentHeadItems, $this->_css, $jsLoaderItems, $extraData['text'], $extraData['url'], $extraData['full'] );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// POP UP
|
||||
//-----------------------------------------
|
||||
|
||||
else if ( $this->_outputType == 'popup' )
|
||||
{
|
||||
$finalOutput = $this->output->getTemplate('global')->displayPopUpWindow( $documentHeadItems, $this->_css, $jsLoaderItems, $title, $output );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Return
|
||||
//-----------------------------------------
|
||||
|
||||
$finalOutput = $this->parseIPSTags( $finalOutput );
|
||||
|
||||
/* Attempt to clean HTML */
|
||||
return IPSText::stripNonUtf8( IPSText::convertCharsets( $finalOutput, $currentCharSet, 'UTF-8' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 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()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Silent redirect (Redirects without a screen or other notification)
|
||||
*
|
||||
* @access public
|
||||
* @param string URL
|
||||
* @param string [SEO Title]
|
||||
* @return mixed
|
||||
*/
|
||||
public function silentRedirect( $url, $seoTitle='' )
|
||||
{
|
||||
# Ensure &s are taken care of
|
||||
$url = str_replace( "&", "&", $url );
|
||||
|
||||
# SEO?
|
||||
if ( $seoTitle )
|
||||
{
|
||||
$url = $this->registry->getClass('output')->buildSEOUrl( $url, 'none', $seoTitle );
|
||||
}
|
||||
|
||||
if ( $this->settings['header_redirect'] == 'refresh' )
|
||||
{
|
||||
@header("Refresh: 0;url=".$url);
|
||||
}
|
||||
else if ( $this->settings['header_redirect'] == 'html' )
|
||||
{
|
||||
$url = str_replace( '&', '&', str_replace( '&', '&', $url ) );
|
||||
echo("<html><head><meta http-equiv='refresh' content='0; url=$url'></head><body></body></html>");
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
@header( "Location: ".$url );
|
||||
}
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace IPS tags
|
||||
* Converts over <#IMG_DIR#>, etc
|
||||
*
|
||||
* @access public
|
||||
* @param string Unparsed text
|
||||
* @return string Parsed text
|
||||
*/
|
||||
public function parseIPSTags( $text )
|
||||
{
|
||||
$text = str_replace( "<#IMG_DIR#>" , $this->skin['set_image_dir'], $text );
|
||||
$text = str_replace( "<#EMO_DIR#>" , $this->skin['set_emo_dir'] , $text );
|
||||
$text = str_replace( "<% CHARSET %>" , IPS_DOC_CHAR_SET , $text );
|
||||
$text = str_replace( "{style_image_url}", $this->settings['img_url'] , $text );
|
||||
|
||||
if ( $this->settings['ipb_img_url'] )
|
||||
{
|
||||
$text = preg_replace( '#img\s+?src=[\"\']style_(images|avatars|emoticons)(.+?)[\"\'](.+?)?'.'>#is', "img src=\"".$this->settings['ipb_img_url']."style_\\1\\2\"\\3>", $text );
|
||||
}
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch copyright notice
|
||||
*
|
||||
* @access protected
|
||||
* @return string
|
||||
*/
|
||||
protected function html_fetchCopyright()
|
||||
{
|
||||
//-----------------------------------------
|
||||
// REMOVAL OF THIS WITHOUT PURCHASING COPYRIGHT REMOVAL WILL VIOLATE THE LICENCE YOU AGREED
|
||||
// TO WHEN DOWNLOADING THIS PRODUCT. THIS COULD MEAN REMOVAL OF YOUR BOARD AND EVEN
|
||||
// CRIMINAL CHARGES
|
||||
//-----------------------------------------
|
||||
|
||||
$version = ( $this->settings['ipb_display_version'] AND $this->settings['ipb_display_version'] != 0 ) ? ipsRegistry::$version : '';
|
||||
|
||||
if ($this->settings['ipb_copy_number'] && $this->settings['ips_cp_purchase'])
|
||||
{
|
||||
$copyright = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
$copyright = "<!-- Copyright Information -->
|
||||
<p id='copyright'>
|
||||
Powered By <a href='http://www.invisionboard.com' title='IP.Board Homepage'>IP.Board</a>
|
||||
{$version} © ".date("Y")." <a href='http://www.invisionpower.com' title='IPS Homepage'>IPS, <abbr title='Incorporated'>Inc</abbr></a>.
|
||||
";
|
||||
|
||||
if ( $this->settings['ipb_reg_name'] )
|
||||
{
|
||||
$copyright .= "<div>Licensed to: ". $this->settings['ipb_reg_name']."</div>";
|
||||
}
|
||||
|
||||
|
||||
$copyright .= "</p>\n\t\t<!-- / Copyright -->";
|
||||
}
|
||||
|
||||
return $copyright;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns debug data
|
||||
*
|
||||
* @access protected
|
||||
* @return string
|
||||
*/
|
||||
public function html_showDebugInfo()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch language drop down box
|
||||
*
|
||||
* @access protected
|
||||
* @return string
|
||||
*/
|
||||
protected function html_buildLanguageDropDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch skin list
|
||||
*
|
||||
* Does what is says up there a bit
|
||||
*
|
||||
* @access protected
|
||||
* @return HTML Drop down list. All nicely formatted.
|
||||
*/
|
||||
protected function html_fetchSetsDropDown()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
<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.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user