-
-
Save buchin/7764592 to your computer and use it in GitHub Desktop.
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 | |
global $configs; | |
$configs = new stdClass; | |
$configs->domain = $_SERVER['SERVER_NAME']; | |
$configs->timer = 25; | |
$configs->infolinks = ' | |
<script type="text/javascript"> | |
var infolinks_pid = 421546; | |
var infolinks_wsid = 1; | |
</script> | |
<script type="text/javascript" src="http://resources.infolinks.com/js/infolinks_main.js"></script> | |
<script type="text/javascript"> | |
var vglnk = { api_url: \'//api.viglink.com/api\', | |
key: \'2f5bf09da3466bdf389ea50e188cfc17\' }; | |
(function(d, t) { | |
var s = d.createElement(t); s.type = \'text/javascript\'; s.async = true; | |
s.src = (\'https:\' == document.location.protocol ? vglnk.api_url : | |
\'//cdn.viglink.com/api\') + \'/vglnk.js\'; | |
var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r); | |
}(document, \'script\')); | |
</script> | |
'; | |
$app = new Slim(array( | |
'mode' => 'development', | |
'view' => 'h2oView' | |
)); | |
$app->configureMode('development', 'configure_development'); | |
function configure_development() | |
{ | |
$app = Slim::getInstance(); | |
$app->config(array( | |
'debug' => true | |
)); | |
} | |
$app->configureMode('production', 'configure_production'); | |
function configure_production() | |
{ | |
$app = Slim::getInstance(); | |
$app->config(array( | |
'debug' => false | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment