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 | |
if( ini_get('allow_url_fopen') ) { | |
die('allow_url_fopen is enabled. file_get_contents should work well'); | |
} else { | |
die('allow_url_fopen is disabled. file_get_contents would not work'); | |
} | |
?> |
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 | |
$session_path = ini_get('session.save_path'); | |
if( file_exists($session_path) ) { | |
echo 'Session path exists: ' . $session_path; | |
} else { | |
echo 'Session path doesn\'t exist: '; | |
echo $session_path; | |
exit(); | |
} |
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
/* | |
Uniform v1.7.5 | |
Copyright © 2009 Josh Pyles / Pixelmatrix Design LLC | |
http://pixelmatrixdesign.com | |
Requires jQuery 1.4 or newer | |
Much thanks to Thomas Reynolds and Buck Wilson for their help and advice on this |
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
var nodecr = require('nodecr'); | |
// Recognise text of any language in any format | |
nodecr.process(__dirname + '/images/correoe.tiff',function(err, text) { | |
if(err) { | |
console.error(err); | |
} else { | |
console.log(text); | |
} | |
}); |
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
var nodecr = require('nodecr'); | |
// Recognise text of any language in any format | |
nodecr.process(__dirname + '/images/correoe.png',function(err, text) { | |
if(err) { | |
console.error(err); | |
} else { | |
console.log(text); | |
} | |
}, null, null, null, nodecr.preprocessors.convert); |
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
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
nav, | |
section { |
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
/*jshint strict:false*/ | |
/*global CasperError, console, phantom, require*/ | |
var links = []; | |
var casper = require("casper").create(); | |
casper.defaultWaitForTimeout = 20000; | |
function getLinks() { | |
var links = document.querySelectorAll("a[name='productview']"); |
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
diff --git a/oc-includes/osclass/controller/search.php b/oc-includes/osclass/controller/search.php | |
index 402a079..5e281c4 100755 | |
--- a/oc-includes/osclass/controller/search.php | |
+++ b/oc-includes/osclass/controller/search.php | |
@@ -377,8 +377,8 @@ | |
$this->_exportVariableToView('search_alert', base64_encode($json)); | |
- //calling the view... | |
- if(count($aItems)==0 || !$successCat) { |
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 if ( !defined('ABS_PATH') ) exit('ABS_PATH is not loaded. Direct access is not allowed.'); | |
class ThemeBlockPages | |
{ | |
var $location; | |
var $section; | |
public function __construct() | |
{ | |
$this->location = Rewrite::newInstance()->get_location(); |
NewerOlder