-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aleksey Korzun
committed
Aug 14, 2012
0 parents
commit 2bcf23e
Showing
12 changed files
with
745 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset='utf-8'> | ||
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" /> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" /> | ||
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" /> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
<title>reCAPTCHA PHP 5 by AlekseyKorzun</title> | ||
</head> | ||
|
||
<body> | ||
<div id="container"> | ||
<div class="inner"> | ||
|
||
<header> | ||
<h1>reCAPTCHA PHP 5</h1> | ||
<h2>Proper PHP 5 client for reCaptcha API</h2> | ||
</header> | ||
|
||
<section id="downloads" class="clearfix"> | ||
<a href="https://github.com/AlekseyKorzun/reCaptcha-PHP-5/zipball/master" id="download-zip" class="button"><span>Download .zip</span></a> | ||
<a href="https://github.com/AlekseyKorzun/reCaptcha-PHP-5/tarball/master" id="download-tar-gz" class="button"><span>Download .tar.gz</span></a> | ||
<a href="https://github.com/AlekseyKorzun/reCaptcha-PHP-5" id="view-on-github" class="button"><span>View on GitHub</span></a> | ||
</section> | ||
|
||
<hr> | ||
|
||
<section id="main_content"> | ||
<h1>reCaptcha-PHP-5 (v1.1)</h1> | ||
|
||
<p>A properly coded PHP 5 reCaptcha class that will allow you to interact with Google's | ||
reCaptcha API.</p> | ||
|
||
<ul> | ||
<li>100% phpDocumentator 2 code coverage</li> | ||
<li>100% PSR-2 code coverage</li> | ||
<li>Composer friendly package</li> | ||
</ul><p>Feel free to extend and modify it to fit your frameworks / applications needs.</p> | ||
|
||
<h2>Usage</h2> | ||
|
||
<p>If you have your own autoloader, simply update namespaces and drop the files | ||
into your frameworks library.</p> | ||
|
||
<p>For people that do not have that setup, you can visit <a href="http://getcomposer.org">http://getcomposer.org</a> to install | ||
composer on your system. After installation simply run <code>composer install</code> in parent | ||
directory of this distribution to generate vendor/ directory with a cross system autoloader.</p> | ||
|
||
<p>Please see Examples directory for a simple run down of functionality.</p> | ||
|
||
<h2>Notes</h2> | ||
|
||
<ul> | ||
<li>The functionality is based on $_POST requests by default, you can modify it (fairly easy) to take | ||
$_GET or whatever you want instead.</li> | ||
<li>It will always send remote address from $_SERVER['REMOTE_ADDR'] variable if you are behind Vagrant/etc, please update it | ||
(or write a setter to set remote address on the fly :))</li> | ||
</ul><h2>About</h2> | ||
|
||
<p>See: <a href="http://www.google.com/recaptcha/learnmore">http://www.google.com/recaptcha/learnmore</a></p> | ||
</section> | ||
|
||
<footer> | ||
reCAPTCHA PHP 5 is maintained by <a href="https://github.com/AlekseyKorzun">AlekseyKorzun</a><br> | ||
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="http://twitter.com/jasonlong">Jason Long</a>. | ||
</footer> | ||
|
||
|
||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('This would be the main JS file.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"note":"Don't delete this file! It's used internally to help with page regeneration.","name":"reCAPTCHA PHP 5","google":"","body":"# reCaptcha-PHP-5 (v1.1)\r\n\r\nA properly coded PHP 5 reCaptcha class that will allow you to interact with Google's\r\nreCaptcha API.\r\n\r\n* 100% phpDocumentator 2 code coverage\r\n* 100% PSR-2 code coverage\r\n* Composer friendly package\r\n\r\nFeel free to extend and modify it to fit your frameworks / applications needs.\r\n\r\nUsage\r\n-----\r\n\r\nIf you have your own autoloader, simply update namespaces and drop the files\r\ninto your frameworks library.\r\n\r\nFor people that do not have that setup, you can visit [http://getcomposer.org](http://getcomposer.org) to install\r\ncomposer on your system. After installation simply run `composer install` in parent\r\ndirectory of this distribution to generate vendor/ directory with a cross system autoloader.\r\n\r\nPlease see Examples directory for a simple run down of functionality.\r\n\r\nNotes\r\n-----\r\n\r\n- The functionality is based on $_POST requests by default, you can modify it (fairly easy) to take\r\n$_GET or whatever you want instead.\r\n- It will always send remote address from $_SERVER['REMOTE_ADDR'] variable if you are behind Vagrant/etc, please update it\r\n(or write a setter to set remote address on the fly :))\r\n\r\nAbout\r\n-----\r\n\r\nSee: [http://www.google.com/recaptcha/learnmore](http://www.google.com/recaptcha/learnmore)\r\n","tagline":"Proper PHP 5 client for reCaptcha API"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td, | ||
article, aside, canvas, details, embed, | ||
figure, figcaption, footer, header, hgroup, | ||
menu, nav, output, ruby, section, summary, | ||
time, mark, audio, video { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
font-size: 100%; | ||
font: inherit; | ||
vertical-align: baseline; | ||
} | ||
/* HTML5 display-role reset for older browsers */ | ||
article, aside, details, figcaption, figure, | ||
footer, header, hgroup, menu, nav, section { | ||
display: block; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ol, ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
body { | ||
font-size: 13px; | ||
line-height: 1.5; | ||
font-family: 'Helvetica Neue', Helvetica, Arial, serif; | ||
color: #000; | ||
} | ||
|
||
a { | ||
color: #d5000d; | ||
font-weight: bold; | ||
} | ||
|
||
header { | ||
padding-top: 35px; | ||
padding-bottom: 10px; | ||
} | ||
|
||
header h1 { | ||
font-weight: bold; | ||
letter-spacing: -1px; | ||
font-size: 48px; | ||
color: #303030; | ||
line-height: 1.2; | ||
} | ||
|
||
header h2 { | ||
letter-spacing: -1px; | ||
font-size: 24px; | ||
color: #aaa; | ||
font-weight: normal; | ||
line-height: 1.3; | ||
} | ||
#downloads { | ||
display: none; | ||
} | ||
#main_content { | ||
padding-top: 20px; | ||
} | ||
|
||
code, pre { | ||
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal; | ||
color: #222; | ||
margin-bottom: 30px; | ||
font-size: 12px; | ||
} | ||
|
||
code { | ||
padding: 0 3px; | ||
} | ||
|
||
pre { | ||
border: solid 1px #ddd; | ||
padding: 20px; | ||
overflow: auto; | ||
} | ||
pre code { | ||
padding: 0; | ||
} | ||
|
||
ul, ol, dl { | ||
margin-bottom: 20px; | ||
} | ||
|
||
|
||
/* COMMON STYLES */ | ||
|
||
table { | ||
width: 100%; | ||
border: 1px solid #ebebeb; | ||
} | ||
|
||
th { | ||
font-weight: 500; | ||
} | ||
|
||
td { | ||
border: 1px solid #ebebeb; | ||
text-align: center; | ||
font-weight: 300; | ||
} | ||
|
||
form { | ||
background: #f2f2f2; | ||
padding: 20px; | ||
|
||
} | ||
|
||
|
||
/* GENERAL ELEMENT TYPE STYLES */ | ||
|
||
h1 { | ||
font-size: 2.8em; | ||
} | ||
|
||
h2 { | ||
font-size: 22px; | ||
font-weight: bold; | ||
color: #303030; | ||
margin-bottom: 8px; | ||
} | ||
|
||
h3 { | ||
color: #d5000d; | ||
font-size: 18px; | ||
font-weight: bold; | ||
margin-bottom: 8px; | ||
} | ||
|
||
h4 { | ||
font-size: 16px; | ||
color: #303030; | ||
font-weight: bold; | ||
} | ||
|
||
h5 { | ||
font-size: 1em; | ||
color: #303030; | ||
} | ||
|
||
h6 { | ||
font-size: .8em; | ||
color: #303030; | ||
} | ||
|
||
p { | ||
font-weight: 300; | ||
margin-bottom: 20px; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
} | ||
|
||
p a { | ||
font-weight: 400; | ||
} | ||
|
||
blockquote { | ||
font-size: 1.6em; | ||
border-left: 10px solid #e9e9e9; | ||
margin-bottom: 20px; | ||
padding: 0 0 0 30px; | ||
} | ||
|
||
ul li { | ||
list-style: disc inside; | ||
padding-left: 20px; | ||
} | ||
|
||
ol li { | ||
list-style: decimal inside; | ||
padding-left: 3px; | ||
} | ||
|
||
dl dd { | ||
font-style: italic; | ||
font-weight: 100; | ||
} | ||
|
||
footer { | ||
margin-top: 40px; | ||
padding-top: 20px; | ||
padding-bottom: 30px; | ||
font-size: 13px; | ||
color: #aaa; | ||
} | ||
|
||
footer a { | ||
color: #666; | ||
} | ||
|
||
/* MISC */ | ||
.clearfix:after { | ||
clear: both; | ||
content: '.'; | ||
display: block; | ||
visibility: hidden; | ||
height: 0; | ||
} | ||
|
||
.clearfix {display: inline-block;} | ||
* html .clearfix {height: 1%;} | ||
.clearfix {display: block;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.highlight { background: #ffffff; } | ||
.highlight .c { color: #999988; font-style: italic } /* Comment */ | ||
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ | ||
.highlight .k { font-weight: bold } /* Keyword */ | ||
.highlight .o { font-weight: bold } /* Operator */ | ||
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ | ||
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ | ||
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ | ||
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ | ||
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ | ||
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ | ||
.highlight .ge { font-style: italic } /* Generic.Emph */ | ||
.highlight .gr { color: #aa0000 } /* Generic.Error */ | ||
.highlight .gh { color: #999999 } /* Generic.Heading */ | ||
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ | ||
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ | ||
.highlight .go { color: #888888 } /* Generic.Output */ | ||
.highlight .gp { color: #555555 } /* Generic.Prompt */ | ||
.highlight .gs { font-weight: bold } /* Generic.Strong */ | ||
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ | ||
.highlight .gt { color: #aa0000 } /* Generic.Traceback */ | ||
.highlight .kc { font-weight: bold } /* Keyword.Constant */ | ||
.highlight .kd { font-weight: bold } /* Keyword.Declaration */ | ||
.highlight .kn { font-weight: bold } /* Keyword.Namespace */ | ||
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ | ||
.highlight .kr { font-weight: bold } /* Keyword.Reserved */ | ||
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ | ||
.highlight .m { color: #009999 } /* Literal.Number */ | ||
.highlight .s { color: #d14 } /* Literal.String */ | ||
.highlight .na { color: #008080 } /* Name.Attribute */ | ||
.highlight .nb { color: #0086B3 } /* Name.Builtin */ | ||
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ | ||
.highlight .no { color: #008080 } /* Name.Constant */ | ||
.highlight .ni { color: #800080 } /* Name.Entity */ | ||
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ | ||
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ | ||
.highlight .nn { color: #555555 } /* Name.Namespace */ | ||
.highlight .nt { color: #000080 } /* Name.Tag */ | ||
.highlight .nv { color: #008080 } /* Name.Variable */ | ||
.highlight .ow { font-weight: bold } /* Operator.Word */ | ||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */ | ||
.highlight .mf { color: #009999 } /* Literal.Number.Float */ | ||
.highlight .mh { color: #009999 } /* Literal.Number.Hex */ | ||
.highlight .mi { color: #009999 } /* Literal.Number.Integer */ | ||
.highlight .mo { color: #009999 } /* Literal.Number.Oct */ | ||
.highlight .sb { color: #d14 } /* Literal.String.Backtick */ | ||
.highlight .sc { color: #d14 } /* Literal.String.Char */ | ||
.highlight .sd { color: #d14 } /* Literal.String.Doc */ | ||
.highlight .s2 { color: #d14 } /* Literal.String.Double */ | ||
.highlight .se { color: #d14 } /* Literal.String.Escape */ | ||
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ | ||
.highlight .si { color: #d14 } /* Literal.String.Interpol */ | ||
.highlight .sx { color: #d14 } /* Literal.String.Other */ | ||
.highlight .sr { color: #009926 } /* Literal.String.Regex */ | ||
.highlight .s1 { color: #d14 } /* Literal.String.Single */ | ||
.highlight .ss { color: #990073 } /* Literal.String.Symbol */ | ||
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ | ||
.highlight .vc { color: #008080 } /* Name.Variable.Class */ | ||
.highlight .vg { color: #008080 } /* Name.Variable.Global */ | ||
.highlight .vi { color: #008080 } /* Name.Variable.Instance */ | ||
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ | ||
|
||
.type-csharp .highlight .k { color: #0000FF } | ||
.type-csharp .highlight .kt { color: #0000FF } | ||
.type-csharp .highlight .nf { color: #000000; font-weight: normal } | ||
.type-csharp .highlight .nc { color: #2B91AF } | ||
.type-csharp .highlight .nn { color: #000000 } | ||
.type-csharp .highlight .s { color: #A31515 } | ||
.type-csharp .highlight .sc { color: #A31515 } |
Oops, something went wrong.