forked from mhnazmul/rapidleech-ultimate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmtn.php
205 lines (180 loc) · 25.6 KB
/
mtn.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
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php
define('RAPIDLEECH', 'yes');
define('CONFIG_DIR', 'configs/');
define ('CREDITS', '<small class="small-credits">By jmsmarcelo</small><br />');
require_once(CONFIG_DIR.'setup.php');
define ( 'TEMPLATE_DIR', 'templates/'.$options['template_used'].'/' );
// Include other useful functions
require_once('classes/other.php');
login_check();
include(TEMPLATE_DIR.'header.php');
include('mtn/mtnconfig.php');
?>
<br />
<center><h2>Movie Thumbnailer</h2>
<form method="post">
<table align="center" border="0" cellspacing="2">
<tr>
<td align="right">Video File <span class="nav_text" onMouseOver="document.getElementById('help_text').style.display='block'" onMouseOut="document.getElementById('help_text').style.display='none'" style="cursor:help"> [*]</span> : </td><td><select id="video" name="video">
<?php
$exts=array(".3gp", ".3g2", ".asf", ".avi", ".dat", ".divx", ".dsm", ".evo", ".flv", ".m1v", ".m2ts", ".m2v", ".m4a", ".mj2", ".mjpg", ".mjpeg", ".mkv", ".mov", ".moov", ".mp4", ".mpg", ".mpeg", ".mpv", ".nut", ".ogg", ".ogm", ".qt", ".swf", ".ts", ".vob", ".wmv", ".xvid");
$ext="";
function vidlist($dir)
{
$results = array();
$handler = opendir($dir);
while ($file = readdir($handler))
{
if (strrchr($file,'.')!="")
{
$ext=strtolower(strrchr($file,'.'));
}
if ($file != '.' && $file != '..' && in_array($ext,$GLOBALS["exts"]))
{
$results[] = $file;
}
}
closedir($handler);
sort($results);
return $results;
}
$files = vidlist($download_dir);
foreach($files as $file)
{
echo '<option value="'.$file.'">'.$file.'</option>';
}
?>
</select><input type="checkbox" id="all" name="all" value="true" />Generate all.</td>
</tr>
<?php
if($navi_left["showmtnconfig"]){
?>
<tr>
<td align="right">Columns x Rows : </td><td><select id="cs" name="cs"><option value="1"<?php echo ($mtn_cs == "1" ? ' selected="selected"':'');?>>1</option>
<option value="2"<?php echo ($mtn_cs == "2" ? ' selected="selected"':'');?>>2</option>
<option value="3"<?php echo ($mtn_cs == "3" ? ' selected="selected"':'');?>>3</option>
<option value="4"<?php echo ($mtn_cs == "4" ? ' selected="selected"':'');?>>4</option>
<option value="5"<?php echo ($mtn_cs == "5" ? ' selected="selected"':'');?>>5</option></select> x <select id="rs" name="rs"><option value="1"<?php echo ($mtn_rs == "1" ? ' selected="selected"':'');?>>1</option>
<option value="2"<?php echo ($mtn_rs == "2" ? ' selected="selected"':'');?>>2</option>
<option value="3"<?php echo ($mtn_rs == "3" ? ' selected="selected"':'');?>>3</option>
<option value="4"<?php echo ($mtn_rs == "4" ? ' selected="selected"':'');?>>4</option>
<option value="5"<?php echo ($mtn_rs == "5" ? ' selected="selected"':'');?>>5</option>
<option value="6"<?php echo ($mtn_rs == "6" ? ' selected="selected"':'');?>>6</option>
<option value="7"<?php echo ($mtn_rs == "7" ? ' selected="selected"':'');?>>7</option>
<option value="8"<?php echo ($mtn_rs == "8" ? ' selected="selected"':'');?>>8</option>
<option value="9"<?php echo ($mtn_rs == "9" ? ' selected="selected"':'');?>>9</option>
<option value="10"<?php echo ($mtn_rs == "10" ? ' selected="selected"':'');?>>10</option></select></td>
</tr>
<tr>
<td align="right">Width <span class="nav_text" onMouseOver="document.getElementById('help_text2').style.display='block'" onMouseOut="document.getElementById('help_text2').style.display='none'" style="cursor:help"> [*]</span> : </td><td><input type="text" id="w" name="w" size="3" value="<?php echo $mtn_w; ?>" /></td>
</tr>
<tr>
<td align="right">Minimum Height <span class="nav_text" onMouseOver="document.getElementById('help_text3').style.display='block'" onMouseOut="document.getElementById('help_text3').style.display='none'" style="cursor:help"> [*]</span> : </td><td><input type="text" id="h" name="h" size="3" value="<?php echo $mtn_h; ?>" /></td>
</tr>
<?php
if($navi_left["showmtntext"]){
?>
<tr>
<td align="right">Text <span class="nav_text" onMouseOver="document.getElementById('help_text4').style.display='block'" onMouseOut="document.getElementById('help_text4').style.display='none'" style="cursor:help"> [?]</span> : </td><td><input type="text" id="T" name="T" size="25" value="<?php echo $mtn_T; ?>" /></td>
</tr>
<tr>
<td align="right">Output Suffix : </td><td><input type="text" id="o" name="o" size="25" value="<?php echo $mtn_o; ?>" /></td>
</tr>
<?php
}
?>
<tr>
<td align="right">Background Color : </td><td><select id="k" name="k"><option value="000000"<?php echo ($mtn_k == "000000" ? ' selected="selected"':'');?>>Black</option>
<option value="000099"<?php echo ($mtn_k == "000099" ? ' selected="selected"':'');?>>Blue</option>
<option value="006600"<?php echo ($mtn_k == "006600" ? ' selected="selected"':'');?>>Green</option>
<option value="CC0000"<?php echo ($mtn_k == "CC0000" ? ' selected="selected"':'');?>>Red</option>
<option value="FFFF00"<?php echo ($mtn_k == "FFFF00" ? ' selected="selected"':'');?>>Yellow</option>
<option value="FFFFFF"<?php echo ($mtn_k == "FFFFFF" ? ' selected="selected"':'');?>>White</option></select></td>
</tr>
<tr>
<td align="right">Jpeg Quality : </td><td><select id="j" name="j"><option value="80"<?php echo ($mtn_j == "80" ? ' selected="selected"':'');?>>Low</option>
<option value="90"<?php echo ($mtn_j == "90" ? ' selected="selected"':'');?>>Normal</option>
<option value="100"<?php echo ($mtn_j == "100" ? ' selected="selected"':'');?>>Right</option></select></td>
</tr>
<tr>
<td align="right">Edge <span class="nav_text" onMouseOver="document.getElementById('help_text5').style.display='block'" onMouseOut="document.getElementById('help_text5').style.display='none'" style="cursor:help"> [?]</span> : </td><td><select id="g" name="g"><option value="0"<?php echo ($mtn_g == "0" ? ' selected="selected"':'');?>>Off</option>
<option value="1"<?php echo ($mtn_g == "1" ? ' selected="selected"':'');?>>1</option>
<option value="2"<?php echo ($mtn_g == "2" ? ' selected="selected"':'');?>>2</option>
<option value="3"<?php echo ($mtn_g == "3" ? ' selected="selected"':'');?>>3</option>
<option value="4"<?php echo ($mtn_g == "4" ? ' selected="selected"':'');?>>4</option>
<option value="5"<?php echo ($mtn_g == "5" ? ' selected="selected"':'');?>>5</option></select></td>
</tr>
<tr>
<td align="right">Individual Shots <span class="nav_text" onMouseOver="document.getElementById('help_text6').style.display='block'" onMouseOut="document.getElementById('help_text6').style.display='none'" style="cursor:help"> [?]</span> : </td><td><input type="checkbox" id="I" name="I" value="-I"<?php echo ($mtn_I == "-I" ? ' checked="checked"':'');?> />On</td>
</tr>
<tr>
<td align="right">Video Info : </td><td><input type="checkbox" id="i" name="i" value="true"<?php echo ($mtn_i == "true" ? ' checked="checked"':'');?> />On <select id="Ts" name="Ts"><option value="8"<?php echo ($mtn_Ts == "8" ? ' selected="selected"':'');?>>8</option>
<option value="9"<?php echo ($mtn_Ts == "9" ? ' selected="selected"':'');?>>9</option>
<option value="10"<?php echo ($mtn_Ts == "10" ? ' selected="selected"':'');?>>10</option>
<option value="11"<?php echo ($mtn_Ts == "11" ? ' selected="selected"':'');?>>11</option>
<option value="12"<?php echo ($mtn_Ts == "12" ? ' selected="selected"':'');?>>12</option>
<option value="13"<?php echo ($mtn_Ts == "13" ? ' selected="selected"':'');?>>13</option>
<option value="14"<?php echo ($mtn_Ts == "14" ? ' selected="selected"':'');?>>14</option>
<option value="15"<?php echo ($mtn_Ts == "15" ? ' selected="selected"':'');?>>15</option></select> Size <select id="Tc" name="Tc"><option value="000000"<?php echo ($mtn_Tc == "000000" ? ' selected="selected"':'');?>>Black</option>
<option value="000099"<?php echo ($mtn_Tc == "000099" ? ' selected="selected"':'');?>>Blue</option>
<option value="006600"<?php echo ($mtn_Tc == "006600" ? ' selected="selected"':'');?>>Green</option>
<option value="CC0000"<?php echo ($mtn_Tc == "CC0000" ? ' selected="selected"':'');?>>Red</option>
<option value="FFFF00"<?php echo ($mtn_Tc == "FFFF00" ? ' selected="selected"':'');?>>Yellow</option>
<option value="FFFFFF"<?php echo ($mtn_Tc == "FFFFFF" ? ' selected="selected"':'');?>>White</option></select> Color <select id="f" name="f"><option value="blue.ttf"<?php echo ($mtn_f == "blue.ttf" ? ' selected="selected"':'');?>>Blue</option>
<option value="georgia.ttf"<?php echo ($mtn_f == "georgia.ttf" ? ' selected="selected"':'');?>>Georgia</option>
<option value="lsansuni.ttf"<?php echo ($mtn_f == "lsansuni.ttf" ? ' selected="selected"':'');?>>Lsansuni</option>
<option value="pala.ttf"<?php echo ($mtn_f == "pala.ttf" ? ' selected="selected"':'');?>>Pala</option>
<option value="palab.ttf"<?php echo ($mtn_f == "palab.ttf" ? ' selected="selected"':'');?>>Palab</option>
<option value="palabi.ttf"<?php echo ($mtn_f == "palabi.ttf" ? ' selected="selected"':'');?>>Palabi</option>
<option value="palai.ttf"<?php echo ($mtn_f == "palai.ttf" ? ' selected="selected"':'');?>>Palai</option>
<option value="tahomabd.ttf"<?php echo ($mtn_f == "tahomabd.ttf" ? ' selected="selected"':'');?>>Tahomabd</option>
<option value="xsuni.ttf"<?php echo ($mtn_f == "xsuni.ttf" ? ' selected="selected"':'');?>>Xsuni</option></select> Font</td>
</tr>
<tr>
<td align="right">Time : </td><td><input type="checkbox" id="t" name="t" value="true"<?php echo ($mtn_t == "true" ? ' checked="checked"':'');?> />On <select id="tc" name="tc"><option value="000000"<?php echo ($mtn_tc == "000000" ? ' selected="selected"':'');?>>Black</option>
<option value="000099"<?php echo ($mtn_tc == "000099" ? ' selected="selected"':'');?>>Blue</option>
<option value="006600"<?php echo ($mtn_tc == "006600" ? ' selected="selected"':'');?>>Green</option>
<option value="CC0000"<?php echo ($mtn_tc == "CC0000" ? ' selected="selected"':'');?>>Red</option>
<option value="FFFF00"<?php echo ($mtn_tc == "FFFF00" ? ' selected="selected"':'');?>>Yellow</option>
<option value="FFFFFF"<?php echo ($mtn_tc == "FFFFFF" ? ' selected="selected"':'');?>>White</option></select> Color <select id="ts" name="ts"><option value="000000"<?php echo ($mtn_ts == "000000" ? ' selected="selected"':'');?>>Black</option>
<option value="000099"<?php echo ($mtn_ts == "000099" ? ' selected="selected"':'');?>>Blue</option>
<option value="006600"<?php echo ($mtn_ts == "006600" ? ' selected="selected"':'');?>>Green</option>
<option value="CC0000"<?php echo ($mtn_ts == "CC0000" ? ' selected="selected"':'');?>>Red</option>
<option value="FFFF00"<?php echo ($mtn_ts == "FFFF00" ? ' selected="selected"':'');?>>Yellow</option>
<option value="FFFFFF"<?php echo ($mtn_ts == "FFFFFF" ? ' selected="selected"':'');?>>White</option></select> Shadow</td>
</tr>
<tr>
<td align="right">Location : </td><td><select id="iL" name="iL"><option value="1"<?php echo ($mtn_iL == "1" ? ' selected="selected"':'');?>>Lower Left</option>
<option value="4"<?php echo ($mtn_iL == "4" ? ' selected="selected"':'');?>>Upper Left</option></select> Info <select id="tL" name="tL"><option value="1"<?php echo ($mtn_tL == "1" ? ' selected="selected"':'');?>>Lower Left</option>
<option value="2"<?php echo ($mtn_tL == "2" ? ' selected="selected"':'');?>>Lower Right</option>
<option value="3"<?php echo ($mtn_tL == "3" ? ' selected="selected"':'');?>>Upper Right</option>
<option value="4"<?php echo ($mtn_tL == "4" ? ' selected="selected"':'');?>>Upper Left</option></select> Time</td>
</tr>
<?php
}
?>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td colspan=2><center><input type="submit" value="Generate" name="mtn" /></center></td>
</tr>
</table>
<center>
<span id="help_text" style="display:none">File should be supported:<br />.3gp, .3g2, asf, avi, dat, divx, dsm, evo, flv, M1V, m2ts, m2v, m4a, MJ2, moov mjpg. mjpeg. mkv. mov .. mp4,. mpg,. mpeg,. mpv. nut. ogg. ogm. qt. swf. ts. vob,. wmv,. xvid.</span>
<span id="help_text2" style="display:none">Width of output image; 0:column * movie width</span>
<span id="help_text3" style="display:none">Minimum height of each shot; will reduce # of column to fit</span>
<span id="help_text4" style="display:none">Add text above output image</span>
<span id="help_text5" style="display:none">Gap between each shot</span>
<span id="help_text6" style="display:none">Save individual shots too</span>
</center>
</form>
<?php include('mtn/mtn.php');?><br />
<?php
echo CREDITS;
?><br />
</center>
<?php include(TEMPLATE_DIR.'footer.php'); ?>