コード例 #1
0
ファイル: index.php プロジェクト: mattharbo/scrum-trello
<?php

header("Refresh:3600");
//check history every 60 minutes
include '../includes/functions.php';
echo htmlheader("Follo • Burndown chart", "../includes/main.css");
echo topbar("..");
?>
<!-- amCharts javascript sources -->
		<script type="text/javascript" src="http://www.amcharts.com/lib/3/amcharts.js"></script>
		<script type="text/javascript" src="http://www.amcharts.com/lib/3/serial.js"></script>
		<script type="text/javascript" src="http://www.amcharts.com/lib/3/themes/light.js"></script>
<?php 
//$allboardcards = "https://api.trello.com/1/boards/561228dc16f33267799133c3/cards?fields=name,idList&key=65c83fd020db39e2027c509a67587125&token=d8cfaa1f1f58a0e0b7d34befc2952cc26352a3e97c948bd9f80243377f98654e";
$boardlistsandcards = "https://api.trello.com/1/boards/561228dc16f33267799133c3/lists?cards=open&card_fields=name&fields=name&key=65c83fd020db39e2027c509a67587125&token=d8cfaa1f1f58a0e0b7d34befc2952cc26352a3e97c948bd9f80243377f98654e";
$newfoldername = date(Y . '\\-' . m . '\\-' . d);
$filename = './' . $newfoldername . '/';
//IF FOLDER is not existing THEN CREATE IT
if (!file_exists($filename)) {
    ?>
	<!-- TO BE REMOVED WHEN CSS DONE -->
	<br><br><br><br>
	<!-- ## -->
	<h5>Sprint dates have not been set :</h5>
	<form method='POST' action='./form.php'>
		<input type='text' name='begindate' placeholder='yyyy-mm-dd'>
		<input type='text' name='enddate' placeholder='yyyy-mm-dd'>
		<input type='submit' value='Submit'>
	</form>
	
	<?php 
コード例 #2
0
    }
    for ($i = 0; $i < count($notifications); $i++) {
        $notifications[$i] = filter_var($notifications[$i], FILTER_SANITIZE_NUMBER_INT);
    }
    $order->setAddresses($addresses);
    $order->setNotifications($notifications);
    $order->save();
    header("Location: ./member_orders.php");
    die;
}
$title = " - Edit order";
require "header.php";
?>
<body>
<?php 
topbar("orders", true);
$activecheck = $order->active ? ' checked ' : '';
$cs0 = $order->confirmations == 0 ? ' selected ' : '';
$cs1 = $order->confirmations == 1 ? ' selected ' : '';
$cs2 = $order->confirmations == 2 ? ' selected ' : '';
$cs3 = $order->confirmations == 3 ? ' selected ' : '';
$cs4 = $order->confirmations == 4 ? ' selected ' : '';
$cs5 = $order->confirmations == 5 ? ' selected ' : '';
$cs6 = $order->confirmations == 6 ? ' selected ' : '';
$notify = array();
foreach ($order->notifications as $type) {
    $notify[] = $type->id;
}
$nc1 = in_array(1, $notify) ? ' checked ' : '';
$nc2 = in_array(2, $notify) ? ' checked ' : '';
$nc3 = in_array(3, $notify) ? ' checked ' : '';
コード例 #3
0
ファイル: member_api.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
checklogin();
$title = " - API";
require "header.php";
$activeuser = Users::getActiveUser();
?>
<body>
    <?php 
topbar("api", true);
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>API</h1>
            </div>
            <div class="row">
                <div class="span10">
                    To get the full benefit of BPN you need to implement the HTTP POST api callback.<br><br>
                    We provide a simple example in PHP to receive the events below, please note that the secret value is unique to your account, and should be kept secret.<br>
                    If you build a module for a webshop, the secret value should be user editable.
                    <br><br>
                    When you choose to receive HTTP POST events for a order, we will contact your webserver when a payment has received the required amount of confirmations.<br>
                    The HTTP POST event will contain the following variables<br><br>

                    <table>
                        <tr><td>TEST</td><td>Included in test reports, you should check that this is not set when done testing<br>However people still need your secret to make a valid test.</td></tr>
                        <tr><td>to_address</td><td>The receiver address monitored<br>If there are more than one monitored address in an transaction, a seperate call will be made for each</td></tr>
                        <tr><td>amount</td><td>Amount in satoshi (100 million satoshi make a bitcoin)</td></tr>
