Code Test
I am testing out the code boxes on my site, I want to get them styled all nice, along with other things on my site.
class qodModel extends Model {
var $totalQuestions = 403;
var $currentQuestionNumber = 0;
function Blogmodel() {
parent::Model();
}
function getDateNumber() {
$this->load->helper('date');
$datestring = "%j-%y-%w";
$time = time();
$dateArray = explode("-",mdate($datestring, $time));
$seed = $dateArray[0] * $dateArray[1] + $dateArray[2];
return $seed;
}
function getCurrentQuestionNumber() {
srand($this->getDateNumber());
$randVal = rand();
$this->currentQuestionNumber = $randVal % $this->totalQuestions;
return $this->currentQuestionNumber;
}
}
Technorati Profile
1 comment
wow gold said:
We have been an ebay power seller and paypal confirmed seller of wow gold for years.We also offer cheap wow gold.
Posted Mon, 6 Oct 2008