1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
| <?php
$response_format="xml";
if($ba == '' && $type == '1'){ $link ="http://www.allocine.fr/_video/iblogvision.aspx?cmedia=$url";}
else{
if ($type == '1') {
// Lecteur Allocine
$link="http://www.allocine.fr/_video/iblogvision.aspx?cmedia=$url";
}
// Lecteur Youwatch
elseif ($type == '2') {
$link="http://youwatch.org/$url";
}
//lecteur purvideo
elseif ($type == '4') {
$link="http://www.purevid.com/v/$url";
}
//lecteur firedrive
elseif ($type == '5') {
$link="http://www.firedrive.com/file/$url";
}
//lecteur uploadhero
elseif ($type == '6') {
$link="http://uploadhero.co/dl/$url";
}
// lecteur Videomega
elseif ($type == '7') {
$link="http://videomega.tv/?ref=$url";
}
// lecteur Exashare
else{
$link="http://www.exashare.com/$url";
}
}
$url = 'http://api.urlchecker.net/';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, "response_format=$response_format&link=$link");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_NOBODY, 0);
$response = curl_exec($ch);
echo '<div style="visibility:hidden">$response</div>';
if (stripos($response, 'dead') !== FALSE) {
// Set Mysql Connection info
$host ="localhost";
$username="megafilm_mega";
$password="skyzosnoop59";
$db_name="megafilm_live";
$table_name="files";
require('setting.php');
$fileid = $_GET['filmid'] ;
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
// update data in mysql database
$sql=" UPDATE $table_name SET status='0' WHERE fileid='$fileid'";
$result=mysql_query($sql);
// if successfull
if($result) {
echo "Lien mort, vidéo déplacer!";
}
else { echo "ERROR";
}
}
else {
echo 'Lien Valide !';
}
?> |
Partager