soubor | radek | funkce | parametry |
/users/home/rubikon/systemrubikon/classes/dibi/libs/DibiConnection.php 130| * Connects to a database.
131| * @return void
132| */
133| final protected function connect()
134| {
135| if (!$this->connected) {
136| if ($this->profiler !== NULL) {
137| $ticket = $this->profiler->before($this, IDibiProfiler::CONNECT);
138| }
139| $this->driver->connect($this->config);
140| $this->connected = TRUE;
141| if (isset($ticket)) {
142| $this->profiler->after($ticket);
143| }
144| }
145| }
146|
147|
148|
149| /**
150| * Disconnects from a database.
|
139 |
connect |
config | array (
'driver' => 'mysql',
'host' => 'localhost',
'username' => 'systemrubikon',
'password' => 'sys3mV3lker',
'database' => 'rubikon_system',
'charset' => 'utf8',
'profiler' => true,
'name' => 0,
'options' => NULL,
) |
---|
|
/users/home/rubikon/systemrubikon/classes/dibi/libs/DibiConnection.php 102| }
103|
104| if (!empty($config['substitutes'])) {
105| foreach ($config['substitutes'] as $key => $value) {
106| dibi::addSubst($key, $value);
107| }
108| }
109|
110| if (empty($config['lazy'])) {
111| $this->connect();
112| }
113| }
114|
115|
116|
117| /**
118| * Automatically frees the resources allocated for this result set.
119| * @return void
120| */
121| public function __destruct()
122| {
|
111 |
connect |
|
/users/home/rubikon/systemrubikon/classes/dibi/dibi.php 182| /**
183| * Creates a new DibiConnection object and connects it to specified database.
184| * @param array|string|ArrayObject connection parameters
185| * @param string connection name
186| * @return DibiConnection
187| * @throws DibiException
188| */
189| public static function connect($config = array(), $name = 0)
190| {
191| return self::$connection = self::$registry[$name] = new DibiConnection($config, $name);
192| }
193|
194|
195|
196| /**
197| * Disconnects from database (doesn't destroy DibiConnection object).
198| * @return void
199| */
200| public static function disconnect()
201| {
202| self::getConnection()->disconnect();
|
191 |
__construct |
config | array (
'driver' => 'mysql',
'host' => 'localhost',
'username' => 'systemrubikon',
'password' => 'sys3mV3lker',
'database' => 'rubikon_system',
'charset' => 'utf8',
'profiler' => true,
) |
---|
name | 0 |
---|
|
/users/home/rubikon/systemrubikon/classes/autoload.php 22|
23| $conn=Dibi::connect(array(
24| 'driver' => 'mysql',
25| 'host' => $db_server,
26| 'username' => $db_user,
27| 'password' => $db_password,
28| 'database' => $db_database,
29| 'charset' => $db_setNames,
30| 'profiler' => true
31| ))->getDriver()->getResource();
32| //nacist pluginy
|
31 |
connect |
config | array (
'driver' => 'mysql',
'host' => 'localhost',
'username' => 'systemrubikon',
'password' => 'sys3mV3lker',
'database' => 'rubikon_system',
'charset' => 'utf8',
'profiler' => true,
) |
---|
|
/users/home/rubikon/systemrubikon/header.php 1| <?php
2| //gets filename, used in navigation
3| session_start();
4| require_once('./classes/autoload.php');
5|
6| $page = basename($_SERVER['SCRIPT_NAME']);
7|
8| if ($Page_Title) {
9| $Page_Title.=' - Rubikon';
10| } else {
11| $Page_Title='Rubikon - etická výchova pomocí moderní osvědčené pomůcky';
12| }
13|
14| if (!$Page_Keywords){
15| $Page_Keywords='Systém Rubikon, etická výchova, rubikon, výchova, motivace, žáci, škola';
|
4 |
require_once |
| '/users/home/rubikon/systemrubikon/classes/autoload.php' |
---|
|
/users/home/rubikon/systemrubikon/zkusenosti-z-overeni-systemu-rubikon.php 1| <?php
2| $Page_Title="Zkušenosti z pilotního ověření";
3| $Page_Keywords=""; // max 10 slov
4| $Page_Description=""; // max 150 znaku
5| include('header.php');
6|
7| showContent(SITE_ZKUSENOSTI);
8|
9| include('sidebar.php');
10| include('footer.php');
|
5 |
include |
| '/users/home/rubikon/systemrubikon/header.php' |
---|
|