<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* File: function.randomviewrtag.php
* Type: function
* Name: randomeviewrtag
* Purpose: outputs a random tag for the flash viewr
* -------------------------------------------------------------
*/
function smarty_function_randomviewrtag($params, &$smarty)
{
$answers = array('altrock','jazz','blues','guitar','punk',
'concert','radio','cdr','bass','ipod','mp3','recording','noise','cassette',
'4-track','synthesizer');
$result = array_rand($answers);
return $answers[$result];
}
?>
|