$user = get_user(user_id());
require_user($user);
$messages = array();
// get all of our accounts
global $accounts;
$accounts = user_limits_summary(user_id());
global $account_type;
$account_type = get_wizard_account_type('individual');
require_template("wizard_accounts_individual_securities");
?>

<div class="wizard">

<?php 
require __DIR__ . "/_wizard_accounts.php";
?>

<div class="wizard-buttons">
<a class="button" href="<?php 
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php 
echo ht("< Previous");
?>
</a>
</div>
</div>

<?php 
require_template("wizard_accounts_individual_securities_footer");
page_footer();
Ejemplo n.º 2
0
function page_footer_old()
{
    ?>
  </div>
</div>

<?php 
    require_template("templates_footer");
    ?>

<div id="footer_nav">
  <ul class="footer_nav_list">
    <li><span class="title"><?php 
    echo htmlspecialchars(get_site_config('site_name'));
    ?>
</span>
      <ul>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('index'));
    ?>
"><?php 
    echo ht("About");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('premium'));
    ?>
"><?php 
    echo ht("Get Premium");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(get_site_config('version_history_link'));
    ?>
"><?php 
    echo ht("Release History");
    ?>
</a></li>
        <li><a href="http://openclerk.org" target="_blank">Openclerk.org</a></li>
      </ul>
    </li>
    <li><span class="title"><?php 
    echo ht("Your Account");
    ?>
</span>
      <ul>
        <?php 
    if (user_logged_in()) {
        ?>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('user'));
        ?>
"><?php 
        echo ht("User Profile");
        ?>
</a></li>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('wizard_currencies'));
        ?>
"><?php 
        echo ht("Currency Preferences");
        ?>
</a></li>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('wizard_accounts'));
        ?>
"><?php 
        echo ht("Configure Accounts");
        ?>
</a></li>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('profile'));
        ?>
"><?php 
        echo ht("Your Reports");
        ?>
</a></li>
        <?php 
    } else {
        ?>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('signup'));
        ?>
"><?php 
        echo ht("Signup");
        ?>
</a></li>
        <li><a href="<?php 
        echo htmlspecialchars(url_for('login'));
        ?>
"><?php 
        echo ht("Login");
        ?>
</a></li>
        <?php 
    }
    ?>
      </ul>
    </li>
    <li><span class="title"><?php 
    echo ht("Tools");
    ?>
</span>
      <ul>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('historical'));
    ?>
"><?php 
    echo ht("Historical Data");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('average'));
    ?>
"><?php 
    echo ht("Market Averages");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('calculator'));
    ?>
"><?php 
    echo ht("Calculator");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('api'));
    ?>
"><?php 
    echo ht("API");
    ?>
</a></li>
      </ul>
    </li>
    <li><span class="title"><?php 
    echo ht("Support");
    ?>
</span>
      <ul>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('help'));
    ?>
"><?php 
    echo ht("Help Centre");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(get_site_config('blog_link'));
    ?>
" target="_blank"><?php 
    echo ht("Blog");
    ?>
</a> <span class="new"><?php 
    echo ht("new");
    ?>
</span></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('contact'));
    ?>
"><?php 
    echo ht("Contact Us");
    ?>
</a></li>
        <li><a href="<?php 
    echo htmlspecialchars(url_for('external'));
    ?>
"><?php 
    echo ht("External API Status");
    ?>
</a></li>
      </ul>
    </li>
  </ul>

  <div id="copyright">
    <?php 
    require_template("templates_copyright");
    ?>
  </div>

</div>
<?php 
    if (!(has_required_admin() || defined('BATCH_SCRIPT'))) {
        ?>
<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', '<?php 
        echo get_site_config('google_analytics_account');
        ?>
', 'auto');
  ga('send', 'pageview');
</script>
<?php 
    }
    ?>
</body>
</html>
<?php 
    if (defined('PAGE_RENDER_START')) {
        $end_time = microtime(true);
        $time_diff = ($end_time - PAGE_RENDER_START) * 1000;
        echo "<!-- rendered in " . number_format($time_diff, 2) . " ms -->";
    }
    performance_metrics_page_end();
    echo "\n<!--\n" . print_r(Openclerk\MetricsHandler::getInstance()->printResults(), true) . "\n-->";
    if (is_admin()) {
        echo "\n<!-- " . print_r($_SESSION, true) . "\n-->";
    }
}
Ejemplo n.º 3
0
<?php

