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
*** provider.c 2010-10-10 07:49:58.228327000 +0200 | |
--- patch/provider.c 2011-01-12 08:39:24.004000517 +0100 | |
*************** | |
*** 744,764 **** | |
do { | |
long cb_res; | |
- retval = oauth_provider_call_cb(INTERNAL_FUNCTION_PARAM_PASSTHRU, OAUTH_PROVIDER_TSNONCE_CB); | |
- if (retval) { | |
- convert_to_long(retval); |
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
private function verifyCaptcha($challenge,$response){ | |
$handle = curl_init("http://www.google.com/recaptcha/api/verify"); | |
$post = array("privatekey"=>$this->params['reCaptcha_private'], | |
"remoteip"=> $_SERVER['REMOTE_ADDR'], | |
"challenge"=>$challenge, | |
"response"=>$response); | |
curl_setopt($handle, CURLOPT_POST, true); | |
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($handle, CURLOPT_POSTFIELDS, $post); | |
$info = explode("\n",curl_exec($handle)); |
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
pate@pepette:/var/www$ mkdir test | |
pate@pepette:/var/www$ cd test/ | |
pate@pepette:/var/www/test$ git clone git://github.com/djpate/Kinaf.git | |
Cloning into Kinaf... | |
remote: Counting objects: 1150, done. | |
remote: Compressing objects: 100% (677/677), done. | |
remote: Total 1150 (delta 399), reused 1129 (delta 378) | |
Receiving objects: 100% (1150/1150), 915.54 KiB | 344 KiB/s, done. | |
Resolving deltas: 100% (399/399), done. | |
pate@pepette:/var/www/test$ cd Kinaf/ |
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
public function bind(array $values){ | |
foreach($values as $field => $value){ | |
$this->$field = $value; | |
} | |
} |
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
/** | |
* Cette fonction valide que les arguments necessaire a l'execution d'une action | |
* sur un controllert sont présent et qu'il respecte le typage fournie par le docblock | |
* de l'action | |
* @param string $method | |
* @param array $arguments | |
* @throws \BadMethodCallException | |
* @throws \InvalidArgumentException | |
*/ | |
public function checkArguments($method, $arguments){ |
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
$( "#user" ).autocomplete({ | |
source: {{routes.url_to('users', 'autocomplete')}}, | |
minLength: 2, | |
select: function( event, ui ) { | |
$('#input_user').val(ui.item.value); | |
}, | |
open: function() { | |
$( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" ); | |
}, | |
close: function() { |
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
echo in_array("test",array(true,false,0,1,"0","1","true","false")); | |
> 1 |
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
<?php | |
Class user{ | |
public function getAge(){ return "25";} | |
} | |
?> |
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
hello |
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
hello |
OlderNewer