NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
function cut_str($str, $left, $right) {
$str = substr(stristr($str, $left), strlen($left));
$leftLen = strlen(stristr($str, $right));
$leftLen = $leftLen ? - ($leftLen) : strlen($str);
$str = substr($str, 0, $leftLen);
return $str;
}
function size_name($link, $cookie) {
if(!$link || !stristr($link,'http')) return;
$port = 80;
$schema = parse_url(trim($link));
$host = $schema['host'];
$scheme = "http://";
if(empty($schema['path'])) return;
$gach = explode("/", $link);
list($path1, $path) = explode($gach[2], $link);
if(isset($schema['port'])) $port = $schema['port'];
elseif($schema['scheme'] == 'https') {
$scheme = "ssl://";
$port = 443;
}
if($scheme != "ssl://") {
$scheme = "";
}
$data = "GET {$path} HTTP/1.1rn";
$data .= "User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0) Gecko/20100101 Firefox/24.0rn";
$data .= "Host: {$host}rn";
$data .= $cookie ? "Cookie: $cookiern" : '';
$data .= "Connection: Closernrn";
$errno = 0;
$errstr = "";

$hosts = $scheme . $host . ':' . $port;
$fp = @stream_socket_client ($hosts, $errno, $errstr, 120, STREAM_CLIENT_CONNECT );
if(! $fp) return -1;

fputs($fp, $data);
fflush($fp);
$header = "";
do {
$header .= fgets ( $fp, 8192 );
}
while(strpos($header, "rnrn") === false);

if(stristr($header,"TTP/1.0 200 OK") || stristr($header,"TTP/1.1 200 OK") || stristr($header,"TTP/1.1 206"))
$filesize = trim (cut_str($header, "Content-Length:", "n"));
else $filesize = -1;
$filename = "";
if(stristr($header,"filename")) {
$filename = trim (cut_str($header, "filename", "n"));
$filename = preg_replace("/(";?=|"|=|*|UTF-8|')/","",$filename);
}
else $filename = substr(strrchr($link, '/'), 1);
return array($filesize, $filename);
}
function convert_size($filesize) {
$filesize = $filesize > 0 ? $filesize : 0;
if($filesize >=(1024*1024*1024)) $msize = round($filesize/(1024*1024*1024), 2)." GB";
elseif($filesize >=(1024*1024)) $msize = round($filesize/(1024*1024), 2)." MB";
elseif($filesize >=1024) $msize = round($filesize/(1024), 2)." KB";
else $msize = $filesize." B";
return $msize;
}
$job = array();
$file = "data.dat";
if (file_exists($file)) {
// Load data
$fp = @fopen($file, "r");
$check = @fread($fp, filesize($file));
@fclose($fp);

// Decode Json
$decode = @json_decode($check, true);
if (is_array($decode)) $job = array_merge($job, $decode);
}
if (isset($_GET['id']) && $_GET['id'] != "") {
$id = $_GET['id'];
if (!$job[$id]['link']) die("Link not found!");
else header("refresh: 1; url=".$job[$id]['link']);
echo "<body bgcolor=black><BR><div align=center><img src=http://i.imgur.com/Y746cTl.jpg><BR><BR><font color=#0099ff face=tahoma size=5>Please Wait...<BR></div></body>";
}
elseif (isset($_GET['create']) && $_GET['create'] != "") {
$link = $_GET['create'];

if (stristr($link, "http")) {
// Luu data
$id = rand(0, 999).substr(md5($link), 0, 10).time();
// if (preg_match("//dl/letitbit.net/", $link)) $link = "http://top9x.info/";
$job[$id] = array(
"link" => $link,
"time" => time(),
);

$self = 'http://'.$_SERVER['HTTP_HOST'].preg_replace('/?.*$/', '', isset($_SERVER['REQUEST_URI'])? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF']);
$link = $self."?id=".$id;
$link = str_replace("index.php", "", $link);
//echo file_get_contents("http://bc.vc/api.php?key=10bf5c6f0db2a00780a91aaa18745a14&uid=37018&url=".$link);
echo $link;
}
else echo "Link is not correct!";
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>BBCode Generator</title>
<link title="BBCode Style" href="style.css" rel="stylesheet" type="text/css" />
<style>
body {
font-family: "Segoe UI", Tahoma, sans-serif;
font-size: 11px;
font-weight: bold;
color: #e7e7e7;
background-color: black;
background-image: url(#);
margin: 0px;
padding: 0px;
}
A {
COLOR: #ff6600; TEXT-DECORATION: none
}
A:visited {
COLOR: #ff6600; TEXT-DECORATION: none
}
A:active {
COLOR: #ff6600; TEXT-DECORATION: none
}
A:hover {
COLOR: #ff6600; TEXT-DECORATION: none
}
</style>
</head>
<body>
<center>
<h2><a href='./' style='TEXT-DECORATION: none'>BBCode Generator { Developed By IMM0rTaLTurK }</a></h2><br>
<form method='POST' action='index.php'>
<p>
<input type='text' class='form' onclick='javascript:this.focus();this.select();' size='65' name='urllist'/>
</p>
<p>
<input type='submit' value='Generate'/>
</p>
</form>
<?php
if (empty($_POST['urllist'])==false) {
$link = $_POST['urllist'];

if (stristr($link, "http")) {
$size_name = size_name($link, "");
$filesize = convert_size($size_name[0]);
$filename = $size_name[1];

// Luu data
$id = rand(0, 999).substr(md5($link), 0, 10).time();
$job[$id] = array(
"link" => $link,
"time" => time(),
);

$self = 'http://'.$_SERVER['HTTP_HOST'].preg_replace('/?.*$/', '', isset($_SERVER['REQUEST_URI'])? $_SERVER['REQUEST_URI'] : $_SERVER['PHP_SELF']);
$link = $self."?id=".$id;
$link = str_replace("index.php", "", $link);
//$linkx = file_get_contents("http://bc.vc/api.php?key=10bf5c6f0db2a00780a91aaa18745a14&uid=37018&url=".$link);
//$link = $linkx;
$bbcode = "[center][b][url=".$link."] [color=blue]bbcode Team[/color] [color=green]| ".$filename."[/color] [color=#cc0000](".$filesize.")[/color][/url][/b][/center]";
echo "<br><b><a href='".$link."' target='bbcode'><font size='2'><font color='#076c4e'>".$filename."</font> <font color='#cc0000'>(".$filesize.")</font></font></a>";
echo "<br><b><font size='3' color='white'>BBcode:</font></b> <input class='form' type='text' size='100' onclick='javascript:this.focus();this.select();' readOnly value='".$bbcode."'><br>";
}
else echo "<br><b><font size='3' color='white'><a href='".$link."' target='link'>".$link."</a> ==> Link is not correct!</font></b><br>";
}
?>
<br><br>
</center>
</body>
</html>
<?php
}
// Check
foreach($job as $nam => $value) {
if (time() - $value['time'] > 60*60*12) unset($job[$nam]);
else $job[$nam] = $value;
}

// Save data
$fp = @fopen($file, "w");
@fwrite($fp, @json_encode($job));
@fclose($fp);
?>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.