示例#1
0
        echo "N";
    }
    ?>
	    <td><?php 
    echo $stats->workerhashrate($worker["username"]);
    ?>
</td>
		<td><input type="submit" name="act" value="Update Worker"></td>
		<td><input type="submit" name="act" value="Delete Worker"/></td>
	</tr>
</form>
	<?php 
}
?>
</table>
<form action="/accountdetails.php" method="post"><input type="hidden"
	name="act" value="addWorker"><!--  AuthPin:<input type="password"
	name="authPin" size="4" maxlength="4"><br /> -->
<?php 
echo antiXss($userInfo->username);
?>
.<input type="text" name="username"
	value="user" size="10" maxlength="20"> &middot; <input type="text"
	name="pass" value="pass" size="10" maxlength="20" autocomplete="off"> <input type="submit"
	value="Add worker"></form>

<br />
<br />

<?php 
include "includes/footer.php";
示例#2
0
?>
"><br/>
		Header Slogan <input type="text" name="headerSlogan" value="<?php 
echo antiXss($settings->getsetting("slogan"));
?>
"><br/>
		Percentage Fee <input type="text" name="percentageFee" size="10" maxlength="10" value="<?php 
echo antiXss($settings->getsetting("sitepercent"));
?>
">%<br/>
		Transaction Fee <input type="text" name="transactionFee" size="10" maxlength="10" value="<?php 
echo antiXss($settings->getsetting("sitetxfee"));
?>
" /> BTC<br/>
		Fee Address <input type="text" name="paymentAddress" size="60" value="<?php 
echo antiXss($settings->getsetting("sitepayoutaddress"));
?>
"><br/>
		Default Reward Type <select name="rewardType">
		<option value="0" <?php 
if ($settings->getsetting("siterewardtype") == 0) {
    echo "selected";
}
?>
>Last N Shares</option>
		<option value="1" <?php 
if ($settings->getsetting("siterewardtype") == 1) {
    echo "selected";
}
?>
>Proportional</option>
示例#3
0
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
// 	  BTC Donations: 163Pv9cUDJTNUbadV4HMRQSSj3ipwLURRc
//Include site functions
include "includes/requiredFunctions.php";
setcookie($cookieName, 0, $timeoutStamp, $cookiePath, $cookieDomain);
?>
<html>
  <head>
	<title><?php 
echo antiXss(outputPageTitle());
?>
 </title>
	<link rel="stylesheet" href="/css/mainstyle.css" type="text/css" />
	<meta http-equiv="refresh" content="2;url=/">
  </head>
  <body>
	<div id="pagecontent">
		<h1>You have been logged out<br/>
		<a href="/">Click here if you continue to see this message</a></h1>
	</div>
  </body>
</html>
示例#4
0
            }
        }
    } else {
        $outputMessage = "User name dosent exist!";
    }
}
if (!isset($outputMessage)) {
    $outputMessage = "User name dosent exist!";
}
?>
<html>
  <head>
	<title><?php 
echo antiXss(outputPageTitle());
?>
 </title>
	<link rel="stylesheet" href="/css/mainstyle.css" type="text/css" />
	<meta http-equiv="refresh" content="2;url=/">
  </head>
  <body>
	<div id="pagecontent">
		<h1><?php 
echo antiXss($outputMessage);
?>
<br/>
		<a href="/">Click here if you continue to see this message</a></h1>
	</div>
  </body>
</html>

示例#5
0
            //If not, create new user
            if (!$testUserQ || mysql_num_rows($testUserQ) == 0) {
                $result = mysql_query("INSERT INTO webUsers (admin, username, pass, email, emailAuthPin, secret, loggedIp, sessionTimeoutStamp, accountLocked, accountFailedAttempts, pin, api_key) \n\t\t\t\t\t\t\t\t\t\tVALUES (0, '{$username}', '" . hash("sha256", $pass . $salt) . "', '{$email}', '{$emailAuthPin}', '{$secret}', '0', '0', '0', '0', '" . hash("sha256", $authPin . $salt) . "','{$apikey}')");
                $returnId = mysql_insert_id();
                mysql_query("INSERT INTO accountBalance (userId, balance) VALUES ({$returnId},'0')");
                mysql_query("INSERT INTO pool_worker (associatedUserId, username, password) VALUES ({$returnId},'" . $username . ".1','x')");
                $goodMessage = "Your account has been successfully created. Please login to continue.";
            } else {
                $returnError = "Account already exists. Please choose a different username.";
            }
        }
    }
}
//Display Error and Good Messages(If Any)
echo "<span class=\"goodMessage\">" . antiXss($goodMessage) . "</span><br/>";
echo "<span class=\"returnMessage\">" . antiXss($returnError) . "</span>";
?>
<form action="/register.php" method="post">
	<h2>Join our pool</h2>						
	<input type="hidden" name="act" value="attemptRegister">
	<table border="0">
	<tr><td>Username:</td><td><input type="text" name="user" value="" size="15" maxlength="20"></td></tr>
	<tr><td>Password:</td><td><input type="password" name="pass" value="" size="15" maxlength="20"></td></tr>
	<tr><td>Repeat Password:</td><td><input type="password" name="pass2" value="" size="15" maxlength="20"></td></tr>
	<tr><td>Email:</td><td><input type="text" name="email" value="" size="15"></td></tr>
	<tr><td>Email Repeat:</td><td><input type="text" name="email2" value="" size="15"></td></tr>
	<tr><td>PIN:</td><td><input type="password" name="authPin" value="" size="4" maxlength="4"> (4 digit number "<b>Remember this pin</b>")</td></tr>
	</table>
	<input type="submit" value="Attempt Register">
</form>
<?php 
示例#6
0
    ?>

<h1>Password Recovery</h1> <br/>
<form action="/lostpassword.php" method="post" name="resetForm">
<input type="hidden" name="act" value="reset"/>
Username: <input type="text" name="pwrUsername"><br/>
<input type="submit" name="pwrSubmit" value="Send Recovery Email" >
</form>

<?php 
} else {
    ?>
	<h1>Password Recovery</h1> <br/>
	<form action="/lostpassword.php" method="post" name="resetForm">
	<input type="hidden" name="act" value="resetpass"/>
	<input type="hidden" name="auth" value="<?php 
    echo antiXss($_GET["auth"]);
    ?>
"/>
	<input type="hidden" name="pwrUsername" value="<?php 
    echo antiXss($_GET["username"]);
    ?>
"/>
	New Password: <input type="password" name="pass" value="" size="15" maxlength="20"><br/>
	Repeat Password: <input type="password" name="pass2" value="" size="15" maxlength="20"><br/>

	<input type="submit" name="pwrSubmit" value="Reset Password" >
</form>
<?php 
}
include "includes/footer.php";
示例#7
0
<h1>Welcome to SimpleCoin.us</h1> <br/>

If you are a new user, please create an account. Then click "Getting Started", and follow the instructions on that page.<br/><br/>

<?php 
echo $poolname;
?>
 is run completely by opensource software. Even this website is opensource!<br/><br/>

We currently have a fee of <?php 
echo antiXss($settings->getsetting("sitepercent"));
?>
%, 
a transaction fee of <?php 
echo antiXss($settings->getsetting("sitetxfee"));
?>
 BTC per transaction and use 
<?php 
if ($settings->getsetting("siterewardtype") == 0) {
    echo "Last N Shares (1/2 Difficulty)";
} else {
    if ($settings->getsetting("siterewardtype") == 2) {
        echo "Max Pay per share";
    } else {
        echo "proportional";
    }
}
?>
 round scoring to ensure payout of your hard work.<br/><br/>