コード例 #4
0
ファイル: index.php プロジェクト: neofutur/BitPing.Net
<?php

require_once "./system/shared.php";
require_once "header.php";
?>

<body>
    <?php 
topbar("home");
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <?php 
if (isset($_GET["errmsg"]) && $_GET["errmsg"] != "") {
    //		if (isset ( $_GET["errmsg"] ) )
    //		 if ( $_GET["errmsg"] != "") {
    switch (filter_var($_GET["errmsg"], FILTER_SANITIZE_STRING)) {
        case "loginfailure":
            $errmsg = "Wrong username or password - <a href='./lostpass.php'>Forgot your username/password?</a>";
            break;
    }
    ?>
                <div class="alert-message error">
                    <p><?php 
    echo $errmsg;
    ?>
</p>
                </div>
    <?php 
コード例 #5
0
ファイル: legal.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
$title = " - Legal";
require "header.php";
?>
<body>
    <?php 
topbar("legal");
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Legal</h1>
            </div>
            <div class="row">
                <div class="span10">
		First of all BPN cannot know what the payments monitored are for, nor do we request that our users tell us, it could be napkins or something worse.<br>
                    <br>
		We cannot identify who sent or received a payment, other than what is publicly known in the bitcoin blockchain.<br>
                    <br>
		Requesting a monitor on BPN does not prove that the address is acutally owned by this individual.<br>
		As soon as an address have received 1 payment, it is publicly known in the block chain.<br>
                    <br>
		We log which IP signs in to which account for general security measures, as well as which pages are seen by which IP.<br>
		We make no attempt to prove if this is the actual IP of the user, or a proxy/tor/vpn/etc.<br>
                    <br>
		Given a court order we will release all known information about an monitor account, including, but not limited to, username, hashed password, monitored addresses, HTTP POST targets.
                    <br><br>
		Before contacting us, please consider than anyone who wants to monitor addresses, that may be sensitive could easily download the project and run it themselves, and thereby publish nothing more than they are downloading the blockchain.
コード例 #6
0
ファイル: index.php プロジェクト: CMP-Studio/EmuObjectMover
    //Return to home
    redirect(sitepath() . "home/");
}
$info = getProjectInfo();
?>
<!DOCTYPE html>
<html>
  <head>
    <?php 
head();
?>
    <script type="text/javascript" src="search.js"></script>
  </head>
  <body>
    <?php 
topbar($info['title'], true);
?>
    <div class='padded'>
      <ul id="tabs" class="nav nav-tabs" data-tabs="tabs">
        <li class="active"><a href="#single" data-toggle="tab">Single Object</a></li>
        <li ><a href="#holder" data-toggle="tab">Holder</a></li>
        <li ><a href="#group" data-toggle="tab">Group</a></li>
        <li ><a href="#event" data-toggle="tab">Event</a></li>
      </ul>

      <div id="search-content" class="tab-content">
        <div class="tab-pane active" id="single">
          <form class='form search'>
            <label for="inputID" class="sr-only">Acc. No.</label>
            <input type="text" id="inputID" class="form-control small-f" placeholder="Acc. No." autofocus="">
            <label for="inputTitle" class="sr-only">Title</label>
