function checkVoIPUser($username, $current_username, $ret_image) { $req = new CheckVoIPUsernameForAdd($username, $current_username); $resp = $req->sendAndRecv(); if ($ret_image) { returnImage($resp); } else { returnText($resp); } }
<option value="search engine"<? if(@$link['TYPE']=='search engine') echo' selected="selected"' ?>>search engine</option> <option value="webfolio"<? if(@$link['TYPE']=='webfolio') echo' selected="selected"' ?>>webfolio</option> <option value="wishlist"<? if(@$link['TYPE']=='wishlist') echo' selected="selected"' ?>>wishlist</option> <option value="etc"<? if(@$link['TYPE']=='etc') echo' selected="selected"' ?>>etc</option> </select> <br/> <b>publicar?</b> <input type="checkbox" name="publish" value="1"<? if( (isset($link['PUBLISH']) && $link['PUBLISH'] == 1) || !isset($link['PUBLISH']) ) echo' checked="checked"' ?> class="no-css"/><br/> <b>publicar na home?</b> <input type="checkbox" name="publishhome" value="1"<? if(@$link['PUBLISH_HOME'] == 1) echo' checked="checked"' ?> class="no-css"/><br/> <br/> <? } elseif ($type == 'files') {?> <b>Arquivo:</b><br/> <input type="file" size="25" name="title" style="width:430px"/><br/> <br/> <b>Descrição:</b><br/> <textarea name="description" rows="5" style="width:430px" onkeypress="countChar(this)"><?php echo returnText(@$file['DESCRIPTION']); ?> </textarea><br/> <br/> <select name="filetype" style="width:200px"> <option>Selecione</option> <option value="img"<? if(@$file['TYPE']=='img') echo' selected="selected"' ?>>/img/upload</option> <option value="cam"<? if(@$file['TYPE']=='cam') echo' selected="selected"' ?>>/img/cam</option> <option value="areka"<? if(@$file['TYPE']=='areka') echo' selected="selected"' ?>>/img/areka</option> <option value="etc"<? if(@$file['TYPE']=='etc') echo' selected="selected"' ?>>/upload</option> </select> <? } elseif ($type == 'ban') { ?> <b>Endereço IP:</b><br/> <input type="text" size="25" name="ipaddress" style="width:430px" value="<?php echo @$ban['USERIP']; ?>