Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+24 -19
View File
@@ -1,28 +1,18 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| 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 $
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > CUSTOM PROFILE FIELD CLASS
@@ -42,12 +32,20 @@
+--------------------------------------------------------------------------
*/
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class custom_fields
{
var $member_id = 0;
var $admin = 0;
var $supmod = 0;
var $mod = 0;
var $mem_data_id = 0;
var $mem_list = 0;
var $init = 0;
var $in_fields = array();
var $out_fields = array();
@@ -127,7 +125,7 @@ class custom_fields
if ( count( $this->member_data ) )
{
$this->mem_data_id = $this->member_data['id'];
$this->mem_data_id = isset($this->member_data['member_id']) ? $this->member_data['member_id'] : 0;
}
//-----------------------------------------
@@ -138,7 +136,7 @@ class custom_fields
{
foreach( $this->cache_data as $id => $data )
{
$this->in_fields[ $id ] = $this->member_data['field_'.$id];
$this->in_fields[ $id ] = isset($this->member_data['field_'.$id]) ? $this->member_data['field_'.$id] : NULL;
}
}
@@ -382,7 +380,12 @@ class custom_fields
}
else if ( $this->member_id )
{
$pass = 1;
// We don't want to search these fields in memberlist..
if( !$this->mem_list )
{
$pass = 1;
}
}
if ( ! $pass )
@@ -511,7 +514,7 @@ class custom_fields
$tmp = $this->cache_data[$i]['pf_topic_format'];
$tmp = str_replace( '{title}' , $this->field_names[$i], $tmp );
$tmp = str_replace( '{key}' , $this->out_chosen[$i] , $tmp );
$tmp = str_replace( '{key}' , isset($this->out_chosen[$i]) ? $this->out_chosen[$i]: '' , $tmp );
$tmp = str_replace( '{content}', $out , $tmp );
return $tmp;
@@ -549,6 +552,8 @@ class custom_fields
$t = preg_replace("/&amp;#([0-9]+);/s", "&#\\1;", $t );
}
$t = nl2br( $t );
return $t;
}