require __DIR__ . "/../layout/templates.php";
page_header(t("Screenshots"), "page_screenshots");
require_template("screenshots");
page_footer();
Ejemplo n.º 4
0
echo t("exchange rates");
?>
</li>
    </ul>
  </li>

</ul>

<div style="clear:both;"></div>

<div class="wizard-buttons">
<a class="button" href="<?php 
echo htmlspecialchars(url_for('wizard_currencies'));
?>
"><?php 
echo ht("< Previous");
?>
</a>
<a class="button submit" href="<?php 
echo htmlspecialchars(url_for('wizard_reports'));
?>
"><?php 
echo ht("Next >");
?>
</a>
</div>
</div>

<?php 
require_template("wizard_accounts_footer");
page_footer();
Ejemplo n.º 5
0
	"Get Balance" permission. API keys can also be revoked at any time, making this the most secure approach as well.
</p>

<p>
	For example, <a href="https://www.havelockinvestments.com">Havelock Investments</a>
	allows multiple API keys to be created, each with different permissions (illustrated).
</p>

<h2>Requesting a new service</h2>

<p>
	If you would like Openclerk to support a new mining pool, exchange or service, please let us know through one of the following methods:
</p>

<?php 
require_template('inline_contact');
?>

<p>
	If you would like to increase the priority of adding your preferred exchange, pool or service to
	Openclerk, you might want to consider <a href="<?php 
echo htmlspecialchars(url_for('help'));
?>
">sponsoring the task</a>
	or supporting <?php 
echo htmlspecialchars(get_site_config('site_name'));
?>
 by
	<a href="<?php 
echo htmlspecialchars(url_for('premium'));
?>
Ejemplo n.º 6
0
<?php

/**
 * Display information about premium accounts.
 */
require __DIR__ . "/../layout/templates.php";
require __DIR__ . "/../graphs/types.php";
$messages = array();
$errors = array();
page_header(t("Premium Accounts"), "page_premium");
?>

<?php 
require_template("premium");
?>

<?php 
$welcome = false;
require __DIR__ . "/_premium_features.php";
?>

<p>
  <?php 
echo t("You may purchase or extend your premium account by logging into your :user_account, or\n  by selecting the appropriate payment option below.", array(':user_account' => link_to(url_for('user#user_premium'), t("user account"))));
?>
</p>

<?php 
require __DIR__ . "/_premium_prices.php";
?>
Ejemplo n.º 7
0
<?php

require __DIR__ . "/../layout/templates.php";
page_header(t("Terms of Service"), "page_terms");
require_template("terms");
page_footer();
Ejemplo n.º 8
0
    <label><input type="radio" name="preference" value="none"<?php 
echo require_get("preference", $user['graph_managed_type']) == 'none' ? ' checked' : '';
?>
> <?php 
echo t("I will manage my own graphs and pages.");
?>
</label>
  </li>

</ul>

<div style="clear:both;"></div>

<div class="wizard-buttons">
<a class="button" href="<?php 
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php 
echo ht("< Previous");
?>
</a>
<input type="submit" name="submit" value="<?php 
echo ht("Next >");
?>
">
</div>
</div>

<?php 
require_template("wizard_reports_footer");
page_footer();
Ejemplo n.º 9
0
  </tr>
<?php 
}
?>
</tbody>
</table>

<div class="help"><a href="<?php 
echo htmlspecialchars(url_for('help/notifications'));
?>
"><?php 
echo t("How do automated notifications work?");
?>
</a></div>

<div style="clear:both;"></div>

<div class="wizard-buttons">
<a class="button" href="<?php 
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php 
echo ht("< Previous");
?>
</a>
</div>
</div>

<?php 
require_template("wizard_notifications_footer");
page_footer();
Ejemplo n.º 10
0
$q = require_get("q");
if (!is_string($q)) {
    set_temporary_errors(array(t("Invalid article key.")));
    redirect(url_for('help'));
}
if (!$q) {
    redirect(url_for('help'));
}
// we define all knowledge base articles ourselves, so that there's no chance
// of a security breach/injection
$knowledge = get_knowledge_base();
global $title;
$title = false;
foreach ($knowledge as $label => $a) {
    if (isset($a[$q])) {
        $title = $a[$q];
    }
}
if (!$title) {
    set_temporary_errors(array(t("No such knowledge base article ':key'.", array(':key' => htmlspecialchars($q)))));
    redirect(url_for('help'));
}
if (is_array($title)) {
    global $kb_inline;
    $kb_inline = $title['inline'];
    $title = $title['title'];
    $q = 'inline';
}
page_header(t("Knowledge Base: :title", array(":title" => $title)), "page_kb");
require_template("kb_" . $q);
page_footer();
$user = get_user(user_id());
require_user($user);
$messages = array();
// get all of our accounts
global $accounts;
$accounts = user_limits_summary(user_id());
global $account_type;
$account_type = get_wizard_account_type('securities');
require_template("wizard_accounts_securities");
?>

