Guest User

Untitled

a guest
Nov 27th, 2013
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.97 KB | None | 0 0
  1. <?php $importer = array_merge($_GET, $_POST);
  2. require_once( ADM.'/redtube.class.php' );
  3. $Vibe = new RedVibe();
  4. function ToSec($time) {
  5. $t = explode(':', $time);
  6. if ( count($t) > 2) {
  7. return $t[0] * 3600 + $t[1] * 60 + $t[2];
  8. }else {
  9. return $t[0] * 60 + $t[1];
  10. }
  11. }
  12.  
  13. //var_dump($importer);
  14. $nb_display = 24;
  15. $startIndex = $nb_display * this_page() - $nb_display + 1;
  16. if (isset($importer['action'])) {
  17. if(!isset($importer['mp4']) || empty($importer['mp4'])) { $importer['mp4'] = '0' ; }
  18. if($importer['action'] == "search") {
  19. //Import by search
  20. if(!isset($importer['key']) || empty($importer['key'])) { $importer['key'] = '' ; }
  21. $videos = $Vibe->RedSearch($importer['key'],this_page());
  22. $pagi_url = admin_url("redtube").'&action=search&key='.$importer['key'].'&categ='.$importer['categ'];
  23. $pagi_url .= '&mp4='.$importer['mp4'].'&auto='.$importer['auto'].'&allowduplicates='.$importer['allowduplicates'].'&sleeppush='.$importer['sleeppush'].'&sleepvideos='.$importer['sleepvideos'].'&endpage='.$importer['endpage'].'&p=';
  24.  
  25.  
  26. } elseif($importer['action'] == "tags") {
  27. // import by tag
  28. if(!isset($importer['tags']) || empty($importer['tags'])) { $importer['tags'] = '' ; }
  29. $videos = $Vibe->RedTags($importer['tags'],this_page());
  30. $pagi_url = admin_url("redtube").'&action=tags&tags='.$importer['tags'].'&categ='.$importer['categ'];
  31. $pagi_url .= '&mp4='.$importer['mp4'].'&auto='.$importer['auto'].'&allowduplicates='.$importer['allowduplicates'].'&sleeppush='.$importer['sleeppush'].'&sleepvideos='.$importer['sleepvideos'].'&endpage='.$importer['endpage'].'&p=';
  32.  
  33. }elseif($importer['action'] == "pornstar") {
  34. //import by pornstar
  35. if(!isset($importer['pornstar']) || empty($importer['pornstar'])) { $importer['pornstar'] = '' ; }
  36. $videos = $Vibe->RedStar($importer['pornstar'],this_page());
  37. $pagi_url = admin_url("redtube").'&action=pornstar&pornstar='.$importer['pornstar'].'&categ='.$importer['categ'];
  38. $pagi_url .= '&mp4='.$importer['mp4'].'&auto='.$importer['auto'].'&allowduplicates='.$importer['allowduplicates'].'&sleeppush='.$importer['sleeppush'].'&sleepvideos='.$importer['sleepvideos'].'&endpage='.$importer['endpage'].'&p=';
  39.  
  40. }elseif($importer['action'] == "category") {
  41. //import by category
  42. if(!isset($importer['redchannel']) || empty($importer['redchannel'])) { $importer['redchannel'] = '' ; }
  43. $videos = $Vibe->RedCategory($importer['redchannel'],this_page());
  44. $pagi_url = admin_url("redtube").'&action=category&redchannel='.$importer['redchannel'].'&categ='.$importer['categ'];
  45. $pagi_url .= '&mp4='.$importer['mp4'].'&auto='.$importer['auto'].'&allowduplicates='.$importer['allowduplicates'].'&sleeppush='.$importer['sleeppush'].'&sleepvideos='.$importer['sleepvideos'].'&endpage='.$importer['endpage'].'&p=';
  46.  
  47. } else {
  48. echo 'Missing action/section. Click back and try again.';
  49. }
  50.  
  51. // Do the import
  52. if(isset($videos) && (count($videos > 0))) {
  53. $a = new pagination;
  54. $a->set_current(this_page());
  55. $a->set_first_page(true);
  56. $a->set_pages_items(12);
  57. $a->set_per_page($nb_display);
  58. $a->set_values($importer['endpage'] * $nb_display);
  59. $a->show_pages($pagi_url);
  60. ?>
  61. <div class="row-fluid" style="padding: 10px 0">
  62. <a class="btn btn-large btn-success pull-right" href="<?php echo str_replace('sk=','sk=crons&docreate&type=',$pagi_url);?>" ><i class="icon-time"></i>Automate this</a>
  63. </div>
  64. <div class="table-overflow top10">
  65. <table class="table table-bordered table-checks">
  66. <thead>
  67. <tr>
  68. <th width="130px"><?php echo _lang("Thumb"); ?></th>
  69. <th><?php echo _lang("Video"); ?></th>
  70. <th>Duration</th>
  71. <th>Tags</th>
  72. <th>Status</th>
  73.  
  74. </tr>
  75. </thead>
  76. <tbody>
  77. <?php
  78. $nbTotal = count($videos);
  79. foreach ($videos['videos'] as $video) {
  80. if(!is_null($video)){
  81. /* thumb swipe if not available */
  82. if(!empty($video['video']['thumbs']['6']['src'])) {
  83. $thumb = $video['video']['thumbs']['6']['src'];
  84. } elseif(!empty($video['video']['thumbs']['1']['src'])) {
  85. $video['video']['thumbs']['1']['src'];
  86. }else {
  87. $thumb = $video['video']['default_thumb'];
  88. }
  89. /* duration to sec converting */
  90. $duration = ToSec($video['video']['duration']);
  91. /* format tags */
  92. $xtags = '';
  93. if(isset($video['video']['tags']) && !is_null($video['video']['tags'])){
  94. foreach ($video['video']['tags'] as $tag) {
  95. $xtags .= toDb($tag['tag_name']).", ";
  96. }
  97. }
  98.  
  99. /*Redtube has no description but edit below*/
  100. $description = ucfirst($video['video']['title']). ' '. $xtags. ' '.$video['video']['title'];
  101. /* Get remote */
  102. $remote = '';
  103.  
  104. ?>
  105. <tr>
  106.  
  107. <td><img src="<?php echo $thumb; ?>" style="width:130px; height:90px;"></td>
  108. <td><?php echo _html(ucfirst($video['video']['title'])); ?></td>
  109. <td><?php echo $video['video']['duration']; ?></td>
  110. <td>
  111. <?php echo $xtags; ?>
  112. </td>
  113. <td>
  114. <?php
  115.  
  116. if($importer['allowduplicates'] > 0) {
  117. if($importer['mp4'] > 0) {
  118. $providers = new Vibe_Providers(10,10,$video['video']['url']);
  119. $remote = $providers->get_mp4($video['video']['url'])."mp4";
  120. }
  121. echo '<span class="greenText">Imported</span>';
  122. //Insert it
  123. $db->query("INSERT INTO ".DB_PREFIX."videos (`pub`,`source`, `user_id`, `date`, `thumb`, `title`, `duration`, `tags` , `liked` , `category`, `description`, `nsfw`, `remote`, `views`) VALUES ('".intval(get_option('videos-initial'))."','".$video['video']['url']."', '".user_id()."', now() , '".$thumb."', '".toDb($video['video']['title']) ."', '".intval($duration)."', '".$xtags."', '0','".intval($importer['categ'])."','".toDb($description)."','0','".toDb($remote)."','1')");
  124. } else {
  125. $check = $db->get_row("SELECT count(*) as dup from ".DB_PREFIX."videos where source ='".toDb($video['video']['url'])."'");
  126.  
  127. if($check->dup > 0) {
  128. echo '<span class="redText">Skipped as duplicate</span>';
  129. } else {
  130. if($importer['mp4'] > 0) {
  131. $providers = new Vibe_Providers(10,10,$video['video']['url']);
  132. $remote = $providers->get_mp4($video['video']['url'])."mp4";
  133. }
  134. echo '<span class="greenText">Imported</span>';
  135. //Insert it
  136. $db->query("INSERT INTO ".DB_PREFIX."videos (`pub`,`source`, `user_id`, `date`, `thumb`, `title`, `duration`, `tags` , `liked` , `category`, `description`, `nsfw`, `remote`, `views`) VALUES ('".intval(get_option('videos-initial'))."','".$video['video']['url']."', '".user_id()."', now() , '".$thumb."', '".toDb($video['video']['title']) ."', '".intval($duration)."', '".$xtags."', '0','".intval($importer['categ'])."','".toDb($description)."','0','".toDb($remote)."','1')"); }
  137.  
  138. } ?>
  139. </td>
  140.  
  141. </tr>
  142. <?php
  143. if($importer['sleepvideos'] > 0) { sleep($importer['sleepvideos']); }
  144. }
  145. }
  146. //end loop
  147. ?>
  148. </tbody>
  149. </table>
  150. </div>
  151. <?php
  152. $next = this_page() + 1;
  153. if(($importer['auto'] > 0) && ($nbTotal > 0) && ($next < $importer['endpage'])) {
  154. echo 'Redirecting to '.$next;
  155. echo '
  156. <script type="text/javascript">
  157. setTimeout(function() {
  158. window.location.href = "'.$pagi_url.$next.'";
  159. }, '.$importer['sleeppush'].');
  160.  
  161. </script>
  162. ';
  163. }
  164.  
  165. $a->show_pages($pagi_url);
  166. } else { echo '<div class="msg-info">No (more) videos found</div>'; }
  167.  
  168. //end if data
  169. //end actions
  170. //render forms
  171. } else {
  172. $key_check = get_option('redtube_key');
  173. if(false === $key_check ) {
  174. add_option('redtube_key', '');
  175. add_option('redkey_lastrun', '0');
  176. add_option('redkey_checkperiod', '3600');
  177. }
  178. ?>
  179.  
  180. <h2 class=""> Redtube importer</h2>
  181.  
  182. <ul class="nav nav-tabs" id="myTab">
  183. <li class="active"><a href="#search">Search</a></li>
  184. <li><a href="#tags">Tag Import</a></li>
  185. <li><a href="#category">Category Import</a></li>
  186. <li><a href="#user">Pornstar Import</a></li>
  187. </ul>
  188.  
  189. <div class="tab-content">
  190. <div class="tab-pane active" id="search">
  191. <div class="row-fluid">
  192. <form id="validate" class="form-horizontal styled" action="<?php echo admin_url('redtube');?>" enctype="multipart/form-data" method="post">
  193. <i>Used for importing video by keyword search. </i>
  194. <input type="hidden" name="action" class="hide" value="search">
  195. <div class="control-group">
  196. <label class="control-label"><i class="icon-search"></i>Keyword</label>
  197. <div class="controls">
  198. <input type="text" name="key" class=" span8" value="">
  199. </div>
  200. </div>
  201. <?php
  202. echo '<div class="control-group">
  203. <label class="control-label">'._lang("Category:").'</label>
  204. <div class="controls">
  205. <select data-placeholder="'._lang("Choose a category:").'" name="categ" id="clear-results" class="select validate[required]" tabindex="2">
  206. ';
  207. $categories = $db->get_results("SELECT cat_id as id, cat_name as name FROM ".DB_PREFIX."channels order by cat_name asc limit 0,10000");
  208. if($categories) {
  209. foreach ($categories as $cat) {
  210. echo'<option value="'.intval($cat->id).'">'.stripslashes($cat->name).'</option>';
  211. }
  212. } else {
  213. echo'<option value="">'._lang("No categories").'</option>';
  214. }
  215. echo '</select>
  216. </div>
  217. </div>';
  218. ?>
  219. <div class="control-group">
  220. <label class="control-label">Grab video as remote</label>
  221. <div class="controls">
  222. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="1"> YES </label>
  223. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="0" checked>NO</label>
  224. <span class="help-block">Grab direct link to mp4 (BETA). </span>
  225.  
  226. </div>
  227. </div>
  228.  
  229. <div class="control-group">
  230. <label class="control-label">Autopush</label>
  231. <div class="controls">
  232. <label class="radio inline"><input type="radio" name="auto" class="styled" value="1"> YES </label>
  233. <label class="radio inline"><input type="radio" name="auto" class="styled" value="0" checked>NO</label>
  234. </div>
  235. </div>
  236. <div class="control-group">
  237. <label class="control-label">Allow duplicates</label>
  238. <div class="controls">
  239. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="1"> YES </label>
  240. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="0" checked>NO</label>
  241. <span class="help-block">If set to NO it will search if video is already in the dabase and skip it. </span>
  242.  
  243. </div>
  244. </div>
  245. <div class="control-group">
  246. <label class="control-label">Advanced settings</label>
  247. <div class="controls">
  248. <div class="row-fluid">
  249. <div class="span4">
  250. <input class="span12" name="sleeppush" type="text" value="2"><span class="help-block">Seconds to sleep before push </span>
  251. </div>
  252. <div class="span4">
  253. <input class="span12" name="sleepvideos" type="text" value="0"><span class="help-block k align-center">Seconds to sleep between videos import</span>
  254. </div>
  255. <div class="span4">
  256. <input class="span12" name="endpage" type="text" value="25"><span class="help-block k align-right">Which page to end push (Youtube returns </span>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="control-group">
  262. <button type="submit" class="pull-right btn btn-success">Start import</button>
  263.  
  264. </div>
  265. </form>
  266. </div>
  267. </div>
  268. <div class="tab-pane" id="tags">
  269. <div class="row-fluid">
  270. <form id="validate" class="form-horizontal styled" action="<?php echo admin_url('redtube');?>" enctype="multipart/form-data" method="post">
  271. <i>Used for importing video by Redtube tag. </i>
  272. <input type="hidden" name="action" class="hide" value="tags">
  273. <div class="control-group">
  274. <label class="control-label"><i class="icon-tag"></i>Tags</label>
  275.  
  276. <div class="controls">
  277. <?php
  278. echo '<select data-placeholder="Redtube tags" name="tags" id="clear-results" class="select" tabindex="2">';
  279. $tags = $Vibe->getAlltags();
  280. foreach ($tags['tags'] as $tag) {
  281. echo '<option value="'.$tag['tag']['tag_name'].'" />'.ucfirst($tag['tag']['tag_name']).' </option>';
  282. }
  283. ?>
  284. </select>
  285. </div>
  286. </div>
  287.  
  288.  
  289. <?php
  290. echo '<div class="control-group">
  291. <label class="control-label">'._lang("Category:").'</label>
  292. <div class="controls">
  293. <select data-placeholder="'._lang("Choose a category:").'" name="categ" id="clear-results" class="select validate[required]" tabindex="2">
  294. ';
  295. $categories = $db->get_results("SELECT cat_id as id, cat_name as name FROM ".DB_PREFIX."channels order by cat_name asc limit 0,10000");
  296. if($categories) {
  297. foreach ($categories as $cat) {
  298. echo'<option value="'.intval($cat->id).'">'.stripslashes($cat->name).'</option>';
  299. }
  300. } else {
  301. echo'<option value="">'._lang("No categories").'</option>';
  302. }
  303. echo '</select>
  304. </div>
  305. </div>';
  306. ?>
  307. <div class="control-group">
  308. <label class="control-label">Grab video as remote</label>
  309. <div class="controls">
  310. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="1"> YES </label>
  311. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="0" checked>NO</label>
  312. <span class="help-block">Grab direct link to mp4 (BETA). </span>
  313.  
  314. </div>
  315. </div>
  316. <div class="control-group">
  317. <label class="control-label">Autopush</label>
  318. <div class="controls">
  319. <label class="radio inline"><input type="radio" name="auto" class="styled" value="1"> YES </label>
  320. <label class="radio inline"><input type="radio" name="auto" class="styled" value="0" checked>NO</label>
  321. </div>
  322. </div>
  323. <div class="control-group">
  324. <label class="control-label">Allow duplicates</label>
  325. <div class="controls">
  326. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="1"> YES </label>
  327. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="0" checked>NO</label>
  328. <span class="help-block">If set to NO it will search if video is already in the dabase and skip it. </span>
  329.  
  330. </div>
  331. </div>
  332. <div class="control-group">
  333. <label class="control-label">Advanced settings</label>
  334. <div class="controls">
  335. <div class="row-fluid">
  336. <div class="span4">
  337. <input class="span12" name="sleeppush" type="text" value="2"><span class="help-block">Seconds to sleep before push </span>
  338. </div>
  339. <div class="span4">
  340. <input class="span12" name="sleepvideos" type="text" value="0"><span class="help-block k align-center">Seconds to sleep between videos import</span>
  341. </div>
  342. <div class="span4">
  343. <input class="span12" name="endpage" type="text" value="25"><span class="help-block k align-right">Which page to end push</span>
  344. </div>
  345. </div>
  346. </div>
  347. </div>
  348. <div class="control-group">
  349. <button type="submit" class="pull-right btn btn-success">Start import</button>
  350.  
  351. </div>
  352. </form>
  353. </div>
  354. </div>
  355. <div class="tab-pane" id="category">
  356. <div class="row-fluid">
  357. <form class="form-horizontal styled" action="<?php echo admin_url('redtube');?>" enctype="multipart/form-data" method="post">
  358. <i>Import videos from a specific Redtube category </i>
  359. <input type="hidden" name="action" class="hide" value="category">
  360. <div class="control-group">
  361. <label class="control-label"><i class="icon-list"></i>Redtube category</label>
  362. <div class="controls">
  363. <?php
  364. echo '<select data-placeholder="'._lang("Redtube category:").'" name="redchannel" id="clear-results" class="select validate[required]" tabindex="2">';
  365. $redcats = $Vibe->getAllCats();
  366. foreach ($redcats['categories'] as $redcat) {
  367. echo '<option value="'.$redcat['category'].'" />'.ucfirst($redcat['category']).' </option>';
  368. }
  369. ?>
  370. </select>
  371. </div>
  372. </div>
  373. <?php
  374. echo '<div class="control-group">
  375. <label class="control-label">'._lang("Category:").'</label>
  376. <div class="controls">
  377. <select data-placeholder="'._lang("Choose a category:").'" name="categ" id="clear-results" class="select validate[required]" tabindex="2">
  378. ';
  379. $categories = $db->get_results("SELECT cat_id as id, cat_name as name FROM ".DB_PREFIX."channels order by cat_name asc limit 0,10000");
  380. if($categories) {
  381. foreach ($categories as $cat) {
  382. echo'<option value="'.intval($cat->id).'">'.stripslashes($cat->name).'</option>';
  383. }
  384. } else {
  385. echo'<option value="">'._lang("No categories").'</option>';
  386. }
  387. echo '</select>
  388. </div>
  389. </div>';
  390. ?>
  391. <div class="control-group">
  392. <label class="control-label">Grab video as remote</label>
  393. <div class="controls">
  394. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="1"> YES </label>
  395. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="0" checked>NO</label>
  396. <span class="help-block">Grab direct link to mp4 (BETA). </span>
  397.  
  398. </div>
  399. </div>
  400. <div class="control-group">
  401. <label class="control-label">Autopush</label>
  402. <div class="controls">
  403. <label class="radio inline"><input type="radio" name="auto" class="styled" value="1"> YES </label>
  404. <label class="radio inline"><input type="radio" name="auto" class="styled" value="0" checked>NO</label>
  405. </div>
  406. </div>
  407. <div class="control-group">
  408. <label class="control-label">Allow duplicates</label>
  409. <div class="controls">
  410. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="1"> YES </label>
  411. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="0" checked>NO</label>
  412. <span class="help-block">If set to NO it will search if video is already in the dabase and skip it. </span>
  413.  
  414. </div>
  415. </div>
  416. <div class="control-group">
  417. <label class="control-label">Advanced settings</label>
  418. <div class="controls">
  419. <div class="row-fluid">
  420. <div class="span4">
  421. <input class="span12" name="sleeppush" type="text" value="3"><span class="help-block">Seconds to sleep before push </span>
  422. </div>
  423. <div class="span4">
  424. <input class="span12" name="sleepvideos" type="text" value="0"><span class="help-block k align-center">Seconds to sleep between videos import</span>
  425. </div>
  426. <div class="span4">
  427. <input class="span12" name="endpage" type="text" value="25"><span class="help-block k align-right">Which page to end push </span>
  428. </div>
  429. </div>
  430. </div>
  431. </div>
  432. <div class="control-group">
  433. <button type="submit" class="pull-right btn btn-success">Start import</button>
  434.  
  435. </div>
  436. </form>
  437. </div>
  438. </div>
  439. <div class="tab-pane" id="user">
  440. <div class="row-fluid">
  441. <form class="form-horizontal styled" action="<?php echo admin_url('redtube');?>" enctype="multipart/form-data" method="post">
  442. <i>Import videos based on pornstar </i>
  443. <input type="hidden" name="action" class="hide" value="pornstar">
  444. <div class="control-group">
  445. <label class="control-label"><i class="icon-user"></i>Pornstar</label>
  446. <div class="controls">
  447. <?php
  448. echo '<select data-placeholder="'._lang("Choose a pornstar:").'" name="pornstar" id="clear-results" class="select validate[required]" tabindex="2">
  449. ';
  450. $stars = $Vibe->getAllStars();
  451. foreach ($stars['stars'] as $starlet) {
  452. echo '<option value="'.$starlet['star']['star_name'].'" />'.$starlet['star']['star_name'].' </option>';
  453. }
  454. unset($stars);
  455. unset($starlet);
  456. echo '</select>';
  457. ?>
  458. </div>
  459. </div>
  460. <?php
  461. echo '<div class="control-group">
  462. <label class="control-label">'._lang("Category:").'</label>
  463. <div class="controls">
  464. <select data-placeholder="'._lang("Choose a category:").'" name="categ" id="clear-results" class="select validate[required]" tabindex="2">
  465. ';
  466. $categories = $db->get_results("SELECT cat_id as id, cat_name as name FROM ".DB_PREFIX."channels order by cat_name asc limit 0,10000");
  467. if($categories) {
  468. foreach ($categories as $cat) {
  469. echo'<option value="'.intval($cat->id).'">'.stripslashes($cat->name).'</option>';
  470. }
  471. } else {
  472. echo'<option value="">'._lang("No categories").'</option>';
  473. }
  474. echo '</select>
  475. </div>
  476. </div>';
  477. ?>
  478. <div class="control-group">
  479. <label class="control-label">Grab video as remote</label>
  480. <div class="controls">
  481. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="1"> YES </label>
  482. <label class="radio inline"><input type="radio" name="mp4" class="styled" value="0" checked>NO</label>
  483. <span class="help-block">Grab direct link to mp4 (BETA). </span>
  484.  
  485. </div>
  486. </div>
  487. <div class="control-group">
  488. <label class="control-label">Autopush</label>
  489. <div class="controls">
  490. <label class="radio inline"><input type="radio" name="auto" class="styled" value="1"> YES </label>
  491. <label class="radio inline"><input type="radio" name="auto" class="styled" value="0" checked>NO</label>
  492. </div>
  493. </div>
  494. <div class="control-group">
  495. <label class="control-label">Allow duplicates</label>
  496. <div class="controls">
  497. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="1"> YES </label>
  498. <label class="radio inline"><input type="radio" name="allowduplicates" class="styled" value="0" checked>NO</label>
  499. <span class="help-block">If set to NO it will search if video is already in the dabase and skip it. </span>
  500.  
  501. </div>
  502. </div>
  503. <div class="control-group">
  504. <label class="control-label">Advanced settings</label>
  505. <div class="controls">
  506. <div class="row-fluid">
  507. <div class="span4">
  508. <input class="span12" name="sleeppush" type="text" value="3"><span class="help-block">Seconds to sleep before push </span>
  509. </div>
  510. <div class="span4">
  511. <input class="span12" name="sleepvideos" type="text" value="0"><span class="help-block k align-center">Seconds to sleep between videos import</span>
  512. </div>
  513. <div class="span4">
  514. <input class="span12" name="endpage" type="text" value="25"><span class="help-block k align-right">Which page to end push </span>
  515. </div>
  516. </div>
  517. </div>
  518. </div>
  519. <div class="control-group">
  520. <button type="submit" class="pull-right btn btn-success">Start import</button>
  521.  
  522. </div>
  523. </form>
  524. </div>
  525. </div>
  526.  
  527.  
  528.  
  529. <?php } ?>
Add Comment
Please, Sign In to add comment