<?php } ?> </table> <div align=center><a href="<?php OUT("?p={$p}&act={$act}&action={$action}"); ?> ">назад</a></div> <?php return; } elseif (isset($mod) && $mod == "denied_urls") { if (isset($doact) && $doact == "save") { $urls = $_POST['urls']; $urls = explode("\n", $urls); $urls = str_replace(array("\r", "\n"), array("", ""), $urls); $BILL->SaveTarifDeniedURLs($gid, $urls); } $denied_urls = $BILL->GetTarifDeniedURLs($gid); $denied_urls = count($denied_urls) ? implode("\n", $denied_urls) : ""; $tarif = $gid > 0 ? $BILL->GetTarifData($gid) : array('packet' => 'Все тарифы (SQUID DENY FILE)'); ?> <div align=center><h3>Редактор запрещённых URL для тарифа "<?php echo $tarif['packet']; ?> "</h3></div> <form action="<?php OUT("?p={$p}&act={$act}&action=edit&mod=denied_urls&gid={$gid}&doact=save"); ?> " method=post> <textarea name=urls cols=80 rows=15><?php echo $denied_urls;