<div class="wizard">

<?php 
require __DIR__ . "/_wizard_accounts.php";
?>

<div class="wizard-buttons">
<a class="button" href="<?php 
echo htmlspecialchars(url_for('wizard_accounts'));
?>
"><?php 
echo ht("< Previous");
?>
</a>
</div>
</div>

<?php 
require_template("wizard_accounts_securities_footer");
page_footer();
Ejemplo n.º 12
0
"><?php 
    echo htmlspecialchars(get_currency_name($c));
    ?>
</label>
  </li>
<?php 
}
?>
</ul>
</div>

<p class="warning-inline">
<b><?php 
echo ht("NOTE:");
?>
</b> <?php 
echo ht("Removing a currency will also permanently remove any historical summary data for that currency.");
?>
</p>

<div class="wizard-buttons">
<input type="submit" name="submit" value="<?php 
echo ht("Next >");
?>
">
</div>
</form>

<?php 
require_template("wizard_currencies_footer");
page_footer();
Ejemplo n.º 13
0
$categories = $q->fetchAll();
?>

<!-- page list -->
<?php 
$page_id = -1;
$page_finance_categories = true;
require __DIR__ . "/_finance_pages.php";
?>

<div style="clear:both;"></div>

<div class="report-content">

<?php 
require_template('finance_categories');
?>

<?php 
require __DIR__ . "/_sort_buttons.php";
?>

<div class="your-accounts">
<table class="standard standard_account_list">
<thead>
  <tr>
    <th class="default_sort_down"><?php 
echo t("Title");
?>
</th>
    <th class="number"><?php 
Ejemplo n.º 14
0
        } catch (\Users\UserSignupException $e) {
            $errors[] = $e->getMessage();
        }
    }
} catch (Exception $e) {
    if (!$e instanceof EscapedException) {
        $e = new EscapedException(htmlspecialchars($e->getMessage()), (int) $e->getCode(), $e);
    }
    $errors[] = $e->getMessage();
}
require __DIR__ . "/../layout/templates.php";
page_header(t("Add OpenID Identity"), "page_openid_add", array('js' => 'auth'));
?>

<?php 
require_template("openid_add");
?>

<div class="authentication-form">
<h2><?php 
echo ht("Add OpenID Identity");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('openid_add')));
?>
" method="post">
<table class="login_form">
  <tr class="signup-with">
    <th><?php 
Ejemplo n.º 15
0
        $messages[] = t("Updated your votes.");
    } else {
        // get my voted coins
        $q = db()->prepare("SELECT * FROM vote_coins_votes WHERE user_id=?");
        $q->execute(array(user_id()));
        $my_coins = array();
        while ($coin = $q->fetch()) {
            $my_coins[] = $coin['coin_id'];
        }
    }
}
page_header(t("Coin Voting"), "page_vote_coins", array('js' => array('accounts')));
?>

<?php 
require_template('vote_coins');
?>

<?php 
require __DIR__ . "/_sort_buttons.php";
?>

<form action="<?php 
echo htmlspecialchars(url_for('vote_coins'));
?>
" method="post">
<table class="standard standard_account_list">
<thead>
  <tr>
    <th class=""><?php 
echo ht("Currency");
Ejemplo n.º 16
0
        $e = new EscapedException(htmlspecialchars($e->getMessage()), (int) $e->getCode(), $e);
    }
    $errors[] = $e->getMessage();
}
if (require_get("need_admin", false)) {
    $errors[] = t("You need to be logged in as an administrator to do that.");
}
if ($destination && !require_get("pause", false)) {
    $errors[] = t("You need to be logged in to proceed.");
}
require __DIR__ . "/../layout/templates.php";
page_header(t("Login"), "page_login", array('js' => 'auth'));
?>

<?php 
require_template("login");
?>

