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
AuthName "Komunikat okienka logowania"<br /> | |
AuthType Basica<br /> | |
AuthUserFile <?php echo dirname(__FILE__) . "/.htpasswd" ?><br /> | |
Require valid-user<br /> |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>promoTime</title> | |
</head> | |
<body> | |
<?php $dateFormat = '%e days, %H hours, %M minutes, %S seconds'; ?> |
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
try{ | |
FB.login(function(response) { | |
if(response.status=='connected') { | |
setLocation('<?php echo $this->getConnectUrl() ?>'); | |
} | |
}, { | |
scope: '<?php echo $this->getRequiredPermissions() ?>' | |
}); | |
} | |
catch(error) { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<directoryBrowse enabled="true" /> | |
<handlers> | |
<remove name="StaticFile" /> | |
<remove name="ASPClassic" /> | |
<add name="ASPClassic *.html" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Script" /> | |
<add name="ASPClassic" path="*.asp" verb="GET,HEAD,POST" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script" /> | |
<add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" scriptProcessor="" resourceType="Either" requireAccess="Read" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<location path="."> | |
<system.webServer> | |
<directoryBrowse enabled="true" /> | |
</system.webServer> | |
</location> | |
</configuration> |
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 __DirtySelectFix = function(elementId, selectSize) { | |
// if(navigator.appName == 'Microsoft Internet Explorer') { | |
// Defaults | |
element = typeof(elementId) != 'undefined' ? document.getElementById(elementId) : document.getElementsByTagName('select'), | |
selectSize = typeof(selectSize) != 'undefined' ? selectSize : 230; | |
// Init | |
var i=0; for(i=0; i < element.length; i++) { | |
var | |
wrapper = document.createElement('div'); | |
wrapper.style.width = selectSize+'px'; |
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
.wf-loading { | |
height: 100%; | |
overflow: hidden; | |
background: #fff url(../images/ajax-loader.gif) 50% 50% no-repeat fixed; | |
} | |
.wf-loading * { | |
opacity: 0; | |
} | |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tytul</title> | |
</head> | |
<body> | |
<div id='mojElement' data-prefix-options='{"href":"#targetElement", "inline":true, "iframe":false, "width":"300", "height":"130", "opacity":"0.25"}'> | |
Tekst... | |
</div> |
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 | |
define( 'DEBUG', ( isset( $_GET['debug'] ) ? true : false ) ); | |
function array_flatten( $arr ) { | |
$arr = array_values( $arr ); | |
while ( list( $k, $v )=each( $arr ) ) { | |
if ( is_array( $v ) ) { | |
array_splice( $arr, $k, 1, $v ); | |
next( $arr ); |