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";
?>
Main > Software > putmarks
April 21, 2005
putmarks
What is putmarks?
putmarks is a lightweight solution for use with
an XBEL bookmark synchronizing package such as
the
wonderful "Bookmarks Synchronizer" Firefox
extension by Torisugari; both pieces of software I use for synchronizing my
bookmarks between home and school everyday.
putmarks functions as the remote end for a book marks synchronizer in that
it accepts HTTP GET and PUT requests, reads and writes an xbel.xml file, and also keeps a log
of all transations. It is very light-weight and requires nothing more
than a PHP-enabled web-server to operate.
Latest release:
Latest, and other releases:
Posted by jordanh at 05:07 PM
| Comments (0)
| TrackBack