use bpteam\ProxyList\Proxy; ?> <form method="post"> <input type="text" name="list_name" value="<?php echo isset($_POST['list_name']) ? $_POST['list_name'] : ''; ?> "> List name<br/> <? if(isset($_POST['list_name'])){ $proxy = new Proxy(); $proxy->open($_POST['list_name']); if(isset($_POST['send_form'])){ $proxy->write($_POST['url'], 'url'); $proxy->write(explode("\n",$_POST['check_word']), 'check_word'); $functions = array(); foreach ($proxy->getProxyFunction() as $function) { if($function == 'country') continue; if(isset($_POST['function_'.$function])){ $functions[] = $function; } } if($_POST['country']){ $proxy->write(explode("\n",$_POST['country']), 'country'); } $proxy->write($functions, 'function'); $proxy->write(isset($_POST['need_update']), 'need_update'); } ?> <input name="send_form" type="hidden" value="create"> <input name="url" type="text" value="<?php echo $proxy->read('url');