Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3cab407b

Přidáno uživatelem Petr Lukašík před téměř 6 roky(ů)

Re #7580 ok, cakephp tam v něčem jede, vrácen zpět :D

Zobrazit rozdíly:

old/html/multidic/app/.htaccess
1
<IfModule mod_rewrite.c>
2
	RewriteEngine on
3
	RewriteRule	^$	webroot/	[L]
4
	RewriteRule	(.*) webroot/$1	[L]
5
 </IfModule>
old/html/multidic/app/app_controller.php
1
<?php
2
/* SVN FILE: $Id: app_controller.php 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * Short description for file.
5
 *
6
 * This file is application-wide controller file. You can put all
7
 * application-wide controller-related methods here.
8
 *
9
 * PHP versions 4 and 5
10
 *
11
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
12
 * Copyright 2005-2007, Cake Software Foundation, Inc.
13
 *								1785 E. Sahara Avenue, Suite 490-204
14
 *								Las Vegas, Nevada 89104
15
 *
16
 * Licensed under The MIT License
17
 * Redistributions of files must retain the above copyright notice.
18
 *
19
 * @filesource
20
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
21
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
22
 * @package			cake
23
 * @subpackage		cake.app
24
 * @since			CakePHP(tm) v 0.2.9
25
 * @version			$Revision: 4409 $
26
 * @modifiedby		$LastChangedBy: phpnut $
27
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
28
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
29
 */
30
/**
31
 * Short description for class.
32
 *
33
 * Add your application-wide methods in the class below, your controllers
34
 * will inherit them.
35
 *
36
 * @package		cake
37
 * @subpackage	cake.app
38
 */
39
class AppController extends Controller {
40
}
41
?>
old/html/multidic/app/app_model.php
1
<?php
2
/* SVN FILE: $Id: app_model.php 4409 2007-02-02 13:20:59Z phpnut $ */
3

  
4
/**
5
 * Application model for Cake.
6
 *
7
 * This file is application-wide model file. You can put all
8
 * application-wide model-related methods here.
9
 *
10
 * PHP versions 4 and 5
11
 *
12
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
13
 * Copyright 2005-2007, Cake Software Foundation, Inc.
14
 *								1785 E. Sahara Avenue, Suite 490-204
15
 *								Las Vegas, Nevada 89104
16
 *
17
 * Licensed under The MIT License
18
 * Redistributions of files must retain the above copyright notice.
19
 *
20
 * @filesource
21
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
22
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
23
 * @package			cake
24
 * @subpackage		cake.app
25
 * @since			CakePHP(tm) v 0.2.9
26
 * @version			$Revision: 4409 $
27
 * @modifiedby		$LastChangedBy: phpnut $
28
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
29
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
30
 */
31

  
32
/**
33
 * Application model for Cake.
34
 *
35
 * Add your application-wide methods in the class below, your models
36
 * will inherit them.
37
 *
38
 * @package		cake
39
 * @subpackage	cake.app
40
 */
41
class AppModel extends Model{
42
}
43
?>
old/html/multidic/app/config/acl.ini.php
1
;<?php die() ?>
2
; SVN FILE: $Id: acl.ini.php 4409 2007-02-02 13:20:59Z phpnut $
3
;/**
4
; * Short description for file.
5
; *
6
; *
7
; * PHP versions 4 and 5
8
; *
9
; * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
10
; * Copyright 2005-2007, Cake Software Foundation, Inc.
11
; *			1785 E. Sahara Avenue, Suite 490-204
12
; *			Las Vegas, Nevada 89104
13
; *
14
; *  Licensed under The MIT License
15
; *  Redistributions of files must retain the above copyright notice.
16
; *
17
; * @filesource
18
; * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
19
; * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
20
; * @package			cake
21
; * @subpackage		cake.app.config
22
; * @since			CakePHP(tm) v 0.10.0.1076
23
; * @version			$Revision: 4409 $
24
; * @modifiedby		$LastChangedBy: phpnut $
25
; * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
26
; * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
27
; */
28

  
29
; acl.ini.php - Cake ACL Configuration
30
; ---------------------------------------------------------------------
31
; Use this file to specify user permissions.
32
; aco = access control object (something in your application)
33
; aro = access request object (something requesting access)
34
;
35
; User records are added as follows:
36
;
37
; [uid]
38
; groups = group1, group2, group3
39
; allow = aco1, aco2, aco3
40
; deny = aco4, aco5, aco6
41
;
42
; Group records are added in a similar manner:
43
;
44
; [gid]
45
; allow = aco1, aco2, aco3
46
; deny = aco4, aco5, aco6
47
;
48
; The allow, deny, and groups sections are all optional.
49
; NOTE: groups names *cannot* ever be the same as usernames!
50
;
51
; ACL permissions are checked in the following order:
52
; 1. Check for user denies (and DENY if specified)
53
; 2. Check for user allows (and ALLOW if specified)
54
; 3. Gather user's groups
55
; 4. Check group denies (and DENY if specified)
56
; 5. Check group allows (and ALLOW if specified)
57
; 6. If no aro, aco, or group information is found, DENY
58
;
59
; ---------------------------------------------------------------------
60

  
61
;-------------------------------------
62
;Users
63
;-------------------------------------
64

  
65
[username-goes-here]
66
groups = group1, group2
67
deny = aco1, aco2
68
allow = aco3, aco4
69

  
70
;-------------------------------------
71
;Groups
72
;-------------------------------------
73

  
74
[groupname-goes-here]
75
deny = aco5, aco6
76
allow = aco7, aco8
old/html/multidic/app/config/bootstrap.php
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
//EOF
46
?>
old/html/multidic/app/config/core.php
1
<?php
2
/* SVN FILE: $Id: core.php 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * This is core configuration file.
5
 *
6
 * Use it to configure core behaviour ofCake.
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.2.9
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
 * If you do not have mod rewrite on your system
31
 * or if you prefer to use CakePHP pretty urls.
32
 * uncomment the line below.
33
 * Note: If you do have mod rewrite but prefer the
34
 * CakePHP pretty urls, you also have to remove the
35
 * .htaccess files
36
 * release/.htaccess
37
 * release/app/.htaccess
38
 * release/app/webroot/.htaccess
39
 */
