missing files

This commit is contained in:
Marek Sebera 2013-01-22 23:16:49 +01:00
parent 5113689578
commit 880f3d5429
29 changed files with 1236 additions and 0 deletions

View file

@ -0,0 +1,72 @@
<?php
/**
* This is Acl Schema file
*
* Use it to configure database for ACL
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config.Schema
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/*
*
* Using the Schema command line utility
* cake schema run create DbAcl
*
*/
class DbAclSchema extends CakeSchema {
public $name = 'DbAcl';
public function before($event = array()) {
return true;
}
public function after($event = array()) {
}
public $acos = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'model' => array('type' => 'string', 'null' => true),
'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'alias' => array('type' => 'string', 'null' => true),
'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
public $aros = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
'parent_id' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'model' => array('type' => 'string', 'null' => true),
'foreign_key' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'alias' => array('type' => 'string', 'null' => true),
'lft' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'rght' => array('type' => 'integer', 'null' => true, 'default' => null, 'length' => 10),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
public $aros_acos = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
'aro_id' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
'aco_id' => array('type' => 'integer', 'null' => false, 'length' => 10),
'_create' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
'_read' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
'_update' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
'_delete' => array('type' => 'string', 'null' => false, 'default' => '0', 'length' => 2),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'ARO_ACO_KEY' => array('column' => array('aro_id', 'aco_id'), 'unique' => 1))
);
}

View file

@ -0,0 +1,40 @@
# $Id$
#
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
# MIT License (http://www.opensource.org/licenses/mit-license.php)
CREATE TABLE acos (
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
parent_id INTEGER(10) DEFAULT NULL,
model VARCHAR(255) DEFAULT '',
foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
alias VARCHAR(255) DEFAULT '',
lft INTEGER(10) DEFAULT NULL,
rght INTEGER(10) DEFAULT NULL,
PRIMARY KEY (id)
);
CREATE TABLE aros_acos (
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
aro_id INTEGER(10) UNSIGNED NOT NULL,
aco_id INTEGER(10) UNSIGNED NOT NULL,
_create CHAR(2) NOT NULL DEFAULT 0,
_read CHAR(2) NOT NULL DEFAULT 0,
_update CHAR(2) NOT NULL DEFAULT 0,
_delete CHAR(2) NOT NULL DEFAULT 0,
PRIMARY KEY(id)
);
CREATE TABLE aros (
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
parent_id INTEGER(10) DEFAULT NULL,
model VARCHAR(255) DEFAULT '',
foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
alias VARCHAR(255) DEFAULT '',
lft INTEGER(10) DEFAULT NULL,
rght INTEGER(10) DEFAULT NULL,
PRIMARY KEY (id)
);

View file

@ -0,0 +1,52 @@
<?php
/**
* This is i18n Schema file
*
* Use it to configure database for i18n
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config.Schema
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
// @codingStandardsIgnoreStart
/*
*
* Using the Schema command line utility
* cake schema run create i18n
*/
class i18nSchema extends CakeSchema {
// @codingStandardsIgnoreEnd
public $name = 'i18n';
public function before($event = array()) {
return true;
}
public function after($event = array()) {
}
public $i18n = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
'locale' => array('type' => 'string', 'null' => false, 'length' => 6, 'key' => 'index'),
'model' => array('type' => 'string', 'null' => false, 'key' => 'index'),
'foreign_key' => array('type' => 'integer', 'null' => false, 'length' => 10, 'key' => 'index'),
'field' => array('type' => 'string', 'null' => false, 'key' => 'index'),
'content' => array('type' => 'text', 'null' => true, 'default' => null),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1), 'locale' => array('column' => 'locale', 'unique' => 0), 'model' => array('column' => 'model', 'unique' => 0), 'row_id' => array('column' => 'foreign_key', 'unique' => 0), 'field' => array('column' => 'field', 'unique' => 0))
);
}

View file

@ -0,0 +1,26 @@
# $Id$
#
# Copyright 2005-2012, Cake Software Foundation, Inc.
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
# MIT License (http://www.opensource.org/licenses/mit-license.php)
CREATE TABLE i18n (
id int(10) NOT NULL auto_increment,
locale varchar(6) NOT NULL,
model varchar(255) NOT NULL,
foreign_key int(10) NOT NULL,
field varchar(255) NOT NULL,
content mediumtext,
PRIMARY KEY (id),
# UNIQUE INDEX I18N_LOCALE_FIELD(locale, model, foreign_key, field),
# INDEX I18N_LOCALE_ROW(locale, model, foreign_key),
# INDEX I18N_LOCALE_MODEL(locale, model),
# INDEX I18N_FIELD(model, foreign_key, field),
# INDEX I18N_ROW(model, foreign_key),
INDEX locale (locale),
INDEX model (model),
INDEX row_id (foreign_key),
INDEX field (field)
);

View file

@ -0,0 +1,46 @@
<?php
/**
* This is Sessions Schema file
*
* Use it to configure database for Sessions
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config.Schema
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/*
*
* Using the Schema command line utility
* cake schema run create Sessions
*
*/
class SessionsSchema extends CakeSchema {
public $name = 'Sessions';
public function before($event = array()) {
return true;
}
public function after($event = array()) {
}
public $cake_sessions = array(
'id' => array('type' => 'string', 'null' => false, 'key' => 'primary'),
'data' => array('type' => 'text', 'null' => true, 'default' => null),
'expires' => array('type' => 'integer', 'null' => true, 'default' => null),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
);
}

View file

@ -0,0 +1,16 @@
# $Id$
#
# Copyright 2005-2012, Cake Software Foundation, Inc.
# 1785 E. Sahara Avenue, Suite 490-204
# Las Vegas, Nevada 89104
#
# Licensed under The MIT License
# Redistributions of files must retain the above copyright notice.
# MIT License (http://www.opensource.org/licenses/mit-license.php)
CREATE TABLE cake_sessions (
id varchar(255) NOT NULL default '',
data text,
expires int(11) default NULL,
PRIMARY KEY (id)
);

68
app/Config/acl.ini.php Normal file
View file