<div class="authentication-form">
<h2><?php 
echo ht("Login");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('login')));
?>
" method="post">
<table class="login_form">
  <tr class="signup-with login-with-openid"<?php 
echo $use_password ? " style=\"display:none;\"" : "";
Ejemplo n.º 17
0
        } catch (\Users\UserSignupException $e) {
            $errors[] = $e->getMessage();
        }
    }
} catch (Exception $e) {
    if (!$e instanceof EscapedException) {
        $e = new EscapedException(htmlspecialchars($e->getMessage()), (int) $e->getCode(), $e);
    }
    $errors[] = $e->getMessage();
}
require __DIR__ . "/../layout/templates.php";
page_header(t("Add OAuth2 Identity"), "page_oauth2_add", array('js' => 'auth'));
?>

<?php 
require_template("oauth2_add");
?>

<div class="authentication-form">
<h2><?php 
echo ht("Add OAuth2 Identity");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('oauth2_add')));
?>
" method="post">
<table class="login_form">
  <tr class="signup-with">
    <th><?php 
Ejemplo n.º 18
0
$accounts = $q->fetchAll();
?>

<!-- page list -->
<?php 
$page_id = -1;
$page_finance_accounts = true;
require __DIR__ . "/_finance_pages.php";
?>

<div style="clear:both;"></div>

<div class="report-content">

<?php 
require_template('finance_accounts');
?>

<?php 
require __DIR__ . "/_sort_buttons.php";
?>

<div class="your-accounts">
<table class="standard standard_account_list">
<thead>
  <tr>
    <th class="default_sort_down"><?php 
echo ht("Title");
?>
</th>
    <th class="number"><?php 
Ejemplo n.º 19
0
<?php

global $tree;
$custom_parings = Spyc::YAMLLoad(__DIR__ . "/../../tree/custom_parings.yml");
$renderer = new \Genealogy\TreeToRenderedTree($tree, $custom_parings);
$rendered_tree = $renderer->getRenderedTree();
page_header("Tree", "page_tree");
require_template("tree", array("render" => $rendered_tree->render()));
page_footer();
Ejemplo n.º 20
0
        $q = db()->prepare("UPDATE users SET password_hash=?, password_last_changed=NOW() WHERE id=?");
        $password_hash = md5(get_site_config('password_salt') . $password);
        $q->execute(array($password_hash, $user['id']));
        send_user_email($user, "password_reset_complete", array("email" => $email, "name" => $user['name'] ? $user['name'] : $email));
        $messages[] = t("Password changed; you should now immediately login with this new password.");
        set_temporary_messages($messages);
        set_temporary_errors($errors);
        redirect(url_for('login', array('email' => $email, 'use_password' => true)));
    }
}
require __DIR__ . "/../layout/templates.php";
page_header(t("Change Password"), "page_password_reset", array('js' => 'auth'));
?>

<?php 
require_template("password_reset");
?>

<div class="authentication-form">
<h2><?php 
echo ht("Change password");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(url_for('password_reset'));
?>
" method="post">
<table class="login_form">
<tr>
  <th><?php 
Ejemplo n.º 21
0
<?php

global $title;
global $kb_inline;
?>

<h1><?php 
echo $title;
?>
</h1>

<p><a href="<?php 
echo htmlspecialchars(url_for("help"));
?>
"><?php 
echo ht("< Back to Help");
?>
</a></p>

<div class="kb_text">
<?php 
require_template($kb_inline);
?>
</div>
Ejemplo n.º 22
0
?>
</div>

</div>
</div>

