mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 15:16:30 +02:00
Notice removal and removing banner table from the core_sql
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
* Core SQL
|
* Core SQL
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/sql/core_sql.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_admin/sql/core_sql.php,v $
|
||||||
* $Revision: 1.26 $
|
* $Revision: 1.27 $
|
||||||
* $Date: 2009-09-17 01:47:19 $
|
* $Date: 2009-09-17 14:25:09 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -87,29 +87,6 @@ CREATE TABLE banlist (
|
|||||||
) TYPE=MyISAM;
|
) 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`
|
# Table structure for table `comments`
|
||||||
#
|
#
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
* Copyright e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
* 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
|
* 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_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>';
|
$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)
|
foreach($pref['e_latest_list'] as $val)
|
||||||
{
|
{
|
||||||
@@ -819,11 +819,14 @@ class admin_shortcodes
|
|||||||
$text .= "<div style='padding-bottom: 2px;'>".E_16_BANLIST." ".ADLAN_112.": ".$banned."</div>";
|
$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>";
|
$text .= "<div style='padding-bottom: 2px;'>".E_16_COMMENT." ".ADLAN_114.": ".$comments."</div>";
|
||||||
|
|
||||||
foreach($pref['e_status_list'] as $val)
|
if(vartrue($pref['e_status_list']))
|
||||||
{
|
{
|
||||||
if (is_readable(e_PLUGIN.$val.'/e_status.php'))
|
foreach($pref['e_status_list'] as $val)
|
||||||
{
|
{
|
||||||
include_once(e_PLUGIN.$val.'/e_status.php');
|
if (is_readable(e_PLUGIN.$val.'/e_status.php'))
|
||||||
|
{
|
||||||
|
include_once(e_PLUGIN.$val.'/e_status.php');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
* mySQL Handler
|
* mySQL Handler
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_handlers/mysql_class.php,v $
|
||||||
* $Revision: 1.53 $
|
* $Revision: 1.54 $
|
||||||
* $Date: 2009-09-17 00:13:39 $
|
* $Date: 2009-09-17 14:25:10 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ $db_ConnectionID = NULL; // Stores ID for the first DB connection used - which s
|
|||||||
*
|
*
|
||||||
* @package e107
|
* @package e107
|
||||||
* @category e107_handlers
|
* @category e107_handlers
|
||||||
* @version $Revision: 1.53 $
|
* @version $Revision: 1.54 $
|
||||||
* @author $Author: e107coders $
|
* @author $Author: e107coders $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -159,7 +159,7 @@ class e_db_mysql {
|
|||||||
//@TODO: simplify when yet undiscovered side-effects will be fixed
|
//@TODO: simplify when yet undiscovered side-effects will be fixed
|
||||||
$this->db_Set_Charset();
|
$this->db_Set_Charset();
|
||||||
|
|
||||||
if ( ! @mysql_select_db($this->mySQLdefaultdb, $this->mySQLaccess))
|
if (!@mysql_select_db($this->mySQLdefaultdb, $this->mySQLaccess))
|
||||||
{
|
{
|
||||||
return 'e2';
|
return 'e2';
|
||||||
}
|
}
|
||||||
@@ -650,8 +650,11 @@ class e_db_mysql {
|
|||||||
$type=MYSQL_ASSOC;
|
$type=MYSQL_ASSOC;
|
||||||
}
|
}
|
||||||
$b = microtime();
|
$b = microtime();
|
||||||
$row = @mysql_fetch_array($this->mySQLresult,$type);
|
if($this->mySQLresult)
|
||||||
e107::getSingleton('e107_traffic')->Bump('db_Fetch', $b);
|
{
|
||||||
|
$row = @mysql_fetch_array($this->mySQLresult,$type);
|
||||||
|
e107::getSingleton('e107_traffic')->Bump('db_Fetch', $b);
|
||||||
|
}
|
||||||
if ($row)
|
if ($row)
|
||||||
{
|
{
|
||||||
$this->dbError('db_Fetch');
|
$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