<?
########## Confixx(R) 3.0 Professional ############
####### Copyright SWsoft, Inc. 2004-2005 ##########
#### http://www.sw-soft.com - info@sw-soft.com ####

include_once("auth.php");
db_connect($db_host, $db_user, $db_pass);

$id = db_query("select * from zeiten");
$werte = db_fetch_array($id);
$confixxfaktor = $werte["confixxfaktor"];
$confixx = $confixxfaktor;

$speichervon = $werte["speichervon"];
$speicherbis = $werte["speicherbis"];
$httpdtraffikvon = $werte["httpdtraffikvon"];
$httpdtraffikbis = $werte["httpdtraffikbis"];
$ftptraffikvon = $werte["ftptraffikvon"];
$ftptraffikbis = $werte["ftptraffikbis"];

$speicherlast = $werte["speicherlast"];
$ftptraffiklast = $werte["ftptraffiklast"];
$httpdtraffiklast = $werte["httpdtraffiklast"];

$httpdtraffikfreq = $werte["httpdtraffikfreq"];
$ftptraffikfreq = $werte["ftptraffikfreq"];
$speicherfreq = $werte["speicherfreq"];

$aliases = $confixxfaktor * $werte["aliasesfaktor"];
$httpd = $confixxfaktor * $werte["httpdfaktor"];
$checknewversion = $werte["checknewversion"];
$id = db_query("select mysql, neukundenreload, quota from admin");
$werte = db_fetch_array($id);
$skmysql = $werte["mysql"];
$neukundenreload = $werte["neukundenreload"];
$quota = $werte["quota"];

?>
<HTML>
<HEAD>
<META content="text/html; charset=<? echo $lang_html_charset; ?>" http-equiv=Content-Type>
<LINK href="<?=$strSkinName?>/style.css" rel=stylesheet type=text/css>
</HEAD>

<BODY bgColor=#ffffff bottomMargin=0 leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0">
<br><? include("../fehler.inc.php"); ?>
<script>
function doChange()
{
document.forms[0].submit();
}
</script>
      <form action="einstellungen_intervalle2.php" method="post">
<table class="tblbgcolor" align="left" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
          <tr> 
            <td class="titel-3" >
              <? echo ltext("eiin_cell_event"); ?>
              </td>
            <td class="titel-3" >
              <? echo ltext("eiin_cell_interval"); ?>
              </td>
            <td class="titel-3" >
              <? echo ltext("eiin_cell_period"); ?>
              </td>
            <td class="titel-3" >
              <? echo ltext("eiin_cell_runnow"); ?>
              </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scriptmain"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="confixxfaktor" value="'.$confixx.'" size="5">')); ?>
            </td>
            <td  nowrap>&nbsp;</td>
            <td > 
              <input type="checkbox" name="confixxnow" value="ja"<? if ($confixxnow == 1) { echo " checked"; } ?>>
            </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scripthttpdreload"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="httpd" value="'. $httpd.'" size="5">')); ?>
            </td>
            <td  nowrap>&nbsp;</td>
            <td > 
              <input type="checkbox" name="apachenow" value="ja"<? if ($apachenow == 1) { echo " checked"; } ?>>
            </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scriptemail"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="aliases" value="'.$aliases.'" size="5">')); ?>
            </td>
            <td >&nbsp;</td>
            <td > 
              <input type="checkbox" name="aliasnow" value="ja"<? if ($aliasesnow == 1) { echo " checked"; } ?>>
            </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scriptdu"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="speicherfreq" value="'. $speicherfreq.'" size="5">')); ?>
            </td>
            <td  nowrap>
              <? echo ltext("eiin_cell_from"); ?>
               
              <select name="speichervon">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($speichervon == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
               
              <? echo ltext("eiin_cell_to"); ?>
               
              <select name="speicherbis">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($speicherbis == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
            </td>
            <td > 
              <input type="checkbox" name="speichernow" <? 
if ($speicherlast == 0) { echo " value=\"1\" checked"; } else  echo " value=\"ja\""; 
?>>
            </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scriptwebtraffic"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="httpdtraffikfreq" value="'. $httpdtraffikfreq.'" size="5">')); ?>
            </td>
            <td  nowrap> 
              <? echo ltext("eiin_cell_from"); ?>
               
              <select name="httpdtraffikvon">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($httpdtraffikvon == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
               
              <? echo ltext("eiin_cell_to"); ?>
               
              <select name="httpdtraffikbis">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($httpdtraffikbis == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
            </td>
            <td > 
              <input type="checkbox" name="httpdtraffiknow" <? 
if ($httpdtraffiklast == 0) { echo " value=\"1\" checked"; } else  echo " value=\"ja\""; 
 ?>>
            </td>
          </tr>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_cell_scriptftptraffic"); ?>
                </div>
            </td>
            <td > 
              <? echo ltext('measure__minutes', array('<input type="text" name="ftptraffikfreq" value="'.$ftptraffikfreq.'" size="5">')); ?>
            </td>
            <td > 
              <? echo ltext("eiin_cell_from"); ?>
               
              <select name="ftptraffikvon">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($ftptraffikvon == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
               
              <? echo ltext("eiin_cell_to"); ?>
               
              <select name="ftptraffikbis">
                <?
for ($n = 0; $n < 24; $n++)
	{
	 if (strlen($n) == 1)
		{
		 $n2 = "0".$n;
		} else
		{
		 $n2 = $n;
		}
	 ?>
                <option value="<? echo $n; ?>"<? if ($ftptraffikbis == $n2) { echo " selected"; } ?>>
                <? echo $n2; ?>
                </option>
                <?
	}
?>
              </select>
            </td>
            <td > 
              <input type="checkbox" name="ftptraffiknow" <? 
if ($ftptraffiklast == 0) { echo " value=\"1\" checked"; } else  echo " value=\"ja\""; 
?>>
            </td>
          </tr>
<? if($checkupdates): ?>
          <tr> 
            <td > 
              <div align="right">
                <? echo ltext("eiin_checknewver"); ?>
                </div>
            </td>
            <td> 
	    <? echo ltext('measure__hours', array('<input type="text" name="checknewversion" value="' . $checknewversion . '" size="5">')); ?>
            </td>
            <td  nowrap>&nbsp;</td>
            <td > 
              <input type="checkbox" name="checknewversionnow" value="1"<?/* if ($checknewversionnow == 1) { echo " checked"; } */?>>
            </td>
          </tr>
<? endif; ?>
          <tr> 
            <td colspan="3" > 
              <div align="right">
                <? echo ltext("eiin_cell_immediatereload"); ?>
                </div>
            </td>
            <td > 
              <input type="checkbox" name="neukundenreload" value="ja"<? if ($neukundenreload == 1) { echo " checked"; } ?>>
            </td>
          </tr>
          <tr> 
            <td colspan=4 align=center><? echo std_button(ltext("eiin_button2"), "javascript:doChange()"); ?></td>
          </tr>
      <tr><td colspan=4>
      </form>
      <p>
        <? echo ltext("eiin_descr3"); ?>
        </p>
        </td></tr></table>
</BODY>
</HTML>
<?
db_close();
?>
