Jump to content

Search the Community

Showing results for tags 'hml'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Q&A Desenvolvimento
    • Perguntas e respostas rápidas
  • Desenvolvimento e Banco de Dados
    • HTML e CSS
    • Java
    • Javascript
    • .NET
    • PHP
    • Python
    • Ruby
    • Mobile
    • Ambientes de Desenvolvimento
    • Arquitetura e Métodos Ágeis
    • Banco de Dados
    • DevOps
    • Desenvolvimento de Games
    • E-Commerce e Pagamentos Online
    • SEO e Otimizações
    • WordPress
    • Algoritmos & Outras Tecnologias
  • Design e Produto
    • Fotografia
    • Photoshop
    • Design de interfaces e UX
    • Edição/Produção de Vídeos
    • Marketing Online
    • Desenho, Ilustração e 3D
  • Entretenimento e uso pessoal
    • Geral
    • Segurança & Malwares
    • Gadgets e wearable
    • Softwares e Apps
    • Entretenimento

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Google+


Hangouts


Skype


Twitter


deviantART


Github


Flickr


LinkedIn


Pinterest


Facebook


Site Pessoal


Localização


Interesses

Found 3 results

  1. thelastempire

    Posições de Container-Box

    Pessoal, estou com uma grande dúvida. Em meu site, eu tenho o arquivo Index.php que é a página inicial, e o Register.php que é a página para se registrar. E eu dividi a estrutura Html da página como está na imagem (Essa seria o Index.php): A minha dúvida é a seguinte, Eu criei os painéis da esquerda tudo certo. E o painel do centro, fica as noticias e ele está na posição certa, na qual eu quero que fique. Mas quando eu entro na página Register.php o centro fica todo mal posicionado, como na foto abaixo: A Register está muito mais acima do que era pra estar, o correto seria ela estar posicionada igual a do centro na primeira foto. Se alguém puder me ajudar, ficarei grato! Style.css .mid-container { background: white; width: 550px; position: absolute; margin-top: 200px; margin-left: 50%; margin-right: -50%; margin-bottom: 40px; transform: translate(-50%, -50%); } .left-container { width: 200px; height: 960px; position: absolute; top: 1350px; left: 50%; margin-right: -50%; margin-bottom: 40px; transform: translate(-260%, -115%) } .right-container { width: 200px; height: 960px; position: absolute; top: 1350px; left: 50%; margin-right: -50%; margin-bottom: 40px; transform: translate(165%, -115%) } .left_box, .right_box, .mid_box { width: 100%; position: relative; margin-bottom: 18px; } E a minha Html do Register está assim: <?php require_once 'engine/init.php'; logged_in_redirect(); include 'layout/overall/header.php'; include 'index2.php'; if (empty($_POST) === false) { // $_POST[''] $required_fields = array('username', 'password', 'password_again', 'email', 'selected'); foreach($_POST as $key=>$value) { if (empty($value) && in_array($key, $required_fields) === true) { $errors[] = 'You need to fill in all fields.'; break 1; } } // check errors (= user exist, pass long enough if (empty($errors) === true) { /* Token used for cross site scripting security */ if (!Token::isValid($_POST['token'])) { $errors[] = 'Token is invalid.'; } if ($config['use_captcha']) { $captcha = (isset($_POST['g-recaptcha-response'])) ? $_POST['g-recaptcha-response'] : false; if(!$captcha) { $errors[] = 'Please check the the captcha form.'; } else { $secretKey = $config['captcha_secret_key']; $ip = $_SERVER['REMOTE_ADDR']; // curl start $curl_connection = curl_init("https://www.google.com/recaptcha/api/siteverify"); $post_string = "secret=".$secretKey."&response=".$captcha."&remoteip=".$ip; curl_setopt($curl_connection, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($curl_connection, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl_connection, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_connection, CURLOPT_FOLLOWLOCATION, 0); curl_setopt($curl_connection, CURLOPT_POSTFIELDS, $post_string); $response = curl_exec($curl_connection); curl_close($curl_connection); // Curl end $responseKeys = json_decode($response,true); if(intval($responseKeys["success"]) !== 1) { $errors[] = 'Captcha failed.'; } } } if (user_exist($_POST['username']) === true) { $errors[] = 'Sorry, that username already exist.'; } // Don't allow "default admin names in config.php" access to register. $isNoob = in_array(strtolower($_POST['username']), $config['page_admin_access']) ? true : false; if ($isNoob) { $errors[] = 'This account name is blocked for registration.'; } if (preg_match("/^[a-zA-Z0-9]+$/", $_POST['username']) == false) { $errors[] = 'Your account name can only contain characters a-z, A-Z and 0-9.'; } // name restriction $resname = explode(" ", $_POST['username']); foreach($resname as $res) { if(in_array(strtolower($res), $config['invalidNameTags'])) { $errors[] = 'Your username contains a restricted word.'; } else if(strlen($res) == 1) { $errors[] = 'Too short words in your name.'; } } if (strlen($_POST['username']) > 32) { $errors[] = 'Your account name must be less than 33 characters.'; } // end name restriction if (strlen($_POST['password']) < 6) { $errors[] = 'Your password must be at least 6 characters.'; } if (strlen($_POST['password']) > 100) { $errors[] = 'Your password must be less than 100 characters.'; } if ($_POST['password'] !== $_POST['password_again']) { $errors[] = 'Your passwords do not match.'; } if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) === false) { $errors[] = 'A valid email address is required.'; } if (user_email_exist($_POST['email']) === true) { $errors[] = 'That email address is already in use.'; } if ($_POST['selected'] != 1) { $errors[] = 'You are only allowed to have an account if you accept the rules.'; } if (validate_ip(getIP()) === false && $config['validate_IP'] === true) { $errors[] = 'Failed to recognize your IP address. (Not a valid IPv4 address).'; } if (strlen($_POST['flag']) < 1) { $errors[] = 'Please choose country.'; } } } ?> <html> <div class="mid-container"> <div class="mid_box"> <h1>Register Account</h1> </div> </html> <?php if (isset($_GET['success']) && empty($_GET['success'])) { if ($config['mailserver']['register']) { ?> <html> <h1>Email authentication required</h1> <p>We have sent you an email with an activation link to your submitted email address.</p> <p>If you can't find the email within 5 minutes, check your <strong>junk/trash inbox (spam filter)</strong> as it may be mislocated there.</p> </html> <?php } else echo 'Congratulations! Your account has been created. You may now login to create a character.'; } elseif (isset($_GET['authenticate']) && empty($_GET['authenticate'])) { // Authenticate user, fetch user id and activation key $auid = (isset($_GET['u']) && (int)$_GET['u'] > 0) ? (int)$_GET['u'] : false; $akey = (isset($_GET['k']) && (int)$_GET['k'] > 0) ? (int)$_GET['k'] : false; // Find a match $user = mysql_select_single("SELECT `id`, `active` FROM `znote_accounts` WHERE `account_id`='$auid' AND `activekey`='$akey' LIMIT 1;"); if ($user !== false) { $user = (int) $user['id']; $active = (int) $user['active']; // Enable the account to login if ($active == 0) { mysql_update("UPDATE `znote_accounts` SET `active`='1' WHERE `id`= $user LIMIT 1;"); } echo '<h1>Congratulations!</h1> <p>Your account has been created. You may now login to create a character.</p>'; } else { echo '<h1>Authentication failed</h1> <p>Either the activation link is wrong, or your account is already activated.</p>'; } } else { if (empty($_POST) === false && empty($errors) === true) { if ($config['log_ip']) { znote_visitor_insert_detailed_data(1); } //Register $register_data = array( 'name' => $_POST['username'], 'password' => $_POST['password'], 'email' => $_POST['email'], 'created' => time(), 'ip' => getIPLong(), 'flag' => $_POST['flag'] ); user_create_account($register_data, $config['mailserver']); if (!$config['mailserver']['debug']) header('Location: register.php?success'); exit(); //End register } else if (empty($errors) === false){ echo '<font color="red"><b>'; echo output_errors($errors); echo '</b></font>'; } ?> <html> <div class="mid_box"> <form action="" method="post"> <ul> <li> Account Name:<br> <input type="text" name="username"> </li> <li> Password:<br> <input type="password" name="password"> </li> <li> Password again:<br> <input type="password" name="password_again"> </li> <li> Email:<br> <input type="text" name="email"> </li> <li> Country:<br> <select name="flag"> <option value="">(Please choose)</option><option value="af"> Afghanistan </option><option value="al"> Albania </option><option value="dz"> Algeria </option><option value="as"> American Samoa </option><option value="ad"> Andorra </option><option value="ao"> Angola </option><option value="ai"> Anguilla </option><option value="aq"> Antarctica </option><option value="ag"> Antigua and Barbuda </option><option value="ar"> Argentina </option> <option value="am"> Armenia </option><option value="aw"> Aruba </option><option value="au"> Australia </option><option value="at"> Austria </option><option value="az"> Azerbaijan </option><option value="bs"> Bahamas </option><option value="bh"> Bahrain </option><option value="bd"> Bangladesh </option><option value="bb"> Barbados </option><option value="by"> Belarus </option><option value="be"> Belgium </option><option value="bz"> Belize </option><option value="bj"> Benin </option><option value="bm"> Bermuda </option><option value="bt"> Bhutan </option><option value="bo"> Bolivia </option><option value="ba"> Bosnia and Herzegowina </option><option value="bw"> Botswana </option><option value="bv"> Bouvet Island </option><option value="br"> Brazil </option><option value="io"> British Indian Ocean Territory </option><option value="bn"> Brunei Darussalam </option><option value="bg"> Bulgaria </option><option value="bf"> Burkina Faso </option><option value="bi"> Burundi </option> <option value="kh"> Cambodia </option><option value="cm"> Cameroon </option><option value="ca"> Canada </option><option value="cv"> Cape Verde </option><option value="ky"> Cayman Islands </option><option value="cf"> Central African Republic </option><option value="td"> Chad </option><option value="cl"> Chile </option><option value="cn"> China </option><option value="cx"> Christmas Island </option><option value="cc"> Cocos Islands </option><option value="co"> Colombia </option><option value="km"> Comoros </option><option value="cd"> Congo </option><option value="cg"> Congo </option><option value="ck"> Cook Islands </option><option value="cr"> Costa Rica </option><option value="ci"> Cote DIvoire </option><option value="hr"> Croatia </option><option value="c*"> Cuba </option><option value="cy"> Cyprus </option><option value="cz"> Czech Republic </option><option value="dk"> Denmark </option><option value="dj"> Djibouti </option><option value="dm"> Dominica </option> <option value="do"> Dominican Republic </option><option value="tp"> East Timor </option><option value="ec"> Ecuador </option><option value="eg"> Egypt </option><option value="sv"> El Salvador </option><option value="gq"> Equatorial Guinea </option><option value="er"> Eritrea </option><option value="ee"> Estonia </option><option value="et"> Ethiopia </option><option value="fk"> Falkland Islands </option><option value="fo"> Faroe Islands </option><option value="fj"> Fiji </option><option value="fi"> Finland </option><option value="fr"> France </option><option value="gf"> French Guiana </option><option value="pf"> French Polynesia </option><option value="tf"> French Southern Territories </option><option value="ga"> Gabon </option><option value="gm"> Gambia </option><option value="ge"> Georgia </option><option value="de"> Germany </option><option value="gh"> Ghana </option><option value="gi"> Gibraltar </option><option value="gr"> Greece </option> <option value="gl"> Greenland </option><option value="gd"> Grenada </option><option value="gp"> Guadeloupe </option><option value="gu"> Guam </option><option value="gt"> Guatemala </option><option value="gn"> Guinea </option><option value="gw"> Guinea-Bissau </option><option value="gy"> Guyana </option><option value="ht"> Haiti </option><option value="hm"> Heard and Mc Donald Islands </option><option value="hn"> Honduras </option><option value="hk"> Hong Kong </option><option value="hu"> Hungary </option><option value="is"> Iceland </option><option value="in"> India </option><option value="id"> Indonesia </option><option value="ir"> Iran </option><option value="iq"> Iraq </option><option value="ie"> Ireland </option><option value="il"> Israel </option><option value="it"> Italy </option><option value="jm"> Jamaica </option><option value="jp"> Japan </option><option value="jo"> Jordan </option><option value="kz"> Kazakhstan </option><option value="ke"> Kenya </option> <option value="ki"> Kiribati </option><option value="kr"> Korea </option><option value="kp"> Korea </option><option value="kw"> Kuwait </option><option value="kg"> Kyrgyzstan </option><option value="la"> Lao Peoples Democratic Republic </option><option value="lv"> Latvia </option><option value="lb"> Lebanon </option><option value="ls"> Lesotho </option><option value="lr"> Liberia </option><option value="ly"> Libyan Arab Jamahiriya </option><option value="li"> Liechtenstein </option><option value="lt"> Lithuania </option><option value="lu"> Luxembourg </option><option value="mo"> Macau </option><option value="mk"> Macedonia </option><option value="mg"> Madagascar </option><option value="mw"> Malawi </option><option value="my"> Malaysia </option><option value="mv"> Maldives </option><option value="ml"> Mali </option><option value="mt"> Malta </option><option value="mh"> Marshall Islands </option><option value="mq"> Martinique </option> <option value="mr"> Mauritania </option><option value="mu"> Mauritius </option><option value="yt"> Mayotte </option><option value="mx"> Mexico </option><option value="fm"> Micronesia </option><option value="md"> Moldova </option><option value="mc"> Monaco </option><option value="mn"> Mongolia </option><option value="ms"> Montserrat </option><option value="ma"> Morocco </option><option value="mz"> Mozambique </option><option value="mm"> Myanmar </option><option value="na"> Namibia </option><option value="nr"> Nauru </option><option value="np"> Nepal </option><option value="nl"> Netherlands </option><option value="an"> Netherlands Antilles </option><option value="nc"> New Caledonia </option><option value="nz"> New Zealand </option><option value="ni"> Nicaragua </option><option value="ne"> Niger </option><option value="ng"> Nigeria </option><option value="nu"> Niue </option><option value="nf"> Norfolk Island </option><option value="mp"> Northern Mariana Islands </option> <option value="no"> Norway </option><option value="om"> Oman </option><option value="pk"> Pakistan </option><option value="pw"> Palau </option><option value="pa"> Panama </option><option value="pg"> Papua New Guinea </option><option value="py"> Paraguay </option><option value="pe"> Peru </option><option value="ph"> Philippines </option><option value="pn"> Pitcairn </option><option value="pl"> Poland </option><option value="pt"> Portugal </option><option value="pr"> Puerto Rico </option><option value="qa"> Qatar </option><option value="re"> Reunion </option><option value="ro"> Romania </option><option value="ru"> Russian Federation </option><option value="rw"> Rwanda </option><option value="kn"> Saint Kitts and Nevis </option><option value="lc"> Saint Lucia </option><option value="ws"> Samoa </option><option value="sm"> San Marino </option><option value="st"> Sao Tome and Principe </option><option value="sa"> Saudi Arabia </option><option value="sn"> Senegal </option> <option value="sc"> Seychelles </option><option value="sl"> Sierra Leone </option><option value="sg"> Singapore </option><option value="sk"> Slovakia </option><option value="si"> Slovenia </option><option value="sb"> Solomon Islands </option><option value="so"> Somalia </option><option value="za"> South Africa </option><option value="es"> Spain </option><option value="lk"> Sri Lanka </option><option value="sh"> St. Helena </option><option value="pm"> St. Pierre and Miquelon </option><option value="sd"> Sudan </option><option value="sr"> Suriname </option><option value="sj"> Svalbard and Jan Mayen Islands </option><option value="sz"> Swaziland </option><option value="se"> Sweden </option><option value="ch"> Switzerland </option><option value="sy"> Syrian Arab Republic </option><option value="tw"> Taiwan </option><option value="tj"> Tajikistan </option><option value="tz"> Tanzania </option> <option value="th"> Thailand </option><option value="tg"> Togo </option><option value="tk"> Tokelau </option><option value="to"> Tonga </option><option value="tt"> Trinidad and Tobago </option><option value="tn"> Tunisia </option><option value="tr"> Turkey </option><option value="tm"> Turkmenistan </option><option value="tc"> Turks and Caicos Islands </option><option value="tv"> Tuvalu </option><option value="ug"> Uganda </option><option value="ua"> Ukraine </option><option value="ae"> United Arab Emirates </option><option value="gb"> United Kingdom </option><option value="us"> United States </option><option value="uy"> Uruguay </option><option value="uz"> Uzbekistan </option><option value="vu"> Vanuatu </option><option value="va"> Vatican </option><option value="ve"> Venezuela </option><option value="vn"> Viet Nam </option><option value="vg"> Virgin Islands (British) </option><option value="vi"> Virgin Islands (US) </option> <option value="wf"> Wallis and Futuna Islands </option><option value="eh"> Western Sahara </option><option value="ye"> Yemen </option><option value="yu"> Yugoslavia </option><option value="zm"> Zambia </option><option value="zw"> Zimbabwe </option> </select> </li> </ul> </html> <?php if ($config['use_captcha']) { ?> <li> <div class="g-recaptcha" data-sitekey="<?php echo $config['captcha_site_key']; ?>"></div> </li> <?php } ?> <html> <ul> <li> <h2>Server Rules</h2> <p>The golden rule: Have fun.</p> <p>If you get pwn3d, don't hate the game.</p> <p>No <a href='http://en.wikipedia.org/wiki/Cheating_in_video_games' target="_blank">cheating</a> allowed.</p> <p>No <a href='http://en.wikipedia.org/wiki/Video_game_bot' target="_blank">botting</a> allowed.</p> <p>The staff can delete, ban, do whatever they want with your account and your <br> submitted information. (Including exposing and logging your IP).</p> </li> <li> Do you agree to follow the server rules?<br> <select name="selected"> <option value="0">Umh...</option> <option value="1">Yes.</option> <option value="2">No.</option> </select> </li> </ul> </html> <?php /* Form file */ Token::create(); ?> <html> <ul> <li> <input type="submit" value="Create Account"> </li> </ul> </form> </div> </div> <?php } include 'layout/overall/footer.php'; ?> Observação: o Html está misturado com códigos Php, peguei essa base por que estou aprendendo ainda a mexer com tudo isso.
  2. Angelica Mendes

    Posição de DIVS

    Oi pessoal! Gostaria de fazer a div 'menu' fixar alinhado à esquerda, no canto da div corpopagina... mas queria que a 'corpopagina' ficasse centralizado... Já tentei várias formas... mas não consegui. Então voltei pra minha última atualização... Nesse código, acabei de centralizar a div 'corpopagina', mas ainda não fiz alterações na div 'menu'. - HTML <body> <!--Criando um menu barra 1 criar uma lista ul e li, dentro de uma div 2 criar os links em cada iten da lista 3 editar a dive da forma que você quer que apareça na tela--> <div id="corpopagina" class="pagina1"> <div id="menu"> <ul> <li onClick="mudar('inicio')"><a href="#">Início</a></li> <li onClick="mudar('produtos')"><a href="#">Produtos</a> <!--Submenu--> <ul> <li onClick="sub('sites')"><a href="#">Sites</a></li> <li onClick="sub('cursos')"><a href="#">Cursos</a></li> <li onClick="sub('projetos')"><a href="#">Projetos</a></li> </ul> </li> <li onClick="mudar('quem_somos')"><a href="#">Quem Somos</a></li> <li onClick="mudar('parceiros')"><a href="#">Parceiros</a></li> <li onClick="mudar('contato')"><a href="#">Contato</a></li> </ul> <!--Corpo--> </div> </div> </body> - CSS #menu{ padding:20px auto; margin-left:50px; z-index: 100; } #menu ul{ list-style:none; /*sem formatação na lista*/ margin:0px; padding:0px; } #menu ul li{ float:left; /*deixar os itens lado a lado*/ position: relative; display: block; } #menu ul li a{ color:#555; /*cor texto*/ background-color:#fff; /*cor do fundo*/ text-decoration:none;/*sem formatação do ink*/ margin: 0px 1px; /*distacia de um item pro outro*/ padding: 10px 20px; /*distancia do item pra borda*/ border-top:1px solid #555; /*Borda do topo*/ display:block;/*deixar em blocos sólidos-fixos*/ } #menu li ul{ display:none;/*"esconder" as soblistas*/ } #menu ul li a:hover{ /*efeito nos links*/ background:#066; color:#fff; } #menu li:hover ul{ /*posição e animação do submenu*/ display:block; position:fixed; /*animação do submenu o que faz não mover o corpo*/ } #menu li:hover li{ /*em relação a animação do submenu, untamento com o item do menu*/ float:none; } #menu li:hover a{ /*animação submenu*/ background: #066; color:#fff; } #menu li:hover li a:hover{ background: #222; } #corpopagina{ padding:0px; margin: 0px auto; height:900px; width:1500px; background: #022; } .corpo{ display:none; } Desde já, obrigada!
  3. Handrix

    Erro ao buscar dados do shoudcast?

    <?php $ip = "149.56.41.235"; $porta = "9946"; $senha = "--"; $listenlink = 'http://149.56.41.235:9946/'; $fp = fsockopen($ip, $porta, $senha); if(!$fp) { $sucesso=2; } if(@$sucesso!=2){ fputs($fp,"GET /index.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); while(!feof($fp)) { @$pg .= fgets($fp, 1000); } fclose($fp); $paage = ereg_replace(".*<font class=default>Stream Title: </font></td><td><font class=default><b>", "", $pg); $paage = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $paage); $pge = ereg_replace(".*<font class=default>Stream Genre: </font></td><td><font class=default><b>", "", $pg); $pge = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $pge); $locutor = ereg_replace(".*<font class=default>Stream Genre: </font></td><td><font class=default><b>", "", $pg); $locutor = ereg_replace("</b></td></tr><tr><td width=100 nowrap>.*", "", $locutor); $musica = ereg_replace(".*<font class=default>Current Song: </font></td><td><font class=default><b>", "", $pg); $musica = ereg_replace("</b></td></tr></table>.*", "", $musica); $numbers = explode(",",$paage); $programa=$numbers[0]; @$connected=$numbers[1]; } $fp2 = fsockopen($ip, $porta, $senha); if(!$fp2) { $sucesso2=2; } if(@$sucesso2!=2){ fputs($fp2,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); while(!feof($fp2)) { @$pg2 .= fgets($fp2, 1000); } fclose($fp2); $pag = ereg_replace(".*<body>", "", $pg2); $pag = ereg_replace("</body>.*", ",", $pag); $numbers = explode(",",$pag); $ouvintes=$numbers[0]; } ?> Eai galera do fórum iMasters! Estou montando uma rádio web e estou montando atualmente o player, por isso montei esse código em PHP só pra pegar os dados do shoudcast como os do: nome do locutor, o nome do programa, o nome da música e a quantidade de ouvintes e exibir, e ele funciona perfeitamente... Quando executo no host local, só que quando eu hospedo ele não é reconhecido no host fazendo com que ele demore pra carregar e apresenta o erro: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at admin@main-hosting.eu to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Se alguém souber como soluciono este erro ficarei muito grato :x Desde já, atenciosamente.
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.