<div style="display:none;" id="accounts_help">
<?php 
foreach ($add_types as $exchange) {
    ?>
  <div id="accounts_help_<?php 
    echo htmlspecialchars($exchange);
    ?>
">
  <?php 
    require_template($add_type_help[$exchange]);
    ?>
  <?php 
    if ($account_type['wizard'] != 'offsets') {
        ?>
    <span class="more_help"><a href="<?php 
        echo htmlspecialchars(url_for('help/' . $exchange));
        ?>
"><?php 
        echo ht("More help");
        ?>
</a></span>
  <?php 
    }
    ?>
  </div>
Ejemplo n.º 23
0
<?php

page_header("List of People", "page_index");
require_template("home");
page_footer();
Ejemplo n.º 24
0
<?php

require __DIR__ . "/../layout/templates.php";
page_header(t("API"), "page_api");
require_template("api");
page_footer();
Ejemplo n.º 25
0
?>
</a></li>
</ul>
</div>
</div>

<hr>

<div class="home-block" id="home_block_support">
<h2><?php 
echo ht("Supported Addresses and Accounts");
?>
</h2>

<?php 
require_template("_supported");
?>
</div>

<div class="banner">
  <a href="<?php 
echo htmlspecialchars(url_for('screenshots'));
?>
" title="<?php 
echo ht("Screenshots");
?>
"><img src="<?php 
echo htmlspecialchars(url_for('img/screenshots/banner2_small.png'));
?>
" alt="<?php 
echo ht("Example reports and graphs");
Ejemplo n.º 26
0
}
if (!isset($pairs[$currency1 . $currency2])) {
    $currency1 = "usd";
    $currency2 = "btc";
}
page_header(t("Market Average: :pair", array(':pair' => get_currency_name($currency1) . "/" . get_currency_name($currency2))), "page_average", array('jsapi' => true));
$graph_id = 0;
?>

<h1><?php 
echo ht("Market Average: :pair", array(':pair' => get_currency_abbr($currency1) . "/" . get_currency_abbr($currency2)));
?>
</h1>

<?php 
require_template("average");
?>

<div class="graph_collection">
  <div class="market-data">
  <?php 
$graph = array('graph_type' => "average_" . $currency1 . $currency2 . "_markets", 'width' => 4, 'height' => 2, 'page_order' => 0, 'days' => 90, 'id' => $graph_id++, 'public' => true, 'delta' => "", 'no_technicals' => true, "arg0" => true);
?>
  <?php 
render_graph_new($graph, true);
?>
  </div>

  <?php 
$graph = array('graph_type' => "average_" . $currency1 . $currency2 . "_daily", 'width' => 4, 'height' => 2, 'page_order' => 0, 'days' => 90, 'id' => $graph_id++, 'public' => true, 'delta' => "", 'no_technicals' => true, "arg0" => true);
?>
Ejemplo n.º 27
0
<?php

require __DIR__ . "/../layout/templates.php";
page_header(t("Help"), "page_help", array('js' => 'help'));
require_template("help");
page_footer();
Ejemplo n.º 28
0
<h2>Version History</h2>

<p>
	Recent version history can also be viewed at the <a href="http://blog.cryptfolio.com">CryptFolio Blog</a>
	or on the <a href="<?php 
echo htmlspecialchars(get_site_config('forum_link'));
?>
" target="_blank">Bitcoin Forum</a>.
</p>

<dl class="version-list">

	<?php 
require_template("versions");
?>
	<?php 
require_template("versions_old");
?>

</dl>

<div style="clear:both;"></div>
Ejemplo n.º 29
0
<div class="premium_prices">
<h3><?php 
echo t("Current premium prices");
?>
</h3>

<?php 
if (in_premium_promotion_leadup_period()) {
    require_template("premium_promotion");
}
?>

<table class="fancy">
<?php 
foreach (get_site_config('premium_currencies') as $currency) {
    ?>
<tr>
  <th class="currency"><span class="currency_name_<?php 
    echo $currency;
    ?>
"><?php 
    echo htmlspecialchars(get_currency_name($currency));
    ?>
</span></th>
  <td class="prices">
    <?php 
    if (get_site_config('premium_' . $currency . '_discount')) {
        ?>
    <div class="discounted"><?php 
        echo t(":cost1 per month, or :cost2 per year", array(':cost1' => currency_format($currency, get_site_config('premium_' . $currency . '_monthly')), ':cost2' => currency_format($currency, get_site_config('premium_' . $currency . '_yearly'))));
        ?>
Ejemplo n.º 30
0
                redirect(url_for(get_site_config('premium_welcome') ? "welcome" : get_site_config('signup_login'), array("pause" => true)));
            }
        } catch (Exception $e) {
            if (!$e instanceof EscapedException) {
                $e = new EscapedException(htmlspecialchars($e->getMessage()), (int) $e->getCode(), $e);
            }
            $errors[] = $e->getMessage();
        }
    }
}
require __DIR__ . "/../layout/templates.php";
page_header(t("Signup"), "page_signup", array('js' => 'auth'));
?>

<?php 
require_template("signup");
?>

<div class="authentication-form">
<h2><?php 
echo ht("Signup");
?>
</h2>

<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('signup')));
?>
" method="post">
<table class="login_form">
  <tr>
    <th><label for="name"><?php