define C_SF true body html- load searchform_big data title prims array

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?
define('C_SF', true);
$body = $html->load('searchform_big');
$data['title'] = '';
$prims = array("Radiohead","Metallica","Madonna","Muse","Nirvana","The Doors","The Cure","Green Day","Eminem","Placebo","Blink 182","Rihanna","Gorillaz","Slipknot","Snoop Dogg","Noize MC","Korn");
$i = rand(0, count($prims)-1);
$body = $html->replace('s_primer', $prims[$i], $body);
$t_count = $db->num_rows('SELECT id FROM tn_tracks');
$t_count = (string)$t_count;
if(strlen($t_count) > 3) $t_count = substr($t_count, 0, strlen($t_count)-3).','.substr($t_count, strlen($t_count)-3, strlen($t_count));
$body = $html->replace('t_count', $t_count, $body);
$html->replace('body', $body);
?>