made changes to ranking and created cheap sessions, changes schema for DB:

CREATE TABLE `posts` (
	`pk` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
	`title` VARCHAR(50) NULL DEFAULT NULL,
	`content` TEXT NULL,
	`date` INT(11) UNSIGNED NULL DEFAULT '0',
	`rank` INT(10) NOT NULL DEFAULT '0',
	PRIMARY KEY (`pk`)
)
ENGINE=InnoDB
AUTO_INCREMENT=6
;