<commit_before><?
/*
 * INDEX PAGE : HOME
 */

// Define the SEO variables for this page
$this_seo_title = $this_seo_title; //Home | '.$this_seo_title;
$this_seo_description = 'Welcome to the Mega Man RPG Prototype, where you can battle your way through more than sixteen robot masters in classic RPG style with either Dr. Light and Mega Man or Dr. Wily and Proto Man!';

// Define the Open Graph variables for this page
//$this_graph_data['title'] = 'Mega Man RPG Prototype';
$this_graph_data['description'] = 'Welcome to the Mega Man RPG Prototype, where you can battle your way through more than sixteen robot masters in classic RPG style with either Dr. Light and Mega Man or Dr. Wily and Proto Man!';
//$this_graph_data['image'] = MMRPG_CONFIG_ROOTURL.'images/assets/mmrpg-prototype-logo.png';
//$this_graph_data['type'] = 'website';

// Define the MARKUP variables for this page
$this_markup_header = 'Mega Man RPG Prototype <span class="count">( Last Updated '.preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})-([0-9]{2,4})#', '$1/$2/$3', MMRPG_CONFIG_CACHE_DATE).' )</span>';

// Start generating the page markup
ob_start();
?>
<h2 class="subheader field_type_<?= MMRPG_SETTINGS_CURRENT_FIELDTYPE ?>">
    <span class="subheader_typewrapper">What is the Mega Man RPG Prototype?</span>
</h2>
<div class="subbody" style="margin-bottom: 2px;">
    <?/*
    <p class="text" style="font-size: 12px; line-height: 18px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: #66FF51; border-bottom: 1px dotted #292929;">
        Notice : Code has been optimized and memory leaks should now be fixed, so the MMRPG Prototype is finally able to come back online! Everything <em>should</em> be back to normal now and hopefully a lot more stable, but if you find any new bugs please <a href="community/bugs/0/new/" style="color: #66FF51;">post them in a new topic</a> on the forum to help us debug and fix any lingering issues. Apologies for the inconvenience and thank you once again for playing and for your support!
    </p>
    <p class="text" style="font-size: 12px; line-height: 18px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: #EC3131; border-bottom: 1px dotted #292929;">
        Notice : Due to excessive server load and memory exhaustion the prototype has been taken offline again.  I really tried my best to optimize the code and comply with my web host's requests for a less resource-intensive script but it may be beyond my abilities.  It feels like the more I try to fix it the worse it gets, and I unfortunately do not have any idea when these issues will be resolved.  Please discuss the outage on the forums if you need to, and know that I am very sorry for all the trouble and seemingly wasted time on this project.  I will update the website when I have more information on the project's future, but for now consider the game on hiatus.  :(
    </p>
    <p class="text" style="font-size: 16px; line-height: 22px; padding: 4px 0 12px; letter-spacing: 1px; text-align: justify; color: #ECA931; border-bottom: 1px dotted #292929;">
        (!) The prototype is currently offline and in the process of moving to a new server.  We should be back online in a few days and you'll be able to pick up right where you left off.  Thank you for your patience, and see you on the other side! :D
    </p>
    <p class="text" style="font-size: 16px; line-height: 22px; padding: 4px 0 12px; letter-spacing: 1px; text-align: justify; color: #51B618; border-bottom: 1px dotted #292929;">
        (!) The prototype is back online and (as far as we can tell) the process of moving to a new server has been completed!  All save files and posts have been migrated over to the new hosting and you'll be able to pick up right where you left off.  Thank you for your patience, and please <a href="community/bugs/" style="color: #51B618; text-decoration: none;">let us know</a> if we broke anything in the move! :P
    </p>
    */?>
    <p class="text" style="font-size: 14px; line-height: 23px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: rgb(157, 220, 255);">
        After a freak accident Dr. Light and Mega Man find themselves digitized, separated from Dr. Cossack, and trapped in a prototype battle simulator!
        The two heroes are forced to fight for their lives as they search for their friend and a way back to the real world!
        Challenge powered-up copies of past robots to battle and download their data to become stronger and escape from the system!
    </p>
