Skip to content

Commit

Permalink
Fix domdomsoft bookmark creator
Browse files Browse the repository at this point in the history
  • Loading branch information
hernantas committed May 13, 2015
1 parent 375dad9 commit b3fd669
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fix.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
$q = $db->Query("select manga_name.*, COUNT(manga_chapter.id) as ch_cnt from manga_name, manga_chapter where manga_name.id=manga_chapter.id_manga group by manga_name.id");

$limit = -1;
echo "<textarea><Bookmarks>\n";
echo "<textarea cols=100 rows=30><Bookmarks>\n";
while ($data = mysql_fetch_array($q))
{
$name = htmlentities(htmlentities($data['name']));
if ($limit == 0) break;
echo " <Bookmark>\n";
echo " <MangaLink>http://mangafox.com/manga/";
echo " <MangaLink>http://www.mangahere.co/manga/";
echo str_replace("&", "_", str_replace(")", "", str_replace("(", "", str_replace(" ", "_", strtolower($data['name'])))));
echo "/</MangaLink>\n";
echo " <OldNumChapters>".$data['ch_cnt']."</OldNumChapters>\n";
echo " <MangaName>".$data['name']."</MangaName>\n";
echo " <MangaName>".$name."</MangaName>\n";
echo " </Bookmark>\n";
$limit--;
}
Expand Down

0 comments on commit b3fd669

Please sign in to comment.