14 function tpl_cycle($values, $delimiter =
',', $reset =
false){
17 if (trim($values)==
'') {
21 if(is_array($values)) {
22 $cycle_array = $values;
24 $cycle_array = explode($delimiter,$values);
27 if(!isset($cycle_index) || $reset) {
31 $retval = $cycle_array[$cycle_index];
33 if ( $cycle_index >= count($cycle_array) -1 ) {
57 $i = isset($_SESSION[
'rmMsg']) ? count($_SESSION[
'rmMsg']) + 1 : 0;
58 $_SESSION[
'rmMsg'][
$i][
'text'] = htmlentities($msg);
59 $_SESSION[
'rmMsg'][
$i][
'level'] = $level;
60 header(
'location: '.preg_replace(
"/[&]amp;/i",
'&',
$url));
77 $_SESSION[
'rmMsg'][] = array(
78 'text' => htmlentities($msg),