if ($trheute > $options["maximum_free_downloads"]) { $msgNya = $L->sprintf($L->say['alert_premix_free'], $options["maximum_free_downloads"], $options["delay_per_ip"]); } } // Init call create_list if ($czFlst == 0 && (!isset($_COOKIE["showAll"]) || isset($_COOKIE["showAll"]) && $_COOKIE["showAll"] != 1)) { _create_list(false, true); // medic mode, to force list in downloaded files updateListInFile(FILES_LST); // relist file } // Check traffic $is_exceed = $is_expired = false; if ($options["limitbytraffic"]) { require_once CLASS_DIR . "limit_traffic.class.php"; $traffic = new traffics(); if ($traffic->is_error != 0) { html_error($traffic->ret_msg, 0); } $traffic->get(); if ($options["day_reset_trafic"] > 0) { $traffic->autoreset(); } $is_exceed = $traffic->total - $traffic->max >= 0; $is_expired = $traffic->is_expired; } // Check working time $is_worktime = $options["limit_timework"] ? cek_worktime($options["workstart"], $options["workend"]) : true; // Check storages $serverfiles = calcUsedSpace(); $storage_exceed = false;
<li class="ndot"><div style="padding-left:5px;"><input type="text" id="opt_downloadsPerIP" name="opt_downloadsPerIP" size="4" maxlength="4" value="" /> <b class="g">Times</b> leeching per IP</div></li> <li class="ndot"><div style="padding-left:5px;"><input type="text" id="opt_downloadDelayPerIP" name="opt_downloadDelayPerIP" size="4" maxlength="6" value="" /> <b class="g">Seconds</b> delay per IP</div></li> </ul></div></td> <td class="tdacc"><div class="div_right_ndot"><ul> <li class="ndot"><span>How many times users can use your RL per IP</span></li> <li class="ndot"><span>How long it will limit download per IP</span></li> </ul></div></td> </tr> <tr> <td class="tdacc"><input type="checkbox" id="opt_limitbytraffic" name="opt_limitbytraffic" value="1" /><label for="opt_limitbytraffic"> <b>Limit Traffic</b></label></td> <td class="tdacc">This feature Limit Traffic in your RL</td> </tr> <?php require_once CLASS_DIR . 'limit_traffic.class.php'; $traffic = new traffics(); $traffic->get(); ?> <tr id="limitbytrafficlist"> <td class="tdacc"> <script type="text/javascript" src="<?php echo STATIC_DIR; ?> date.js"></script> <link rel="stylesheet" type="text/css" href="<?php echo STATIC_DIR; ?> date.css" /> <div class="div_left_ndot"><ul> <li class="ndot"><div style="padding-left:5px;"><input id="opt_max_trafic" type="text" name="opt_max_trafic" size="5" value="" /> <b class="g">MB</b> Quota Traffic</div></li> <li class="ndot"><div style="padding-left:5px;"><div class="pngDate" onclick="displayDatePicker('opt_date_trafic', false, 'dmy', '/');"><img title="pick date" src="<?php