@ -0,0 +1,68 @@
;<?php exit() ?>
;/**
; * ACL Configuration
; *
; *
; * PHP 5
; *
; * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
; * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
; *
; * Licensed under The MIT License
; * Redistributions of files must retain the above copyright notice.
; *
; * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
; * @link http://cakephp.org CakePHP(tm) Project
; * @package app.Config
; * @since CakePHP(tm) v 0.10.0.1076
; * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
; */
; acl.ini.php - Cake ACL Configuration
; ---------------------------------------------------------------------
; Use this file to specify user permissions.
; aco = access control object (something in your application)
; aro = access request object (something requesting access)
;
; User records are added as follows:
;
; [uid]
; groups = group1, group2, group3
; allow = aco1, aco2, aco3
; deny = aco4, aco5, aco6
;
; Group records are added in a similar manner:
;
; [gid]
; allow = aco1, aco2, aco3
; deny = aco4, aco5, aco6
;
; The allow, deny, and groups sections are all optional.
; NOTE: groups names *cannot* ever be the same as usernames!
;
; ACL permissions are checked in the following order:
; 1. Check for user denies (and DENY if specified)
; 2. Check for user allows (and ALLOW if specified)
; 3. Gather user's groups
; 4. Check group denies (and DENY if specified)
; 5. Check group allows (and ALLOW if specified)
; 6. If no aro, aco, or group information is found, DENY
;
; ---------------------------------------------------------------------
;-------------------------------------
;Users
;-------------------------------------
[username-goes-here]
groups = group1, group2
deny = aco1, aco2
allow = aco3, aco4
;-------------------------------------
;Groups
;-------------------------------------
[groupname-goes-here]
deny = aco5, aco6
allow = aco7, aco8

134
app/Config/acl.php Normal file
View file

@ -0,0 +1,134 @@
<?php
/**
* This is the PHP base ACL configuration file.
*
* Use it to configure access control of your Cake application.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 2.1
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* Example
* -------
*
* Assumptions:
*
* 1. In your application you created a User model with the following properties:
* username, group_id, password, email, firstname, lastname and so on.
* 2. You configured AuthComponent to authorize actions via
* $this->Auth->authorize = array('Actions' => array('actionPath' => 'controllers/'),...)
*
* Now, when a user (i.e. jeff) authenticates successfully and requests a controller action (i.e. /invoices/delete)
* that is not allowed by default (e.g. via $this->Auth->allow('edit') in the Invoices controller) then AuthComponent
* will ask the configured ACL interface if access is granted. Under the assumptions 1. and 2. this will be
* done via a call to Acl->check() with
*
* array('User' => array('username' => 'jeff', 'group_id' => 4, ...))
*
* as ARO and
*
* '/controllers/invoices/delete'
*
* as ACO.
*
* If the configured map looks like
*
* $config['map'] = array(
* 'User' => 'User/username',
* 'Role' => 'User/group_id',
* );
*
* then PhpAcl will lookup if we defined a role like User/jeff. If that role is not found, PhpAcl will try to
* find a definition for Role/4. If the definition isn't found then a default role (Role/default) will be used to
* check rules for the given ACO. The search can be expanded by defining aliases in the alias configuration.
* E.g. if you want to use a more readable name than Role/4 in your definitions you can define an alias like
*
* $config['alias'] = array(
* 'Role/4' => 'Role/editor',
* );
*
* In the roles configuration you can define roles on the lhs and inherited roles on the rhs:
*
* $config['roles'] = array(
* 'Role/admin' => null,
* 'Role/accountant' => null,
* 'Role/editor' => null,
* 'Role/manager' => 'Role/editor, Role/accountant',
* 'User/jeff' => 'Role/manager',
* );
*
* In this example manager inherits all rules from editor and accountant. Role/admin doesn't inherit from any role.
* Lets define some rules:
*
* $config['rules'] = array(
* 'allow' => array(
* '*' => 'Role/admin',
* 'controllers/users/(dashboard|profile)' => 'Role/default',
* 'controllers/invoices/*' => 'Role/accountant',
* 'controllers/articles/*' => 'Role/editor',
* 'controllers/users/*' => 'Role/manager',
* 'controllers/invoices/delete' => 'Role/manager',
* ),
* 'deny' => array(
* 'controllers/invoices/delete' => 'Role/accountant, User/jeff',
* 'controllers/articles/(delete|publish)' => 'Role/editor',
* ),
* );
*
* Ok, so as jeff inherits from Role/manager he's matched every rule that references User/jeff, Role/manager,
* Role/editor, Role/accountant and Role/default. However, for jeff, rules for User/jeff are more specific than
* rules for Role/manager, rules for Role/manager are more specific than rules for Role/editor and so on.
* This is important when allow and deny rules match for a role. E.g. Role/accountant is allowed
* controllers/invoices/* but at the same time controllers/invoices/delete is denied. But there is a more
* specific rule defined for Role/manager which is allowed controllers/invoices/delete. However, the most specific
* rule denies access to the delete action explicitly for User/jeff, so he'll be denied access to the resource.
*
* If we would remove the role definition for User/jeff, then jeff would be granted access as he would be resolved
* to Role/manager and Role/manager has an allow rule.
*/
/**
* The role map defines how to resolve the user record from your application
* to the roles you defined in the roles configuration.
*/
$config['map'] = array(
'User' => 'User/username',
'Role' => 'User/group_id',
);
/**
* define aliases to map your model information to
* the roles defined in your role configuration.
*/
$config['alias'] = array(
'Role/4' => 'Role/editor',
);
/**
* role configuration
*/
$config['roles'] = array(
'Role/admin' => null,
);
/**
* rule configuration
*/
$config['rules'] = array(
'allow' => array(
'*' => 'Role/admin',
),
'deny' => array(),
);

181
app/Config/bootstrap.php Normal file
View file

