Version 1.3.0

This commit is contained in:
Neo committed 2025-12-19 00:17:06 -08:00
1 parent 7ef3d1712a
commit f87d29ba65
290 files changed
+50206 -17930

No files matched your search

+90 -8
View File
@@ -2,15 +2,17 @@
/*
+--------------------------------------------------------------------------
| Invision Board v1.1
| Invision Power Board v1.3 Final
| ========================================
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| (c) 2001 - 2003 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.ibforums.com
| Email: phpboards@ibforums.com
| Licence Info: phpib-licence@ibforums.com
| Web: http://www.invisionboard.com
| Time: Sun, 04 Jan 2004 00:30:16 GMT
| Release: 28e7bfb25f08ac72a789cb1b172fa185
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
| > Show all emo's / BB Tags module
@@ -45,7 +47,7 @@ class legends {
$this->html = $std->load_template('skin_legends');
$this->base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}";
$this->base_url = $ibforums->base_url;
@@ -67,6 +69,10 @@ class legends {
$this->find_user_two();
break;
case 'bbcode':
$this->show_bbcode();
break;
default:
$this->show_emoticons();
break;
@@ -188,7 +194,18 @@ class legends {
{
while ( $r = $DB->fetch_row() )
{
$this->output .= $this->html->emoticons_row( stripslashes($r['typed']), stripslashes($r['image']) );
if (strstr( $r['typed'], """ ) )
{
$in_delim = "'";
$out_delim = '"';
}
else
{
$in_delim = '"';
$out_delim = "'";
}
$this->output .= $this->html->emoticons_row( stripslashes($r['typed']), stripslashes($r['image']), $in_delim, $out_delim );
}
}
@@ -197,6 +214,71 @@ class legends {
}
//--------------------------------------------------------------
// Show BBCode Helpy file
//--------------------------------------------------------------
function show_bbcode()
{
global $ibforums, $DB, $std;
require './sources/lib/post_parser.php';
$this->parser = new post_parser();
//-------------------------------------------
// Array out or stuff here
//-------------------------------------------
$bbcode = array(
0 => array( '[b]', '[/b]', $ibforums->lang['bbc_ex1'] ),
1 => array('[s]', '[/s]', $ibforums->lang['bbc_ex1'] ),
2 => array('[i]', '[/i]', $ibforums->lang['bbc_ex1'] ),
3 => array('[u]', '[/u]', $ibforums->lang['bbc_ex1'] ),
4 => array('[email]', '[/email]', 'user@domain.com' ),
5 => array('[email=user@domain.com]', '[/email]', $ibforums->lang['bbc_ex2'] ),
6 => array('[url]', '[/url]', 'http://www.domain.com' ),
7 => array('[url=http://www.domain.com]', '[/url]', $ibforums->lang['bbc_ex2'] ),
8 => array('[size=7]', '[/size]' , $ibforums->lang['bbc_ex1'] ),
9 => array('[font=times]', '[/font]', $ibforums->lang['bbc_ex1'] ),
10 => array('[color=red]', '[/color]', $ibforums->lang['bbc_ex1'] ),
11 => array('[img]', '[/img]', $ibforums->vars['board_url'].'/'.$ibforums->vars['img_url'].'/icon11.gif' ),
12 => array('[list]', '[/list]', '[*]List Item [*]List Item' ),
13 => array('[list=1]', '[/list]', '[*]List Item [*]List Item' ),
14 => array('[list=a]', '[/list]', '[*]List Item [*]List Item' ),
15 => array('[list=i]', '[/list]', '[*]List Item [*]List Item' ),
16 => array('[quote]', '[/quote]', $ibforums->lang['bbc_ex1'] ),
17 => array('[code]', '[/code]', '$this_var = "Hello World!";' ),
18 => array('[sql]', '[/sql]', 'SELECT t.tid FROM a_table t WHERE t.val="This Value"' ),
19 => array('[html]', '[/html]', '<a href="test/page.html">A Test Page</a>' ),
);
$this->page_title = $ibforums->lang['bbc_title'];
$this->output .= $this->html->bbcode_header();
$this->output .= $this->html->page_header( $ibforums->lang['bbc_title'], $ibforums->lang['bbc_before'], $ibforums->lang['bbc_after'] );
foreach( $bbcode as $bbc )
{
$open = $bbc[0];
$close = $bbc[1];
$content = $bbc[2];
$before = $this->html->wrap_tag($open) . $content . $this->html->wrap_tag($close);
$after = $this->parser->convert( array( 'TEXT' => $open.$content.$close, 'CODE' => 1 ) );
$this->output .= $this->html->bbcode_row( $before, stripslashes($after) );
}
$this->output .= $this->html->page_footer();
}
}