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 | |
/** | |
* This is a library based on an original Google code that handles reCAPTCHA v3. | |
* | |
* @author Jakub KUBÍČEK <[email protected]> | |
*/ | |
/** |
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> | |
<title>Načítava sa...</title> | |
<h1>Meno teraz je <span id='name'></span></h1> | |
<script> | |
const span = document.getElementById('name'); | |
const es = new EventSource('onChange.php'); | |
es.onmessage = function (msg) { |
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
# This regular expression is written by Kubo2 | |
# It is designed to syntactily match BB Tags in | |
# raw BB Code. | |
# | |
# It is written specifically for dh Project BB parser core - DH\BB\Parser. | |
# | |
# Author: Kubo2 <[email protected]> | |
# Date: 11/17/2014 | |
#--------------------------------------------------------------------------------------------- | |
# |
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
1.1 Čo sa má zobraziť po úspešnom zaregistrovaní nového používateľa? | |
1.2 Čo sa má zobraziť v prípade chyby? Nová stránka s chybovou správou alebo vypísať chyby do stránky? Kam? | |
2.1 Čo sa má zobraziť po úspešnom prihlásení používateľa? Má sa prejsť na nejakú konkrétnu stránku? | |
2.2 Aké špecifické funkcie majú byť implementované pre využitie iba prihláseným používateľom? | |
2.3 Ako sú prihlásením ovplyvnené všetky ostatné stránky? Ktoré informácie sa na nich majú zobraziť naviac/nezobraziť? | |
2.4 Čo v prípade neúspešného prihlásenia? Kam sa majú umiestniť chyby? | |
3.1 Ktoré informácie sa majú použiť ako kľúče (tj. pár login-heslo) k používateľskému účtu? | |
3.2 Ktoré ďalšie informácie majú byť súčasťou registračného dotazníka? |
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
#!/usr/bin/env python | |
import sys | |
import shelve | |
host_id = "stackoverflow.com" | |
room_id = "22091" | |
if len(sys.argv) == 1: | |
print(""" |
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
// set zoom event | |
window.onzoom = function(e) { | |
// zoom event | |
} | |
// detect resize | |
(function() { | |
var oldresize = window.onresize; | |
window.onresize = function(e) { |
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 | |
// autoloading | |
spl_autoload_register(function($nazov) { | |
if(is_file(__DIR__ . "/kontrolery/$nazov.php")) { | |
require(__DIR__ . "/kontrolery/$nazov.php"); | |
} else if(is_file(__DIR__ . "/modely/$nazov.php")) { | |
require(__DIR__ . "/modely/$nazov.php"); | |
} else { | |
throw new DomainException("Nie je možné načítať triedu $nazov", E_ERROR); |