@ -0,0 +1,181 @@
<?php
/**
* This file is loaded automatically by the app/webroot/index.php file after core.php
*
* This file should load/create any application wide configuration settings, such as
* Caching, Logging, loading additional configuration files.
*
* You should also use this file to include any files that provide global functions/constants
* that your application uses.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.10.8.2117
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* Cache Engine Configuration
* Default settings provided below
*
* File storage engine.
*
* Cache::config('default', array(
* 'engine' => 'File', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'path' => CACHE, //[optional] use system tmp directory - remember to use absolute path
* 'prefix' => 'cake_', //[optional] prefix every cache file with this string
* 'lock' => false, //[optional] use file locking
* 'serialize' => true, // [optional]
* 'mask' => 0666, // [optional] permission mask to use when creating cache files
* ));
*
* APC (http://pecl.php.net/package/APC)
*
* Cache::config('default', array(
* 'engine' => 'Apc', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* ));
*
* Xcache (http://xcache.lighttpd.net/)
*
* Cache::config('default', array(
* 'engine' => 'Xcache', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* 'user' => 'user', //user from xcache.admin.user settings
* 'password' => 'password', //plaintext password (xcache.admin.pass)
* ));
*
* Memcache (http://memcached.org/)
*
* Cache::config('default', array(
* 'engine' => 'Memcache', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* 'servers' => array(
* '127.0.0.1:11211' // localhost, default port 11211
* ), //[optional]
* 'persistent' => true, // [optional] set this to false for non-persistent connections
* 'compress' => false, // [optional] compress data in Memcache (slower, but uses less memory)
* ));
*
* Wincache (http://php.net/wincache)
*
* Cache::config('default', array(
* 'engine' => 'Wincache', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* ));
*
* Redis (http://http://redis.io/)
*
* Cache::config('default', array(
* 'engine' => 'Redis', //[required]
* 'duration'=> 3600, //[optional]
* 'probability'=> 100, //[optional]
* 'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
* 'server' => '127.0.0.1' // localhost
* 'port' => 6379 // default port 6379
* 'timeout' => 0 // timeout in seconds, 0 = unlimited
* 'persistent' => true, // [optional] set this to false for non-persistent connections
* ));
*/
Cache::config('default', array('engine' => 'File'));
/**
* The settings below can be used to set additional paths to models, views and controllers.
*
* App::build(array(
* 'Model' => array('/path/to/models', '/next/path/to/models'),
* 'Model/Behavior' => array('/path/to/behaviors', '/next/path/to/behaviors'),
* 'Model/Datasource' => array('/path/to/datasources', '/next/path/to/datasources'),
* 'Model/Datasource/Database' => array('/path/to/databases', '/next/path/to/database'),
* 'Model/Datasource/Session' => array('/path/to/sessions', '/next/path/to/sessions'),
* 'Controller' => array('/path/to/controllers', '/next/path/to/controllers'),
* 'Controller/Component' => array('/path/to/components', '/next/path/to/components'),
* 'Controller/Component/Auth' => array('/path/to/auths', '/next/path/to/auths'),
* 'Controller/Component/Acl' => array('/path/to/acls', '/next/path/to/acls'),
* 'View' => array('/path/to/views', '/next/path/to/views'),
* 'View/Helper' => array('/path/to/helpers', '/next/path/to/helpers'),
* 'Console' => array('/path/to/consoles', '/next/path/to/consoles'),
* 'Console/Command' => array('/path/to/commands', '/next/path/to/commands'),
* 'Console/Command/Task' => array('/path/to/tasks', '/next/path/to/tasks'),
* 'Lib' => array('/path/to/libs', '/next/path/to/libs'),
* 'Locale' => array('/path/to/locales', '/next/path/to/locales'),
* 'Vendor' => array('/path/to/vendors', '/next/path/to/vendors'),
* 'Plugin' => array('/path/to/plugins', '/next/path/to/plugins'),
* ));
*
*/
/**
* Custom Inflector rules, can be set to correctly pluralize or singularize table, model, controller names or whatever other
* string is passed to the inflection functions
*
* Inflector::rules('singular', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
* Inflector::rules('plural', array('rules' => array(), 'irregular' => array(), 'uninflected' => array()));
*
*/
/**
* Plugins need to be loaded manually, you can either load them one by one or all of them in a single call
* Uncomment one of the lines below, as you need. make sure you read the documentation on CakePlugin to use more
* advanced ways of loading plugins
*
* CakePlugin::loadAll(); // Loads all plugins at once
* CakePlugin::load('DebugKit'); //Loads a single plugin named DebugKit
*
*/
/**
* You can attach event listeners to the request lifecyle as Dispatcher Filter . By Default CakePHP bundles two filters:
*
* - AssetDispatcher filter will serve your asset files (css, images, js, etc) from your themes and plugins
* - CacheDispatcher filter will read the Cache.check configure variable and try to serve cached content generated from controllers
*
* Feel free to remove or add filters as you see fit for your application. A few examples:
*
* Configure::write('Dispatcher.filters', array(
* 'MyCacheFilter', // will use MyCacheFilter class from the Routing/Filter package in your app.
* 'MyPlugin.MyFilter', // will use MyFilter class from the Routing/Filter package in MyPlugin plugin.
* array('callable' => $aFunction, 'on' => 'before', 'priority' => 9), // A valid PHP callback type to be called on beforeDispatch
* array('callable' => $anotherMethod, 'on' => 'after'), // A valid PHP callback type to be called on afterDispatch
*
* ));
*/
Configure::write('Dispatcher.filters', array(
'AssetDispatcher',
'CacheDispatcher'
));
/**
* Configures default file logging options
*/
App::uses('CakeLog', 'Log');
CakeLog::config('debug', array(
'engine' => 'FileLog',
'types' => array('notice', 'info', 'debug'),
'file' => 'debug',
));
CakeLog::config('error', array(
'engine' => 'FileLog',
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'),
'file' => 'error',
));

280
app/Config/core.php Normal file
View file