コード例 #7
0
ファイル: oneshot.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
$title = " - OneShot adhoc notification";
require "header.php";
?>
<body>
    <? topbar("home"); ?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>OneShot "API"</h1>
            </div>
            <div class="row">
                <div class="span10">
		There is a adhoc notification system on BPN aswell as the regular one, this may be preferably if you

		<ul>
			<li>Require a limited amount of notifications.</li>
			<li>Do not wish to list all your addresses at once.</li>
			<li>Generate the addresses on the fly (DANGEROUS).</li>
		</ul>

		To request a oneshot notification, you need to call http(s)://bitping.net/c/oneshot.php<br>
		You can call it using GET or POST, and need to include these 3-4arguments.<br>
		I recommend you use POST and HTTPS to keep the key secret, but its really up to you.<br>
		If you need a notification for a small amount, its probaly not worth the effort for someone to intercept your GET call.<br>
		On the other hand, if you are expecting a few BTC for digital delivered goods, you need to use POST over HTTPS with a key.<br>
		<br>
		If you need a notification for more than one address you can call the address multiple times.<br>
コード例 #8
0
ファイル: faq.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
$title = " - FAQ";
require "header.php";
?>
<body>
    <?php 
topbar("faq");
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>FAQ</h1>
            </div>
            <div class="row">
                <div class="span10">
                </div>
                <?php 
require "system-status.php";
?>
            </div>
            <?php 
require "footer.php";
?>
        </div>
</body>
</html>
コード例 #9
0
ファイル: member_start.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
checklogin();
$title = " - Member area";
require "header.php";
?>
<body>
    <?php 
topbar("start", true);
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Introduction <small>to using BPN in a webshop</small></h1>
            </div>
            <div class="row">
                <div class="span10">
                    BitPing.Net (BPN) is a service that enables merchants to accept bitcoins with a minimum of effort.<br>
	    Users add a list of public addresses to be monitored, and BPN sends a notification when a payment is received.<br>
	    Notifications can currently be made using Email, HTTP POST and Pubnub<br>
                    <br>
	    To use BPN in a webshop, you need to generate a "large" amount of addresses.<br>
	    Then upload these addresses to BPN, and select the number of confirmations you require (1-6)<br>
	    When a customer selects to pay using bitcoin, you select a bitcoin address and assign it to the order.<br>
 	    If the user pays, BPN will send a confirmation email/HTTP POST(once it has been confirmed as many times as requested), which you can use to mark the order as payed.<br>
                    <br>
	    You can use Vanitygen to generate the addresses, then insert them into your database, and export the addresses to BPN (One address per line, no seperators).<br>
	    The code for the monitor is opensource, so you can run your own server instead of using BPN if you like.	    
                </div>
コード例 #10
0
ファイル: contact.php プロジェクト: neofutur/BitPing.Net
<?php

require "system/shared.php";
$title = " - Contact";
require "header.php";
?>
<body>
    <? topbar("contact"); ?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Contact us</h1>
            </div>
            <div class="row">
                <div class="span10">
                    BitPing.Net (BPN) is run by Stokerbot, a private company working on a Network enabled datalogger (<a href="http://www.stokerlog.dk" target="_blank">www.stokerlog.dk</a>)<br>
                    <br>
		While we are avaliable for paid consulting, on setting up BPN etc, we can only provide limited free support.<br>
	    If you have a general bitcoin question, please refer to the bitcointalk.com website.<br>
                    <br>
 	    If you still feel like contacting us, our email is post@minigrossisten.dk<br>
	    We are not trying to hide, Im sure you know where to find more information if you really need it ;).<br>
                </div>
                <?php 
require "system-status.php";
?>
            </div>
            <?php 
require "footer.php";
?>
コード例 #11
0
ファイル: index.php プロジェクト: skhzhang/simonkhzhang.me
<!-- NAVBAR -->
<?php 
include "./navbar.php";
echo navbar(true, true, 0);
?>

<!-- OVERLAY: to appear when navbar expands -->
<div class="overlay" style="display: none;"></div>

<div id="main">

	<!-- TOPBAR -->
	<?php 