40
//	define ('BASE_URL', env('SCRIPT_NAME'));
41
/**
42
 * Set debug level here:
43
 * - 0: production
44
 * - 1: development
45
 * - 2: full debug with sql
46
 * - 3: full debug with sql and dump of the current object
47
 *
48
 * In production, the "flash messages" redirect after a time interval.
49
 * With the other debug levels you get to click the "flash message" to continue.
50
 *
51
 */
52
	define('DEBUG', 1);
53
/**
54
 * Turn of caching checking wide.
55
 * You must still use the controller var cacheAction inside you controller class.
56
 * You can either set it controller wide, or in each controller method.
57
 * use var $cacheAction = true; or in the controller method $this->cacheAction = true;
58
 */
59
	define('CACHE_CHECK', false);
60
/**
61
 * Error constant. Used for differentiating error logging and debugging.
62
 * Currently PHP supports LOG_DEBUG
63
 */
64
	define('LOG_ERROR', 2);
65
/**
66
 * CakePHP includes 3 types of session saves
67
 * database or file. Set this to your preferred method.
68
 * If you want to use your own save handler place it in
69
 * app/config/name.php DO NOT USE file or database as the name.
70
 * and use just the name portion below.
71
 *
72
 * Setting this to cake will save files to /cakedistro/tmp directory
73
 * Setting it to php will use the php default save path
74
 * Setting it to database will use the database
75
 *
76
 */
77
	define('CAKE_SESSION_SAVE', 'php');
78
/**
79
 * If using you own table name for storing sessions
80
 * set the table name here.
81
 * DO NOT INCLUDE PREFIX IF YOU HAVE SET ONE IN database.php
82
 *
83
 */
84
	define('CAKE_SESSION_TABLE', 'cake_sessions');
85
/**
86
 * Set a random string of used in session.
87
 *
88
 */