@ -0,0 +1,280 @@
<?php
/**
* This is core configuration file.
*
* Use it to configure core behavior of Cake.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* CakePHP Debug Level:
*
* Production Mode:
* 0: No error messages, errors, or warnings shown. Flash messages redirect.
*
* Development Mode:
* 1: Errors and warnings shown, model caches refreshed, flash messages halted.
* 2: As in 1, but also with full debug messages and SQL output.
*
* In production mode, flash messages redirect after a time interval.
* In development mode, you need to click the flash message to continue.
*/
Configure::write('debug', 0);
/**
* Configure the Error handler used to handle errors for your application. By default
* ErrorHandler::handleError() is used. It will display errors using Debugger, when debug > 0
* and log errors with CakeLog when debug = 0.
*
* Options:
*
* - `handler` - callback - The callback to handle errors. You can set this to any callable type,
* including anonymous functions.
* Make sure you add App::uses('MyHandler', 'Error'); when using a custom handler class
* - `level` - int - The level of errors you are interested in capturing.
* - `trace` - boolean - Include stack traces for errors in log files.
*
* @see ErrorHandler for more information on error handling and configuration.
*/
Configure::write('Error', array(
'handler' => 'ErrorHandler::handleError',
'level' => E_ALL & ~E_DEPRECATED,
'trace' => true
));
/**
* Configure the Exception handler used for uncaught exceptions. By default,
* ErrorHandler::handleException() is used. It will display a HTML page for the exception, and
* while debug > 0, framework errors like Missing Controller will be displayed. When debug = 0,
* framework errors will be coerced into generic HTTP errors.
*
* Options:
*
* - `handler` - callback - The callback to handle exceptions. You can set this to any callback type,
* including anonymous functions.
* Make sure you add App::uses('MyHandler', 'Error'); when using a custom handler class
* - `renderer` - string - The class responsible for rendering uncaught exceptions. If you choose a custom class you
* should place the file for that class in app/Lib/Error. This class needs to implement a render method.
* - `log` - boolean - Should Exceptions be logged?
*
* @see ErrorHandler for more information on exception handling and configuration.
*/
Configure::write('Exception', array(
'handler' => 'ErrorHandler::handleException',
'renderer' => 'ExceptionRenderer',
'log' => true
));
/**
* Application wide charset encoding
*/
Configure::write('App.encoding', 'UTF-8');
/**
* To configure CakePHP *not* to use mod_rewrite and to
* use CakePHP pretty URLs, remove these .htaccess
* files:
*
* /.htaccess
* /app/.htaccess
* /app/webroot/.htaccess
*
* And uncomment the App.baseUrl below:
*/
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));
/**
* Uncomment the define below to use CakePHP prefix routes.
*
* The value of the define determines the names of the routes
* and their associated controller actions:
*
* Set to an array of prefixes you want to use in your application. Use for
* admin or other prefixed routes.
*
* Routing.prefixes = array('admin', 'manager');
*
* Enables:
* `admin_index()` and `/admin/controller/index`
* `manager_index()` and `/manager/controller/index`
*
*/
//Configure::write('Routing.prefixes', array('admin'));
/**
* Turn off all caching application-wide.
*
*/
//Configure::write('Cache.disable', true);
/**
* Enable cache checking.
*
* If set to true, for view caching you must still use the controller
* public $cacheAction inside your controllers to define caching settings.
* You can either set it controller-wide by setting public $cacheAction = true,
* or in each action using $this->cacheAction = true.
*
*/
//Configure::write('Cache.check', true);
/**
* Defines the default error type when using the log() function. Used for
* differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
*/
define('LOG_ERROR', LOG_ERR);
/**
* Session configuration.
*
* Contains an array of settings to use for session configuration. The defaults key is
* used to define a default preset to use for sessions, any settings declared here will override
* the settings of the default config.
*
* ## Options
*
* - `Session.cookie` - The name of the cookie to use. Defaults to 'CAKEPHP'
* - `Session.timeout` - The number of minutes you want sessions to live for. This timeout is handled by CakePHP
* - `Session.cookieTimeout` - The number of minutes you want session cookies to live for.
* - `Session.checkAgent` - Do you want the user agent to be checked when starting sessions? You might want to set the
* value to false, when dealing with older versions of IE, Chrome Frame or certain web-browsing devices and AJAX
* - `Session.defaults` - The default configuration set to use as a basis for your session.
* There are four builtins: php, cake, cache, database.
* - `Session.handler` - Can be used to enable a custom session handler. Expects an array of of callables,
* that can be used with `session_save_handler`. Using this option will automatically add `session.save_handler`
* to the ini array.
* - `Session.autoRegenerate` - Enabling this setting, turns on automatic renewal of sessions, and
* sessionids that change frequently. See CakeSession::$requestCountdown.
* - `Session.ini` - An associative array of additional ini values to set.
*
* The built in defaults are:
*
* - 'php' - Uses settings defined in your php.ini.
* - 'cake' - Saves session files in CakePHP's /tmp directory.
* - 'database' - Uses CakePHP's database sessions.
* - 'cache' - Use the Cache class to save sessions.
*
* To define a custom session handler, save it at /app/Model/Datasource/Session/<name>.php.
* Make sure the class implements `CakeSessionHandlerInterface` and set Session.handler to <name>
*
* To use database sessions, run the app/Config/Schema/sessions.php schema using
* the cake shell command: cake schema create Sessions
*
*/
Configure::write('Session', array(
'defaults' => 'php'
));
/**
* The level of CakePHP security.
*/
Configure::write('Security.level', 'medium');
/**
* A random string used in security hashing methods.
*/
Configure::write('Security.salt', 'ouzgouZFUtfouvKUZFuvutzfULZVu');
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Configure::write('Security.cipherSeed', '76464236855854567435');
/**
* Apply timestamps with the last modified time to static assets (js, css, images).
* Will append a querystring parameter containing the time the file was modified. This is
* useful for invalidating browser caches.
*
* Set to `true` to apply timestamps when debug > 0. Set to 'force' to always enable
* timestamping regardless of debug value.
*/
//Configure::write('Asset.timestamp', true);
/**
* Compress CSS output by removing comments, whitespace, repeating tags, etc.
* This requires a/var/cache directory to be writable by the web server for caching.
* and /vendors/csspp/csspp.php
*
* To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use HtmlHelper::css().
*/
//Configure::write('Asset.filter.css', 'css.php');
/**
* Plug in your own custom JavaScript compressor by dropping a script in your webroot to handle the
* output, and setting the config below to the name of the script.
*
* To use, prefix your JavaScript link URLs with '/cjs/' instead of '/js/' or use JavaScriptHelper::link().
*/
//Configure::write('Asset.filter.js', 'custom_javascript_output_filter.php');
/**
* The classname and database used in CakePHP's
* access control lists.
*/
Configure::write('Acl.classname', 'DbAcl');
Configure::write('Acl.database', 'default');
/**
* Uncomment this line and correct your server timezone to fix
* any date & time related errors.
*/
//date_default_timezone_set('UTC');
/**
* Pick the caching engine to use. If APC is enabled use it.
* If running via cli - apc is disabled by default. ensure it's available and enabled in this case
*
* Note: 'default' and other application caches should be configured in app/Config/bootstrap.php.
* Please check the comments in boostrap.php for more info on the cache engines available
* and their setttings.
*/
$engine = 'File';
if (extension_loaded('apc') && function_exists('apc_dec') && (php_sapi_name() !== 'cli' || ini_get('apc.enable_cli'))) {
$engine = 'Apc';
}
// In development mode, caches should expire quickly.
$duration = '+999 days';
if (Configure::read('debug') >= 1) {
$duration = '+10 seconds';
}
// Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts.
$prefix = 'myapp_';
/**
* Configure the cache used for general framework caching. Path information,
* object listings, and translation cache files are stored with this configuration.
*/
Cache::config('_cake_core_', array(
'engine' => $engine,
'prefix' => $prefix . 'cake_core_',
'path' => CACHE . 'persistent' . DS,
'serialize' => ($engine === 'File'),
'duration' => $duration
));
/**
* Configure the cache for model and datasource caches. This cache configuration
* is used to store schema descriptions, and table listings in connections.
*/
Cache::config('_cake_model_', array(
'engine' => $engine,
'prefix' => $prefix . 'cake_model_',
'path' => CACHE . 'models' . DS,
'serialize' => ($engine === 'File'),
'duration' => $duration
));