</div>
<div class="subbody" style="position: relative; ">
    <? /*
    <div id="youtube_playlist" style="">
        <iframe width="356" height="200" src="//www.youtube.com/embed/videoseries?list=PL2yhjPks7HSo_vJNq02ls_DwhmrA2pmU5&index=<?= mt_rand(1, 9) ?>" frameborder="0" allowfullscreen></iframe>
    </div>
    */ ?>
    <?= mmrpg_website_text_float_robot_markup('mega-man', 'left', '04') ?>
    <p class="text">
        The <strong>Mega Man RPG Prototype</strong> is an ongoing fangame project with the goal of creating a progress-saving, no-download, no-install, cross-platform, browser-based Mega Man RPG (or what some would call a <a href="http://www.pbbg.org/" target="_blank" rel="related">PBBG</a>) that combines the addictive collection and battle mechanics of the Pokémon series with the beloved robots and special weapons of the classic Mega Man series. Fight your way through more than fifty different robot masters in a turn-based battle system reminiscent of both play-by-post forum games and early 8-bit role-playing games.
    </p>
    <?= mmrpg_website_text_float_robot_markup('bass', 'right', '04') ?>
    <p class="text">
        This project is a labour of love and a massive work-in-progress, but you can always <a href="prototype/">play the game online</a> by clicking the link in the menu above.  Create a new account to gain access to the full game with save functionality, 40 unique battle fields, over 1000 dynamically generated missions, 3 playable characters, 50+ unlockable robots, 100+ abilities, and tons of interesting features and mechanics. Additional information about the development of the game can be found on the <a href="about/">About</a>, <a href="credits/">Credits</a>, and <a href="database/">Database</a> pages, and discussions about the game can be found on the <a href="community/">Community</a> pages.  If you have any feedback or questions about the project please <a href="contact/">contact me</a> for more information.
    </p>
    <?/*
    <div id="facebook_badge" style="position: absolute; top: 7px; right: 7px; width: 120px; height: 206px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: hidden;">
        <a href="https://www.facebook.com/megamanrpgprototype" target="_TOP" title="Mega Man RPG Prototype"><img src="https://badge.facebook.com/badge/493570630708693.2157.45298751.png" style="border: 0px;  border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: hidden;" /></a>
        <span style="display: block; position: relative; top: -212px; width: 120px; height: 212px; box-shadow: inset 1px 1px 5px #000000; pointer-events: none;">&nbsp;</span>
    </div>
    */?>
</div>

<?

// Require the leaderboard data for display
$this_display_limit_default = 3;
require(MMRPG_CONFIG_ROOTDIR.'includes/leaderboard.php');

?>
<h2 class="subheader field_type_<?= MMRPG_SETTINGS_CURRENT_FIELDTYPE ?>">
    <span class="subheader_typewrapper">
        <a class="inline_link" href="leaderboard/">Prototype Leaderboard</a>
        <span class="count">( <?= (!empty($this_leaderboard_count) ? ($this_leaderboard_count == 1 ? '1 Player' : $this_leaderboard_count.' Players') : '0 Players').($this_leaderboard_online_count > 0 ? ' <span style="opacity: 0.25;">|</span> <span style="text-shadow: 0 0 5px lime;">'.$this_leaderboard_online_count.' Online</span>' : '') ?> )</span>
        <a class="float_link" href="leaderboard/">More Players &raquo;</a>
    </span>
</h2>
<div class="leaderboard" style="margin-bottom: 12px; overflow: visible;">
    <div class="wrapper" style="margin-bottom: 0; overflow: visible;">
    <?

    // Define the leaderboard displauy limit
    $leaderboard_display_limit = $this_display_limit_default;
    // Print out the generated leaderboard markup
    $displayed = 0;
    if (!empty($this_leaderboard_markup)){
        foreach ($this_leaderboard_markup AS $key => $leaderboard_markup){
            // If there was not markup in this slot, continue
            if (empty($leaderboard_markup)){ continue; }
            // Display this leaderboard image's markup
            echo $leaderboard_markup;
            $displayed++;
            // If over the display limit we can break
            if ($displayed >= $this_display_limit_default){ break; }
        }
        unset($this_leaderboard_markup);
    }

    ?>
    </div>
</div><commit_msg>Fixed animation overflow issue on home page<commit_after><?
/*
 * INDEX PAGE : HOME
 */

