Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -1,16 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board v2.0.0
|
||||
| Invision Power Board 2.1.7
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2004 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Tue, 21 Sep 2004 16:34:28 GMT
|
||||
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-12-01 16:45:12 +0000 (Thu, 01 Dec 2005) $
|
||||
| > $Revision: 88 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > CUSTOM PROFILE FIELD CLASS
|
||||
@@ -22,8 +34,8 @@
|
||||
+--------------------------------------------------------------------------
|
||||
| EXAMPLE:
|
||||
|
|
||||
| $profile->cache_data = $ibforums->cache['profilefields'];
|
||||
| $profile->member_id = $ibforums->member['id']; // Viewing member
|
||||
| $profile->cache_data = $this->ipsclass->cache['profilefields'];
|
||||
| $profile->member_id = $this->ipsclass->member['id']; // Viewing member
|
||||
| $profile->mem_data_id = $data['id']; // Get data for this member
|
||||
| $profile->init_data();
|
||||
|
|
||||
@@ -151,7 +163,7 @@ class custom_fields
|
||||
|
||||
if ( $row['pf_admin_only'] )
|
||||
{
|
||||
if ( ! $this->admin or ! $this->supmod )
|
||||
if ( ! $this->admin AND ! $this->supmod )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -163,7 +175,7 @@ class custom_fields
|
||||
|
||||
if ( ! $row['pf_member_edit'] )
|
||||
{
|
||||
if ( ! $this->admin or ! $this->supmod )
|
||||
if ( ! $this->admin AND ! $this->supmod )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -215,7 +227,7 @@ class custom_fields
|
||||
// Invalid format?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->cache_data[$i]['pf_input_format'] )
|
||||
if ( trim($this->cache_data[$i]['pf_input_format']) and $_POST[ $post.$i ] )
|
||||
{
|
||||
$regex = str_replace( 'n', '\\d', preg_quote( $this->cache_data[$i]['pf_input_format'], "#" ) );
|
||||
$regex = str_replace( 'a', '\\w', $regex );
|
||||
@@ -248,7 +260,7 @@ class custom_fields
|
||||
|
||||
if ( $row['pf_admin_only'] )
|
||||
{
|
||||
if ( ! $this->admin or ! $this->supmod )
|
||||
if ( ! $this->admin AND ! $this->supmod )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -346,7 +358,7 @@ class custom_fields
|
||||
|
||||
if ( $row['pf_admin_only'] )
|
||||
{
|
||||
if ( ! $this->admin or ! $this->supmod )
|
||||
if ( ! $this->admin AND ! $this->supmod )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -385,7 +397,7 @@ class custom_fields
|
||||
|
||||
if ( ! $row['pf_member_edit'] )
|
||||
{
|
||||
if ( ! $this->admin or ! $this->supmod )
|
||||
if ( ! $this->admin AND ! $this->supmod )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@@ -428,6 +440,11 @@ class custom_fields
|
||||
$this->out_fields[ $row['pf_id'] ] = $td;
|
||||
$this->out_chosen[ $row['pf_id'] ] = $ov;
|
||||
}
|
||||
else if ( $this->in_fields[ $row['pf_id'] ] == "" )
|
||||
{
|
||||
$this->out_fields[ $row['pf_id'] ] = '';
|
||||
$this->out_chosen[ $row['pf_id'] ] = '';
|
||||
}
|
||||
}
|
||||
else if ( $type == 'edit' )
|
||||
{
|
||||
@@ -528,7 +545,7 @@ class custom_fields
|
||||
{
|
||||
if ( $this->kill_html )
|
||||
{
|
||||
$t = htmlentities( $t );
|
||||
$t = htmlspecialchars( $t );
|
||||
$t = preg_replace("/&#([0-9]+);/s", "&#\\1;", $t );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user