89
	define('CAKE_SESSION_STRING', 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi');
90
/**
91
 * Set the name of session cookie
92
 *
93
 */
94
	define('CAKE_SESSION_COOKIE', 'CAKEPHP');
95
/**
96
 * Set level of Cake security.
97
 *
98
 */
99
	define('CAKE_SECURITY', 'high');
100
/**
101
 * Set Cake Session time out.
102
 * If CAKE_SECURITY define is set
103
 * high: multiplied by 10
104
 * medium: is multiplied by 100
105
 * low is: multiplied by 300
106
 *
107
 *  Number below is seconds.
108
 */
109
	define('CAKE_SESSION_TIMEOUT', '120');
110
/**
111
 * Uncomment the define below to use cake built in admin routes.
112
 * You can set this value to anything you want.
113
 * All methods related to the admin route should be prefixed with the
114
 * name you set CAKE_ADMIN to.
115
 * For example: admin_index, admin_edit
116
 */
117
//	define('CAKE_ADMIN', 'admin');
118
/**
119
 *  The define below is used to turn cake built webservices
120
 *  on or off. Default setting is off.
121
 */
122
	define('WEBSERVICES', 'off');
123
/**
124
 * Compress output CSS (removing comments, whitespace, repeating tags etc.)
125
 * This requires a/var/cache directory to be writable by the web server (caching).
126
 * To use, prefix the CSS link URL with '/ccss/' instead of '/css/' or use Controller::cssTag().
127
 */
128
	define('COMPRESS_CSS', false);
129
/**
130
 * If set to true, helpers would output data instead of returning it.
131
 */
132
	define('AUTO_OUTPUT', false);
133
/**
134
 * If set to false, session would not automatically be started.
135
 */
136
	define('AUTO_SESSION', true);
137
/**
138
 * Set the max size of file to use md5() .
139
 */
140
	define('MAX_MD5SIZE', (5 * 1024) * 1024);
141
/**
142
 * To use Access Control Lists with Cake...
143
 */
144
	define('ACL_CLASSNAME', 'DB_ACL');
145
	define('ACL_FILENAME', 'dbacl' . DS . 'db_acl');
146
?>
old/html/multidic/app/config/database.php
1
<?php
2
/* SVN FILE: $Id: database.php.default 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * This is core configuration file.
5
 *
6
 * Use it to configure core behaviour ofCake.
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.2.9
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
 * In this file you set up your database connection details.
31
 *
32
 * @package cake
33
 * @subpackage	cake.config
34
 */
35
/**
36
 * Database configuration class.
37
 * You can specify multiple configurations for production, development and testing.
38
 *
39
 * driver =>
40
 * mysql, postgres, sqlite, adodb-drivername, pear-drivername
41
 *
42
 * connect =>
43
 * MySQL set the connect to either mysql_pconnect of mysql_connect
44
 * PostgreSQL set the connect to either pg_pconnect of pg_connect
45
 * SQLite set the connect to sqlite_popen  sqlite_open
46
 * ADOdb set the connect to one of these
47
 *	(http://phplens.com/adodb/supported.databases.html) and
48
 *	append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
49
 *
50
 * host =>
51
 * the host you connect to the database
52
 * MySQL 'localhost' to add a port number use 'localhost:port#'
53
 * PostgreSQL 'localhost' to add a port number use 'localhost port=5432'
54
 *
55
 */
56
class DATABASE_CONFIG
57
{
58
	var $default = array('driver' => 'postgres',
59
								'connect' => 'pg_pconnect',
60
								'host' => 'localhost:15432',
61
								'login' => 'dbowner',
62
								'password' => 'dbowner',
63
								'database' => 'dictionary',
64
								'prefix' => '');
65

  
66
	var $test = array('driver' => 'postgres',
67
								'connect' => 'pg_pconnect',
68
								'host' => 'localhost:15432',
69
								'login' => 'dbowner',
70
								'password' => 'dbowner',
71
								'database' => 'dictionary',
72
								'prefix' => '');
73
}
74
?>
old/html/multidic/app/config/inflections.php
1
<?php
2
/* SVN FILE: $Id: inflections.php 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * Custom Inflected Words.
5
 *
6
 * This file is used to hold words that are not matched in the normail Inflector::pluralize() and
7
 * Inflector::singularize()
8
 *
9
 * PHP versions 4 and %
10
 *
11
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
12
 * Copyright 2005-2007, Cake Software Foundation, Inc.
13
 *								1785 E. Sahara Avenue, Suite 490-204
14
 *								Las Vegas, Nevada 89104
15
 *
16
 * Licensed under The MIT License
17
 * Redistributions of files must retain the above copyright notice.
18
 *
19
 * @filesource
20
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
21
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
22
 * @package			cake
23
 * @subpackage		cake.app.config
24
 * @since			CakePHP(tm) v 1.0.0.2312
25
 * @version			$Revision: 4409 $
26
 * @modifiedby		$LastChangedBy: phpnut $
27
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
28
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
29
 */
30
/**
31
 * This is a key => value array of regex used to match words.
32
 * If key matches then the value is returned.
33
 *
34
 *  $pluralRules = array('/(s)tatus$/i' => '\1\2tatuses', '/^(ox)$/i' => '\1\2en', '/([m|l])ouse$/i' => '\1ice');
35
 */
36
	$pluralRules = array();
37
/**
38
 * This is a key only array of plural words that should not be inflected.
39
 * Notice the last comma
40
 *
41
 * $uninflectedPlural = array('.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox');
42
 */
43
	$uninflectedPlural = array();
44
/**
45
 * This is a key => value array of plural irregular words.
46
 * If key matches then the value is returned.
47
 *
48
 *  $irregularPlural = array('atlas' => 'atlases', 'beef' => 'beefs', 'brother' => 'brothers')
49
 */
50
	$irregularPlural = array();
51
/**
52
 * This is a key => value array of regex used to match words.
53
 * If key matches then the value is returned.
54
 *
55
 *  $singularRules = array('/(s)tatuses$/i' => '\1\2tatus', '/(matr)ices$/i' =>'\1ix','/(vert|ind)ices$/i')
56
 */
57
	$singularRules = array();
58
/**
59
 * This is a key only array of singular words that should not be inflected.
60
 * You should not have to change this value below if you do change it use same format
61
 * as the $uninflectedPlural above.
62
 */
63
	$uninflectedSingular = $uninflectedPlural;
64
/**
65
 * This is a key => value array of singular irregular words.
66
 * Most of the time this will be a reverse of the above $irregularPlural array
67
 * You should not have to change this value below if you do change it use same format
68
 *
69
 * $irregularSingular = array('atlases' => 'atlas', 'beefs' => 'beef', 'brothers' => 'brother')
70
 */
71
	$irregularSingular = array_flip($irregularPlural);
72
?>
old/html/multidic/app/config/routes.php
1
<?php
2
/* SVN FILE: $Id: routes.php 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * Short description for file.
5
 *
6
 * In this file, you set up routes to your controllers and their actions.
7
 * Routes are very important mechanism that allows you to freely connect
8
 * different urls to chosen controllers and their actions (functions).
9
 *
10
 * PHP versions 4 and 5
11
 *
12
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
13
 * Copyright 2005-2007, Cake Software Foundation, Inc.
14
 *								1785 E. Sahara Avenue, Suite 490-204
15
 *								Las Vegas, Nevada 89104
16
 *
17
 * Licensed under The MIT License
18
 * Redistributions of files must retain the above copyright notice.
19
 *
20
 * @filesource
21
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
22
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
23
 * @package			cake
24
 * @subpackage		cake.app.config
25
 * @since			CakePHP(tm) v 0.2.9
26
 * @version			$Revision: 4409 $
27
 * @modifiedby		$LastChangedBy: phpnut $
28
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
29
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
30
 */
31
/**
32
 * Here, we are connecting '/' (base path) to controller called 'Pages',
33
 * its action called 'display', and we pass a param to select the view file
34
 * to use (in this case, /app/views/pages/home.thtml)...
35
 */
36
	$Route->connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
37
/**
38
 * ...and connect the rest of 'Pages' controller's urls.
39
 */
40
	$Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
41
/**
42
 * Then we connect url '/test' to our test controller. This is helpfull in
43
 * developement.
44
 */
45
	$Route->connect('/tests', array('controller' => 'tests', 'action' => 'index'));
46
?>
old/html/multidic/app/config/sql/db_acl.sql
1
CREATE TABLE `acos` (
2
  `id` int(11) NOT NULL auto_increment,
3
  `model` varchar(255) NOT NULL default '',
4
  `object_id` int(11) default NULL,
5
  `alias` varchar(255) NOT NULL default '',
6
  `lft` int(11) default NULL,
7
  `rght` int(11) default NULL,
8
  PRIMARY KEY  (`id`)
9
);
10

  
11
CREATE TABLE `aros` (
12
  `id` int(11) NOT NULL auto_increment,
13
  `model` varchar(255) NOT NULL default '',
14
  `user_id` int(11) default NULL,
15
  `alias` varchar(255) NOT NULL default '',
16
  `lft` int(11) default NULL,
17
  `rght` int(11) default NULL,
18
  PRIMARY KEY  (`id`)
19
);
20

  
21
CREATE TABLE `aros_acos` (
22
  `id` int(11) NOT NULL auto_increment,
23
  `aro_id` int(11) default NULL,
24
  `aco_id` int(11) default NULL,
25
  `_create` int(1) NOT NULL default '0',
26
  `_read` int(1) NOT NULL default '0',
27
  `_update` int(1) NOT NULL default '0',
28
  `_delete` int(11) NOT NULL default '0',
29
  PRIMARY KEY  (`id`)
30
);
old/html/multidic/app/config/sql/sessions.sql
1
-- @copyright	Copyright 2005-2007, Cake Software Foundation, Inc.
2
-- @link		 http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
3
-- @since		CakePHP v 0.10.8.1997
4
-- @version	  $Revision: 4409 $
5

  
6
CREATE TABLE cake_sessions (
7
  id varchar(255) NOT NULL default '',
8
  data text,
9
  expires int(11) default NULL,
10
  PRIMARY KEY  (id)
11
);
old/html/multidic/app/controllers/pages_controller.php
1
<?php
2
/* SVN FILE: $Id: pages_controller.php 4409 2007-02-02 13:20:59Z phpnut $ */
3

  
4
/**
5
 * Short description for file.
6
 *
7
 * This file is application-wide controller file. You can put all
8
 * application-wide controller-related methods here.
9
 *
10
 * PHP versions 4 and 5
11
 *
12
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
13
 * Copyright 2005-2007, Cake Software Foundation, Inc.
14
 *								1785 E. Sahara Avenue, Suite 490-204
15
 *								Las Vegas, Nevada 89104
16
 *
17
 * Licensed under The MIT License
18
 * Redistributions of files must retain the above copyright notice.
19
 *
20
 * @filesource
21
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
22
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
23
 * @package			cake
24
 * @subpackage		cake.app.controllers
25
 * @since			CakePHP(tm) v 0.2.9
26
 * @version			$Revision: 4409 $
27
 * @modifiedby		$LastChangedBy: phpnut $
28
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
29
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
30
 */
31

  
32
/**
33
 * Short description for class.
34
 *
35
 * This file is application-wide controller file. You can put all
36
 * application-wide controller-related methods here.
37
 *
38
 * Add your application-wide methods in the class below, your controllers
39
 * will inherit them.
40
 *
41
 * @package		cake
42
 * @subpackage	cake.app.controllers
43
 */
44
class PagesController extends AppController{
45

  
46
/**
47
 * Enter description here...
48
 *
49
 * @var unknown_type
50
 */
51
	 var $name = 'Pages';
52

  
53
/**
54
 * Enter description here...
55
 *
56
 * @var unknown_type
57
 */
58
	 var $helpers = array('Html');
59

  
60
/**
61
 * This controller does not use a model
62
 *
63
 * @var $uses
64
 */
65
	 var $uses = null;
66

  
67
/**
68
 * Displays a view
69
 *
70
 */
71
	 function display() {
72
		  if (!func_num_args()) {
73
				$this->redirect('/');
74
		  }
75

  
76
		  $path=func_get_args();
77

  
78
		  if (!count($path)) {
79
				$this->redirect('/');
80
		  }
81

  
82
		  $count  =count($path);
83
		  $page   =null;
84
		  $subpage=null;
85
		  $title  =null;
86

  
87
		  if (!empty($path[0])) {
88
				$page = $path[0];
89
		  }
90

  
91
		  if (!empty($path[1])) {
92
				$subpage = $path[1];
93
		  }
94

  
95
		  if (!empty($path[$count - 1])) {
96
				$title = ucfirst($path[$count - 1]);
97
		  }
98

  
99
		  $this->set('page', $page);
100
		  $this->set('subpage', $subpage);
101
		  $this->set('title', $title);
102
		  $this->render(join('/', $path));
103
	 }
104
}
105
?>
old/html/multidic/app/index.php
1
<?php
2
/* SVN FILE: $Id: index.php 4409 2007-02-02 13:20:59Z phpnut $ */
3
/**
4
 * PHP versions 4 and 5
5
 *
6
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
7
 * Copyright 2005-2007, Cake Software Foundation, Inc.
8
 *								1785 E. Sahara Avenue, Suite 490-204
9
 *								Las Vegas, Nevada 89104
10
 *
11
 * Licensed under The MIT License
12
 * Redistributions of files must retain the above copyright notice.
13
 *
14
 * @filesource
15
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
16
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
17
 * @package			cake
18
 * @subpackage		cake.app
19
 * @since			CakePHP(tm) v 0.10.0.1076
20
 * @version			$Revision: 4409 $
21
 * @modifiedby		$LastChangedBy: phpnut $
22
 * @lastmodified	$Date: 2007-02-02 07:20:59 -0600 (Fri, 02 Feb 2007) $
23
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
24
 */
25
require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
26
?>
old/html/multidic/app/views/layouts/ajax.thtml
1
<?php
2
/* SVN FILE: $Id: ajax.thtml 4409 2007-02-02 13:20:59Z phpnut $ */
3

  
4
/**
5
 *
6
 * 
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.cake.libs.view.templates.layouts
23
 * @since			CakePHP(tm) v 0.10.0.1076
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
<?php echo $content_for_layout; ?>
old/html/multidic/app/views/layouts/default.thtml
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<title>CakePHP(tm) : <?php echo $title_for_layout;?></title>
5
<link rel="icon" href="<?php echo $this->webroot . 'favicon.ico';?>" type="image/x-icon" />
6
<link rel="shortcut icon" href="<?php echo $this->webroot . 'favicon.ico';?>" type="image/x-icon" />
7
<?php echo $html->css('cake.generic');?>
8
</head>
9
<body>
10
	<div id="container">
11
		<div id="header">
12
			<h1>CakePHP Rapid Development</h1>
13
		</div>
14
		<div id="content">
15
			<?php if ($session->check('Message.flash'))
16
					{
17
						$session->flash();
18
					}
19
					echo $content_for_layout;
20
			?>
21
		</div>
22
		<div id="footer">
23
			&nbsp;
24
			<a href="http://www.cakephp.org/" target="_new">
25
				<?php echo $html->image('cake.power.png', array('alt'=>"CakePHP(tm) : Rapid Development Framework", 'border'=>"0"));?>
26
			</a>
27
		</div>
28
	</div>
29
</body>
30
</html>
old/html/multidic/app/views/layouts/flash.thtml
1
<?php
2
/* SVN FILE: $Id: flash.thtml 4409 2007-02-02 13:20:59Z phpnut $ */
3

  
4
/**
5
 *
6
 *
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.cake.libs.view.templates.layouts
23
 * @since			CakePHP(tm) v 0.10.0.1076
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
31
<html xmlns="http://www.w3.org/1999/xhtml">
32
<head>
33
<title><?php echo $page_title?></title>
34
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
35
<?php if(Configure::read() == 0) { ?>
36
<meta http-equiv="Refresh" content="<?php echo $pause?>;url=<?php echo $url?>"/>
37
<?php } ?>
38
<style><!--
39
P { text-align:center; font:bold 1.1em sans-serif }
40
A { color:#444; text-decoration:none }
41
A:HOVER { text-decoration: underline; color:#44E }
42
--></style>
43
</head>
44

  
45
<body>
46

  
47
<p><a href="<?php echo $url?>"><?php echo $message?></a></p>
48

  
49
</body>
50
</html>
old/html/multidic/app/views/pages/home.thtml
1
<p class="notice">Your database configuration file is <?php echo  file_exists(CONFIGS.'database.php') ?' present.' . $filePresent = ' ' : ' not present.'; ?></p>
2
<?php if (!empty($filePresent)):?>
3
<?php uses('model' . DS . 'connection_manager'); $db = ConnectionManager::getInstance(); ?>
4
<?php $connected = $db->getDataSource('default'); ?>
5
<p class="notice">Cake<?php echo $connected->isConnected() ? ' is able to' : ' is not able to';?> connect to the database.</p>
6
<br />
7
<?php endif; ?>
8
<h1>Sweet, "App" got Baked by CakePHP!</h1>
9
<h2>Editing this Page</h2>
10
<p>
11
To change the content of this page, edit: E:\$erverII\KBS\multi-cake\app\views\pages\home.thtml.<br />
12
To change its layout, edit: E:\$erverII\KBS\multi-cake\app\views\layouts\default.thtml.<br />
13
You can also add some CSS styles for your pages at: E:\$erverII\KBS\multi-cake\app\webroot/css/.
14
</p>
old/html/multidic/app/webroot/.htaccess
1
<IfModule mod_rewrite.c>
2
	RewriteEngine On
3
   RewriteBase /multidic
4

  
5

  
6
	RewriteRule ^$ index.php [L]
7

  
8
	RewriteRule ^hebrew(.*)$ index-hebrew.php$1    [QSA,L]
9
	RewriteRule ^arabic(.*)$ index-arabic.php$1    [QSA,L]
10

  
11
	RewriteCond %{REQUEST_FILENAME} !-d
12
	RewriteCond %{REQUEST_FILENAME} !-f
13
	RewriteRule ^(.*)$ cake-index.php?url=$1 [QSA,L]
14
</IfModule>
old/html/multidic/app/webroot/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>zihos</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>net.sourceforge.phpeclipse.parserbuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>net.sourceforge.phpeclipse.phpnature</nature>
16
	</natures>
17
</projectDescription>
old/html/multidic/app/webroot/VYPIS.PHP
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
3
<head>
4
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
5
<meta http-equiv="Content-Language" content="cs" />
6
<title>Slovník katedry blízkovýchoních studií</title>
7
</head>
8
<body>
9
<?php
10

  
11

  
12
echo"<table border=\"1\">
13
";
14
$radky = file('slovnik.utx');
15
for($i=0;$i<Count($radky);$i++) {
16
     echo("<tr>\n
17
     ");
18
  $radek = explode(';', $radky[$i]);
19

  
20
  for($j=0;$j<Count($radek);$j++) {
21
    echo"<td>";
22
    echo"$radek[$j]";
23
    echo"</td>\n";
24
  }
25

  
26
  echo("</tr> \n
27
  ");
28
}
29

  
30
echo('</table>
31
');
32

  
33
?>
34
</body>
35
</html>
old/html/multidic/app/webroot/about-us.php
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
3
<head>
4
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
5
<meta http-equiv="Content-Language" content="cs" />
6
<title>O autorech a sponzorech</title>
7
<link rel="stylesheet" type="text/css" href="css/kbs.css">
8
</head>
9

  
10
<body>
11
<div id="telickonejakystihly">
12
<center>
13
<h3 class="nadpis2">O autorech a sponzorech</h3>
14
<h3 class="nadpis2"><font color="green">Arabsko-český studijní slovník</font></h3>
15

  
16
<p align=left>Vznikl díky podpoře Západočeské univerzity v Plzni v r. 2005 a 2006. Řešitelem projektu tzv. specifického výzkumu je
17
PhDr. Furat Rahman, Ph.D. (absolvent oboru klínopis-perština), na práci se významnou měrou podílí odborní spolupracovníci
18
PhDr. Issam Ramadán (rodilý mluvčí a lektor arabštiny), PhDr. Eva Koňasová (absolventka oboru arabistiky FF UK v Praze a vyučující arabštiny),
19
 Mgr. Petra Písařová (absolventka oboru religionistika FF UK v Praze a vyučující arabštiny) a Mgr. Dagmar Vokrová (absolventka
20
Kulturní antropologie Předního východu FF ZČU v Plzni).</p>
21
<p align=left>Do projektu se zapojila řada studentů oboru Blízkovýchodní studia FF ZČU v Plzni a Kulturní antropologie Předního východu tamtéž,
22
kteří se dlouhodobě věnují arabskému jazyku. Patří k nim: Jan Flekal, Lenka Valentová, Václava Votočková, Zbyněk Tarant. Zvláštní poděkování patří především studentce
23
Lence Valentové, která se obětavě a úspěšně ujala střihu zvukových nahrávek rodilého mluvčího.</p>
24

  
25
<p align=left>Za funkčnost vytvořeného počítačového systému, který byl vyvinut přibližně za 6 měsíců intensivní práce, děkujeme nadaným programátorům Bedřichu Bechyněmu a
26
Jaroslavu Baumlovi.</p>
27

  
28
<p align=left>Jsme velice zavázáni Českému rozhlasu Plzeň, který nám zdarma a v profesionální kvalitě umožnil záznam hlasu rodilého mluvčího ve
29
svých nahrávacích studiích.</p>
30

  
31
<p align=left>Při návrhu slovníčku jsem mohl určit některé jeho vlastnosti již podle existujicího vzoru počítačového slovníčku firmy <A HREF="http://www.5d.cz">5D software spol.
32
s r.o.</a>, který umožňuje např. zkoušení naslepo, tj. není třeba slovíčko celé vypisovat.</p>
33

  
34
<p align=left>Naším cílem je postupně vybudovat slovníček, který by umožnil nejen rychlé vyhledávání, ale také intensivní četbu
35
vybraných arabských textů (krátkých článků, pohádek, povídek a bajek) a zkoušení slovíček, které se v těchto textech vyskytují...</p>
36

  
37
<p align=left>Doufáme, že se nám podaří na projektu dále pracovat, rozšiřovat slovní zásobu a kontexty, ve kterých se používá, a rovněž
38
že jej budete rádi používat a stane se Vaším pomocníkem.</p>
39

  
40

  
41
<p>Furat Rahman, v.r.</p>
42

  
43
<br />
44
<br />
45
<br />
46
<a href="http://www.rozhlas.cz/plzen/portal/">
47
  <img src="pict/cr.gif" alt="logo Cesky Rozhlas" />
48
</a>
49
<br />
50
<h6><a href="./">&lt;&lt; Zpět</a> </h6>
51
</center>
52
</div>
53

  
54

  
55
</body>
56
</html>
old/html/multidic/app/webroot/about-us_zal.php
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
3
<head>
4
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
5
<meta http-equiv="Content-Language" content="cs" />
6
<title>O autorech a sponzorech</title>
7
<link rel="stylesheet" type="text/css" href="css/kbs.css"> 
8
</head>
9

  
10
<body>
11
<div id="telickonejakystihly">
12
<center>
13
<h3 class="nadpis2">O autorech a sponzorech</h3>
14
<h3 class="nadpis2">Arabsko-český studijní slovník</h3>
15

  
16
<p align=left>Vznikl díky podpoře Západočeské univerzity v Plzni v r. 2005 a 2006. Řešitelem projektu tzv. specifického výzkumu je 
17
PhDr. Furat Rahman, Ph.D. (absolvent oboru klínopis-perština), na práci se významnou měrou podílí odborní spolupracovníci 
18
PhDr. Issam Ramadán (rodilý mluvčí a lektor arabštiny), PhDr. Eva Koňasová (absolventka oboru arabistiky FF UK v Praze a vyučující arabštiny), 
19
 Mgr. Petra Písařová (absolventka oboru religionistika FF UK v Praze a vyučující arabštiny) a Mgr. Dagmar Vokrová (absolventka 
20
Kulturní antropologie Předního východu FF ZČU v Plzni).</p>
21
<p align=left>Do projektu se zapojila řada studentů oboru Blízkovýchodní studia FF ZČU v Plzni a Kulturní antropologie Předního východu tamtéž, 
22
kteří se dlouhodobě věnují arabskému jazyku. Patří k nim: Jan Flekal, Lenka Valentová, Václava Votočková, Zbyněk Tarant. Zvláštní poděkování patří především studentce 
23
Lence Valentové, která se obětavě a úspěšně ujala střihu zvukových nahrávek rodilého mluvčího.</p>
24

  
25
<p align=left>Za funkčnost vytvořeného počítačového systému, který byl vyvinut přibližně za 6 měsíců intensivní práce, děkujeme nadaným programátorům Bedřichu Bechyněmu a 
26
Jaroslavu Baumlovi.</p>
27

  
28
<p align=left>Jsme velice zavázáni Českému rozhlasu Plzeň, který nám zdarma a v profesionální kvalitě umožnil záznam hlasu rodilého mluvčího ve 
29
ve svých nahrávacích studiích.</p>
30

  
31
<p align=left>Při návrhu slovníčku jsem mohl určit některé jeho vlastnosti již podle existujicího vzoru počítačového slovníčku firmy <A HREF="http://www.5d.cz">5D software spol. 
32
s r.o.</a>, který umožňuje např. zkoušení naslepo, tj. není třeba slovíčko celé vypisovat.</p>
33

  
34
<p align=left>Naším cílem je postupně vybudovat slovníček, který by umožnil nejen rychlé vyhledávání, ale také intensivní četbu 
35
vybraných arabských textů (krátkých článků, pohádek, povídek a bajek) a zkoušení slovíček, které se v těchto textech vyskytují...</p>
36

  
37
<p align=left>Doufáme, že se nám podaří na projektu dále pracovat, rozšiřovat slovní zásobu a kontexty, ve kterých se používá, a rovněž 
38
že jej budete rádi používat a stane se Vaším pomocníkem.</p>
39

  
40

  
41
<p>Furat Rahman, v.r.</p>
42

  
43
<br />
44
<br />
45
<br />
46
<a href="http://www.rozhlas.cz/plzen/portal/">
47
  <img src="pict/cr.gif" alt="logo Cesky Rozhlas" />
48
</a>
49
<br />
50
<h6><a href="index.php">&lt;&lt; Zpět</a> </h6>
51
</center>
52
</div>
53

  
54

  
55
</body>
56
</html>
old/html/multidic/app/webroot/administration.php
1
<?php
2

  
3
require_once("./functions/dictionary.php");
4
//register_globals();
5

  
6
if (!kontrola_pristupu(2)) {
7
  //echo "odhlas";
8
  Header("Location: index_to_admin.php?hlaska=Byl jste automaticky odhlášen&n=$ses_nick");
9
}
10

  
11

  
12
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
13
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
14
<head>
15
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
16
<meta http-equiv="Content-Language" content="cs" />
17
<title>Administrace slovníku katedry blízkovýchoních studií</title>
18
<link rel="stylesheet" type="text/css" href="./css/kbs.css">
19
<script src="functions/popup.js" type="text/javascript"></script>
20
</head>
21
<body>
22

  
23
<?php ?>
24

  
25
<div id="left">
26
   <h2 class="nadpis">Administrace</h2>
27

  
28
   <div class="nadpis_sekce">
29
     <i>Přihlášen:</i><br />
30
     <?php echo "".$ses_name." ".$ses_surname."\n"?>
31
     <br />
32
     <?php if(kontrola_pristupu(3)) echo "Administrátor";
33
           else echo "Uživatel (smí i zapisovat)";?>
34
     <br />
35
     <ul>
36
     	<li><a href="./<?php echo $_SESSION['ses_pref_dist'] ?>"><?php echo lang("Slovník") ?></a></li>
37

  
38
     <?php if(kontrola_pristupu(2))
39
          echo"	<li> <a href=\"examination.php\">Zkoušení</a></li>";
40
     ?>
41
    <li><a href="./<?php echo $_SESSION['ses_pref_dist'] ?>?akce=odhlasit"><?php echo lang("Odhlásit") ?></a></li>
42
     </ul>
43
   </div>
44
   <?php
45
   if (kontrola_pristupu(3)):
46
   ?>
47
   <div class="nadpis_sekce"><strong>Uživatelé</strong></div>
48
	   <ul>
49
       <li><a href="?nav_id=add_user" class="active">Přidat uživatele</a></li>
50
       <li><a href="?nav_id=list_user" class="active">Vypiš uživatele</a></li>
51
     </ul>
52
   <?php
53
   endif;
54
   ?>
55
   <div class="nadpis_sekce"><strong>Slova</strong></div>
56
     <ul>
57
       <li><a href="?nav_id=add_word" class="active">Vložit nové slovo do studijního slovníku</a></li>
58
       <?php
59
         if (kontrola_pristupu(3)):
60
        ?>
61
       <li><a href="?nav_id=list_word" class="active">Výpis ze studijního slovníku</a></li>
62
       <li><a href="?nav_id=list_nonauthorized_word" class="active">Neautorizovaná slova</a></li>
63
       <li><a href="?nav_id=list_duplicity" class="active">Duplicity</a></li>
64

  
65
       <?php elseif(kontrola_pristupu(2)):?>
66
       <!--li><a href="?nav_id=list_nonauthorized_word&contrains_user_id=<?php echo $ses_IDuser?>" class="active">Neautorizovaná slova</a></li-->
67
       <li><a href="?nav_id=list_nonauthorized_word" class="active">Neautorizovaná slova</a></li>
68
       <?php endif;?>
69
     </ul>
70
    
71
   <div class="nadpis_sekce"><strong>Testy</strong></div>
72
	   <ul>
73
   <?php if(kontrola_pristupu(2)):?>
74
       <li><a href="?nav_id=add_test" class="active">Vložit test</a></li>
75
       <li><a href="?nav_id=list_test" class="active">Vypiš testy</a></li>
76
       <li><a href="?nav_id=list_nonauthorized_test" class="active">Vypiš neutorizované testy</a></li>
77
   <?php endif;?>
78
       </ul>
79
   <?php
80
   //if (kontrola_pristupu(3)):
81
   ?>
82
   <div class="nadpis_sekce"><strong>Články</strong></div>
83
	   <ul>
84
       <li><a href="?nav_id=add_article" class="active">Vložit nový článek</a></li>
85
       <li><a href="?nav_id=list_article" class="active">Vypiš články</a></li>
86
       <li><a href="?nav_id=list_nonauthorized_article" class="active">Vypiš neautorizované články</a></li>
87
     </ul>
88
   <?php
89
   
90
    if (kontrola_pristupu(3)):
91
   ?>
92
   <div class="nadpis_sekce"><strong>Kategorie testů</strong></div>
93
	   <ul>
94
       <li><a href="?nav_id=add_test_category" class="active">Vložit novou kategorii testu</a></li>
95
       <li><a href="?nav_id=list_test_category" class="active">Vypiš kategorii testu</a></li>
96
     </ul>
97
   <?php  
98
   ?>
99
   <div class="nadpis_sekce"><strong>Obory</strong></div>
100
	   <ul>
101
       <li><a href="?nav_id=add_field" class="active">Vložit nový obor</a></li>
102
       <li><a href="?nav_id=list_field" class="active">Vypiš obory</a></li>
103
     </ul>
104
   <?php
105

  
106
   ?>
107
   <div class="nadpis_sekce"><strong>Autoři</strong></div>
108
	   <ul>
109
       <li><a href="?nav_id=add_author" class="active">Vložit nového autora</a></li>
110
       <li><a href="?nav_id=list_author" class="active">Vypiš autory</a></li>
111
     </ul>
112
   <?php
113

  
114
   ?>
115
   <div class="nadpis_sekce"><strong>Zdroje</strong></div>
116
	   <ul>
117
       <li><a href="?nav_id=add_source" class="active">Vložit nový zdroj</a></li>
118
       <li><a href="?nav_id=list_source" class="active">Vypiš zdroje</a></li>
119
     </ul>
120
   <?php
121

  
122
   ?>
123
   <div class="nadpis_sekce"><strong>Nenalezená slova</strong></div>
124
	   <ul>
125
       <li><a href="?nav_id=list_not_found_cz" class="active">Čeština</a></li>
126
       <li><a href="?nav_id=list_not_found_en" class="active">Angličtina</a></li>
127
       <li><a href="?nav_id=list_not_found_ar" class="active">Arabština</a></li>
128
       <!--li><a href="?nav_id=list_source" class="active">Vypiš zdroje</a></li-->
129
     </ul>
130
   <?php
131

  
132
   ?>
133
   <div class="nadpis_sekce"><strong>Překlady prostředí</strong></div>
134
	   <ul>
135
	     <li><a href="?nav_id=add_translation_lang" class="active">Vlož jazyk prostředí</a></li>
136
       <li><a href="?nav_id=list_translation_lang" class="active">Vypiš jazyky</a></li>
137
       <li><a href="?nav_id=list_translation" class="active">Uprav překlad</a></li>
138
     </ul>
139
    
140
    <div class="nadpis_sekce"><strong>Motivační zprávy</strong></div>
141
	   <ul>
142
		    <li><a href="?nav_id=list_report" class="active">Vypiš zprávy</a></li>
143
	     </ul>
144
   <?php
145

  
146
   endif;
147
   ?>
148
   <div class="nadpis_sekce"><strong>&nbsp;</strong></div>
149
   <?php copyright(); ?>
150
</div>
151

  
152
<div id="content">
153
 <div class="content_home">
154

  
155
   <?php $cesta = "./administration/";
156
   
157
  // pr($_);
158
   
159
  switch($nav_id) {
160
    case("add_user") :
161
      require_once($cesta."add_user.php");
162
    break;
163
    case("list_user") :
164
      require_once($cesta."list_user.php");
165
    break;
166
    case("edit_user") :
167
      require_once($cesta."edit_user.php");
168
    break;
169
    case("add_word") :
170
      require_once($cesta."add_word.php");
171
    break;
172
    case("list_word") :
173
      require_once($cesta."list_word.php");
174
    break;
175
    case("edit_word") :
176
      require_once($cesta."edit_word.php");
177
    break;
178
    case("view_word") :
179
      require_once($cesta."view_word.php");
180
    break;
181
    case("authorize_word") :
182
      require_once($cesta."list_word.php");
183
    break;
184
    case("list_nonauthorized_word") :
185
      require_once($cesta."list_word.php");
186
    break;
187
    case("list_duplicity") :
188
      require_once($cesta."list_duplicity.php");
189
    break;
190
   /*case("sort_word") :
191
      require_once($cesta."list_word.php");
192
    break;*/
193
    case("add_article") :
194
      require_once($cesta."add_article.php");
195
    break;
196
    case("autorize_article") :
197
      require_once($cesta."list_article.php");
198
    break;
199
    case("list_article") :
200
      require_once($cesta."list_article.php");
201
    break;
202
    case("list_nonauthorized_article") :
203
      require_once($cesta."list_article.php");
204
    break;
205
    case("edit_article") :
206
      require_once($cesta."edit_article.php");
207
    break;
208
    case("add_article_voice") :
209
      require_once($cesta."add_article_voice.php");
210
    break;
211
    case("add_field") :
212
      require_once($cesta."add_field.php");
213
    break;
214
    case("list_field") :
215
      require_once($cesta."list_field.php");
216
    break;
217
    case("edit_field") :
218
      require_once($cesta."edit_field.php");
219
    break;
220
    case("add_test_category") :
221
      require_once($cesta."add_test_category.php");
222
    break;
223
    case("list_test_category") :
224
      require_once($cesta."list_test_category.php");
225
    break;
226
    case("edit_test_category") :
227
      require_once($cesta."edit_test_category.php");
228
    break;
229
    case("add_author") :
230
      require_once($cesta."add_author.php");
231
    break;
232
    case("list_author") :
233
      require_once($cesta."list_author.php");
234
    break;
235
    case("edit_author") :
236
      require_once($cesta."edit_author.php");
237
    break;
238
    case("add_source") :
239
      require_once($cesta."add_source.php");
240
    break;
241
    case("list_source") :
242
      require_once($cesta."list_source.php");
243
    break;
244
    case("edit_source") :
245
      require_once($cesta."edit_source.php");
246
    break;
247
    case("delete_author_of_source") :
248
      require_once($cesta."delete_author_of_source.php");
249
    break;
250
    case("add_author_of_source") :
251
      require_once($cesta."add_author_of_source.php");
252
    break;
253
    case("add_context") :
254
      require_once($cesta."add_context.php");
255
    break;
256
    case("link_context") :
257
      require_once($cesta."link_context.php");
258
    break;
259
    case("delete_context") :
260
      require_once($cesta."list_word.php");
261
    break;
262
    case("edit_context") :
263
      require_once($cesta."edit_context.php");
264
    break;
265
    case("add_word_voice"):
266
      require_once($cesta."add_word_voice.php");
267
    break;
268
    case("list_not_found_cz"):
269
      require_once($cesta."list_not_found_cz.php");
270
    break;
271
    case("list_not_found_en"):
272
      require_once($cesta."list_not_found_en.php");
273
    break;
274
    case("list_not_found_ar"):
275
      require_once($cesta."list_not_found_ar.php");
276
    break;
277
    case("list_translation_lang"):
278
      require_once($cesta."list_translation_lang.php");
279
    break;
280
    case("add_translation_lang"):
281
      require_once($cesta."add_translation_lang.php");
282
    break;
283
    case("edit_translation_lang"):
284
      require_once($cesta."edit_translation_lang.php");
285
    break;
286
    case("list_translation"):
287
      require_once($cesta."list_translation.php");
288
    break;
289
    case("edit_translation"):
290
      require_once($cesta."edit_translation.php");
291
    break;
292
    case("list_report"):
293
      require_once($cesta."list_report.php");
294
    break;
295
    case("edit_report"):
296
      require_once($cesta."edit_report.php");
297
    break;
298
    case("list_test"):
299
      require_once($cesta."list_test.php");
300
    break;
301
    case("list_nonauthorized_test"):
302
      require_once($cesta."list_test.php");
303
    break;
304
    case("authorize_test") :
305
      require_once($cesta."list_test.php");
306
    break;
307
    case("edit_test"):
308
      require_once($cesta."edit_test.php");
309
    break;
310
    case("detail_test"):
311
      require_once($cesta."detail_test.php");
312
    break;
313
    case("add_test"):
314
      require_once($cesta."add_test.php");
315
    break;
316
    case("desk") :
317
      require_once($cesta."desk.php");
318
    break;
... Rozdílový soubor je zkrácen, protože jeho délka přesahuje max. limit.

Také k dispozici: Unified diff