CHYBA: Too many connections
souborradekfunkceparametry
/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/podporuji-nas.php
1| <?php
2|     $Page_Title="Co se děje v Rubikonu";
3|     $Page_Keywords=""; // max 10 slov
4|     $Page_Description=""; // max 150 znaku
5|     include('header.php');
6| ?>
7| 
8| <div id="mainContent">
9|   <h1 class="pevny">Podporují nás</h1>
10|     <?
11|     if($_SESSION['adminLive'][$_SERVER['HTTP_HOST']]){
12|       if($_GET['smazNovinku']) dibi::query('delete from rubikon_novinky where id='.($_GET['smazNovinku']+0));
13|       if($_GET['novaNovinka']==1) dibi::query('insert into rubikon_novinky(nadpis,text,datum)values("Nová novinka","<p>Text nové novinky</p>",now())');
14|     ?>
15|     <a href="?novaNovinka=1" style="float:right">&lt;&lt;Vytvořit prázdnou novinku&gt;&gt;</a>
16|     <?
          
5 include
'/users/home/rubikon/systemrubikon/header.php'

GET
Array
(
)

POST
Array
(
)

SERVER
Array
(
    [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
    [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
    [HTTP_IF_MODIFIED_SINCE] => Mon, 08 Aug 2022 00:50:56 GMT
    [HTTP_ACCEPT_ENCODING] => br,gzip
    [HTTP_HOST] => systemrubikon.cz
    [HTTP_CONNECTION] => Keep-Alive
    [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
    [SERVER_SIGNATURE] => <address>Apache/2.2 Server at www.systemrubikon.cz Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.2
    [SERVER_NAME] => www.systemrubikon.cz
    [SERVER_ADDR] => 217.31.52.6
    [SERVER_PORT] => 80
    [REMOTE_HOST] => ec2-3-235-173-74.compute-1.amazonaws.com
    [REMOTE_ADDR] => 3.235.173.74
    [DOCUMENT_ROOT] => /users/home/rubikon/systemrubikon
    [SERVER_ADMIN] => sevcu@cis.cz
    [SCRIPT_FILENAME] => /users/home/rubikon/systemrubikon/podporuji-nas.php
    [REMOTE_PORT] => 38496
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /podporuji-nas.php
    [SCRIPT_NAME] => /podporuji-nas.php
    [PHP_SELF] => /podporuji-nas.php
    [REQUEST_TIME] => 1664413744
)