Размер файла: 1.27Kb
<?
/*
* Animated Collapsible DIV- © Dynamic Drive DHTML code library (www.pokazuha.tv)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.pokazuha.tv/ for this script and 100s more
* Last Update : Tuesday, November 13 2005
*/
class Settings
{
var $m_use_cache;
var $m_cache_time;
var $m_cache_size;
var $m_no_results_string;
var $m_header;
var $m_footer;
function Settings()
{
$query = "select * from settings where settID='1'";
$data = db_getrows(db_query($query));
$this->m_use_cache = $data[0]['useCache'];
$this->m_cache_time = $data[0]['cacheTime'];
$this->m_cache_size = $data[0]['cache_size'];
$this->m_no_results_string = $data[0]['noFoundString'];
$this->m_header = $data[0]['header'];
$this->m_footer = $data[0]['footer'];
}
function is_cache_used()
{
return $this->m_use_cache;
}
function get_cache_time()
{
return $this->m_cache_time;
}
function get_cache_size()
{
return $this->m_cache_size;
}
function get_noresults_string()
{
return $this->m_no_results_string;
}
function get_header()
{
return $this->m_header;
}
function get_footer()
{
return $this->m_footer;
}
}
?>