-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcesty.php
89 lines (61 loc) · 3.43 KB
/
cesty.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
const JMENO_STREDISKO = 'Stredisko';
const JMENO_SEVERKA = 'Severka';
const JMENO_JIZNI_KRIZ = 'JizniKriz';
const JMENO_VLOCKA = 'Vlocka';
const JMENO_HIAWATHA = 'Hiawatha';
const JMENO_LOGA = 'Loga';
define('KOREN_WEBU', Tools::onLocalhost() ? '/stredisko' : '');
const ODDELOVAC_ADRESARU = '/';
const ADRESAR_KNIHOVNY = 'Knihovny';
const ADRESAR_OBRAZKY = 'Obrazky';
const ADRESAR_STREDISKO = 'Stredisko';
const ADRESAR_SEVERKA = 'Severka';
const ADRESAR_JIZNI_KRIZ = 'Jizni_kriz';
const ADRESAR_VLOCKA = 'Vlocka';
const ADRESAR_HIAWATHA = 'Hiawatha';
const ADRESAR_LOGA = 'loga';
const HLAVNI_TRIDA_SMARTY = 'Smarty-3.1.18/libs/Smarty.class.php';
const SOUBOR_STYLU = 'hlavni.css';
const SOUBOR_SKRIPTU = 'hlavni.js';
const ADRESA_JQUERY = '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js';
/* Smarty */
const ADRESAR_SMARTY = 'Smarty';
const ADRESAR_SMARTY_SABLONY = 'Sablony';
const ADRESAR_SMARTY_KOMPILACNI = 'Prelozene';
const ADRESAR_SMARTY_NASTAVENI = 'Nastaveni';
const ADRESAR_SMARTY_CACHE = 'Cache';
// Fotky
const FOTKA_VLOCKA = 'Vlocka.JPG';
const FOTKA_HIAWATHA = 'Hiawatha.jpg';
const FOTKA_JIZNI_KRIZ = 'Jizni_Kriz.jpg';
const FOTKA_SEVERKA = 'Severka.jpg';
define('TIMESTAMP', '?' . date(DATE_ATOM, time()));
// cesty
define('CESTA_ADRESAR_OBRAZKU', getcwd() . ODDELOVAC_ADRESARU . ADRESAR_OBRAZKY);
define('CESTA_ADRESAR_OBRAZKU_STREDISKO', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_STREDISKO);
define('CESTA_ADRESAR_OBRAZKU_SEVERKA', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_SEVERKA);
define('CESTA_ADRESAR_OBRAZKU_JIZNI_KRIZ', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_JIZNI_KRIZ);
define('CESTA_ADRESAR_OBRAZKU_VLOCKA', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_VLOCKA);
define('CESTA_ADRESAR_OBRAZKU_HIAWATHA', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_HIAWATHA);
define('CESTA_ADRESAR_OBRAZKU_LOGA', CESTA_ADRESAR_OBRAZKU . ODDELOVAC_ADRESARU . ADRESAR_LOGA);
/* Smatry */
define('CESTA_SMARTY_KNIHOVNA', getcwd() . ODDELOVAC_ADRESARU . ADRESAR_KNIHOVNY . ODDELOVAC_ADRESARU .
HLAVNI_TRIDA_SMARTY);
define('CESTA_SMARTY_SOUBORY', getcwd() . ODDELOVAC_ADRESARU . ADRESAR_SMARTY);
define('CESTA_SMARTY_SABLONY', CESTA_SMARTY_SOUBORY . ODDELOVAC_ADRESARU . ADRESAR_SMARTY_SABLONY . ODDELOVAC_ADRESARU);
define('CESTA_SMARTY_KOMPILACNI_ADRESAR', CESTA_SMARTY_SOUBORY . ODDELOVAC_ADRESARU . ADRESAR_SMARTY_KOMPILACNI .
ODDELOVAC_ADRESARU);
define('CESTA_SMARTY_NASTAVENI', CESTA_SMARTY_SOUBORY . ODDELOVAC_ADRESARU . ADRESAR_SMARTY_NASTAVENI .
ODDELOVAC_ADRESARU);
define('CESTA_SMARTY_CACHE', CESTA_SMARTY_SOUBORY . ODDELOVAC_ADRESARU . ADRESAR_SMARTY_CACHE . ODDELOVAC_ADRESARU);
// Adresy
define('ADRESA_KOREN_WEBU', 'http://' . $_SERVER["SERVER_NAME"] . ODDELOVAC_ADRESARU . KOREN_WEBU);
define('ADRESA_GLOBALNI_STYL', ADRESA_KOREN_WEBU . ODDELOVAC_ADRESARU . SOUBOR_STYLU . TIMESTAMP);
define('ADRESA_GLOBALNI_SKRIPT', ADRESA_KOREN_WEBU . ODDELOVAC_ADRESARU . SOUBOR_SKRIPTU);
define('ADRESA_ADRESARE_OBRAZKU', ADRESA_KOREN_WEBU . ODDELOVAC_ADRESARU . ADRESAR_OBRAZKY);
// Adresy fotky
define('ADRESA_FOTKA_VLOCKA', ADRESA_ADRESARE_OBRAZKU . ODDELOVAC_ADRESARU . FOTKA_VLOCKA);
define('ADRESA_FOTKA_HIAWATHA', ADRESA_ADRESARE_OBRAZKU . ODDELOVAC_ADRESARU . FOTKA_HIAWATHA);
define('ADRESA_FOTKA_JIZNI_KRIZ', ADRESA_ADRESARE_OBRAZKU . ODDELOVAC_ADRESARU . FOTKA_JIZNI_KRIZ);
define('ADRESA_FOTKA_SEVERKA', ADRESA_ADRESARE_OBRAZKU . ODDELOVAC_ADRESARU . FOTKA_SEVERKA);