// Define the SEO variables for this page
$this_seo_title = $this_seo_title; //Home | '.$this_seo_title;
$this_seo_description = 'Welcome to the Mega Man RPG Prototype, where you can battle your way through more than sixteen robot masters in classic RPG style with either Dr. Light and Mega Man or Dr. Wily and Proto Man!';

// Define the Open Graph variables for this page
//$this_graph_data['title'] = 'Mega Man RPG Prototype';
$this_graph_data['description'] = 'Welcome to the Mega Man RPG Prototype, where you can battle your way through more than sixteen robot masters in classic RPG style with either Dr. Light and Mega Man or Dr. Wily and Proto Man!';
//$this_graph_data['image'] = MMRPG_CONFIG_ROOTURL.'images/assets/mmrpg-prototype-logo.png';
//$this_graph_data['type'] = 'website';

// Define the MARKUP variables for this page
$this_markup_header = 'Mega Man RPG Prototype <span class="count">( Last Updated '.preg_replace('#([0-9]{4})([0-9]{2})([0-9]{2})-([0-9]{2,4})#', '$1/$2/$3', MMRPG_CONFIG_CACHE_DATE).' )</span>';

// Start generating the page markup
ob_start();
?>
<h2 class="subheader field_type_<?= MMRPG_SETTINGS_CURRENT_FIELDTYPE ?>">
    <span class="subheader_typewrapper">What is the Mega Man RPG Prototype?</span>
</h2>
<div class="subbody" style="margin-bottom: 2px;">
    <?/*
    <p class="text" style="font-size: 12px; line-height: 18px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: #66FF51; border-bottom: 1px dotted #292929;">
        Notice : Code has been optimized and memory leaks should now be fixed, so the MMRPG Prototype is finally able to come back online! Everything <em>should</em> be back to normal now and hopefully a lot more stable, but if you find any new bugs please <a href="community/bugs/0/new/" style="color: #66FF51;">post them in a new topic</a> on the forum to help us debug and fix any lingering issues. Apologies for the inconvenience and thank you once again for playing and for your support!
    </p>
    <p class="text" style="font-size: 12px; line-height: 18px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: #EC3131; border-bottom: 1px dotted #292929;">
        Notice : Due to excessive server load and memory exhaustion the prototype has been taken offline again.  I really tried my best to optimize the code and comply with my web host's requests for a less resource-intensive script but it may be beyond my abilities.  It feels like the more I try to fix it the worse it gets, and I unfortunately do not have any idea when these issues will be resolved.  Please discuss the outage on the forums if you need to, and know that I am very sorry for all the trouble and seemingly wasted time on this project.  I will update the website when I have more information on the project's future, but for now consider the game on hiatus.  :(
    </p>
    <p class="text" style="font-size: 16px; line-height: 22px; padding: 4px 0 12px; letter-spacing: 1px; text-align: justify; color: #ECA931; border-bottom: 1px dotted #292929;">
        (!) The prototype is currently offline and in the process of moving to a new server.  We should be back online in a few days and you'll be able to pick up right where you left off.  Thank you for your patience, and see you on the other side! :D
    </p>
    <p class="text" style="font-size: 16px; line-height: 22px; padding: 4px 0 12px; letter-spacing: 1px; text-align: justify; color: #51B618; border-bottom: 1px dotted #292929;">
        (!) The prototype is back online and (as far as we can tell) the process of moving to a new server has been completed!  All save files and posts have been migrated over to the new hosting and you'll be able to pick up right where you left off.  Thank you for your patience, and please <a href="community/bugs/" style="color: #51B618; text-decoration: none;">let us know</a> if we broke anything in the move! :P
    </p>
    */?>
    <p class="text" style="font-size: 14px; line-height: 23px; padding: 2px 0 6px; letter-spacing: 1px; text-align: justify; color: rgb(157, 220, 255);">
        After a freak accident Dr. Light and Mega Man find themselves digitized, separated from Dr. Cossack, and trapped in a prototype battle simulator!
        The two heroes are forced to fight for their lives as they search for their friend and a way back to the real world!
        Challenge powered-up copies of past robots to battle and download their data to become stronger and escape from the system!
    </p>
