This file contains hidden or 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 | |
// Function to get the client IP address | |
function get_client_ip() { | |
$ipaddress = ''; | |
if (isset($_SERVER['HTTP_CLIENT_IP'])) | |
$ipaddress = $_SERVER['HTTP_CLIENT_IP']; | |
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
else if(isset($_SERVER['HTTP_X_FORWARDED'])) | |
$ipaddress = $_SERVER['HTTP_X_FORWARDED']; |
This file contains hidden or 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
javascript: new(function() { | |
var ext = this; | |
var recognized_speech = ''; | |
ext.recognize_speech = function(callback) { | |
var recognition = new webkitSpeechRecognition(); | |
recognition.onresult = function(event) { | |
if (event.results.length > 0) { | |
recognized_speech = event.results[0][0].transcript; | |
if (typeof callback == "function") callback(); | |
} |
This file contains hidden or 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
(function(ext) { | |
// Cleanup function when the extension is unloaded | |
ext._shutdown = function() {}; | |
// Status reporting code | |
// Use this to report missing hardware, plugin or unsupported browser | |
ext._getStatus = function() { | |
return {status: 2, msg: 'Ready'}; | |
}; |
This file contains hidden or 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
(function(ext) { | |
// Cleanup function when the extension is unloaded | |
ext._shutdown = function() {}; | |
// Status reporting code | |
// Use this to report missing hardware, plugin or unsupported browser | |
ext._getStatus = function() { | |
return {status: 2, msg: 'Ready'}; | |
}; |
This file contains hidden or 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
(function(ext) { | |
ext._shutdown = function() {}; | |
ext._getStatus = function() { | |
return { | |
status: 2, | |
msg: 'Ready to use :)' | |
} | |
}; | |
var vars = { |
This file contains hidden or 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
(function(ext) { | |
// Cleanup function when the extension is unloaded | |
ext._shutdown = function() {}; | |
// Status reporting code | |
// Use this to report missing hardware, plugin or unsupported browser | |
ext._getStatus = function() { | |
return {status: 2, msg: 'Ready'}; | |
}; |