Guest User

Untitled

a guest
Dec 14th, 2010
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. body
  5. {
  6. background-color:#66AACC;
  7. }
  8. .header{
  9. color: #FFFFFF;
  10. height: 92px;
  11. }
  12. .content{
  13. background-color:#ebebeb;
  14. color: #000000;
  15. -moz-border-radius: 15px;
  16. -webkit-border-radius: 15px;
  17. width: 80%;
  18. border: 2px solid #7e7e7e;
  19. padding: 15px;
  20. }
  21. </style>
  22.  
  23. <title>AS - Post Generator</title>
  24. </head>
  25. <body>
  26. <?php
  27. include_once 'imdb.class.php';
  28. ?>
  29. <div class="header" align="center">
  30. <h1>AdminSpot Post Generator</h1>
  31. </div>
  32. <div align="center">
  33. <div class="content">
  34. <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  35. Movie Title - <input type="text" name="title"><br>
  36. Movie Screen Shots - 1) <input type="text" name="ms1"> 2) <input type="text" name="ms2"> 3) <input type="text" name="ms3"> <br>
  37. Download Links<br />
  38. RS Download Links:<br>
  39. <textarea name="rapidshare"></textarea><br><br>
  40. MU Download Links:<br>
  41. <textarea name="megaupload"></textarea><br><br>
  42. FS Download Links:<br>
  43. <textarea name="fileserve"></textarea><br><br>
  44. Password/Extra Info<br>
  45. <textarea name="addition"></textarea>
  46. <br /><br />
  47. <input type="submit" value="Generate!">
  48. </form>
  49.  
  50.  
  51.  
  52.  
  53. <?PHP
  54. if (!empty($_POST)) {
  55. $title = $_POST['title'];
  56. ?>
  57.  
  58. <textarea rows="20" cols="60">
  59. [b]<?php echo $title ?>[/b]
  60. <?PHP
  61. $oIMDB = new IMDB($title);
  62. if ($oIMDB->isReady) {
  63. // echo '<p>Budget: <b>' . $oIMDB->getBudget() . '</b></p>';
  64. // echo '<p>Cast (limited to 5): <b>' . $oIMDB->getCast(5) . '</b></p>';
  65. // echo '<p>Cast as URL (default limited to 20): <b>' . $oIMDB->getCastAsUrl() . '</b></p>';
  66. // echo '<p>Cast and Character (limited to 10): <b>' . $oIMDB->getCastAndCharacter(10) . '</b></p>';
  67. // echo '<p>Cast and Character as URL (limited to 10): <b>' . $oIMDB->getCastAndCharacterAsUrl(10) . '</b></p>';
  68. // echo '<p>Countries as URL: <b>' . $oIMDB->getCountryAsUrl() . '</b></p>';
  69. // echo '<p>Countries: <b>' . $oIMDB->getCountry() . '</b></p>';
  70. // echo '<p>Creators as URL: <b>' . $oIMDB->getCreatorAsUrl() . '</b></p>';
  71. // echo '<p>Creators: <b>' . $oIMDB->getCreator() . '</b></p>';
  72. // echo '<p>Directors as URL: <b>' . $oIMDB->getDirectorAsUrl() . '</b></p>';
  73. // echo '<p>Directors: <b>' . $oIMDB->getDirector() . '</b></p>';
  74. // echo '<p>Genres as URL: <b>' . $oIMDB->getGenreAsUrl() . '</b></p>';
  75. // echo '<p>Genres: <b>' . $oIMDB->getGenre() . '</b></p>';
  76. // echo '<p>Languages as URL: <b>' . $oIMDB->getLanguagesAsUrl() . '</b></p>';
  77. // echo '<p>Languages: <b>' . $oIMDB->getLanguages() . '</b></p>';
  78. // echo '<p>Location as URL: <b>' . $oIMDB->getLocationAsUrl() . '</b></p>';
  79. // echo '<p>Location: <b>' . $oIMDB->getLocation() . '</b></p>';
  80. // echo '<p>MPAA: <b>' . $oIMDB->getMpaa() . '</b></p>';
  81. echo '<p>Plot (shortened to 150 chars): <b>' . $oIMDB->getPlot(150) . '</b></p>';
  82. // echo '<p>Poster: <b>' . $oIMDB->getPoster() . '</b></p>';
  83. // echo '<p>Rating: <b>' . $oIMDB->getRating() . '</b></p>';
  84. // echo '<p>Release Date: <b>' . $oIMDB->getReleaseDate() . '</b></p>';
  85. // echo '<p>Runtime: <b>' . $oIMDB->getRuntime() . '</b></p>';
  86. // echo '<p>Seasons: <b>' . $oIMDB->getSeasons() . '</b></p>';
  87. // echo '<p>Tagline: <b>' . $oIMDB->getTagline() . '</b></p>';
  88. // echo '<p>Title: <b>' . $oIMDB->getTitle() . '</b></p>';
  89. // echo '<p>Url: <b><a href="' . $oIMDB->getUrl() . '">' . $oIMDB->getUrl() . '</a></b></p>';
  90. // echo '<p>Votes: <b>' . $oIMDB->getVotes() . '</b></p>';
  91. // echo '<p>Writers as URL: <b>' . $oIMDB->getWriterAsUrl() . '</b></p>';
  92. // echo '<p>Writers: <b>' . $oIMDB->getWriter() . '</b></p>';
  93. // echo '<p>Year: <b>' . $oIMDB->getYear() . '</b></p>';
  94. }
  95. else {
  96. echo '<p>Movie not found!</p>';
  97. }
  98. ?>
  99.  
  100.  
  101. [IMG]<?php echo $_POST['ssbtn']; ?>[/IMG]
  102. [img]<?php echo $_POST['ms1']; ?>[/img]
  103. [img]<?php echo $_POST['ms2']; ?>[/img]
  104. [img]<?php echo $_POST['ms3']; ?>[/img]
  105.  
  106.  
  107. [b]Download:[/b]
  108. [b]Fileserve[/b]
  109. [code]<?php echo $_POST['fileserve']; ?>[/code]
  110.  
  111. [b]Rapidshare[/b]
  112. [code]<?php echo $_POST['rapidshare']; ?>[/code]
  113.  
  114. [b]Megaupload[/b]
  115. [code]<?php echo $_POST['megaupload']; ?>[/code]
  116.  
  117.  
  118. [b]Password[/b]
  119. [quote]<?php echo $_POST['addition']; ?>[/quote]
  120.  
  121.  
  122. </textarea>
  123.  
  124. <?PHP
  125. }
  126. ?>
  127.  
  128. </div>
  129. </div>
  130. <div align="center">
  131. <br />
  132. <a href="http://adminspot.net">AdminSpot.net</a> &#169;
  133. </div>
  134. </body>
  135. </html>
Advertisement
Add Comment
Please, Sign In to add comment