include "topbar.php";
echo topbar(true, 0);
?>
	<div class="curtain"></div>

	<div class="container content">

		<!-- TITLE -->
		<div class="row">
			<div class="top-row twelve columns">
				<div class="avatar">
					<img src="images/avatar3-200px.jpg" alt='Simon' height="200" width="200" />
				</div>
				<a href="./">
					<div class="name">
						<div class="nameCircle"></div>
						<span class="title" style="font-size: 34pt">Simon Zhang</span>
コード例 #12
0
ファイル: newuser.php プロジェクト: neofutur/BitPing.Net
            } else {
                $errmsg = "Passwords does not match.";
            }
        } else {
            $errmsg = "Username must be at least 3 chars long.";
        }
    } else {
        $errmsg = "This username is already taken, please select another one.";
    }
}
$title = " - Register";
require "header.php";
?>
<body>
<?php 
topbar("register");
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Register</h1>
            </div>
            <div class="row">
                <div class="span10">

<?php 
if ($errmsg != "") {
    ?>
                    <div class="alert-message error">
                        <p><?php 
コード例 #13
0
    $url = filter_var($_POST["url"], FILTER_SANITIZE_URL);
    if (filter_var($email, FILTER_VALIDATE_EMAIL) !== FALSE) {
        $activeuser->email = $email;
    }
    if ($url == "" || filter_var($url, FILTER_VALIDATE_URL) !== FALSE) {
        $activeuser->url = $url;
    }
    if (isset($_POST["password"]) && $_POST["password"] == $_POST["passwordc"] && $_POST["password"] != "") {
        $activeuser->password = $_POST["password"];
    }
    $activeuser->save();
}
?>
<body>
<?php 
topbar("profile", true);
?>
    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Profile</h1>
            </div>
            <div class="row">
                <div class="span10">
                    <form method="POST">
                        <fieldset>
                            <legend>User details</legend>
                            <div class="clearfix">
                                <label>Username</label>
                                <div class="input">
                                    <input type="text" disabled value="<?php 
コード例 #14
0
ファイル: index.php プロジェクト: skhzhang/simonkhzhang.me
<!-- NAVBAR -->
<?php 
include "../navbar.php";
echo navbar(true, false, 1);
?>

<!-- OVERLAY: to appear when navbar expands -->
<div class="overlay" style="display: none;"></div>

<div id="main">

  <!-- TOPBAR -->
  <?php 
include "../topbar.php";
echo topbar(false, 1);
?>

	<div class="container content">

		<!-- HEADER -->
		<div class="row">
			<div id="header" class="twelve columns" style="margin-top: 5%">
				<a href="./">
					<div class="name" onmouseover="colourText('title', 2, '#F57A00')" onmouseout="colourText('title', 2, '#C0C0C0')">
						<span class="title" style="font-size: 34pt">Legal</span>
					</div>
				</a>
			</div>
		</div>
コード例 #15
0
<?php

require "system/shared.php";
$title = " - Contact";
require "header.php";
?>
<body>
    <?php 
topbar("contact", true);
?>

    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>Contact us</h1>
            </div>
            <div class="row">
                <div class="span10">
                    BitPing.Net (BPN) is run by Stokerbot, a private company working on a Network enabled datalogger (<a href="http://www.stokerlog.dk" target="_blank">www.stokerlog.dk</a>)<br>
                    <br>
		While we are avaliable for paid consulting, on setting up BPN etc, we can only provide limited free support.<br>
	    If you have a general bitcoin question, please refer to the bitcointalk.com website.<br>
                    <br>
 	    If you still feel like contacting us, our email is post@minigrossisten.dk<br>
	    We are not trying to hide, Im sure you know where to find more information if you really need it ;).<br>
                </div>
                <?php 
require "system-status.php";
?>
            </div>
            <?php 
