1
|
<?php
|
2
|
/* SVN FILE: $Id: bootstrap.php 4409 2007-02-02 13:20:59Z phpnut $ */
|
3
|
/**
|
4
|
* Short description for file.
|
5
|
*
|
6
|
* Long description for file
|
7
|
*
|
8
|
* PHP versions 4 and 5
|
9
|
*
|
10
|
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
11
|
* Copyright 2005-2007, Cake Software Foundation, Inc.
|
12
|
* 1785 E. Sahara Avenue, Suite 490-204
|
13
|
* Las Vegas, Nevada 89104
|
14
|
*
|
15
|
* Licensed under The MIT License
|
16
|
* Redistributions of files must retain the above copyright notice.
|
17
|
*
|
18
|
* @filesource
|
19
|
* @copyright Copyright 2005-2007, Cake Software Foundation, Inc.
|
20
|
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
21
|
* @package cake
|
22
|
* @subpackage cake.app.config
|
23
|
* @since CakePHP(tm) v 0.10.8.2117
|
24
|
* @version $Revision: 4409 $
|
25
|
* @modifiedby $LastChangedBy: phpnut $
|
26
|
* @lastmodified $Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
|
27
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
28
|
*/
|
29
|
/**
|
30
|
*
|
31
|
* This file is loaded automatically by the app/webroot/index.php file after the core bootstrap.php is loaded
|
32
|
* This is an application wide file to load any function that is not used within a class define.
|
33
|
* You can also use this to include or require any files in your application.
|
34
|
*
|
35
|
*/
|
36
|
/**
|
37
|
* The settings below can be used to set additional paths to models, views and controllers.
|
38
|
* This is related to Ticket #470 (https://trac.cakephp.org/ticket/470)
|
39
|
*
|
40
|
* $modelPaths = array('full path to models', 'second full path to models', 'etc...');
|
41
|
* $viewPaths = array('this path to views', 'second full path to views', 'etc...');
|
42
|
* $controllerPaths = array('this path to controllers', 'second full path to controllers', 'etc...');
|
43
|
*
|
44
|
*/
|
45
|
///pr($_this);
|
46
|
///echo "PHP = ".$PHP_SELF;
|
47
|
|
48
|
//docasne comment
|
49
|
require WWW_ROOT . 'inc'.DS.'all.inc.php';
|
50
|
|
51
|
function bl($boolean) {
|
52
|
$returnYes = "Ano";
|
53
|
$returnNo = "Ne";
|
54
|
//echo("boolean:");pr($boolean);
|
55
|
if ($boolean === 'f') {
|
56
|
$boolean = false;
|
57
|
}
|
58
|
if ($boolean) {
|
59
|
//pr("Pisu: ano");
|
60
|
return $returnYes;
|
61
|
}
|
62
|
else {
|
63
|
//pr("Pisu: ne");
|
64
|
return $returnNo;
|
65
|
}
|
66
|
}
|
67
|
|
68
|
function getUrlString($array) {
|
69
|
|
70
|
if (empty($array)) {
|
71
|
return "";
|
72
|
}
|
73
|
$string = "?";
|
74
|
foreach ($array as $key => $value) {
|
75
|
if ($key !== 'url') {
|
76
|
if ($string !== "?") {
|
77
|
$string .= "&";
|
78
|
}
|
79
|
$string .= $key."=".$value;
|
80
|
}
|
81
|
}
|
82
|
return $string;
|
83
|
}
|
84
|
|
85
|
function echost($inputString, $message = 'Seznam není dostupný') {
|
86
|
if (empty($inputString)) $inputString = $message;
|
87
|
echo $inputString;
|
88
|
}
|
89
|
|
90
|
///echo ini_get('include_path');
|
91
|
//require CORE_PATH . 'cake' . DS . 'bootstrap.php';
|
92
|
|
93
|
///include('all.php');
|