@@ -77,13 +77,13 @@ if ($dopost != 'save') { | |||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$title = preg_replace("#\"#", '"', $title); | $title = preg_replace("#\"#", '"', $title); | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$userip = GetIP(); | $userip = GetIP(); | ||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
@@ -86,13 +86,13 @@ if ($dopost != 'save') { | |||||
$sortrank = AddDay($pubdate, $sortup); | $sortrank = AddDay($pubdate, $sortup); | ||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, 255); | $description = cn_substrR($description, 255); | ||||
$keywords = trim(cn_substrR($keywords, 60)); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = trim(cn_substrR($keywords, 255)); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | ||||
@@ -77,13 +77,13 @@ if ($dopost != 'save') { | |||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$title = preg_replace("#\"#", '"', $title); | $title = preg_replace("#\"#", '"', $title); | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$userip = GetIP(); | $userip = GetIP(); | ||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
@@ -72,13 +72,13 @@ if ($dopost != 'save') { | |||||
$sortrank = AddDay($pubdate, $sortup); | $sortrank = AddDay($pubdate, $sortup); | ||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = trim(cn_substrR($keywords, 60)); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = trim(cn_substrR($keywords, 255)); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | ||||
@@ -76,13 +76,13 @@ if ($dopost != 'save') { | |||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$title = preg_replace("#\"#", '"', $title); | $title = preg_replace("#\"#", '"', $title); | ||||
$title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | $title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$userip = GetIP(); | $userip = GetIP(); | ||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
@@ -76,13 +76,13 @@ if ($dopost != 'save') { | |||||
$ismake = $ishtml == 0 ? -1 : 0; | $ismake = $ishtml == 0 ? -1 : 0; | ||||
$autokey = 1; | $autokey = 1; | ||||
$title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | $title = dede_htmlspecialchars(cn_substrR($title, $cfg_title_maxlen)); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, 255); | $description = cn_substrR($description, 255); | ||||
$keywords = trim(cn_substrR($keywords, 60)); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = trim(cn_substrR($keywords, 255)); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | ||||
@@ -76,13 +76,13 @@ if ($dopost != 'save') { | |||||
if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(1000, 6000) : $cfg_arc_click); | if (empty($click)) $click = ($cfg_arc_click == '-1' ? mt_rand(1000, 6000) : $cfg_arc_click); | ||||
$title = preg_replace('#"#', '"', $title); | $title = preg_replace('#"#', '"', $title); | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$userip = GetIP(); | $userip = GetIP(); | ||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
@@ -101,13 +101,13 @@ if ($dopost != 'save') { | |||||
$ismake = 0; | $ismake = 0; | ||||
} | } | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | ||||
@@ -47,13 +47,13 @@ if ($dopost != 'save') { | |||||
else $ismake = 0; | else $ismake = 0; | ||||
$title = preg_replace('#"#', '"', $title); | $title = preg_replace('#"#', '"', $title); | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = cn_substrR($keywords, 60); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = cn_substrR($keywords, 255); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1; | ||||
@@ -53,13 +53,13 @@ if ($dopost != 'save') { | |||||
if ($ishtml == 0) $ismake = -1; | if ($ishtml == 0) $ismake = -1; | ||||
else $ismake = 0; | else $ismake = 0; | ||||
$title = cn_substrR($title, $cfg_title_maxlen); | $title = cn_substrR($title, $cfg_title_maxlen); | ||||
$shorttitle = cn_substrR($shorttitle, 36); | |||||
$shorttitle = cn_substrR($shorttitle, 255); | |||||
$color = cn_substrR($color, 7); | $color = cn_substrR($color, 7); | ||||
$writer = cn_substrR($writer, 20); | |||||
$source = cn_substrR($source, 30); | |||||
$writer = cn_substrR($writer, 255); | |||||
$source = cn_substrR($source, 255); | |||||
$description = cn_substrR($description, $cfg_auot_description); | $description = cn_substrR($description, $cfg_auot_description); | ||||
$keywords = trim(cn_substrR($keywords, 60)); | |||||
$filename = trim(cn_substrR($filename, 40)); | |||||
$keywords = trim(cn_substrR($keywords, 255)); | |||||
$filename = trim(cn_substrR($filename, 50)); | |||||
$isremote = 0; | $isremote = 0; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) { | ||||
@@ -184,8 +184,8 @@ CREATE TABLE `#@__archives` ( | |||||
`title` varchar(255) NOT NULL default '', | `title` varchar(255) NOT NULL default '', | ||||
`shorttitle` char(255) NOT NULL default '', | `shorttitle` char(255) NOT NULL default '', | ||||
`color` char(7) NOT NULL default '', | `color` char(7) NOT NULL default '', | ||||
`writer` char(20) NOT NULL default '', | |||||
`source` char(30) NOT NULL default '', | |||||
`writer` char(255) NOT NULL default '', | |||||
`source` char(255) NOT NULL default '', | |||||
`litpic` char(100) NOT NULL default '', | `litpic` char(100) NOT NULL default '', | ||||
`pubdate` int(10) unsigned NOT NULL default '0', | `pubdate` int(10) unsigned NOT NULL default '0', | ||||
`senddate` int(10) unsigned NOT NULL default '0', | `senddate` int(10) unsigned NOT NULL default '0', | ||||
@@ -198,7 +198,7 @@ CREATE TABLE `#@__archives` ( | |||||
`voteid` mediumint(8) NOT NULL default '0', | `voteid` mediumint(8) NOT NULL default '0', | ||||
`notpost` tinyint(1) unsigned NOT NULL default '0', | `notpost` tinyint(1) unsigned NOT NULL default '0', | ||||
`description` varchar(255) NOT NULL default '', | `description` varchar(255) NOT NULL default '', | ||||
`filename` varchar(40) NOT NULL default '', | |||||
`filename` varchar(50) NOT NULL default '', | |||||
`dutyadmin` mediumint(8) unsigned NOT NULL default '0', | `dutyadmin` mediumint(8) unsigned NOT NULL default '0', | ||||
`mtype` mediumint(8) unsigned NOT NULL default '0', | `mtype` mediumint(8) unsigned NOT NULL default '0', | ||||
`weight` int(10) NOT NULL default '0', | `weight` int(10) NOT NULL default '0', | ||||