mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Notice removal and removing banner table from the core_sql
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
* Core SQL
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_admin/sql/core_sql.php,v $
|
||||
* $Revision: 1.26 $
|
||||
* $Date: 2009-09-17 01:47:19 $
|
||||
* $Revision: 1.27 $
|
||||
* $Date: 2009-09-17 14:25:09 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
@@ -87,29 +87,6 @@ CREATE TABLE banlist (
|
||||
) TYPE=MyISAM;
|
||||
# --------------------------------------------------------
|
||||
|
||||
#
|
||||
# Table structure for table `banner`
|
||||
#
|
||||
|
||||
CREATE TABLE banner (
|
||||
banner_id int(10) unsigned NOT NULL auto_increment,
|
||||
banner_clientname varchar(100) NOT NULL default '',
|
||||
banner_clientlogin varchar(20) NOT NULL default '',
|
||||
banner_clientpassword varchar(50) NOT NULL default '',
|
||||
banner_image varchar(150) NOT NULL default '',
|
||||
banner_clickurl varchar(150) NOT NULL default '',
|
||||
banner_impurchased int(10) unsigned NOT NULL default '0',
|
||||
banner_startdate int(10) unsigned NOT NULL default '0',
|
||||
banner_enddate int(10) unsigned NOT NULL default '0',
|
||||
banner_active tinyint(3) unsigned NOT NULL default '0',
|
||||
banner_clicks int(10) unsigned NOT NULL default '0',
|
||||
banner_impressions int(10) unsigned NOT NULL default '0',
|
||||
banner_ip text NOT NULL,
|
||||
banner_campaign varchar(150) NOT NULL default '',
|
||||
PRIMARY KEY (banner_id)
|
||||
) TYPE=MyISAM;
|
||||
# --------------------------------------------------------
|
||||
|
||||
#
|
||||
# Table structure for table `comments`
|
||||
#
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id: admin_shortcodes_class.php,v 1.21 2009-09-04 14:35:01 e107coders Exp $
|
||||
* $Id: admin_shortcodes_class.php,v 1.22 2009-09-17 14:25:09 e107coders Exp $
|
||||
*
|
||||
* Admin shortcode batch - class
|
||||
*/
|
||||
@@ -278,7 +278,7 @@ class admin_shortcodes
|
||||
$text = "<div style='padding-bottom: 2px;'>".E_16_NEWS.($submitted_news ? " <a href='".e_ADMIN."newspost.php?sn'>".ADLAN_LAT_2.": $submitted_news</a>" : ' '.ADLAN_LAT_2.': 0').'</div>';
|
||||
$text .= "<div style='padding-bottom: 2px;'>".E_16_UPLOADS.($active_uploads ? " <a href='".e_ADMIN."upload.php'>".ADLAN_LAT_7.": $active_uploads</a>" : ' '.ADLAN_LAT_7.': '.$active_uploads).'</div>';
|
||||
|
||||
if(isset($pref['e_latest_list']))
|
||||
if(vartrue($pref['e_latest_list']))
|
||||
{
|
||||
foreach($pref['e_latest_list'] as $val)
|
||||
{
|
||||
@@ -819,6 +819,8 @@ class admin_shortcodes
|
||||
$text .= "<div style='padding-bottom: 2px;'>".E_16_BANLIST." ".ADLAN_112.": ".$banned."</div>";
|
||||
$text .= "<div style='padding-bottom: 2px;'>".E_16_COMMENT." ".ADLAN_114.": ".$comments."</div>";
|
||||
|
||||
if(vartrue($pref['e_status_list']))
|
||||
{
|
||||
foreach($pref['e_status_list'] as $val)
|
||||
{
|
||||
if (is_readable(e_PLUGIN.$val.'/e_status.php'))
|
||||
@@ -826,6 +828,7 @@ class admin_shortcodes
|
||||
include_once(e_PLUGIN.$val.'/e_status.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if($flo = $sql->db_Count('generic', '(*)', "WHERE gen_type='failed_login'"))
|
||||
{
|
||||
|
@@ -9,8 +9,8 @@
|
||||
* mySQL Handler
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
|
||||
* $Revision: 1.53 $
|
||||
* $Date: 2009-09-17 00:13:39 $
|
||||
* $Revision: 1.54 $
|
||||
* $Date: 2009-09-17 14:25:10 $
|
||||
* $Author: e107coders $
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,7 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s
|
||||
*
|
||||
* @package e107
|
||||
* @category e107_handlers
|
||||
* @version $Revision: 1.53 $
|
||||
* @version $Revision: 1.54 $
|
||||
* @author $Author: e107coders $
|
||||
*
|
||||
*/
|
||||
@@ -650,8 +650,11 @@ class e_db_mysql {
|
||||
$type=MYSQL_ASSOC;
|
||||
}
|
||||
$b = microtime();
|
||||
if($this->mySQLresult)
|
||||
{
|
||||
$row = @mysql_fetch_array($this->mySQLresult,$type);
|
||||
e107::getSingleton('e107_traffic')->Bump('db_Fetch', $b);
|
||||
}
|
||||
if ($row)
|
||||
{
|
||||
$this->dbError('db_Fetch');
|
||||
|
17
e107_plugins/banner/banner_sql.php
Normal file
17
e107_plugins/banner/banner_sql.php
Normal file
@@ -0,0 +1,17 @@
|
||||
CREATE TABLE banner (
|
||||
banner_id int(10) unsigned NOT NULL auto_increment,
|
||||
banner_clientname varchar(100) NOT NULL default '',
|
||||
banner_clientlogin varchar(20) NOT NULL default '',
|
||||
banner_clientpassword varchar(50) NOT NULL default '',
|
||||
banner_image varchar(150) NOT NULL default '',
|
||||
banner_clickurl varchar(150) NOT NULL default '',
|
||||
banner_impurchased int(10) unsigned NOT NULL default '0',
|
||||
banner_startdate int(10) unsigned NOT NULL default '0',
|
||||
banner_enddate int(10) unsigned NOT NULL default '0',
|
||||
banner_active tinyint(3) unsigned NOT NULL default '0',
|
||||
banner_clicks int(10) unsigned NOT NULL default '0',
|
||||
banner_impressions int(10) unsigned NOT NULL default '0',
|
||||
banner_ip text NOT NULL,
|
||||
banner_campaign varchar(150) NOT NULL default '',
|
||||
PRIMARY KEY (banner_id)
|
||||
) TYPE=MyISAM;
|
Reference in New Issue
Block a user