コード例 #16
0
ファイル: join-class.php プロジェクト: appteamio/rarigrafix
            }
        }
        if (!$kidalreadyregistered) {
            Client::addclienttodatabase($_POST['clsid'], $_POST['p_firstname'], $_POST['p_lastname'], $_POST['k_firstname'], $_POST['k_lastname'], $_POST['phone'], $_POST['email'], $_POST['coupon']);
            $insertedid = $database->insert_id();
            redirect_to('view-details.php?tclt=' . $insertedid . '&cls=' . $_POST['clsid']);
        } else {
            redirect_to('complete.php');
        }
    }
}
include 'includes/pagestructure.php';
include 'includes/smartbanner.php';
include 'includes/smartnav.php';
head('Welcome to Urban Illustration');
topbar();
?>

 <div id="content">

     

 		<div id="maincontent">

        	<div class="textcontentalone">
<h1>join the class of <?php 
echo DateManager::frontdisplaytimefromtmstp($classtojoin->c_date);
?>
 part of the <?php 
echo $sessiontojoin->name;
?>
コード例 #17
0
function displayProject($projectName, $description, $images, $date = "", $languages = [], $team = [])
{
    $returnString = "";
    $returnString .= <<<EOT
<!DOCTYPE html>
<html lang="en">
<head>

  <!-- Basic Page Needs
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <meta charset="utf-8">
  <title>{$projectName} - Projects - Simon Zhang</title>
  <meta name="description" content="{$projectName}">
  <meta name="author" content="Simon Zhang">
  <meta name="theme-color" content="#3D6C7A"> <!-- colour in Chrome mobile -->

  <!-- Mobile Specific Metas
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- FONT
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <link href='http://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>
  <link href='https://fonts.googleapis.com/css?family=Fira+Sans:400,700,500,300,400italic' rel='stylesheet' type='text/css'>

  <!-- CSS
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <link rel="stylesheet" href="../css/skeleton.css">
  <link rel="stylesheet" href="../css/normalize.css">
  <link rel="stylesheet" href="../css/custom.css">

  <!-- JS
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <script src="../js/jquery-2.1.3.js"></script>
  <script src="../js/jquery-ui.js"></script>
  <script src="../js/custom.js" type="text/javascript"></script>

  <!-- PhotoSwipe
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->

  <!-- Core CSS file -->
  <link rel="stylesheet" href="../photoswipe/photoswipe.css"> 

  <!-- Skin CSS file (styling of UI - buttons, caption, etc.)
     In the folder of skin CSS file there are also:
     - .png and .svg icons sprite, 
     - preloader.gif (for browsers that do not support CSS animations) -->
  <link rel="stylesheet" href="../photoswipe/default-skin/default-skin.css"> 

  <!-- Core JS file -->
  <script src="../photoswipe/photoswipe.min.js"></script> 

  <!-- UI JS file -->
  <script src="../photoswipe/photoswipe-ui-default.min.js"></script> 

  <script src="./photoswipe-gallery.js" type="text/javascript"></script> 


  <!-- Favicon
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
  <link href="../icons/orange-circle.png" type="icon/png" rel="icon" />

  <!-- Google Analytics tracking
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->
EOT;
    ob_start();
    include_once "../analyticstracking.php";
    $returnString .= ob_get_clean();
    $returnString .= <<<EOT

</head>
<body>

<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
EOT;
    ob_start();
    include_once "../photoswipe/photoswipe.html";
    $returnString .= ob_get_clean();
    $returnString .= <<<EOT

<div id="wrapper">
<!-- NAVBAR -->
EOT;
    include "../navbar.php";
    $returnString .= navbar(true, false, 1);
    $returnString .= <<<EOT

<!-- OVERLAY: to appear when navbar expands -->
<div class="overlay" style="display: none;"></div>

<div id="main">

\t<!-- TOPBAR -->
EOT;
    include "../topbar.php";
    $returnString .= topbar(false, 1);
    $returnString .= <<<EOT

\t<div class="container content">

\t\t<!-- HEADER -->
\t\t<div class="row">
\t\t\t<div class="top-row twelve columns">
\t\t\t\t<div class="name">
\t\t\t\t\t<a href="./">
\t\t\t\t\t\t<span class="title" style="font-size: 26pt" onmouseover="colourText('title', 2, '#F57A00')" onmouseout="colourText('title', 2, '#E9EEF0')">Projects</span>
\t\t\t\t\t</a>
\t\t\t\t\t<span class="title" style="font-size: 26pt"> / </span>
\t\t\t\t\t<a href="#">
\t\t\t\t\t\t<span class="title titleCur" style="font-size: 26pt" onmouseover="colourText('title', 4, '#F57A00')" onmouseout="colourText('title', 4, '#C0C0C0')">{$projectName}</span>
\t\t\t\t\t</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>

EOT;
    $returnString .= <<<EOT

\t\t<div class="row" style="margin-top: 5%;">
\t\t\t<div class="name separateTitles">
\t\t\t\t<h5 class="section-header">Description</h5>
\t\t\t</div>
EOT;
    // date of project
    if ($date != "") {
        $returnString .= <<<EOT

\t\t\t<div class="name separateTitles">
\t\t\t\t<span class="date">{$date}</span>
\t\t\t</div>

EOT;
    }
    $returnString .= <<<EOT
\t\t</div>

\t\t<div id="description">
\t\t\t<div class="row">
\t\t\t\t<div class="box item">

\t\t\t\t\t{$description}

\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
EOT;
    if ($languages != []) {
        $returnString .= <<<EOT

\t\t<div class="section-content name">
\t\t\t<h5 class="section-header">Languages: 
\t\t\t\t<span class="content-item">
EOT;
        foreach ($languages as $lang) {
            $returnString .= $lang;
            if ($lang != end($languages)) {
                $returnString .= ", &nbsp;";
            }
        }
        $returnString .= <<<EOT

\t\t\t\t</span>
\t\t\t</h5>
\t\t</div>
\t\t<br>

EOT;
    }
    // project credit
    if (!empty($team)) {
        $returnString .= <<<EOT

\t\t<div class="section-content name">
\t\t\t<h5 class="section-header">Team: 
\t\t\t\t<span class="content-item">

EOT;
        foreach ($team as $memberName => $memberLink) {
            if ($memberLink != "") {
                // member has a link associated with them
                $returnString .= "<a href=\"{$memberLink}\" target=\"_blank\">" . $memberName . "</a>";
            } else {
                $returnString .= $memberName;
            }
            $keys = array_keys($team);
            if ($memberName != end($keys)) {
                // add comma for all but last element
                $returnString .= ", &nbsp;";
            }
        }
        $returnString .= <<<EOT
\t\t\t\t</span>
\t\t\t</h5>
\t\t</div>
\t\t<br>

EOT;
    }
    $returnString .= <<<EOT
\t\t<div class="name" id="screenshots">
\t\t\t<h5 class="section-header">Screenshots</h5>
\t\t</div>

\t\t<div class="gallery">
EOT;
    // iterate through given images array
    foreach ($images as $currentImage) {
        $returnString .= <<<EOT
 \t\t\t
 \t\t\t<a class="card" href="{$currentImage['link']}" data-size="{$currentImage['width']}x{$currentImage['height']}">
\t\t\t\t<img src="{$currentImage["thumbnail"]}"/>
EOT;
        if (isset($currentImage["caption"])) {
            $returnString .= <<<EOT
\t\t\t<figure>{$currentImage["caption"]}</figure>
EOT;
        }
        $returnString .= <<<EOT
\t\t\t</a>

EOT;
    }
    $returnString .= <<<EOT

\t\t</div>

\t</div>

</div>

<!-- FOOTER -->
EOT;
    include "../footer.php";
    $returnString .= foot(1);
    $returnString .= <<<EOT

</div>

<!-- End Document
  –––––––––––––––––––––––––––––––––––––––––––––––––– -->

</body>
</html>
EOT;
    return $returnString;
}