73
app/Config/database.php Normal file
View file

@ -0,0 +1,73 @@
<?php
/**
* This is core configuration file.
*
* Use it to configure core behaviour of Cake.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* In this file you set up your database connection details.
*
* @package cake.config
*/
/**
* Database configuration class.
* You can specify multiple configurations for production, development and testing.
*
* datasource => The name of a supported datasource; valid options are as follows:
* Database/Mysql - MySQL 4 & 5,
* Database/Sqlite - SQLite (PHP5 only),
* Database/Postgres - PostgreSQL 7 and higher,
* Database/Sqlserver - Microsoft SQL Server 2005 and higher
*
* You can add custom database datasources (or override existing datasources) by adding the
* appropriate file to app/Model/Datasource/Database. Datasources should be named 'MyDatasource.php',
*
*
* persistent => true / false
* Determines whether or not the database should use a persistent connection
*
* host =>
* the host you connect to the database. To add a socket or port number, use 'port' => #
*
* prefix =>
* Uses the given prefix for all the tables in this database. This setting can be overridden
* on a per-table basis with the Model::$tablePrefix property.
*
* schema =>
* For Postgres specifies which schema you would like to use the tables in. Postgres defaults to 'public'.
*
* encoding =>
* For MySQL, Postgres specifies the character encoding to use when connecting to the
* database. Uses database default not specified.
*
* unix_socket =>
* For MySQL to connect via socket specify the `unix_socket` parameter instead of `host` and `port`
*/
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'brmsklad',
'password' => 'brmskladpass',
'database' => 'brmsklad',
'prefix' => '',
'encoding' => 'utf8',
);
}

View file

@ -0,0 +1,97 @@
<?php
/**
* This is email configuration file.
*
* Use it to configure email transports of Cake.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 2.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* In this file you set up your send email details.
*
* @package cake.config
*/
/**
* Email configuration class.
* You can specify multiple configurations for production, development and testing.
*
* transport => The name of a supported transport; valid options are as follows:
* Mail - Send using PHP mail function
* Smtp - Send using SMTP
* Debug - Do not send the email, just return the result
*
* You can add custom transports (or override existing transports) by adding the
* appropriate file to app/Network/Email. Transports should be named 'YourTransport.php',
* where 'Your' is the name of the transport.
*
* from =>
* The origin email. See CakeEmail::from() about the valid values
*
*/
class EmailConfig {
public $default = array(
'transport' => 'Mail',
'from' => 'you@localhost',
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
public $smtp = array(
'transport' => 'Smtp',
'from' => array('site@localhost' => 'My Site'),
'host' => 'localhost',
'port' => 25,
'timeout' => 30,
'username' => 'user',
'password' => 'secret',
'client' => null,
'log' => false,
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
public $fast = array(
'from' => 'you@localhost',
'sender' => null,
'to' => null,
'cc' => null,
'bcc' => null,
'replyTo' => null,
'readReceipt' => null,
'returnPath' => null,
'messageId' => true,
'subject' => null,
'message' => null,
'headers' => null,
'viewRender' => null,
'template' => false,
'layout' => false,
'viewVars' => null,
'attachments' => null,
'emailFormat' => null,
'transport' => 'Smtp',
'host' => 'localhost',
'port' => 25,
'timeout' => 30,
'username' => 'user',
'password' => 'secret',
'client' => null,
'log' => true,
//'charset' => 'utf-8',
//'headerCharset' => 'utf-8',
);
}

35
app/Config/routes.php Normal file
View file

@ -0,0 +1,35 @@
<?php
/**
* Routes configuration
*
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (functions).
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package app.Config
* @since CakePHP(tm) v 0.2.9
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* Here, we are connecting '/' (base path) to controller called 'Pages',
* its action called 'display', and we pass a param to select the view file
* to use (in this case, /app/View/Pages/home.ctp)...
*/
Router::connect('/', array('controller' => 'items', 'action' => 'index'));
CakePlugin::routes();
/**
* Load the CakePHP default routes. Only remove this if you do not want to use
* the built-in default routes.
*/
require CAKE . 'Config' . DS . 'routes.php';

View file

@ -0,0 +1,2 @@
1445199059
a:6:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:7:"barcode";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:11;}s:5:"regal";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;s:7:"collate";s:13:"utf8_czech_ci";s:7:"charset";s:4:"utf8";}s:5:"nazev";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;s:7:"collate";s:13:"utf8_czech_ci";s:7:"charset";s:4:"utf8";}s:5:"popis";a:6:{s:4:"type";s:6:"string";s:4:"null";b:1;s:7:"default";N;s:6:"length";i:255;s:7:"collate";s:13:"utf8_czech_ci";s:7:"charset";s:4:"utf8";}s:7:"user_id";a:4:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;}}

View file

@ -0,0 +1,2 @@
1445199059
a:3:{i:0;s:7:"TABLE 3";i:1;s:5:"items";i:2;s:5:"users";}

View file

@ -0,0 +1,2 @@
1445199059
a:2:{s:2:"id";a:5:{s:4:"type";s:7:"integer";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:11;s:3:"key";s:7:"primary";}s:4:"name";a:6:{s:4:"type";s:6:"string";s:4:"null";b:0;s:7:"default";N;s:6:"length";i:255;s:7:"collate";s:17:"latin1_swedish_ci";s:7:"charset";s:6:"latin1";}}

View file

@ -0,0 +1,2 @@
1445199059
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445199059
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445199063
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445199063
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445199059
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445199063
a:1:{s:11:"LC_MESSAGES";a:0:{}}

View file

@ -0,0 +1,2 @@
1445202149
a:64:{s:9:"Configure";s:45:"/var/www/brmsklad/lib/Cake/Core/Configure.php";s:4:"Hash";s:43:"/var/www/brmsklad/lib/Cake/Utility/Hash.php";s:5:"Cache";s:42:"/var/www/brmsklad/lib/Cake/Cache/Cache.php";s:10:"FileEngine";s:54:"/var/www/brmsklad/lib/Cake/Cache/Engine/FileEngine.php";s:11:"CacheEngine";s:48:"/var/www/brmsklad/lib/Cake/Cache/CacheEngine.php";s:9:"Inflector";s:48:"/var/www/brmsklad/lib/Cake/Utility/Inflector.php";s:12:"ErrorHandler";s:49:"/var/www/brmsklad/lib/Cake/Error/ErrorHandler.php";s:7:"CakeLog";s:42:"/var/www/brmsklad/lib/Cake/Log/CakeLog.php";s:19:"LogEngineCollection";s:54:"/var/www/brmsklad/lib/Cake/Log/LogEngineCollection.php";s:16:"ObjectCollection";s:55:"/var/www/brmsklad/lib/Cake/Utility/ObjectCollection.php";s:7:"FileLog";s:49:"/var/www/brmsklad/lib/Cake/Log/Engine/FileLog.php";s:7:"BaseLog";s:49:"/var/www/brmsklad/lib/Cake/Log/Engine/BaseLog.php";s:16:"CakeLogInterface";s:51:"/var/www/brmsklad/lib/Cake/Log/CakeLogInterface.php";s:10:"Dispatcher";s:49:"/var/www/brmsklad/lib/Cake/Routing/Dispatcher.php";s:17:"CakeEventListener";s:54:"/var/www/brmsklad/lib/Cake/Event/CakeEventListener.php";s:11:"CakeRequest";s:50:"/var/www/brmsklad/lib/Cake/Network/CakeRequest.php";s:12:"CakeResponse";s:51:"/var/www/brmsklad/lib/Cake/Network/CakeResponse.php";s:9:"CakeEvent";s:46:"/var/www/brmsklad/lib/Cake/Event/CakeEvent.php";s:16:"CakeEventManager";s:53:"/var/www/brmsklad/lib/Cake/Event/CakeEventManager.php";s:15:"AssetDispatcher";s:61:"/var/www/brmsklad/lib/Cake/Routing/Filter/AssetDispatcher.php";s:16:"DispatcherFilter";s:55:"/var/www/brmsklad/lib/Cake/Routing/DispatcherFilter.php";s:15:"CacheDispatcher";s:61:"/var/www/brmsklad/lib/Cake/Routing/Filter/CacheDispatcher.php";s:6:"Router";s:45:"/var/www/brmsklad/lib/Cake/Routing/Router.php";s:9:"CakeRoute";s:54:"/var/www/brmsklad/lib/Cake/Routing/Route/CakeRoute.php";s:10:"CakePlugin";s:46:"/var/www/brmsklad/lib/Cake/Core/CakePlugin.php";s:15:"ItemsController";s:52:"/var/www/brmsklad/app/Controller/ItemsController.php";s:13:"AppController";s:50:"/var/www/brmsklad/app/Controller/AppController.php";s:10:"Controller";s:52:"/var/www/brmsklad/lib/Cake/Controller/Controller.php";s:6:"Object";s:42:"/var/www/brmsklad/lib/Cake/Core/Object.php";s:19:"ComponentCollection";s:61:"/var/www/brmsklad/lib/Cake/Controller/ComponentCollection.php";s:16:"SessionComponent";s:68:"/var/www/brmsklad/lib/Cake/Controller/Component/SessionComponent.php";s:9:"Component";s:51:"/var/www/brmsklad/lib/Cake/Controller/Component.php";s:8:"Scaffold";s:50:"/var/www/brmsklad/lib/Cake/Controller/Scaffold.php";s:13:"ClassRegistry";s:52:"/var/www/brmsklad/lib/Cake/Utility/ClassRegistry.php";s:17:"ConnectionManager";s:54:"/var/www/brmsklad/lib/Cake/Model/ConnectionManager.php";s:4:"Item";s:36:"/var/www/brmsklad/app/Model/Item.php";s:8:"AppModel";s:40:"/var/www/brmsklad/app/Model/AppModel.php";s:5:"Model";s:42:"/var/www/brmsklad/lib/Cake/Model/Model.php";s:18:"BehaviorCollection";s:55:"/var/www/brmsklad/lib/Cake/Model/BehaviorCollection.php";s:4:"I18n";s:40:"/var/www/brmsklad/lib/Cake/I18n/I18n.php";s:4:"L10n";s:40:"/var/www/brmsklad/lib/Cake/I18n/L10n.php";s:5:"Mysql";s:62:"/var/www/brmsklad/lib/Cake/Model/Datasource/Database/Mysql.php";s:9:"DboSource";s:57:"/var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php";s:10:"DataSource";s:58:"/var/www/brmsklad/lib/Cake/Model/Datasource/DataSource.php";s:4:"User";s:36:"/var/www/brmsklad/app/Model/User.php";s:11:"CakeSession";s:59:"/var/www/brmsklad/lib/Cake/Model/Datasource/CakeSession.php";s:18:"PaginatorComponent";s:70:"/var/www/brmsklad/lib/Cake/Controller/Component/PaginatorComponent.php";s:6:"String";s:45:"/var/www/brmsklad/lib/Cake/Utility/String.php";s:12:"ScaffoldView";s:48:"/var/www/brmsklad/lib/Cake/View/ScaffoldView.php";s:9:"ThemeView";s:45:"/var/www/brmsklad/lib/Cake/View/ThemeView.php";s:4:"View";s:40:"/var/www/brmsklad/lib/Cake/View/View.php";s:16:"HelperCollection";s:52:"/var/www/brmsklad/lib/Cake/View/HelperCollection.php";s:9:"ViewBlock";s:45:"/var/www/brmsklad/lib/Cake/View/ViewBlock.php";s:15:"PaginatorHelper";s:58:"/var/www/brmsklad/lib/Cake/View/Helper/PaginatorHelper.php";s:9:"AppHelper";s:47:"/var/www/brmsklad/app/View/Helper/AppHelper.php";s:6:"Helper";s:42:"/var/www/brmsklad/lib/Cake/View/Helper.php";s:8:"JsHelper";s:51:"/var/www/brmsklad/lib/Cake/View/Helper/JsHelper.php";s:10:"HtmlHelper";s:53:"/var/www/brmsklad/lib/Cake/View/Helper/HtmlHelper.php";s:10:"FormHelper";s:53:"/var/www/brmsklad/lib/Cake/View/Helper/FormHelper.php";s:13:"SessionHelper";s:56:"/var/www/brmsklad/lib/Cake/View/Helper/SessionHelper.php";s:15:"UsersController";s:52:"/var/www/brmsklad/app/Controller/UsersController.php";s:14:"ModelValidator";s:51:"/var/www/brmsklad/lib/Cake/Model/ModelValidator.php";s:17:"ExceptionRenderer";s:54:"/var/www/brmsklad/lib/Cake/Error/ExceptionRenderer.php";s:19:"CakeErrorController";s:61:"/var/www/brmsklad/lib/Cake/Controller/CakeErrorController.php";}

View file

@ -0,0 +1,2 @@
1445200546
a:2:{s:4:"name";a:23:{s:32:"7ef7b3e3f8c71e4234f877f9cc92e93e";s:10:"`brmsklad`";s:32:"979dce227595ce90a84b6a2f48835ebd";s:7:"`items`";s:32:"f94a437fb7858e092079378f93ef2c71";s:7:"`users`";s:32:"6c500594fc059211daadcd0aa3cbdd32";s:11:"`Item`.`id`";s:32:"9b4ec6dbe21484bb5426d067d5c562b9";s:16:"`Item`.`barcode`";s:32:"c38ca53abef293453d1b4eabe4024214";s:14:"`Item`.`regal`";s:32:"e74ceff4ab60fea743666ebe89212a6c";s:14:"`Item`.`nazev`";s:32:"904ab87ae17a86ef07e191782b7b4ec2";s:14:"`Item`.`popis`";s:32:"df2fd46340285c7d21c8a7950b15e165";s:16:"`Item`.`user_id`";s:32:"84aed5ca7734df237971a8964bd0217a";s:11:"`User`.`id`";s:32:"d02461939758c2308d7bd7a6b9f8a411";s:13:"`User`.`name`";s:32:"eb9b37fa6fe3e5c49f921ddcd721b306";s:6:"`User`";s:32:"26c490a3fa20a60b3c73f681021e3977";s:6:"`Item`";s:32:"47eb7bb09414c64f779510914712b6ee";s:7:"`count`";s:32:"d2c23d1b4feeec456d72cdc94cc44595";s:4:"`id`";s:32:"adcbe09a28e613cc28fdbfbd45348910";s:9:"`barcode`";s:32:"f5ca7e632f48a40fbc17c24eef9b4c22";s:7:"`regal`";s:32:"22e8530d51c92cc5e4a60edf632ce30b";s:7:"`nazev`";s:32:"5d2b5d55f74c89a21f65ccf7877a88de";s:7:"`popis`";s:32:"322115c6be8b9535c3319bd4f238f540";s:9:"`user_id`";s:32:"0aa7858d7b4a7fca92731f7e0ebe3028";s:23:"`brmsklad`.`items`.`id`";s:32:"fc4c528ae40d23f09280dab99194a955";s:6:"`name`";s:32:"66de29d24e4c0d8774fbc21a33c0b7d0";s:23:"`brmsklad`.`users`.`id`";}s:6:"fields";a:9:{s:32:"057973baf1513b3088377e1c3dd6494e";a:6:{i:0;s:11:"`Item`.`id`";i:1;s:16:"`Item`.`barcode`";i:2;s:14:"`Item`.`regal`";i:3;s:14:"`Item`.`nazev`";i:4;s:14:"`Item`.`popis`";i:5;s:16:"`Item`.`user_id`";}s:32:"bb4606589a5e1b0548a0f21126eeb909";a:2:{i:0;s:11:"`User`.`id`";i:1;s:13:"`User`.`name`";}s:32:"506fc02f1aa134f438854c032bed107b";a:1:{i:0;s:19:"COUNT(*) AS `count`";}s:32:"53eb576c582dcce02d98ca9e39b8ce06";a:2:{i:0;s:11:"`User`.`id`";i:1;s:13:"`User`.`name`";}s:32:"90e4049c6199883f6e3d17d9a4dc9f1c";a:1:{i:0;s:19:"COUNT(*) AS `count`";}s:32:"d27ef0c8fb69683dbee006b63763a1f7";a:2:{i:0;s:11:"`User`.`id`";i:1;s:13:"`User`.`name`";}s:32:"d2c93d6419bc0a390e901874fbac02c1";a:1:{i:0;s:11:"`User`.`id`";}s:32:"05fa520c4f17e83c012fe0ceda9afd99";a:6:{i:0;s:11:"`Item`.`id`";i:1;s:16:"`Item`.`barcode`";i:2;s:14:"`Item`.`regal`";i:3;s:14:"`Item`.`nazev`";i:4;s:14:"`Item`.`popis`";i:5;s:16:"`Item`.`user_id`";}s:32:"b07b425fad5fa68f83634e7d2147f44a";a:1:{i:0;s:16:"`Item`.`user_id`";}}}

0
app/tmp/cache/views/empty vendored Executable file
View file

0
app/tmp/logs/empty Executable file
View file

94
app/tmp/logs/error.log Normal file
View file

