Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -2,16 +2,28 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| 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-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
|
||||
| > $Revision: 23 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > MySQL DB Queries abstraction module
|
||||
@@ -34,9 +46,9 @@ class sql_extra_queries extends db_driver
|
||||
// Set up...
|
||||
/*========================================================================*/
|
||||
|
||||
function sql_extra_queries( $obj )
|
||||
function sql_extra_queries( &$obj )
|
||||
{
|
||||
$this->db = $obj;
|
||||
$this->db = &$obj;
|
||||
|
||||
if ( ! $this->db->obj['sql_tbl_prefix'] )
|
||||
{
|
||||
@@ -48,6 +60,38 @@ class sql_extra_queries extends db_driver
|
||||
|
||||
/*========================================================================*/
|
||||
|
||||
// ---- Added in v2.1.7 ---- //
|
||||
|
||||
function diag_distinct_skins( )
|
||||
{
|
||||
return "SELECT DISTINCT(group_name)
|
||||
FROM ".SQL_PREFIX."skin_templates
|
||||
GROUP BY group_name";
|
||||
}
|
||||
|
||||
// ---- Added in v2.1 ---- //
|
||||
|
||||
function member_display_name_lookup( $a )
|
||||
{
|
||||
return "SELECT members_display_name, name, id
|
||||
FROM ".SQL_PREFIX."members
|
||||
WHERE LOWER({$a['field']}) LIKE '{$a['name']}%'
|
||||
ORDER BY LENGTH({$a['field']}) ASC
|
||||
LIMIT 0,15";
|
||||
}
|
||||
|
||||
// ---- Added in v2.1 ---- //
|
||||
|
||||
function updateviews_get( $a )
|
||||
{
|
||||
return "SELECT views_tid, COUNT(*) as topicviews
|
||||
FROM ".SQL_PREFIX."topic_views
|
||||
GROUP BY views_tid";
|
||||
}
|
||||
|
||||
|
||||
// ---- 2.0 Existing ----- //
|
||||
|
||||
function digest_get_topics( $a )
|
||||
{
|
||||
return "SELECT tr.trid, tr.topic_id, tr.member_id as trmid, m.name, m.email, m.id, m.email_full, m.language, m.last_activity, t.title, t.*
|
||||
|
||||
Reference in new issue
Block a user