</div>
<div class="subbody" style="position: relative; ">
    <? /*
    <div id="youtube_playlist" style="">
        <iframe width="356" height="200" src="//www.youtube.com/embed/videoseries?list=PL2yhjPks7HSo_vJNq02ls_DwhmrA2pmU5&index=<?= mt_rand(1, 9) ?>" frameborder="0" allowfullscreen></iframe>
    </div>
    */ ?>
    <?= mmrpg_website_text_float_robot_markup('mega-man', 'left', '04') ?>
    <p class="text">
        The <strong>Mega Man RPG Prototype</strong> is an ongoing fangame project with the goal of creating a progress-saving, no-download, no-install, cross-platform, browser-based Mega Man RPG (or what some would call a <a href="http://www.pbbg.org/" target="_blank" rel="related">PBBG</a>) that combines the addictive collection and battle mechanics of the Pokémon series with the beloved robots and special weapons of the classic Mega Man series. Fight your way through more than fifty different robot masters in a turn-based battle system reminiscent of both play-by-post forum games and early 8-bit role-playing games.
    </p>
    <?= mmrpg_website_text_float_robot_markup('bass', 'right', '04') ?>
    <p class="text">
        This project is a labour of love and a massive work-in-progress, but you can always <a href="prototype/">play the game online</a> by clicking the link in the menu above.  Create a new account to gain access to the full game with save functionality, 40 unique battle fields, over 1000 dynamically generated missions, 3 playable characters, 50+ unlockable robots, 100+ abilities, and tons of interesting features and mechanics. Additional information about the development of the game can be found on the <a href="about/">About</a>, <a href="credits/">Credits</a>, and <a href="database/">Database</a> pages, and discussions about the game can be found on the <a href="community/">Community</a> pages.  If you have any feedback or questions about the project please <a href="contact/">contact me</a> for more information.
    </p>
    <?/*
    <div id="facebook_badge" style="position: absolute; top: 7px; right: 7px; width: 120px; height: 206px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: hidden;">
        <a href="https://www.facebook.com/megamanrpgprototype" target="_TOP" title="Mega Man RPG Prototype"><img src="https://badge.facebook.com/badge/493570630708693.2157.45298751.png" style="border: 0px;  border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: hidden;" /></a>
        <span style="display: block; position: relative; top: -212px; width: 120px; height: 212px; box-shadow: inset 1px 1px 5px #000000; pointer-events: none;">&nbsp;</span>
    </div>
    */?>
</div>

<?

// Require the leaderboard data for display
$this_display_limit_default = 3;
require(MMRPG_CONFIG_ROOTDIR.'includes/leaderboard.php');

?>
<h2 class="subheader field_type_<?= MMRPG_SETTINGS_CURRENT_FIELDTYPE ?>">
    <span class="subheader_typewrapper">
        <a class="inline_link" href="leaderboard/">Prototype Leaderboard</a>
        <span class="count">( <?= (!empty($this_leaderboard_count) ? ($this_leaderboard_count == 1 ? '1 Player' : $this_leaderboard_count.' Players') : '0 Players').($this_leaderboard_online_count > 0 ? ' <span style="opacity: 0.25;">|</span> <span style="text-shadow: 0 0 5px lime;">'.$this_leaderboard_online_count.' Online</span>' : '') ?> )</span>
        <a class="float_link" href="leaderboard/">More Players &raquo;</a>
    </span>
</h2>
<div class="leaderboard" style="margin-bottom: 12px; overflow: visible;">
    <div class="wrapper" style="padding-top: 40px; margin-top: -40px; margin-bottom: 0; overflow: hidden;">
    <?

    // Define the leaderboard displauy limit
    $leaderboard_display_limit = $this_display_limit_default;
    // Print out the generated leaderboard markup
    $displayed = 0;
    if (!empty($this_leaderboard_markup)){
        foreach ($this_leaderboard_markup AS $key => $leaderboard_markup){
            // If there was not markup in this slot, continue
            if (empty($leaderboard_markup)){ continue; }
            // Display this leaderboard image's markup
            echo $leaderboard_markup;
            $displayed++;
            // If over the display limit we can break
            if ($displayed >= $this_display_limit_default){ break; }
        }
        unset($this_leaderboard_markup);
    }

    ?>
    </div>
</div>
{'fraction_non_alphanumeric': 0.11772922836229535, 'fraction_numerical': 0.02626138458959602, 'mean_word_length': 4.107876712328767, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 183, 'https://': 4, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '294991', 'n_tokens_mistral': 5786, 'n_tokens_neox': 5214, 'n_words': 2111}