Jump to content

cristian.pana

Members
  • Posts

    36
  • Joined

  • Last visited

Everything posted by cristian.pana

  1. Nu neg ca nu este asa, dar hai sa fim realisti cati cunosc acele aplicatii, cati au incredere sa instaleze acele aplicatii Eu am preluat informatiile web si le-am pus in varianta wap. Sunt sigur ca nu tot poporul au smecherii smart ca voi, un site ca acesta le e foarte util
  2. Sursa e preluata de pe siteuri web nu e stocata in baza de date
  3. InBuzunar.Mobi - Portalul tau mobil de buzunar - un portal 100% romanesc, tradus si in 2 limbi pt vizitatori Cuprinde: cinema, filme, concerte, club, tv, radio, bancuri, meteo, ratb, cfr, taxi, cazare, turism, e-mail, telefoane, prefixe, frecvente, presa, sport, loto, horoscop, curs. Ia-l cu tine oriunde si oricand, semnal pe mobil sa ai
  4. Sper sa va fie utile: function curl( $url ) { if ( in_array( "curl", get_loaded_extensions() ) ) { $ch = curl_init() ; curl_setopt( $ch, CURLOPT_URL, $url ) ; curl_setopt( $ch, CURLOPT_HEADER, 0 ) ; curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ; curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"] ) ; $result = curl_exec( $ch ) ; curl_close( $ch ) ; return $result ; } else { $result = file_get_contents( $url ) ; return $result ; } } ########## function google_cache( $url ) { $data = curl( "http://webcache.googleusercontent.com/search?q=cache:" . urlencode( $url ) ) ; preg_match( '#(\d{1,2}\s[a-zA-Z]{3}\s\d{4}\s\d{2}:\d{2}:\d{2}.*?)\.#', $data, $match ) ; return $match[1] ; } ################### function google_indexed( $url ) { $data = curl( "http://www.google.com/search?q=site:" . urlencode( $url ) ) ; preg_match( '#About\s([0-9\,]+){1,}\sresult#', $data, $match ) ; return $match[1] ; } ################### function google_backlinks( $url ) { $data = curl( "http://www.google.com/search?q=link:" . urlencode( $url ) ) ; preg_match( '#<div id=resultStats>([0-9\,]+){1,}\sresult#', $data, $match ) ; return $match[1] ; } ################### function yahoo_indexed( $url ) { $data = curl( "http://siteexplorer.search.yahoo.com/search?bwm=i&bwmf=s&p=" . urlencode( $url ) ) ; preg_match( '#Inlinks\s\(([0-9\,]+){1,}\)<\/span>#', $data, $match ) ; return $match[1] ; } ################### function yahoo_backlinks( $url ) { $data = curl( "http://siteexplorer.search.yahoo.com/search?bwm=i&p=" . urlencode( $url ) ) ; preg_match( '#Inlinks\s\(([0-9\,]+){1,}\)<\/span>#', $data, $match ) ; return $match[1] ; } ################### function bing_indexed( $url ) { $data = curl( "http://www.bing.com/search?q=site:" . urlencode( $url ) ) ; preg_match( '#of\s([0-9\,]+){1,}\sresult#', $data, $match ) ; return $match[1] ; } ################### function bing_backlinks( $url ) { $data = curl( "http://www.bing.com/search?q=link:" . urlencode( $url ) ) ; preg_match( '#of\s([0-9\,]+){1,}\sresult#', $data, $match ) ; return $match[1] ; } ################### function alexa_backlinks( $url ) { $data = curl( "http://www.alexa.com/search?q=" . urlencode( $url ) ) ; preg_match( '#href=\"/site/linksin/' . urlencode( $url ) . '\">([0-9\,]+){1,}<\/a>#', $data, $match ) ; return $match[1] ; } ################### function alexa_rank( $url ) { $data = curl( "http://www.alexa.com/search?q=" . urlencode( $url ) ) ; preg_match( '#trafficstats\">\s([0-9\,]+){1,}<\/a>#', $data, $match ) ; return $match[1] ; } ################### function compete_rank( $url ) { $data = curl( "http://siteanalytics.compete.com/" . urlencode( $url ) . "/" ) ; preg_match( '#<h4>([0-9\,]+){1,}</h4>#', $data, $match ) ; return $match[1] ; } ################### function internet_archive( $url ) { $data = curl( "http://wayback.archive.org/web/*/" . urlencode( $url ) ) ; preg_match( '#crawled\s<strong>([0-9\,]+){1,}\stime#', $data, $match ) ; return $match[1] ; } ################### function w3c_validator( $url ) { $data = curl( "http://validator.w3.org/check?uri=" . urlencode( $url ) ) ; preg_match( '#valid\">([^\"]*)<\/td>#', $data, $match ) ; return $match[1] ; } ################### function whois_domain( $url ) { $data = curl( "http://www.who.is/whois/" . urlencode( $url ) ) ; preg_match( "#accent1\'>Updated:\s([^\"]*)<\/span><br>#", $data, $match ) ; return $match[1] ; }
  5. Afla providerul de internet al unui vizitator/utilizator de pe site-ul tau: function curl( $url ) { if ( in_array( "curl", get_loaded_extensions() ) ) { $ch = curl_init() ; curl_setopt( $ch, CURLOPT_URL, $url ) ; curl_setopt( $ch, CURLOPT_REFERER, $url ) ; curl_setopt( $ch, CURLOPT_HEADER, 0 ) ; //curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ;//optional curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ; curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ; $result = curl_exec( $ch ) ; curl_close( $ch ) ; return $result ; } else { $result = file_get_contents( $url ) ; return $result ; } } ########## function isp( $ip ) { $data = curl( "http://whatismyipaddress.com/ip/" . $ip ) ; if ( preg_match( "/ISP:<\/th><td>(?P<Isp>.+)<\/td><\/tr><tr><th>Organization:/i", $data, $match ) ) { return ucwords( strtolower( str_ireplace( array( "-", "_", "S.a." ), array( " ", " ", "" ), $match["Isp"] ) ) ) ; } else { return "Necunoscut" ; } } echo isp("127.1.0.0"); // sau orice alt ip
  6. Din pacate numai am vps asa ca acest cod nu-mi mai este util: $username = "" ; $password = "" ; function detecthi5( $yid ) { global $username, $password ; $ch = curl_init() ; curl_setopt( $ch, CURLOPT_URL, "http://hi5.com/friend/login.do" ) ; curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayHomePage.do" ) ; curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ; //curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; //optional curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ; curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ) ; curl_setopt( $ch, CURLOPT_POST, 1 ) ; curl_setopt( $ch, CURLOPT_POSTFIELDS, "/friend/processBrowseSearch.do?searchText=" . $yid . "&email=" . urlencode( $username ) . "&password=" . urlencode( $password ) . "&remember=on&type=1" ) ; //curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ; //curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ; $result = curl_exec( $ch ) ; if ( $result === false ) { return false ; //echo curl_errno($ch).':'.curl_error($ch); } $redirect = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL ) ; curl_close( $ch ) ; $logged = preg_match( '/LoggedinHome/', $redirect ) ; if ( ! $logged ) { return false ; } $ch = curl_init() ; curl_setopt( $ch, CURLOPT_URL, "http://hi5.com/friend/processBrowseSearch.do?searchText=" . $yid . "" ) ; curl_setopt( $ch, CURLOPT_REFERER, "http://hi5.com/friend/displayMyProfile.do" ) ; curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] ) ; //curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 ) ; curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ) ; curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1 ) ; //curl_setopt( $ch, CURLOPT_COOKIEFILE, "./txt/cookies.txt" ) ; //curl_setopt( $ch, CURLOPT_COOKIEJAR, "./txt/cookies.txt" ) ; $result = curl_exec( $ch ) ; if ( $result === false ) { return false ; //echo curl_errno($ch).':'.curl_error($ch); } curl_close( $ch ) ; $id = string ( $result, 'photo-link" href="/friend/p', '--' ) ; $title = string ( $result, '/friend/p' . $id . '--', '--html">' ) ; $avatar = string ( $result, 'height="75" src="', '"' ) ; if ( $id ) { return "<table align=\"center\"> <tr> <td> <img src=\"" . $avatar . "\" width=\"60\" height=\"60\" class=\"avatar\" alt=\"" . $yid . "\"/> </td> <td> " . str_replace( "_", " ", urldecode( $title ) ) . " <br/> [<a href=\"http://hi5.com/friend/mobile/photos/displayAlbum.do?ownerId=" . $id . "\">Vezi Fotografii</a>] [<a href=\"http://hi5.com/friend/mobile/friends/displayAddFriend.do?userid=" . $id . "\">Adauga Prieten</a>] [<a href=\"http://hi5.com/friend/mobile/mail/displayNewMessage.do?toIds=" . $id . "\">Trimite Privat</a>] </td> </tr> </table>" ; } else { return null ; } } echo detecthi5("email@email.com"); // sau orice alt email
  7. Afla ip-ul real din spatele unui proxy. Aceste coduri sunt functionabile numai in cazul in care serverul pe care rulati este Apache (nu Litespeed) si au instalate HTTP_X_REAL_IP si HTTP_X_FORWARDED_FOR function ip() { if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) && filter_var( $_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE ) ) { $_SERVER['REMOTE_ADDR'] = filter_var( $_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE ) ; } else if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) && filter_var( $_SERVER['HTTP_X_REAL_IP'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE ) ) { $_SERVER['REMOTE_ADDR'] = filter_var( $_SERVER['HTTP_X_REAL_IP'], FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE ) ; } else { if ( isset( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'] ; } if ( isset( $_SERVER['HTTP_X_REAL_IP'] ) ) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'] ; } } return $_SERVER['REMOTE_ADDR'] ; } SAU function ip() { $address = $_SERVER['REMOTE_ADDR'] ; if ( ! empty( $_SERVER['HTTP_X_REAL_IP'] ) ) { $ip[] = 'X-Real-IP: ' . $_SERVER['HTTP_X_REAL_IP'] ; } if ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $ip[] = 'X-Forwarded-For: ' . $_SERVER['HTTP_X_FORWARDED_FOR'] ; } if ( ! empty( $ip ) ) $address .= '(' . implode( ',', $ip ) . ')' ; return $address ; }
  8. Din pacate codul respectiv este prea lung, sper sa fi postat si in sectiunea potrivita, daca este un admin care are o idee mai buna sau modifica topicul incat sa includa codul, nu ma deranjeaza. Ok sa revin la subiect www.tinytop.mobi aveti si demo si scriptuletul. Enoy
  9. Cristian, 30, Bucuresti..
×
×
  • Create New...