Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web page needs an update #2445

Open
UselessGuru opened this issue Nov 13, 2019 · 1 comment
Open

Web page needs an update #2445

UselessGuru opened this issue Nov 13, 2019 · 1 comment
Assignees

Comments

@UselessGuru
Copy link
Contributor

https://multipoolminer.io/algorithms is outdated.

@aaronsace
Copy link
Member

I assume the same for miners...

@UselessGuru If you put the info in the readme 'md' file (or a seperate 'md' file) then this can be modified on the webserver:

<!DOCTYPE html>
<html lang="en">

  <head>
	<?php include ("thingsinhead.php"); ?>
    <title>MultiPoolMiner - the best miner helper software</title>
  </head>

  <body>

	<?php include ("menu.php"); ?>
    <header class="masthead">
      <div class="overlay">
        <div class="container">
          <h2 class="display-4 text-white"><img src="images/mpm_logo_c.png" width="156" alt="MultiPoolMiner logo" /><br />MultiPoolMiner</h2>
          <h3 class="display-5 text-white">Documentation</h3>
        </div>
      </div>
    </header>

    <section>
      <div class="container" style="word-wrap: break-word;">
          	<?php
				include ('Parsedown.php');
				$Parsedown = new Parsedown();
				$readmetxt = file_get_contents('https://raw.githubusercontent.com/MultiPoolMiner/MultiPoolMiner/master/README.md'); 
				# Truncate Readme to exclude title and feature summary
				$find = '## INSTALLATION';
				$startpos = strpos($readmetxt, $find);
				$readme = substr($readmetxt, $startpos);
				# Display from Installation only + version info
				$findver = 'updated on';
				$findverend = '- latest version can be found here: https://github.com/MultiPoolMiner/MultiPoolMiner/blob/master/README.txt';
				$verpos = strpos($readmetxt, $findver);
				$verlength = strpos($readmetxt, $findverend) - $verpos;
				echo '<br /><p><em>last '.substr($readmetxt, $verpos, $verlength).'</em></p>';
				echo $Parsedown->text($readme).'<br />';
			?>
      </div>
    </section>

	<?php include ("footer.php"); ?>

  </body>

</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants