set default charset of email_header_encode, add ud_flags to indicate which updates have been processed in some way.
This commit is contained in:
parent
e4d2e2200e
commit
5607737c39
2
boot.php
2
boot.php
@ -44,7 +44,7 @@ require_once('include/taxonomy.php');
|
||||
define ( 'RED_PLATFORM', 'Red Matrix' );
|
||||
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
|
||||
define ( 'ZOT_REVISION', 1 );
|
||||
define ( 'DB_UPDATE_VERSION', 1070 );
|
||||
define ( 'DB_UPDATE_VERSION', 1071 );
|
||||
|
||||
define ( 'EOL', '<br />' . "\r\n" );
|
||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||
|
@ -1336,7 +1336,7 @@ function xml2array($contents, $namespaces = true, $get_attributes=1, $priority =
|
||||
}
|
||||
|
||||
|
||||
function email_header_encode($in_str, $charset) {
|
||||
function email_header_encode($in_str, $charset = 'UTF-8') {
|
||||
$out_str = $in_str;
|
||||
$need_to_convert = false;
|
||||
|
||||
|
@ -891,10 +891,12 @@ CREATE TABLE IF NOT EXISTS `updates` (
|
||||
`ud_hash` char(128) NOT NULL,
|
||||
`ud_guid` char(255) NOT NULL DEFAULT '',
|
||||
`ud_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`ud_flags` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ud_id`),
|
||||
KEY `ud_hash` (`ud_hash`),
|
||||
KEY `ud_guid` (`ud_guid`),
|
||||
KEY `ud_date` (`ud_date`)
|
||||
KEY `ud_date` (`ud_date`),
|
||||
KEY `ud_flags` (`ud_flags`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `verify` (
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1070 );
|
||||
define( 'UPDATE_VERSION' , 1071 );
|
||||
|
||||
/**
|
||||
*
|
||||
@ -797,3 +797,11 @@ ADD INDEX ( `site_sellpage` )");
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
function update_r1070() {
|
||||
$r = q("ALTER TABLE `updates` ADD `ud_flags` INT NOT NULL DEFAULT '0',
|
||||
ADD INDEX ( `ud_flags` )");
|
||||
if($r)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user