PDA

View Full Version : automatic dst setting


AmrasTaralom
10-02-2010, 04:46 AM
If you don't want to care about manually setting the dst you can let php do that for you.

In /index.php search for
unset($pConfig['db_pass']);

afterwards insert
//check for DST and update setting automatically
$query_type='update';
$sql['WHERE'] = 'name="dst"';
$sql[strtoupper($query_type)] = 'config';
if(date('I')) $dst = 100;
else $dst = 0;
$sql['VALUES'] = array('value'=>$dst);
$db_raid->set_query($query_type, $sql, __FILE__, __LINE__);
unset($sql);

and you're done :)