-
Total de itens
152 -
Registro em
-
Última visita
Tudo que Thur postou
-
inativo [Orçamento] Preciso de Site de venda de contas de minecraft
tópico respondeu ao MarcioRUSH-OFICIAL- de Thur em Arquivos
O cara não quer mais, já chamei ele. Ele disse que desistiu... -
Entereçados foi foda ksksksksksk
-
inativo [Orçamento] Preciso de Site de venda de contas de minecraft
tópico respondeu ao MarcioRUSH-OFICIAL- de Thur em Arquivos
Tem discord? -
inativo Preciso de um site para servidor de minecraft
tópico respondeu ao BigHerozzz de Thur em Arquivos
Ainda precisa de um site ? -
Olá GB, sei que não sou o primeiro nem o último e há muitos aqui no forúm que fazem sites. Bom eu comecei nesse ramo não faz muito tempo, então não sou nenhum expert. Estou aqui pra dizer que vou começa a fazer sites, bom dependendo do que você me pedir eu vou te dizer se eu sei fazer rs... Alguns dos sites que eu estava fazendo como aprendizagem, são: http://aniimetv.tk http://camfilecloud.000webhostapp.com Bom é isso, não sei muito o que escrever + é isso. Obrigado a todos xD Meu Discord: ThurDev#8969 (Mais Uso) Email: [email protected] (Uso + -) Whats: (351) 913-801-388 (De vez em quando eu respondo)
-
Creio eu que seja o sublime text :v https://www.sublimetext.com/download
-
resolvido [Problema] Não inserindo nada no banco de dados.
pergunta respondeu ao Thur de Thur em Dúvidas resolvidas
Não aparece nenhum erro: Imagem do banco de dados: Problema resolvido, era isso mesmo li o que você me mandou que tava errado ali tinha 8 e na hora de inserir tinha 9 arrumei e foi: Obrigado -
resolvido [Problema] Não inserindo nada no banco de dados.
uma questão postou Thur Dúvidas resolvidas
Bom é o seguinte, eu ja usei este sistema de inserir no banco de dados, no meu sistema de cadastro de usuarios. Porém tentei fazer novamente só que como se fosse notícias e não cadastra nada. Acho que não expliquei muito bem mas ta aqui o código: // conexao.php // <?php $servidor = "localhost"; $usuario = "root"; $senha = ""; $dbname = "noticias"; $conn = mysqli_connect($servidor, $usuario, $senha, $dbname); if(!$conn){ die("Falha na conexao: " . mysqli_connect_error()); }else{ //echo "Conexao realizada com sucesso!"; } ?> // cadastra.php // <?php echo " <center> <form action='inserir.php' method='post'> <p>Nome</p><input type='text' name='nome' placeholder='Insira seu nome' required></br> <p>Sobrenome</p><input type='text' name='sobrenome' placeholder='Insira seu Sobrenome' required></br> <p>Cidade</p><input type='text' name='cidade' placeholder='Insira sua Cidade' required></br> <p>Estado</p><input type='text' name='estado' placeholder='Insira seu Estado' required></br> <p>E-mail</p><input type='email' name='email' placeholder='Insira seu E-mail' required></br> <p>Titulo</p><input type='text' name='titulo' placeholder='Insira um Titulo' required></br> <p>Subtitulo</p><input type='text' name='subtitulo' placeholder='Insira um SubTitulo' required></br> <p>Texto</p><textarea name='texto' rows=10 cols=30 placeholder='Insira um Texto' required></textarea> </br> <input type='submit' value='Cadastrar'> </form> </center> "; ?> // inserir.php // <?php include('conexao.php'); $nome = ucwords($_POST['nome']); $sobrenome = ucwords($_POST['sobrenome']); $cidade = $_POST['cidade']; $estado = $_POST['estado']; $email = $_POST['email']; $titulo = $_POST['titulo']; $subtitulo = $_POST['subtitulo']; $texto = $_POST['texto']; $in = mysqli_query($conn,"insert into noticias (nome,sobrenome,cidade,estado,email,titulo,subtitulo,texto) values ('$nome','$sobrenome','$cidade','$estado','$estado','$email','$titulo','$subtitulo','$texto')"); ?> -
[JS] [EASY] Mostrando os jogadores e atualizando sem refresh
tópico respondeu ao leonardosc de Thur em Tutoriais
Já falei que você é foda? Ah não, espera.... VOCÊ É FODA! -
Enunciado: https://hastebin.com/daxiruduji.pl O que estou fazendo: https://hastebin.com/joyabajitu.cs Sei que é meio errado, + eu sou ruim em python, e seu eu nao passar vou ter q pagar R$47,00 pra recuperação, help-me pls ;«
-
Fogo Resposta: Fogo aquela cor nao ficou legal ta apagada
-
Pum ou Pow tiro da arma.
-
Como tu joga clash royale no pc ? Ensina nois ai ^^
-
-
@%$#~&I merda men hsuahushua :v, eu sou menor também, mas eu usei o meu cpf ja recebi dinheiro fiz compras e nunca deu nada :v
-
APOIO
-
me interessei mas arruma esse erro do maninho kkk
-
Não aparece nada. coloquei a index em .php e apareceu isso, Warning: require(steamauth/steamauth.php): failed to open stream: No such file or directory in /customers/f/6/1/bangnetwork.com.br/httpd.www/index.php on line 51 Fatal error: require(): Failed opening required 'steamauth/steamauth.php' (include_path='.:/usr/share/php') in /customers/f/6/1/bangnetwork.com.br/httpd.www/index.php on line 51
-
Site: http://www.bangnetwork.com.br INDEX <!DOCTYPE html> <html> <title> CSGO Assasin </title> <fav href= <head> </head> <style type="text/css"> body{ overflow: hidden; } #login button { padding: 20px; color: #fff; position: relative; border: 1px solid #a2141d; font-size: 16px; font-weight: bold; line-height: 20px; display: flex; display: -webkit-flex; justify-content: center; align-items: center; overflow: hidden; margin: 30px; cursor: pointer; background: none; } </style> <body background="/imagens/background.jpg" scroll="no"> <?php require 'steamauth/steamauth.php'; ?> <center> <img width="300px" height="300px" src="/imagens/csgoassassin-logo.png" > <main id="login"> <button onclick="window.location.href='steamauth.php';"> <img src="http://icons.iconarchive.com/icons/cornmanthe3rd/metronome/512/Other-steam-red-icon.png" width=25 height= 20> <span>SIGN IN THROUGH STEAM</span></button> <?php if(!isset($_SESSION['steamid'])) { loginbutton(); //login button } else { include ('steamauth/userInfo.php'); //To access the $steamprofile array //Protected content logoutbutton(); //Logout Button } ?> </main> <a href="http://steamcommunity.com/groups/csgoassassinofficial"> <img width="75px" height="100px" src="/imagens/assassin-screed-grupo.png"; alt="Grupo Na Steam"> </a> <h3 style="color: #fff">By clicking in the <br> "Sign In" button above, you are confirming that you are at least 18 years old <br>and have read & amp; <strong><span><a href="terms-of-service" style="color: #b9111b">Agreed With Our User Agreement</strong></span></a>.</h3> </center> </body> </html> STEAMAUTH.PHP <?php ob_start(); session_start(); function logoutbutton() { echo "<form action='' method='get'><button name='logout' type='submit'>Logout</button></form>"; //logout button } function loginbutton($buttonstyle = "square") { $button['rectangle'] = "01"; $button['square'] = "02"; $button = "<a href='?login'><img src='http".(isset($_SERVER['HTTPS']) ? "s" : "")."://steamcommunity-a.akamaihd.net/public/images/signinthroughsteam/sits_".$button[$buttonstyle].".png'></a>"; echo $button; } if (isset($_GET['login'])){ require 'openid.php'; try { require 'SteamConfig.php'; $openid = new LightOpenID($steamauth['domainname']); if(!$openid->mode) { $openid->identity = 'http://steamcommunity.com/openid'; header('Location: ' . $openid->authUrl()); } elseif ($openid->mode == 'cancel') { echo 'User has canceled authentication!'; } else { if($openid->validate()) { $id = $openid->identity; $ptn = "/^http:\/\/steamcommunity\.com\/openid\/id\/(7[0-9]{15,25}+)$/"; preg_match($ptn, $id, $matches); $_SESSION['steamid'] = $matches[1]; if (!headers_sent()) { header('Location: '.$steamauth['loginpage']); exit; } else { ?> <script type="text/javascript"> window.location.href="<?=$steamauth['loginpage']?>"; </script> <noscript> <meta http-equiv="refresh" content="0;url=<?=$steamauth['loginpage']?>" /> </noscript> <?php exit; } } else { echo "User is not logged in.\n"; } } } catch(ErrorException $e) { echo $e->getMessage(); } } if (isset($_GET['logout'])){ require 'SteamConfig.php'; session_unset(); session_destroy(); header('Location: '.$steamauth['logoutpage']); exit; } if (isset($_GET['update']) || !empty($_SESSION['steam_uptodate']) && $_SESSION['steam_uptodate']+(24*60*60) < time()){ unset($_SESSION['steam_uptodate']); require 'userInfo.php'; header('Location: '.$_SERVER['PHP_SELF']); exit; } // Version 3.2 ?> USERINFO.PHP <?php if (empty($_SESSION['steam_uptodate']) or empty($_SESSION['steam_personaname'])) { require 'SteamConfig.php'; $url = file_get_contents("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=".$steamauth['apikey']."&steamids=".$_SESSION['steamid']); $content = json_decode($url, true); $_SESSION['steam_steamid'] = $content['response']['players'][0]['steamid']; $_SESSION['steam_communityvisibilitystate'] = $content['response']['players'][0]['communityvisibilitystate']; $_SESSION['steam_profilestate'] = $content['response']['players'][0]['profilestate']; $_SESSION['steam_personaname'] = $content['response']['players'][0]['personaname']; $_SESSION['steam_lastlogoff'] = $content['response']['players'][0]['lastlogoff']; $_SESSION['steam_profileurl'] = $content['response']['players'][0]['profileurl']; $_SESSION['steam_avatar'] = $content['response']['players'][0]['avatar']; $_SESSION['steam_avatarmedium'] = $content['response']['players'][0]['avatarmedium']; $_SESSION['steam_avatarfull'] = $content['response']['players'][0]['avatarfull']; $_SESSION['steam_personastate'] = $content['response']['players'][0]['personastate']; if (isset($content['response']['players'][0]['realname'])) { $_SESSION['steam_realname'] = $content['response']['players'][0]['realname']; } else { $_SESSION['steam_realname'] = "Real name not given"; } $_SESSION['steam_primaryclanid'] = $content['response']['players'][0]['primaryclanid']; $_SESSION['steam_timecreated'] = $content['response']['players'][0]['timecreated']; $_SESSION['steam_uptodate'] = time(); } $steamprofile['steamid'] = $_SESSION['steam_steamid']; $steamprofile['communityvisibilitystate'] = $_SESSION['steam_communityvisibilitystate']; $steamprofile['profilestate'] = $_SESSION['steam_profilestate']; $steamprofile['personaname'] = $_SESSION['steam_personaname']; $steamprofile['lastlogoff'] = $_SESSION['steam_lastlogoff']; $steamprofile['profileurl'] = $_SESSION['steam_profileurl']; $steamprofile['avatar'] = $_SESSION['steam_avatar']; $steamprofile['avatarmedium'] = $_SESSION['steam_avatarmedium']; $steamprofile['avatarfull'] = $_SESSION['steam_avatarfull']; $steamprofile['personastate'] = $_SESSION['steam_personastate']; $steamprofile['realname'] = $_SESSION['steam_realname']; $steamprofile['primaryclanid'] = $_SESSION['steam_primaryclanid']; $steamprofile['timecreated'] = $_SESSION['steam_timecreated']; $steamprofile['uptodate'] = $_SESSION['steam_uptodate']; // Version 3.2 ?> OPENID.PHP <?php /** * This class provides a simple interface for OpenID 1.1/2.0 authentication. * * It requires PHP >= 5.1.2 with cURL or HTTP/HTTPS stream wrappers enabled. * * @version v1.3.1 (2016-03-04) * @link https://code.google.com/p/lightopenid/ Project URL * @link https://github.com/iignatov/LightOpenID GitHub Repo * @author Mewp <mewp151 at gmail dot com> * @copyright Copyright (c) 2013 Mewp * @license http://opensource.org/licenses/mit-license.php MIT License */ class LightOpenID { public $returnUrl , $required = array() , $optional = array() , $verify_peer = null , $capath = null , $cainfo = null , $cnmatch = null , $data , $oauth = array() , $curl_time_out = 30 // in seconds , $curl_connect_time_out = 30; // in seconds private $identity, $claimed_id; protected $server, $version, $trustRoot, $aliases, $identifier_select = false , $ax = false, $sreg = false, $setup_url = null, $headers = array() , $proxy = null, $user_agent = 'LightOpenID' , $xrds_override_pattern = null, $xrds_override_replacement = null; static protected $ax_to_sreg = array( 'namePerson/friendly' => 'nickname', 'contact/email' => 'email', 'namePerson' => 'fullname', 'birthDate' => 'dob', 'person/gender' => 'gender', 'contact/postalCode/home' => 'postcode', 'contact/country/home' => 'country', 'pref/language' => 'language', 'pref/timezone' => 'timezone', ); function __construct($host, $proxy = null) { $this->set_realm($host); $this->set_proxy($proxy); $uri = rtrim(preg_replace('#((?<=\?)|&)openid\.[^&]+#', '', $_SERVER['REQUEST_URI']), '?'); $this->returnUrl = $this->trustRoot . $uri; $this->data = ($_SERVER['REQUEST_METHOD'] === 'POST') ? $_POST : $_GET; if(!function_exists('curl_init') && !in_array('https', stream_get_wrappers())) { throw new ErrorException('You must have either https wrappers or curl enabled.'); } } function __isset($name) { return in_array($name, array('identity', 'trustRoot', 'realm', 'xrdsOverride', 'mode')); } function __set($name, $value) { switch ($name) { case 'identity': if (strlen($value = trim((String) $value))) { if (preg_match('#^xri:/*#i', $value, $m)) { $value = substr($value, strlen($m[0])); } elseif (!preg_match('/^(?:[=@+\$!\(]|https?:)/i', $value)) { $value = "http://$value"; } if (preg_match('#^https?://[^/]+$#i', $value, $m)) { $value .= '/'; } } $this->$name = $this->claimed_id = $value; break; case 'trustRoot': case 'realm': $this->trustRoot = trim($value); break; case 'xrdsOverride': if (is_array($value)) { list($pattern, $replacement) = $value; $this->xrds_override_pattern = $pattern; $this->xrds_override_replacement = $replacement; } else { trigger_error('Invalid value specified for "xrdsOverride".', E_USER_ERROR); } break; } } function __get($name) { switch ($name) { case 'identity': # We return claimed_id instead of identity, # because the developer should see the claimed identifier, # i.e. what he set as identity, not the op-local identifier (which is what we verify) return $this->claimed_id; case 'trustRoot': case 'realm': return $this->trustRoot; case 'mode': return empty($this->data['openid_mode']) ? null : $this->data['openid_mode']; } } function set_proxy($proxy) { if (!empty($proxy)) { // When the proxy is a string - try to parse it. if (!is_array($proxy)) { $proxy = parse_url($proxy); } // Check if $proxy is valid after the parsing. if ($proxy && !empty($proxy['host'])) { // Make sure that a valid port number is specified. if (array_key_exists('port', $proxy)) { if (!is_int($proxy['port'])) { $proxy['port'] = is_numeric($proxy['port']) ? intval($proxy['port']) : 0; } if ($proxy['port'] <= 0) { throw new ErrorException('The specified proxy port number is invalid.'); } } $this->proxy = $proxy; } } } /** * Checks if the server specified in the url exists. * * @param $url url to check * @return true, if the server exists; false otherwise */ function hostExists($url) { if (strpos($url, '/') === false) { $server = $url; } else { $server = @parse_url($url, PHP_URL_HOST); } if (!$server) { return false; } return !!gethostbynamel($server); } protected function set_realm($uri) { $realm = ''; # Set a protocol, if not specified. $realm .= (($offset = strpos($uri, '://')) === false) ? $this->get_realm_protocol() : ''; # Set the offset properly. $offset = (($offset !== false) ? $offset + 3 : 0); # Get only the root, without the path. $realm .= (($end = strpos($uri, '/', $offset)) === false) ? $uri : substr($uri, 0, $end); $this->trustRoot = $realm; } protected function get_realm_protocol() { if (!empty($_SERVER['HTTPS'])) { $use_secure_protocol = ($_SERVER['HTTPS'] != 'off'); } else if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) { $use_secure_protocol = ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); } else if (isset($_SERVER['HTTP__WSSC'])) { $use_secure_protocol = ($_SERVER['HTTP__WSSC'] == 'https'); } else { $use_secure_protocol = false; } return $use_secure_protocol ? 'https://' : 'http://'; } protected function request_curl($url, $method='GET', $params=array(), $update_claimed_id) { $params = http_build_query($params, '', '&'); $curl = curl_init($url . ($method == 'GET' && $params ? '?' . $params : '')); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_USERAGENT, $this->user_agent); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); if ($method == 'POST') { curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-type: application/x-www-form-urlencoded')); } else { curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/xrds+xml, */*')); } curl_setopt($curl, CURLOPT_TIMEOUT, $this->curl_time_out); // defaults to infinite curl_setopt($curl, CURLOPT_CONNECTTIMEOUT , $this->curl_connect_time_out); // defaults to 300s if (!empty($this->proxy)) { curl_setopt($curl, CURLOPT_PROXY, $this->proxy['host']); if (!empty($this->proxy['port'])) { curl_setopt($curl, CURLOPT_PROXYPORT, $this->proxy['port']); } if (!empty($this->proxy['user'])) { curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->proxy['user'] . ':' . $this->proxy['pass']); } } if($this->verify_peer !== null) { curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, $this->verify_peer); if($this->capath) { curl_setopt($curl, CURLOPT_CAPATH, $this->capath); } if($this->cainfo) { curl_setopt($curl, CURLOPT_CAINFO, $this->cainfo); } } if ($method == 'POST') { curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $params); } elseif ($method == 'HEAD') { curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_NOBODY, true); } else { curl_setopt($curl, CURLOPT_HEADER, true); curl_setopt($curl, CURLOPT_HTTPGET, true); } $response = curl_exec($curl); if($method == 'HEAD' && curl_getinfo($curl, CURLINFO_HTTP_CODE) == 405) { curl_setopt($curl, CURLOPT_HTTPGET, true); $response = curl_exec($curl); $response = substr($response, 0, strpos($response, "\r\n\r\n")); } if($method == 'HEAD' || $method == 'GET') { $header_response = $response; # If it's a GET request, we want to only parse the header part. if($method == 'GET') { $header_response = substr($response, 0, strpos($response, "\r\n\r\n")); } $headers = array(); foreach(explode("\n", $header_response) as $header) { $pos = strpos($header,':'); if ($pos !== false) { $name = strtolower(trim(substr($header, 0, $pos))); $headers[$name] = trim(substr($header, $pos+1)); } } if($update_claimed_id) { # Update the claimed_id value in case of redirections. $effective_url = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL); # Ignore the fragment (some cURL versions don't handle it well). if (strtok($effective_url, '#') != strtok($url, '#')) { $this->identity = $this->claimed_id = $effective_url; } } if($method == 'HEAD') { return $headers; } else { $this->headers = $headers; } } if (curl_errno($curl)) { throw new ErrorException(curl_error($curl), curl_errno($curl)); } return $response; } protected function parse_header_array($array, $update_claimed_id) { $headers = array(); foreach($array as $header) { $pos = strpos($header,':'); if ($pos !== false) { $name = strtolower(trim(substr($header, 0, $pos))); $headers[$name] = trim(substr($header, $pos+1)); # Following possible redirections. The point is just to have # claimed_id change with them, because the redirections # are followed automatically. # We ignore redirections with relative paths. # If any known provider uses them, file a bug report. if($name == 'location' && $update_claimed_id) { if(strpos($headers[$name], 'http') === 0) { $this->identity = $this->claimed_id = $headers[$name]; } elseif($headers[$name][0] == '/') { $parsed_url = parse_url($this->claimed_id); $this->identity = $this->claimed_id = $parsed_url['scheme'] . '://' . $parsed_url['host'] . $headers[$name]; } } } } return $headers; } protected function request_streams($url, $method='GET', $params=array(), $update_claimed_id) { if(!$this->hostExists($url)) { throw new ErrorException("Could not connect to $url.", 404); } if (empty($this->cnmatch)) { $this->cnmatch = parse_url($url, PHP_URL_HOST); } $params = http_build_query($params, '', '&'); switch($method) { case 'GET': $opts = array( 'http' => array( 'method' => 'GET', 'header' => 'Accept: application/xrds+xml, */*', 'user_agent' => $this->user_agent, 'ignore_errors' => true, ), 'ssl' => array( 'CN_match' => $this->cnmatch ) ); $url = $url . ($params ? '?' . $params : ''); if (!empty($this->proxy)) { $opts['http']['proxy'] = $this->proxy_url(); } break; case 'POST': $opts = array( 'http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'user_agent' => $this->user_agent, 'content' => $params, 'ignore_errors' => true, ), 'ssl' => array( 'CN_match' => $this->cnmatch ) ); if (!empty($this->proxy)) { $opts['http']['proxy'] = $this->proxy_url(); } break; case 'HEAD': // We want to send a HEAD request, but since get_headers() doesn't // accept $context parameter, we have to change the defaults. $default = stream_context_get_options(stream_context_get_default()); // PHP does not reset all options. Instead, it just sets the options // available in the passed array, therefore set the defaults manually. $default += array( 'http' => array(), 'ssl' => array() ); $default['http'] += array( 'method' => 'GET', 'header' => '', 'user_agent' => '', 'ignore_errors' => false ); $default['ssl'] += array( 'CN_match' => '' ); $opts = array( 'http' => array( 'method' => 'HEAD', 'header' => 'Accept: application/xrds+xml, */*', 'user_agent' => $this->user_agent, 'ignore_errors' => true, ), 'ssl' => array( 'CN_match' => $this->cnmatch ) ); // Enable validation of the SSL certificates. if ($this->verify_peer) { $default['ssl'] += array( 'verify_peer' => false, 'capath' => '', 'cafile' => '' ); $opts['ssl'] += array( 'verify_peer' => true, 'capath' => $this->capath, 'cafile' => $this->cainfo ); } // Change the stream context options. stream_context_get_default($opts); $headers = get_headers($url . ($params ? '?' . $params : '')); // Restore the stream context options. stream_context_get_default($default); if (!empty($headers)) { if (intval(substr($headers[0], strlen('HTTP/1.1 '))) == 405) { // The server doesn't support HEAD - emulate it with a GET. $args = func_get_args(); $args[1] = 'GET'; call_user_func_array(array($this, 'request_streams'), $args); $headers = $this->headers; } else { $headers = $this->parse_header_array($headers, $update_claimed_id); } } else { $headers = array(); } return $headers; } if ($this->verify_peer) { $opts['ssl'] += array( 'verify_peer' => true, 'capath' => $this->capath, 'cafile' => $this->cainfo ); } $context = stream_context_create ($opts); $data = file_get_contents($url, false, $context); # This is a hack for providers who don't support HEAD requests. # It just creates the headers array for the last request in $this->headers. if(isset($http_response_header)) { $this->headers = $this->parse_header_array($http_response_header, $update_claimed_id); } return $data; } protected function request($url, $method='GET', $params=array(), $update_claimed_id=false) { $use_curl = false; if (function_exists('curl_init')) { if (!$use_curl) { # When allow_url_fopen is disabled, PHP streams will not work. $use_curl = !ini_get('allow_url_fopen'); } if (!$use_curl) { # When there is no HTTPS wrapper, PHP streams cannott be used. $use_curl = !in_array('https', stream_get_wrappers()); } if (!$use_curl) { # With open_basedir or safe_mode set, cURL can't follow redirects. $use_curl = !(ini_get('safe_mode') || ini_get('open_basedir')); } } return $use_curl ? $this->request_curl($url, $method, $params, $update_claimed_id) : $this->request_streams($url, $method, $params, $update_claimed_id); } protected function proxy_url() { $result = ''; if (!empty($this->proxy)) { $result = $this->proxy['host']; if (!empty($this->proxy['port'])) { $result = $result . ':' . $this->proxy['port']; } if (!empty($this->proxy['user'])) { $result = $this->proxy['user'] . ':' . $this->proxy['pass'] . '@' . $result; } $result = 'http://' . $result; } return $result; } protected function build_url($url, $parts) { if (isset($url['query'], $parts['query'])) { $parts['query'] = $url['query'] . '&' . $parts['query']; } $url = $parts + $url; $url = $url['scheme'] . '://' . (empty($url['username'])?'' :(empty($url['password'])? "{$url['username']}@" :"{$url['username']}:{$url['password']}@")) . $url['host'] . (empty($url['port'])?'':":{$url['port']}") . (empty($url['path'])?'':$url['path']) . (empty($url['query'])?'':"?{$url['query']}") . (empty($url['fragment'])?'':"#{$url['fragment']}"); return $url; } /** * Helper function used to scan for <meta>/<link> tags and extract information * from them */ protected function htmlTag($content, $tag, $attrName, $attrValue, $valueName) { preg_match_all("#<{$tag}[^>]*$attrName=['\"].*?$attrValue.*?['\"][^>]*$valueName=['\"](.+?)['\"][^>]*/?>#i", $content, $matches1); preg_match_all("#<{$tag}[^>]*$valueName=['\"](.+?)['\"][^>]*$attrName=['\"].*?$attrValue.*?['\"][^>]*/?>#i", $content, $matches2); $result = array_merge($matches1[1], $matches2[1]); return empty($result)?false:$result[0]; } /** * Performs Yadis and HTML discovery. Normally not used. * @param $url Identity URL. * @return String OP Endpoint (i.e. OpenID provider address). * @throws ErrorException */ function discover($url) { if (!$url) throw new ErrorException('No identity supplied.'); # Use xri.net proxy to resolve i-name identities if (!preg_match('#^https?:#', $url)) { $url = "https://xri.net/$url"; } # We save the original url in case of Yadis discovery failure. # It can happen when we'll be lead to an XRDS document # which does not have any OpenID2 services. $originalUrl = $url; # A flag to disable yadis discovery in case of failure in headers. $yadis = true; # Allows optional regex replacement of the URL, e.g. to use Google Apps # as an OpenID provider without setting up XRDS on the domain hosting. if (!is_null($this->xrds_override_pattern) && !is_null($this->xrds_override_replacement)) { $url = preg_replace($this->xrds_override_pattern, $this->xrds_override_replacement, $url); } # We'll jump a maximum of 5 times, to avoid endless redirections. for ($i = 0; $i < 5; $i ++) { if ($yadis) { $headers = $this->request($url, 'HEAD', array(), true); $next = false; if (isset($headers['x-xrds-location'])) { $url = $this->build_url(parse_url($url), parse_url(trim($headers['x-xrds-location']))); $next = true; } if (isset($headers['content-type']) && $this->is_allowed_type($headers['content-type'])) { # Found an XRDS document, now let's find the server, and optionally delegate. $content = $this->request($url, 'GET'); preg_match_all('#<Service.*?>(.*?)</Service>#s', $content, $m); foreach($m[1] as $content) { $content = ' ' . $content; # The space is added, so that strpos doesn't return 0. # OpenID 2 $ns = preg_quote('http://specs.openid.net/auth/2.0/', '#'); if(preg_match('#<Type>\s*'.$ns.'(server|signon)\s*</Type>#s', $content, $type)) { if ($type[1] == 'server') $this->identifier_select = true; preg_match('#<URI.*?>(.*)</URI>#', $content, $server); preg_match('#<(Local|Canonical)ID>(.*)</\1ID>#', $content, $delegate); if (empty($server)) { return false; } # Does the server advertise support for either AX or SREG? $this->ax = (bool) strpos($content, '<Type>http://openid.net/srv/ax/1.0</Type>'); $this->sreg = strpos($content, '<Type>http://openid.net/sreg/1.0</Type>') || strpos($content, '<Type>http://openid.net/extensions/sreg/1.1</Type>'); $server = $server[1]; if (isset($delegate[2])) $this->identity = trim($delegate[2]); $this->version = 2; $this->server = $server; return $server; } # OpenID 1.1 $ns = preg_quote('http://openid.net/signon/1.1', '#'); if (preg_match('#<Type>\s*'.$ns.'\s*</Type>#s', $content)) { preg_match('#<URI.*?>(.*)</URI>#', $content, $server); preg_match('#<.*?Delegate>(.*)</.*?Delegate>#', $content, $delegate); if (empty($server)) { return false; } # AX can be used only with OpenID 2.0, so checking only SREG $this->sreg = strpos($content, '<Type>http://openid.net/sreg/1.0</Type>') || strpos($content, '<Type>http://openid.net/extensions/sreg/1.1</Type>'); $server = $server[1]; if (isset($delegate[1])) $this->identity = $delegate[1]; $this->version = 1; $this->server = $server; return $server; } } $next = true; $yadis = false; $url = $originalUrl; $content = null; break; } if ($next) continue; # There are no relevant information in headers, so we search the body. $content = $this->request($url, 'GET', array(), true); if (isset($this->headers['x-xrds-location'])) { $url = $this->build_url(parse_url($url), parse_url(trim($this->headers['x-xrds-location']))); continue; } $location = $this->htmlTag($content, 'meta', 'http-equiv', 'X-XRDS-Location', 'content'); if ($location) { $url = $this->build_url(parse_url($url), parse_url($location)); continue; } } if (!$content) $content = $this->request($url, 'GET'); # At this point, the YADIS Discovery has failed, so we'll switch # to openid2 HTML discovery, then fallback to openid 1.1 discovery. $server = $this->htmlTag($content, 'link', 'rel', 'openid2.provider', 'href'); $delegate = $this->htmlTag($content, 'link', 'rel', 'openid2.local_id', 'href'); $this->version = 2; if (!$server) { # The same with openid 1.1 $server = $this->htmlTag($content, 'link', 'rel', 'openid.server', 'href'); $delegate = $this->htmlTag($content, 'link', 'rel', 'openid.delegate', 'href'); $this->version = 1; } if ($server) { # We found an OpenID2 OP Endpoint if ($delegate) { # We have also found an OP-Local ID. $this->identity = $delegate; } $this->server = $server; return $server; } throw new ErrorException("No OpenID Server found at $url", 404); } throw new ErrorException('Endless redirection!', 500); } protected function is_allowed_type($content_type) { # Apparently, some providers return XRDS documents as text/html. # While it is against the spec, allowing this here shouldn't break # compatibility with anything. $allowed_types = array('application/xrds+xml', 'text/xml'); # Only allow text/html content type for the Yahoo logins, since # it might cause an endless redirection for the other providers. if ($this->get_provider_name($this->claimed_id) == 'yahoo') { $allowed_types[] = 'text/html'; } foreach ($allowed_types as $type) { if (strpos($content_type, $type) !== false) { return true; } } return false; } protected function get_provider_name($provider_url) { $result = ''; if (!empty($provider_url)) { $tokens = array_reverse( explode('.', parse_url($provider_url, PHP_URL_HOST)) ); $result = strtolower( (count($tokens) > 1 && strlen($tokens[1]) > 3) ? $tokens[1] : (count($tokens) > 2 ? $tokens[2] : '') ); } return $result; } protected function sregParams() { $params = array(); # We always use SREG 1.1, even if the server is advertising only support for 1.0. # That's because it's fully backwards compatible with 1.0, and some providers # advertise 1.0 even if they accept only 1.1. One such provider is myopenid.com $params['openid.ns.sreg'] = 'http://openid.net/extensions/sreg/1.1'; if ($this->required) { $params['openid.sreg.required'] = array(); foreach ($this->required as $required) { if (!isset(self::$ax_to_sreg[$required])) continue; $params['openid.sreg.required'][] = self::$ax_to_sreg[$required]; } $params['openid.sreg.required'] = implode(',', $params['openid.sreg.required']); } if ($this->optional) { $params['openid.sreg.optional'] = array(); foreach ($this->optional as $optional) { if (!isset(self::$ax_to_sreg[$optional])) continue; $params['openid.sreg.optional'][] = self::$ax_to_sreg[$optional]; } $params['openid.sreg.optional'] = implode(',', $params['openid.sreg.optional']); } return $params; } protected function axParams() { $params = array(); if ($this->required || $this->optional) { $params['openid.ns.ax'] = 'http://openid.net/srv/ax/1.0'; $params['openid.ax.mode'] = 'fetch_request'; $this->aliases = array(); $counts = array(); $required = array(); $optional = array(); foreach (array('required','optional') as $type) { foreach ($this->$type as $alias => $field) { if (is_int($alias)) $alias = strtr($field, '/', '_'); $this->aliases[$alias] = 'http://axschema.org/' . $field; if (empty($counts[$alias])) $counts[$alias] = 0; $counts[$alias] += 1; ${$type}[] = $alias; } } foreach ($this->aliases as $alias => $ns) { $params['openid.ax.type.' . $alias] = $ns; } foreach ($counts as $alias => $count) { if ($count == 1) continue; $params['openid.ax.count.' . $alias] = $count; } # Don't send empty ax.required and ax.if_available. # Google and possibly other providers refuse to support ax when one of these is empty. if($required) { $params['openid.ax.required'] = implode(',', $required); } if($optional) { $params['openid.ax.if_available'] = implode(',', $optional); } } return $params; } protected function authUrl_v1($immediate) { $returnUrl = $this->returnUrl; # If we have an openid.delegate that is different from our claimed id, # we need to somehow preserve the claimed id between requests. # The simplest way is to just send it along with the return_to url. if($this->identity != $this->claimed_id) { $returnUrl .= (strpos($returnUrl, '?') ? '&' : '?') . 'openid.claimed_id=' . $this->claimed_id; } $params = array( 'openid.return_to' => $returnUrl, 'openid.mode' => $immediate ? 'checkid_immediate' : 'checkid_setup', 'openid.identity' => $this->identity, 'openid.trust_root' => $this->trustRoot, ) + $this->sregParams(); return $this->build_url(parse_url($this->server) , array('query' => http_build_query($params, '', '&'))); } protected function authUrl_v2($immediate) { $params = array( 'openid.ns' => 'http://specs.openid.net/auth/2.0', 'openid.mode' => $immediate ? 'checkid_immediate' : 'checkid_setup', 'openid.return_to' => $this->returnUrl, 'openid.realm' => $this->trustRoot, ); if ($this->ax) { $params += $this->axParams(); } if ($this->sreg) { $params += $this->sregParams(); } if (!$this->ax && !$this->sreg) { # If OP doesn't advertise either SREG, nor AX, let's send them both # in worst case we don't get anything in return. $params += $this->axParams() + $this->sregParams(); } if (!empty($this->oauth) && is_array($this->oauth)) { $params['openid.ns.oauth'] = 'http://specs.openid.net/extensions/oauth/1.0'; $params['openid.oauth.consumer'] = str_replace(array('http://', 'https://'), '', $this->trustRoot); $params['openid.oauth.scope'] = implode(' ', $this->oauth); } if ($this->identifier_select) { $params['openid.identity'] = $params['openid.claimed_id'] = 'http://specs.openid.net/auth/2.0/identifier_select'; } else { $params['openid.identity'] = $this->identity; $params['openid.claimed_id'] = $this->claimed_id; } return $this->build_url(parse_url($this->server) , array('query' => http_build_query($params, '', '&'))); } /** * Returns authentication url. Usually, you want to redirect your user to it. * @return String The authentication url. * @param String $select_identifier Whether to request OP to select identity for an user in OpenID 2. Does not affect OpenID 1. * @throws ErrorException */ function authUrl($immediate = false) { if ($this->setup_url && !$immediate) return $this->setup_url; if (!$this->server) $this->discover($this->identity); if ($this->version == 2) { return $this->authUrl_v2($immediate); } return $this->authUrl_v1($immediate); } /** * Performs OpenID verification with the OP. * @return Bool Whether the verification was successful. * @throws ErrorException */ function validate() { # If the request was using immediate mode, a failure may be reported # by presenting user_setup_url (for 1.1) or reporting # mode 'setup_needed' (for 2.0). Also catching all modes other than # id_res, in order to avoid throwing errors. if(isset($this->data['openid_user_setup_url'])) { $this->setup_url = $this->data['openid_user_setup_url']; return false; } if($this->mode != 'id_res') { return false; } $this->claimed_id = isset($this->data['openid_claimed_id'])?$this->data['openid_claimed_id']:$this->data['openid_identity']; $params = array( 'openid.assoc_handle' => $this->data['openid_assoc_handle'], 'openid.signed' => $this->data['openid_signed'], 'openid.sig' => $this->data['openid_sig'], ); if (isset($this->data['openid_ns'])) { # We're dealing with an OpenID 2.0 server, so let's set an ns # Even though we should know location of the endpoint, # we still need to verify it by discovery, so $server is not set here $params['openid.ns'] = 'http://specs.openid.net/auth/2.0'; } elseif (isset($this->data['openid_claimed_id']) && $this->data['openid_claimed_id'] != $this->data['openid_identity'] ) { # If it's an OpenID 1 provider, and we've got claimed_id, # we have to append it to the returnUrl, like authUrl_v1 does. $this->returnUrl .= (strpos($this->returnUrl, '?') ? '&' : '?') . 'openid.claimed_id=' . $this->claimed_id; } if ($this->data['openid_return_to'] != $this->returnUrl) { # The return_to url must match the url of current request. # I'm assuming that no one will set the returnUrl to something that doesn't make sense. return false; } $server = $this->discover($this->claimed_id); foreach (explode(',', $this->data['openid_signed']) as $item) { # Checking whether magic_quotes_gpc is turned on, because # the function may fail if it is. For example, when fetching # AX namePerson, it might contain an apostrophe, which will be escaped. # In such case, validation would fail, since we'd send different data than OP # wants to verify. stripslashes() should solve that problem, but we can't # use it when magic_quotes is off. $value = $this->data['openid_' . str_replace('.','_',$item)]; $params['openid.' . $item] = function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc() ? stripslashes($value) : $value; } $params['openid.mode'] = 'check_authentication'; $response = $this->request($server, 'POST', $params); return preg_match('/is_valid\s*:\s*true/i', $response); } protected function getAxAttributes() { $result = array(); if ($alias = $this->getNamespaceAlias('http://openid.net/srv/ax/1.0', 'ax')) { $prefix = 'openid_' . $alias; $length = strlen('http://axschema.org/'); foreach (explode(',', $this->data['openid_signed']) as $key) { $keyMatch = $alias . '.type.'; if (strncmp($key, $keyMatch, strlen($keyMatch)) !== 0) { continue; } $key = substr($key, strlen($keyMatch)); $idv = $prefix . '_value_' . $key; $idc = $prefix . '_count_' . $key; $key = substr($this->getItem($prefix . '_type_' . $key), $length); if (!empty($key)) { if (($count = intval($this->getItem($idc))) > 0) { $value = array(); for ($i = 1; $i <= $count; $i++) { $value[] = $this->getItem($idv . '_' . $i); } $value = ($count == 1) ? reset($value) : $value; } else { $value = $this->getItem($idv); } if (!is_null($value)) { $result[$key] = $value; } } } } else { // No alias for the AX schema has been found, // so there is no AX data in the OP's response. } return $result; } protected function getSregAttributes() { $attributes = array(); $sreg_to_ax = array_flip(self::$ax_to_sreg); foreach (explode(',', $this->data['openid_signed']) as $key) { $keyMatch = 'sreg.'; if (strncmp($key, $keyMatch, strlen($keyMatch)) !== 0) { continue; } $key = substr($key, strlen($keyMatch)); if (!isset($sreg_to_ax[$key])) { # The field name isn't part of the SREG spec, so we ignore it. continue; } $attributes[$sreg_to_ax[$key]] = $this->data['openid_sreg_' . $key]; } return $attributes; } /** * Gets AX/SREG attributes provided by OP. should be used only after successful validation. * Note that it does not guarantee that any of the required/optional parameters will be present, * or that there will be no other attributes besides those specified. * In other words. OP may provide whatever information it wants to. * * SREG names will be mapped to AX names. * * @return Array Array of attributes with keys being the AX schema names, e.g. 'contact/email' * @see http://www.axschema.org/types/ */ function getAttributes() { if (isset($this->data['openid_ns']) && $this->data['openid_ns'] == 'http://specs.openid.net/auth/2.0' ) { # OpenID 2.0 # We search for both AX and SREG attributes, with AX taking precedence. return $this->getAxAttributes() + $this->getSregAttributes(); } return $this->getSregAttributes(); } /** * Gets an OAuth request token if the OpenID+OAuth hybrid protocol has been used. * * In order to use the OpenID+OAuth hybrid protocol, you need to add at least one * scope to the $openid->oauth array before you get the call to getAuthUrl(), e.g.: * $openid->oauth[] = 'https://www.googleapis.com/auth/plus.me'; * * Furthermore the registered consumer name must fit the OpenID realm. * To register an OpenID consumer at Google use: https://www.google.com/accounts/ManageDomains * * @return string|bool OAuth request token on success, FALSE if no token was provided. */ function getOAuthRequestToken() { $alias = $this->getNamespaceAlias('http://specs.openid.net/extensions/oauth/1.0'); return !empty($alias) ? $this->data['openid_' . $alias . '_request_token'] : false; } /** * Gets the alias for the specified namespace, if it's present. * * @param string $namespace The namespace for which an alias is needed. * @param string $hint Common alias of this namespace, used for optimization. * @return string|null The namespace alias if found, otherwise - NULL. */ private function getNamespaceAlias($namespace, $hint = null) { $result = null; if (empty($hint) || $this->getItem('openid_ns_' . $hint) != $namespace) { // The common alias is either undefined or points to // some other extension - search for another alias.. $prefix = 'openid_ns_'; $length = strlen($prefix); foreach ($this->data as $key => $val) { if (strncmp($key, $prefix, $length) === 0 && $val === $namespace) { $result = trim(substr($key, $length)); break; } } } else { $result = $hint; } return $result; } /** * Gets an item from the $data array by the specified id. * * @param string $id The id of the desired item. * @return string|null The item if found, otherwise - NULL. */ private function getItem($id) { return isset($this->data[$id]) ? $this->data[$id] : null; } } STEAMCONFIG.PHP <?php //Version 3.2 $steamauth['MINHA-KEY-AQ'] = ""; // Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey $steamauth['http://www.bangnetwork.com.br'] = ""; // The main URL of your website displayed in the login page $steamauth['http://www.bangnetwork.com.br'] = ""; // Page to redirect to after a successfull logout (from the directory the SteamAuth-folder is located in) - NO slash at the beginning! $steamauth['http://www.bangnetwork.com.br/index.php'] = ""; // Page to redirect to after a successfull login (from the directory the SteamAuth-folder is located in) - NO slash at the beginning! // System stuff if (empty($steamauth['apikey'])) {die("<div style='display: block; width: 100%; background-color: red; text-align: center;'>SteamAuth:<br>Please supply an API-Key!<br>Find this in steamauth/SteamConfig.php, Find the '<b>\$steamauth['apikey']</b>' Array. </div>");} if (empty($steamauth['domainname'])) {$steamauth['domainname'] = $_SERVER['SERVER_NAME'];} if (empty($steamauth['logoutpage'])) {$steamauth['logoutpage'] = $_SERVER['PHP_SELF'];} if (empty($steamauth['loginpage'])) {$steamauth['loginpage'] = $_SERVER['PHP_SELF'];} ?> APIKEY.PHP <?php $api = "MINHA KEY AQ"; ?>
-
negada [Sugestão] Notificação Tópico Respondido
tópico respondeu ao nOthing de Thur em Sugestões recusadas
APOIO -
Bom, preciso fazer com que o botão que esta em php, apareça no site. alguém pode me ajudar? o código está com muitos erros eu sei. <!DOCTYPE html> <html> <title> CSGO Assasin </title> <fav href= <head> </head> <style type="text/css"> body{ overflow: hidden; } #login button { padding: 20px; color: #fff; position: relative; border: 1px solid #a2141d; font-size: 16px; font-weight: bold; line-height: 20px; display: flex; display: -webkit-flex; justify-content: center; align-items: center; overflow: hidden; margin: 30px; cursor: pointer; background: none; } </style> <body background="/imagens/background.jpg" scroll="no"> <?php require 'steamauth/steamauth.php'; ?> <center> <img width="300px" height="300px" src="/imagens/csgoassassin-logo.png" > <main id="login"> <button onclick="window.location.href='steamauth.php';"> <img src="http://icons.iconarchive.com/icons/cornmanthe3rd/metronome/512/Other-steam-red-icon.png" width=25 height= 20> <span>SIGN IN THROUGH STEAM</span></button> <?php if(!isset($_SESSION['steamid'])) { loginbutton(); //login button } else { include ('steamauth/userInfo.php'); //To access the $steamprofile array //Protected content logoutbutton(); //Logout Button } ?> </main> <a href="http://steamcommunity.com/groups/csgoassassinofficial"> <img width="75px" height="100px" src="/imagens/assassin-screed-grupo.png"; alt="Grupo Na Steam"> </a> <h3 style="color: #fff">By clicking in the <br> "Sign In" button above, you are confirming that you are at least 18 years old <br>and have read & amp; <strong><span><a href="terms-of-service" style="color: #b9111b">Agreed With Our User Agreement</strong></span></a>.</h3> </center> </body> </html> https://hastebin.com/jababajeyo.php
-
#TBRCorrupto, Se algo der errado, eu não assumo esse B.O. :v
-
Leis de Newton ############################################################################################ O que é Uma força ? Uma forçá é a ideia de puxar ou empurrar um objeto. Por Exemplo, quando você esta segurando uma caixa pesada, você está fazendo uma força para evitar que a caixa caia. ############################################################################################ 1º Lei de Newton (Lei da Inércia) "Todo corpo permanece parado ou em movimento retilíneo uniforme (MRU) a menos que uma força seja aplicada nele" O que estou querendo dizer com isso ? Por exemplo, você tem um carrinho, se ele estiver parado e não fazer nenhum movimento, ou força ele nao vai se mexer. vai continuar em "REPOUSO" Agora por exemplo você tem um carrinho ele está se movendo em uma linha reta e a Aceleração dele é de 2 m/s² e eu não parar ou mexer nele, ele vai continuar andando em 2 m/s². Ai você diz: A se eu empurrar meu lápis, ele está se movendo ai ele depois ele para. Por Que ele para ? Porque alem de empurrar o lápis, tem q levar em conta o atrito da superficie a força que esta exercendo sobre ele, faz com que ele perca sua aceleração. Agora se for só o lapis, em uma superficie reta, sem nenhuma força nele fazendo com que ele pare, ele vai continuar se mexendo na mesma aceleração inicial. Resumindo a Inércia é a tendencia de manter o Repouso Ou o Movimento Retilíneo Uniforme (MRU) Inércia é a Dificuldade de Mudar o movimento por exemplo: Em um onibus tem uma formiga e um elefante, o onibus freia com tudo em uma certa velocidade, a tendencia é a formiga voar pra frente, e o elefante andar + - pra frente porque como ele tem uma grande "MASSA" / "PESO" Ele sera + dificil de se mecher com a freiada. Quando o onibus nao empurre pra frente. é só que existe a tendencia de manter o movimento que a gente tinha. Por isso é importante o uso de cintos de segurança. Porque se freiar, a tendencia é a gente continuar no mesmo movimento, porém o cinto estará segurando, impedindo que você vá de cara com o para-brisa, podendo se machucar. (Por isso Crianças use Cinto de Segurança) ############################################################################################ 2º Lei de Newton (Princípio fundamental da Dinâmica) "A força resultante que atua sobre um corpo é diretamente proporcional à aceleração que ele adquire" Quanto maior a massa de um corpo, menor será a aceleração da força aplicada no objeto. Exemplo: Um corpo tem uma massa de 250Kg, a Força aplicada nesse corpo foi de 500N. Fr=M.A Fr= Força Resultante M=Massa do Corpo A= Aceleração Então : M=250Kg A=500N [N]=[KG][M/S²] (Aqui o M=Metro S=Segundo Então Metro Por Segundo ao ²) 500N=250.A A=500 ÷ 250 A= 2 m/s² A mas porque 2? Anula os 2 0 da Ponta e divide, 50 por 25. Agora resumindo, o que é esses 2 m/s² significa que A cada Segundo ele se move 2 Metros. Ou Seja se ele esta se movendo a cada 1 segundo 2 metros a cada +1 segundo ele estara se movendo a cada 4 metros. Vamos a outro exemplo: Tem um Carrinho a Massa do carrinho é 3Kg Você está exercendo uma força de 20N no carrinho, e alguem está exercendo uma força contraria de 8N no carrinho. Então Como dito acima Fr=M.A Você vai fazer Fr= 20N-8N = 12N 12N=3KG.A A= 12N ÷ 3 A= 4 m/s² A cada Segundo ele se move 4 Metros. Ou Seja se ele esta se movendo a cada 1 segundo 4 metros a cada +1 segundo ele estara se movendo a cada 8 metros. Não entendeu ? Vamos a outro exemplo. Vamos Supor que você tem 1 bloquinho A massa do Bloquinho é de 2KG Agora você tem 2 Forças empurrando o bloquinho A 1º Força é de 12N e a 2º é de 6N Como as 2 Estão para o mesmo sentido apenas some, 12+6=18N Lembre-se Sempre Fr=M.A Força Resultante = Massa do Corpo x Aceleração Então 18N=2KG.A A=18N ÷ 2 A=9 m/s² Exemplos Agora com Atrito: P=Peso M=Massa G=Gravidade N=Newtons P=M.G Levando em Conta que a Gravidade neste caso é 10 P=2.10 Peso=20N Vamos supor que temos 2 bloquinhos ligados por uma corda. Os 2 Bloquinhos estão sendo puxados por 20N o 1º tem a Massa de 2KG e o Segundo de 3KG T=Tração Então há um Peso de 20N Sobre este bloquinho. Há + Forças agindo sobre este bloquinho ?? SIM! Dependendo do que ele estiver encostando há uma força sobre ele, no caso o chão. O chão está fazendo uma força sobre ele, porém para que o bloquinho nao afunde ate o centro da terra É Sempre necessário que as forças se anulem, por exemplo. Há um peso de 20N Sobre o bloquinho, porém existe o chão e o Chão também está fazendo uma força de 20N assim fazendo, com que ele continue no chão e nao caia. Sempre a força que o Peso faz é a força que o chão também faz para que o bloquinho nao afunde. Agora o 2º Bloquinho, tem 30N De Peso sobre ele, e 30N Do chão segurando ele. Os 2 Bloquinhos ja podem ser anulados, porque 30N para baixo + 30N Do chão segurando = 0 Há ainda + Força A força da corda ligando os 2 bloquinhos, porem como ela está puxando ela estão em uma tração e assim nao fazendo força sobre o bloquinho, Neste caso A corda nunca empurra ela está sempre puxando. E quando a gente fala de uma corda sem massa a tração de um lado da corda é a mesma tração que o outro lado ligado nos 2 bloquinhos. Agora vamos para as contas Fr=M.A Vamos pegar o primeiro bloquinho. Qual é a força resultante desse bloquinho ? Como não tem nada empurrando o bloquinho o que temos é o T, A Tração da Corda puxando o bloquinho. Então Fr=T T=M.A T=2.A Agora pegamos o 1º bloquinho, que está em uma velocidade de 20N e a Tração da corda puxando o 2º bloquinho. Então Se os bloquinhos estão indo pra frente em uma velocidade de 20N significa q a corda esta puxando o 2º bloquinho. Então 20-T=3.A 20 é a velocidade do 1º carrinho T=Tração 3=Kg do 1º bloquinho A=Aceleração Após ter as 2 Contas do 1º Bloquinho e do 2º Bloquinho. é só somar T+20-T=2A.3A Anula os 2 T Porque T-T=0 E 2A+3A=5A Então 20=5A A= 20 ÷ 5 A= 4 m/s² A mas se eu quiser saber a tração da corda do 2º Bloquinho é simples A gente ja sabe que T=2.A Então T=2.4 T=8N Então A tração do 2 Lados da corda são de 8N fazendo assim que as 2 Se anulam 8N-8N=0 ############################################################################################ 3º Lei de Newton (Princípio da Ação e Reação) "A toda ação sempre há uma reação de mesma intensidade e direção, porem sentidos opostos." Por exemplo, o astronata ficou longe da estação espacial, e nao tem nada que ele se apoie para que ele possa voltar, como ele voltaria? Ele teria que encontrar um objeto de + massa, para que ele pudesse jogar. Sendo assim, ao jogar ele estaria fazendo uma força para jogar o objeto, e o objeto estaria fazendo uma força contraria sobre ele, fazendo que ele voltasse a estação espacial. A ídeia Básica da Lei Ação e Reação é bem simples. Ela diz que basicamente, se você empurra um objeto esse objeto te empurra de volta. Ou se você puxa um objeto este objeto de puxa de volta. E Sempre com o mesmo valor da força que você está fazendo. Vamos a um exemplo: Você tem um côcô e a gente empurra o côcô com um graveto. O que a 3º lei de newton quer dizer que se você empurra o côcô quer dizer que o côcô empurra tambem seu graveto. Vamos supor que você empurra o côcô com seu graveto com uma força de 2N o côcô te empurra de volta com 2N essas 2 Forças é o que a gente chama de Par Ação e Reação O que isso quer dizer? Quer dizer que elas sempre vão ter O Mesmo Módulo (FORÇA) A Mesmo Direção (Na Mesma Reta Ou Linha) E Sentidos Opostos E Agem Em Corpos Diferentes E por isso que a gente da um soco na parede, a nossa mão doe. A parede também está fazendo uma força sobre a gente, no caso a mesma força que a gente fez. ############################################################################################ Todo o tópico foi escrito por mim, letrinha por letrinha. Se estiver algo errado diz ai, estou apto a arrumar. Bom isso é o que eu sei, o que eu estudei. Qualquer Dúvidas, comente. Algo errado críticas comente, sem problemas eu arrumo.
-
1
-
- física e química
- 1º ano do ensino médio
- (e %d mais)
-
inativo [Amostra] Todos meus Trabalhos! < Dzn >
tópico respondeu ao Brenno Design de Thur em Arquivos
Eu Achava o que eu fazia bom, mas isso aquI nem se compara. Boa sorte com as vendas :) (Manda umas rigs dessa pra mim ksksks)
