Version 1.3.0
This commit is contained in:
1 parent
7ef3d1712a
commit
f87d29ba65
290 files changed
+50206
-17930
No files matched your search
@@ -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
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Forward topic to a friend module
|
||||
@@ -104,7 +106,7 @@ class Forward {
|
||||
$std->Error( array( LEVEL => 1, MSG => 'missing_files') );
|
||||
}
|
||||
|
||||
$this->base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}";
|
||||
$this->base_url = $ibforums->base_url;
|
||||
|
||||
$this->base_url_NS = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}";
|
||||
|
||||
@@ -204,9 +206,9 @@ class Forward {
|
||||
|
||||
|
||||
function show_form() {
|
||||
global $std, $ibforums, $DB, $print, $root_path;
|
||||
global $std, $ibforums, $DB, $print;
|
||||
|
||||
require $root_path."lang/".$ibforums->lang_id."/email_content.php";
|
||||
require ROOT_PATH."lang/".$ibforums->lang_id."/email_content.php";
|
||||
|
||||
$ibforums->lang['send_text'] = $EMAIL['send_text'];
|
||||
|
||||
@@ -231,7 +233,7 @@ class Forward {
|
||||
|
||||
$this->page_title = $ibforums->lang['title'];
|
||||
|
||||
$this->nav = array ( "<a href='{$this->base_url}&act=SF&f={$this->forum['id']}'>{$this->forum['name']}</a>", "<a href='".$this->base_url."&act=ST&f={$this->forum['id']}&t={$this->topic['tid']}'>{$this->topic['title']}</a>", $ibforums->lang['title'] );
|
||||
$this->nav = array ( "<a href='{$this->base_url}act=SF&f={$this->forum['id']}'>{$this->forum['name']}</a>", "<a href='".$this->base_url."act=ST&f={$this->forum['id']}&t={$this->topic['tid']}'>{$this->topic['title']}</a>", $ibforums->lang['title'] );
|
||||
|
||||
$print->add_output("$this->output");
|
||||
$print->do_output( array( 'TITLE' => $this->page_title, 'JS' => 0, NAV => $this->nav ) );
|
||||
@@ -247,21 +249,19 @@ class Forward {
|
||||
//+----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
function check_access() {
|
||||
global $ibforums, $HTTP_COOKIE_VARS;
|
||||
function check_access()
|
||||
{
|
||||
global $ibforums, $std, $HTTP_COOKIE_VARS;
|
||||
|
||||
$return = 1;
|
||||
|
||||
$this->m_group = $ibforums->member['mgroup'];
|
||||
|
||||
if ($this->forum['read_perms'] == '*') {
|
||||
$return = 0;
|
||||
}
|
||||
else if (preg_match( "/(^|,)$this->m_group(,|$)/", $this->forum['read_perms'] ) ) {
|
||||
if ( $std->check_perms($this->forum['read_perms']) == TRUE )
|
||||
{
|
||||
$return = 0;
|
||||
}
|
||||
|
||||
if ($this->forum['password']) {
|
||||
if ($this->forum['password'])
|
||||
{
|
||||
if ($HTTP_COOKIE_VARS[ $ibforums->vars['cookie_id'].'iBForum'.$this->forum['id'] ] == $this->forum['password']) {
|
||||
$return = 0;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user