Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Oct 29, 2013
0 parents commit 2b20437
Show file tree
Hide file tree
Showing 169 changed files with 16,456 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Config/database.php
tmp
Plugin/DebugKit
Plugin/Setup
/Config/configs_private.php
_*
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "Plugin/Tools"]
path = Plugin/Tools
url = https://github.com/dereuromark/tools/
[submodule "Plugin/Authenticate"]
path = Plugin/Authenticate
url = https://github.com/ceeram/Authenticate/
5 changes: 5 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
30 changes: 30 additions & 0 deletions Config/Schema/schema.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
class SiteSchema extends CakeSchema {

public function before($event = array()) {
return true;
}

public function after($event = array()) {
}

public $users = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
'active' => array('type' => 'boolean', 'null' => false, 'default' => '0'),
'last_login' => array('type' => 'datetime', 'null' => false, 'default' => null),
'created' => array('type' => 'datetime', 'null' => true, 'default' => null),
'modified' => array('type' => 'datetime', 'null' => true, 'default' => null),
'logins' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10),
'login_errors' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10, 'comment' => 'count++'),
'flood_protection' => array('type' => 'datetime', 'null' => false, 'default' => null, 'comment' => 'access denied X min.'),
'username' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 30, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
'password' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 64, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
'email' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 80, 'collate' => 'utf8_unicode_ci', 'charset' => 'utf8'),
'role_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2),
'indexes' => array(
'PRIMARY' => array('column' => 'id', 'unique' => 1)
),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'MyISAM')
);

}
8 changes: 8 additions & 0 deletions Config/acl.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Overview]
* = user,admin

[Account]
* = user,admin

[Users]
* = admin
19 changes: 19 additions & 0 deletions Config/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
CakePlugin::loadAll();

Configure::load('config_custom'); // to define own parameters
Configure::load('config_private'); // to define own non-version-controlled parameters
App::import('Lib', 'Tools.Bootstrap/MyBootstrap');

App::uses('Auth', 'Tools.Lib');

// see: http://nik.chankov.net/2007/12/20/using-different-date-format-in-cakephp-12/
Configure::write('DateBehaviour.dateFormat', 'dd.mm.yyyy');
Configure::write('DateBehaviour.delimiterDateFormat', '.');
Configure::write('DatePicker.format', '%d.%m.%Y');

define('WEBSERVICES', 'on');

define('PAGINATOR_SEPARATOR', ' | ');

define('ICON_ORDER', 'order.gif');
131 changes: 131 additions & 0 deletions Config/config_custom.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<?php

$config['Debug'] = array(
'helper' => 1,
'check_for_cake_version' => 0, # gecached 24 hours :-)
'check_for_php_version' => 0, # gecached 48 hours :-)
'ajax_remember' => 1, # ajax remember current tab
'override' => 1 # if cache etc is usually disabled in debug mode, this overrides it
);

/** private information holder */
$config['Mail'] = array(
'debug' => 0, # 0=no,1=flashMessageAfterwards,2=fullDebug(noMailSent)
'log' => 1,
'use_smtp' => 1,
'smtp_port' => 25,
'smtp_timeout' => 20,
'smtp_host' => '',
'smtp_username' => '',
'smtp_password' => '',
);

$config['Google'] = array(
'key' => '',
'api' => '2.x',
'zoom' => 6,
'lat' => 51,
'lng' => 11,
'type' => 'G_NORMAL_MAP',
'static_size' => '500x500'
);

$config['Role'] = array(
'admin' => '1',
'user' => '2',
);

$config['App'] = array(
'language' => 'eng',
);

$config['Asset'] = array(
'js' => 'buffer'
);

$config['Cronjob'] = array(
'code' => 'xyz',
'www_active' => 1, # if cronjobs are possible from www (/cronjobs/run/)
);

$config['Config'] = array(
'admin_name' => 'Site Owner',
'admin_email' => '[email protected]',
'admin_emailname' => 'Site Owner',
'no_reply_email' => '[email protected]',
'no_reply_emailname' => '',
'max_emails' => '10',
'page_name' => 'Sandbox',
'domain_name' => 'CakePHP Sandbox',
'keywords' => '',
'description' => '',
'author' => '',
'flood_protection' => 60, # seconds
'bruteforce_trials' => 2,
'bruteforce_interval' => 60, # seconds
//'max_login_trials' => 2,
'secure_critical_actions' => 1, # pw neccessary -> more security (change_pw, change_email, Account delete)
'admin_appr_register' => 0, # if user can access site right after activation
'user_online_time' => 10, # minutes
'user_inactive_time' => 20, # minutes
'insert_ip' => 0, # insert ips on login in users table
'check_ip' => 0, # trigger admin warning if different users sign in with the same ip
'soft_delete' => 1, # 1=UsernameIsDeleted, but UserRecord is not deleted
'allow_register' => 0
);

$config['Twitter'] = array(
'id' => '',
'cache_duration' => ''
);
/** end: private information holder */

$config['Settings'] = array(
'version' => '1.0',
'title' => 'CakePHP Sandbox',
);

$config['Caching'] = array(
'default' => '+4 hours',
'short' => '+1 day',
'medium' => '+1 week',
'long' => '+1 month',
'test' => '+30 seconds',
'url_cache_type' => 'pages' # pages (single pages) / combined (all together) / false
);

$config['LanguagesAvailable'] = array( # supported languages
//'de',
'en',
//'it'
);

$config['Languages'] = array(
'de' => '',
'en' => '',
'it' => ''
);

/** 0000 to 0777 Rights **/
$config['FolderRights'] = array(
'locale' => '0777',
'webroot' . DS . 'img' => '0777',
'webroot' . DS . 'files' => '0777',
'webroot' . DS . 'folder' => '0777',
);

$config['Currency'] = array(
'code' => 'EUR',
'symbolLeft' => '',
'symbolRight' => '',
'places' => '2',
'thousands' => '.',
'decimals' => ',',
);

$config['Localization'] = array(
'address_format' => 'de',
'thousands' => '.',
'decimals' => ',',
);

Loading

0 comments on commit 2b20437

Please sign in to comment.