Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -2,19 +2,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Reports content SQL query cache file
|
||||
* Last Updated: $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $LastChangedDate: 2012-10-18 11:56:36 -0400 (Thu, 18 Oct 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: mark $
|
||||
* @author Based on original "Report Center" by Luke Scott
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @subpackage Core
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @version $Rev: 11482 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -53,9 +53,9 @@ class report_sql_queries
|
||||
exit;
|
||||
}
|
||||
if( is_array($data['COMS']) && count($data['COMS']) > 0 )
|
||||
{
|
||||
{
|
||||
while( list($k1, $v1) = each($data['COMS']) )
|
||||
{
|
||||
{
|
||||
$exch = array();
|
||||
$cids[] = $k1;
|
||||
if( is_array( $v1 ) && count( $v1 ) )
|
||||
@@ -89,7 +89,7 @@ class report_sql_queries
|
||||
$exch[] = 'rep.' . $k2 . "='" . $this->db->addSlashes($v2) . "'";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( count($exch) > 0 )
|
||||
{
|
||||
$com_sql .= ' OR ' . implode(' AND ', $exch ) . ')';
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.4.5
|
||||
* Last Updated: $LastChangedDate: 2012-05-10 21:10:13 +0100 (Thu, 10 May 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Blog
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 27th January 2004
|
||||
* @version $Rev: 10721 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
class core_seo_queries extends db_driver_mysql
|
||||
{
|
||||
protected $db = "";
|
||||
protected $tbl = "";
|
||||
|
||||
/* Construct */
|
||||
public function __construct( &$obj )
|
||||
{
|
||||
$this->DB = ipsRegistry::DB();
|
||||
$this->prefix = ips_DBRegistry::getPrefix();
|
||||
}
|
||||
|
||||
/*========================================================================*/
|
||||
|
||||
public function ipseo_increment_keyword_count( $keyword )
|
||||
{
|
||||
$keyword = substr( $this->DB->addSlashes($keyword), 0, 255 );
|
||||
|
||||
$query = "INSERT INTO {$this->prefix}search_keywords (keyword, count) VALUES ('{$keyword}', 1) ON DUPLICATE KEY UPDATE count = count + 1";
|
||||
|
||||
return $query;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -2,9 +2,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Tagging Queries
|
||||
* Last Updated: $LastChangedDate: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $LastChangedDate: 2013-02-18 19:33:52 -0500 (Mon, 18 Feb 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* @copyright (c) 2001 - 20011 Invision Power Services, Inc.
|
||||
@@ -12,7 +12,7 @@
|
||||
* @package IP.Board
|
||||
* @subpackage Core
|
||||
* @link http://www.invisionpower.com
|
||||
* @version $Rev: 10914 $
|
||||
* @version $Rev: 12000 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -51,6 +51,13 @@ class public_tag_sql_queries extends db_driver_mysql
|
||||
$where = $data['where'];
|
||||
$limit = $data['limit'];
|
||||
|
||||
foreach ( IPSLib::getEnabledApplications() as $app )
|
||||
{
|
||||
$_apps[] = "'" . $app['app_directory'] . "'";
|
||||
}
|
||||
|
||||
$where[] = "tag_meta_app IN (" . implode( ",", $_apps) . ")";
|
||||
|
||||
$where = ( count( $where ) ) ? ' ' . implode( ' AND ', $where ) : ' 1=1 ';
|
||||
$prefix = $this->tbl;
|
||||
|
||||
|
||||
Reference in new issue
Block a user