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 | |
if (isset($_GET['logout'])) { | |
session_start(); | |
session_unset(); | |
session_destroy(); | |
session_write_close(); | |
setcookie(session_name(),'',0,'/'); | |
session_regenerate_id(true); | |
header('location: ./'); | |
} |
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 changepiece($parameter, $value) | |
{ | |
$params = array(); | |
$output = "?"; | |
$firstRun = true; | |
foreach($_GET as $key=>$val) | |
{ | |
if($key != $parameter) | |
{ | |
if(!$firstRun) |
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
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME}\.php -f | |
RewriteRule ^(.*)$ $1.php |
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
if (navigator.userAgent.match(/IEMobile\/10\.0/)) { | |
var msViewportStyle = document.createElement("style"); | |
msViewportStyle.appendChild( | |
document.createTextNode( | |
"@-ms-viewport{width:auto!important}" | |
) | |
); | |
document.getElementsByTagName("head")[0]. | |
appendChild(msViewportStyle); | |
} |
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 handleTouch (evt) { | |
var touchX, touchY, xOffset, yOffset; | |
if (window.navigator.msPointerEnabled) { | |
var bodyEl = document.getElementByTagName('body')[0]; | |
bodyEl.style.msTouchAction = 'none'; | |
bodyEl.style.touchAction = 'none'; | |
} | |
// Normalize your touch events | |
touchX = evt.originalEvent.pageX || evt.originalEvent.changedTouches[0].screenX; | |
touchY = evt.originalEvent.pageY || evt.originalEvent.changedTouches[0].screenY; |
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
% -*- coding: utf-8 -*- | |
\documentclass[a4paper]{article} | |
\usepackage[slovene]{babel} % šumniki s \v{c} | |
\usepackage[utf8]{inputenc} % šumniki s č | |
\usepackage{mathtools} % za matematiko | |
\usepackage{amssymb} % za dodatne simbole, \mathbb{F, R, N..} | |
\title{My Title} | |
\author{My Name} |
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 | |
if (!function_exists('mb_ucwords')) | |
{ | |
function mb_ucwords($str) | |
{ | |
return mb_convert_case($str, MB_CASE_TITLE, "UTF-8"); | |
} | |
} | |
?> |
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
<select name="obcina"> | |
<option> | |
Izberi | |
</option> | |
<option value="192"> | |
Ajdovščina | |
</option> | |
<option value="205"> | |
Ankaran | |
</option> |
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
<select name="regija"> | |
<option> | |
Izberi | |
</option> | |
<option value="gorenjska"> | |
Gorenjska regija | |
</option> | |
<option value="goriska"> | |
Goriška regija | |
</option> |
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
<select name="mesto"> | |
<option> | |
Izberi | |
</option> | |
<option value="Adlešiči"> | |
Adlešiči | |
</option> | |
<option value="Ajdovščina"> |
OlderNewer