forked from forestrf/Descargavideos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.php
75 lines (66 loc) · 1.84 KB
/
form.php
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
<?php
error_reporting(0);
header('Content-Type: text/html; charset=UTF-8');
include_once 'definiciones.php';
include_once 'funciones.php';
//guardar en un txt el referer para saber que dominios tienen alojado el buscador.
/*
if(isset($_SERVER['HTTP_REFERER'])){
$ref=$_SERVER['HTTP_REFERER'];
if(!enString($ref,'descargavid.blogspot')&&!enString($ref,DOMINIO)){
$archivo="form_donde.txt";
if(!file_exists($archivo)){
$fp=fopen($archivo,"a+");
fclose($fp);
chmod($archivo,0777);
}
$fp=fopen($archivo,"a+");
fwrite(
$fp,"\n".$ref
);
fclose($fp);
}
}
*/
$largo=300;
if(isset($_GET['l'])){
$lg=intval($_GET['l']);
if(my_is_integer($lg))
if($lg>100&&$lg<9999)
$largo=$lg;
else
$largo=100;
}
$tamano="f2";
if(isset($_GET['t'])){
$tm=$_GET['t'];
if($tm=="f1"||$tm=="f2"||$tm=="f3")
$tamano=$tm;
}
$color="blanco";
if(isset($_GET['c'])){
$cl=$_GET['c'];
if($cl=="blanco"||$cl=="negro")
$color=$cl;
}
//return 1 = es num
function my_is_integer($val){
$val=str_replace(" ","",trim($val));
return eregi("^-?([0-9])+$",$val);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="http://<?php echo DOMINIO?>/css/form.min.css" />
<link rel="stylesheet" href="http://<?php echo DOMINIO?>/css/reset.min.css" />
</head>
<body>
<div id="form_dv" style="width:<?=$largo?>px" class="<?=$tamano?> <?=$color?>">
<form action="http://<?php echo DOMINIO?>/web/iframeform/" method="post" target="_blank" name="formCalculador" id="formCalculador">
<div class="fondo_input_web"><input type="text" name="web" id="web" class="entrada e" placeholder="Pega la URL del vídeo..." value="" title="URL a obtener"></div>
<input type="submit" id="submit" value=" " class="boton b">
</form>
</div>
</body>
</html>