<?php

$RL_C=80;
$RL_M=100;
$RL_C_NET_MAX=60;
$RL_M_NET_MAX=30;

$CIR=4;

$query="select ATM from AUTOSHAPE_CONF where (curdate() between FROM_DATE and TILL_DATE) and (curtime() between FROM_TIME and TILL_TIME or (FROM_TIME>TILL_TIME and (curtime()>=FROM_TIME or curtime()<=TILL_TIME))) and (dayofweek(now())-1 between FROM_DOW and TILL_DOW or (FROM_DOW>TILL_DOW and (dayofweek(now())-1>=FROM_DOW or dayofweek(now())-1<=TILL_DOW))) order by PRIO limit 1";
$result=mysql_query($query,$conn) or die("ERROR: 4.1\n");
if ($row=mysql_fetch_object($result)) $ATM="$row->ATM";
else die("ERROR: 4.2\n");

$MBITS2BYTES=1024*1024/8;

$RL_C=$RL_C*$MBITS2BYTES;
$RL_M=$RL_M*$MBITS2BYTES;
$RL_C_NET_MAX=$RL_C_NET_MAX*$MBITS2BYTES;
$RL_M_NET_MAX=$RL_M_NET_MAX*$MBITS2BYTES;
$ATM=$ATM*$MBITS2BYTES;
$CIR=$CIR*$MBITS2BYTES;
?>