@ -0,0 +1,94 @@
2013-01-22 21:13:48 Error: [MissingControllerException] Controller class PagesController could not be found.
#0 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2013-01-22 21:27:05 Error: Fatal Error (4): syntax error, unexpected ')', expecting T_FUNCTION in [/var/www/brmsklad/app/Config/database.php, line 73]
2013-01-22 21:27:05 Error: [FatalErrorException] syntax error, unexpected ')', expecting T_FUNCTION
#0 /var/www/brmsklad/lib/Cake/Error/ErrorHandler.php(161): ErrorHandler::handleFatalError(4, 'syntax error, u...', '/var/www/brmskl...', 73)
#1 [internal function]: ErrorHandler::handleError(4, 'syntax error, u...', '/var/www/brmskl...', 73, Array)
#2 /var/www/brmsklad/lib/Cake/Core/App.php(926): call_user_func('ErrorHandler::h...', 4, 'syntax error, u...', '/var/www/brmskl...', 73, Array)
#3 /var/www/brmsklad/lib/Cake/Core/App.php(899): App::_checkFatalError()
#4 [internal function]: App::shutdown()
#5 {main}
2013-01-22 21:28:43 Error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Item.user_id' in 'on clause'
#0 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(459): PDOStatement->execute(Array)
#1 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(425): DboSource->_execute('SELECT `Item`.`...', Array)
#2 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(669): DboSource->execute('SELECT `Item`.`...', Array, Array)
#3 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(1080): DboSource->fetchAll('SELECT `Item`.`...', false)
#4 /var/www/brmsklad/lib/Cake/Model/Model.php(2642): DboSource->read(Object(Item), Array)
#5 /var/www/brmsklad/lib/Cake/Controller/Component/PaginatorComponent.php(173): Model->find('all', Array)
#6 /var/www/brmsklad/lib/Cake/Controller/Controller.php(1081): PaginatorComponent->paginate(NULL, Array, Array)
#7 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(190): Controller->paginate()
#8 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(388): Scaffold->_scaffoldIndex(Object(CakeRequest))
#9 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(151): Scaffold->_scaffold(Object(CakeRequest))
#10 /var/www/brmsklad/lib/Cake/Controller/Controller.php(530): Scaffold->__construct(Object(ItemsController), Object(CakeRequest))
#11 /var/www/brmsklad/lib/Cake/Controller/Controller.php(489): Controller->_getScaffold(Object(CakeRequest))
#12 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#13 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(ItemsController), Object(CakeRequest), Object(CakeResponse))
#14 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}
2013-01-22 22:02:03 Error: [NotFoundException] Invalid User
#0 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(391): Scaffold->_scaffoldView(Object(CakeRequest))
#1 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(151): Scaffold->_scaffold(Object(CakeRequest))
#2 /var/www/brmsklad/lib/Cake/Controller/Controller.php(530): Scaffold->__construct(Object(UsersController), Object(CakeRequest))
#3 /var/www/brmsklad/lib/Cake/Controller/Controller.php(489): Controller->_getScaffold(Object(CakeRequest))
#4 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#5 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(UsersController), Object(CakeRequest), Object(CakeResponse))
#6 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#7 {main}
2013-01-22 22:02:55 Error: [NotFoundException] Invalid User
#0 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(391): Scaffold->_scaffoldView(Object(CakeRequest))
#1 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(151): Scaffold->_scaffold(Object(CakeRequest))
#2 /var/www/brmsklad/lib/Cake/Controller/Controller.php(530): Scaffold->__construct(Object(UsersController), Object(CakeRequest))
#3 /var/www/brmsklad/lib/Cake/Controller/Controller.php(489): Controller->_getScaffold(Object(CakeRequest))
#4 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#5 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(UsersController), Object(CakeRequest), Object(CakeResponse))
#6 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#7 {main}
2013-01-22 22:10:23 Error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Item.sklad_id' in 'field list'
#0 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(459): PDOStatement->execute(Array)
#1 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(425): DboSource->_execute('SELECT `Item`.`...', Array)
#2 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(669): DboSource->execute('SELECT `Item`.`...', Array, Array)
#3 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(1080): DboSource->fetchAll('SELECT `Item`.`...', false)
#4 /var/www/brmsklad/lib/Cake/Model/Model.php(2642): DboSource->read(Object(Item), Array)
#5 /var/www/brmsklad/lib/Cake/Controller/Component/PaginatorComponent.php(173): Model->find('all', Array)
#6 /var/www/brmsklad/lib/Cake/Controller/Controller.php(1081): PaginatorComponent->paginate(NULL, Array, Array)
#7 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(190): Controller->paginate()
#8 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(388): Scaffold->_scaffoldIndex(Object(CakeRequest))
#9 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(151): Scaffold->_scaffold(Object(CakeRequest))
#10 /var/www/brmsklad/lib/Cake/Controller/Controller.php(530): Scaffold->__construct(Object(ItemsController), Object(CakeRequest))
#11 /var/www/brmsklad/lib/Cake/Controller/Controller.php(489): Controller->_getScaffold(Object(CakeRequest))
#12 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#13 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(ItemsController), Object(CakeRequest), Object(CakeResponse))
#14 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}
2013-01-22 22:10:28 Error: [PDOException] SQLSTATE[42S22]: Column not found: 1054 Unknown column 'Item.sklad_id' in 'field list'
#0 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(459): PDOStatement->execute(Array)
#1 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(425): DboSource->_execute('SELECT `Item`.`...', Array)
#2 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(669): DboSource->execute('SELECT `Item`.`...', Array, Array)
#3 /var/www/brmsklad/lib/Cake/Model/Datasource/DboSource.php(1080): DboSource->fetchAll('SELECT `Item`.`...', false)
#4 /var/www/brmsklad/lib/Cake/Model/Model.php(2642): DboSource->read(Object(Item), Array)
#5 /var/www/brmsklad/lib/Cake/Controller/Component/PaginatorComponent.php(173): Model->find('all', Array)
#6 /var/www/brmsklad/lib/Cake/Controller/Controller.php(1081): PaginatorComponent->paginate(NULL, Array, Array)
#7 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(190): Controller->paginate()
#8 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(388): Scaffold->_scaffoldIndex(Object(CakeRequest))
#9 /var/www/brmsklad/lib/Cake/Controller/Scaffold.php(151): Scaffold->_scaffold(Object(CakeRequest))
#10 /var/www/brmsklad/lib/Cake/Controller/Controller.php(530): Scaffold->__construct(Object(ItemsController), Object(CakeRequest))
#11 /var/www/brmsklad/lib/Cake/Controller/Controller.php(489): Controller->_getScaffold(Object(CakeRequest))
#12 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(186): Controller->invokeAction(Object(CakeRequest))
#13 /var/www/brmsklad/lib/Cake/Routing/Dispatcher.php(161): Dispatcher->_invoke(Object(ItemsController), Object(CakeRequest), Object(CakeResponse))
#14 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#15 {main}
2013-01-22 22:19:57 Error: [MissingControllerException] Controller class IController could not be found.
#0 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2013-01-22 22:19:57 Error: [MissingControllerException] Controller class IController could not be found.
#0 /var/www/brmsklad/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
2013-01-22 22:46:57 Error: Fatal Error (4): syntax error, unexpected T_STRING, expecting T_VARIABLE in [/var/www/brmsklad/app/Controller/ItemsController.php, line 7]
2013-01-22 22:46:57 Error: [InternalErrorException] Internal Server Error
#0 /var/www/brmsklad/lib/Cake/Error/ErrorHandler.php(161): ErrorHandler::handleFatalError(4, 'syntax error, u...', '/var/www/brmskl...', 7)
#1 [internal function]: ErrorHandler::handleError(4, 'syntax error, u...', '/var/www/brmskl...', 7, Array)
#2 /var/www/brmsklad/lib/Cake/Core/App.php(926): call_user_func('ErrorHandler::h...', 4, 'syntax error, u...', '/var/www/brmskl...', 7, Array)
#3 /var/www/brmsklad/lib/Cake/Core/App.php(899): App::_checkFatalError()
#4 [internal function]: App::shutdown()
#5 {main}

0
app/tmp/sessions/empty Executable file
View file

0
app/tmp/tests/empty Executable file
View file