The MTPaginate tag only works within PHP documents!
Make sure that the document extension is .php and that your server supports PHP documents.
// Values that can be used in other PHP code on the page
$paginate_num_pages = 1;
$paginate_num_sections = 1;
$paginate_page_selector = 'page';
$paginate_current_page = $_GET['page'];
// Pin page selector to a valid number (or 'all')
if($paginate_current_page=='')
$paginate_current_page = '1';
if($paginate_current_page != 'all') {
if($paginate_current_page == 'first')
$paginate_current_page = 1;
elseif($paginate_current_page == 'last')
$paginate_current_page = 1;
elseif($paginate_current_page < 1)
$paginate_current_page = 1;
elseif($paginate_current_page > 1)
$paginate_current_page = 1;
$paginate_sections = array( 0
, 1);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 1;
}
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 1, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
else
$paginate_self = htmlentities($paginate_self);
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
Make sure that the document extension is .php and that your server supports PHP documents.
April 21, 2005
euc2html
euc2html is a simple application to convert any double-byte Japanese (and perhaps Chinese/Korean) EUC-encoded characters to HTML/4.0 Unicode entities. It operates using stdin/stdout only, so it is useful for batch updating Web sites, content, etc.
Sadly, I haven't needed to use this software for anything since its initial release. It would have been nice to add bi-directional processing and (S/)JIS support...this software is now more-or-less supplied for those who are looking for a quick fix like this guy.
Latest release:
Version Date Filename Change Log README TODO 1.01 12/1/2001 euc2html-1.01.tar.gz CHANGELOG README N/A
Latest, and other releases:
Version Date Filename Change Log README TODO 1.01 12/1/2001 euc2html-1.01.tar.gz CHANGELOG README N/A
Posted by jordanh at 04:17 PM | Comments (0) | TrackBack