<?php
/**************************************************************************************************
|
| AudioShare - Audio Sharing Script
| http://www.audiosharescript.com
| [email protected]
| Version: 2.0
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License
| Agreement available at http://www.audiosharescript.com/eula.html and to be bound by it.
|
| Copyright (c) 2009 AudioShareScript.com. All rights reserved.
|**************************************************************************************************/
session_start();
include("include/config.php");
include("include/functions/import.php");
//FEATURED AUDIOS BEGIN
$home_feat_audios = $config['home_feat_audios'];
$query="SELECT AUDIOID,title,ext FROM audios WHERE public='1' AND active='1' AND featured='1' ORDER BY rand() limit $home_feat_audios";
$executequery = $conn->Execute($query);
if($executequery->recordcount()>0)
$raudios = $executequery->getrows();
STemplate::assign('raudios',$raudios);
//FEATURED AUDIOS END
//RECENT AUDIOS BEGIN
$home_rec_audios = $config['home_rec_audios'];
$query="SELECT AUDIOID,title,ext FROM audios WHERE public='1' AND active='1' ORDER BY AUDIOID desc limit $home_rec_audios";
$executequery = $conn->Execute($query);
if($executequery->recordcount()>0)
$faudios = $executequery->getrows();
STemplate::assign('faudios',$faudios);
//RECENT AUDIOS END
$pagetitle = "$lang[173]";
STemplate::assign('pagetitle',$pagetitle);
//TEMPLATES BEGIN
STemplate::display('home.tpl');
STemplate::display('footer.tpl');
//TEMPLATES END
?>