Changes
This commit is contained in:
parent
0cee1fc8c3
commit
4347aee5f0
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gnitignore
Normal file → Executable file
0
.gnitignore
Normal file → Executable file
0
cake_eclipse_helper.php
Normal file → Executable file
0
cake_eclipse_helper.php
Normal file → Executable file
|
|
@ -40,7 +40,7 @@
|
|||
* 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::write('debug', 2);
|
||||
/**
|
||||
* Application wide charset encoding
|
||||
*/
|
||||
|
|
@ -177,39 +177,47 @@
|
|||
* 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]
|
||||
* ));
|
||||
*
|
||||
* File storage engine.
|
||||
*/
|
||||
Cache::config('default', array(
|
||||
'engine' => 'File', //[required]
|
||||
'duration'=> 3600, //[optional]
|
||||
'probability'=> 100, //[optional]
|
||||
'path' => '/Users/karlcordes/Sites/quotenik/app/tmp/', //[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,
|
||||
));
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
//APC (http://pecl.php.net/package/APC)
|
||||
|
||||
Cache::config('default', array(
|
||||
/* 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)
|
||||
)); */
|
||||
/*
|
||||
* 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://www.danga.com/memcached/)
|
||||
*
|
||||
|
|
@ -225,5 +233,4 @@
|
|||
* ));
|
||||
*
|
||||
*/
|
||||
//Cache::config('default', array('engine' => 'File'));
|
||||
?>
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
<?php
|
||||
/* SVN FILE: $Id: database.php.default 7118 2008-06-04 20:49:29Z gwoo $ */
|
||||
/**
|
||||
* This is core configuration file.
|
||||
*
|
||||
* Use it to configure core behaviour ofCake.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>
|
||||
* Copyright 2005-2008, 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.
|
||||
*
|
||||
* @filesource
|
||||
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
|
||||
* @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
|
||||
* @package cake
|
||||
* @subpackage cake.app.config
|
||||
* @since CakePHP(tm) v 0.2.9
|
||||
* @version $Revision: 7118 $
|
||||
* @modifiedby $LastChangedBy: gwoo $
|
||||
* @lastmodified $Date: 2008-06-04 13:49:29 -0700 (Wed, 04 Jun 2008) $
|
||||
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
||||
*/
|
||||
/**
|
||||
* In this file you set up your database connection details.
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.config
|
||||
*/
|
||||
/**
|
||||
* Database configuration class.
|
||||
* You can specify multiple configurations for production, development and testing.
|
||||
*
|
||||
* driver => The name of a supported driver; valid options are as follows:
|
||||
* mysql - MySQL 4 & 5,
|
||||
* mysqli - MySQL 4 & 5 Improved Interface (PHP5 only),
|
||||
* sqlite - SQLite (PHP5 only),
|
||||
* postgres - PostgreSQL 7 and higher,
|
||||
* mssql - Microsoft SQL Server 2000 and higher,
|
||||
* db2 - IBM DB2, Cloudscape, and Apache Derby (http://php.net/ibm-db2)
|
||||
* oracle - Oracle 8 and higher
|
||||
* firebird - Firebird/Interbase
|
||||
* sybase - Sybase ASE
|
||||
* adodb-[drivername] - ADOdb interface wrapper (see below),
|
||||
* pear-[drivername] - PEAR::DB wrapper
|
||||
*
|
||||
* You can add custom database drivers (or override existing drivers) by adding the
|
||||
* appropriate file to app/models/datasources/dbo. Drivers should be named 'dbo_x.php',
|
||||
* where 'x' is the name of the database.
|
||||
*
|
||||
* persistent => true / false
|
||||
* Determines whether or not the database should use a persistent connection
|
||||
*
|
||||
* connect =>
|
||||
* ADOdb set the connect to one of these
|
||||
* (http://phplens.com/adodb/supported.databases.html) and
|
||||
* append it '|p' for persistent connection. (mssql|p for example, or just mssql for not persistent)
|
||||
* For all other databases, this setting is deprecated.
|
||||
*
|
||||
* 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 and DB2, specifies which schema you would like to use the tables in. Postgres defaults to
|
||||
* 'public', DB2 defaults to empty.
|
||||
*
|
||||
* encoding =>
|
||||
* For MySQL, MySQLi, Postgres and DB2, specifies the character encoding to use when connecting to the
|
||||
* database. Defaults to 'UTF-8' for DB2. Uses database default for all others.
|
||||
*
|
||||
*/
|
||||
class DATABASE_CONFIG {
|
||||
|
||||
var $default = array(
|
||||
'driver' => 'mysql',
|
||||
'persistent' => false,
|
||||
'host' => 'localhost',
|
||||
'login' => 'user',
|
||||
'password' => 'password',
|
||||
'database' => 'database_name',
|
||||
'prefix' => '',
|
||||
);
|
||||
|
||||
var $test = array(
|
||||
'driver' => 'mysql',
|
||||
'persistent' => false,
|
||||
'host' => 'localhost',
|
||||
'login' => 'user',
|
||||
'password' => 'password',
|
||||
'database' => 'test_database_name',
|
||||
'prefix' => '',
|
||||
);
|
||||
}
|
||||
?>
|
||||
0
controllers/app_controller.php
Normal file → Executable file
0
controllers/app_controller.php
Normal file → Executable file
0
controllers/components/image.php
Normal file → Executable file
0
controllers/components/image.php
Normal file → Executable file
0
controllers/contact_categories_controller.php
Normal file → Executable file
0
controllers/contact_categories_controller.php
Normal file → Executable file
0
controllers/customer_categories_controller.php
Normal file → Executable file
0
controllers/customer_categories_controller.php
Normal file → Executable file
0
controllers/email_attachments_controller.php
Normal file → Executable file
0
controllers/email_attachments_controller.php
Normal file → Executable file
0
controllers/emails_controller.php
Normal file → Executable file
0
controllers/emails_controller.php
Normal file → Executable file
0
controllers/enquiry_files_controller.php
Normal file → Executable file
0
controllers/enquiry_files_controller.php
Normal file → Executable file
0
controllers/groups_controller.php
Normal file → Executable file
0
controllers/groups_controller.php
Normal file → Executable file
0
controllers/industries_controller.php
Normal file → Executable file
0
controllers/industries_controller.php
Normal file → Executable file
0
controllers/principle_addresses_controller.php
Normal file → Executable file
0
controllers/principle_addresses_controller.php
Normal file → Executable file
0
controllers/principle_contacts_controller.php
Normal file → Executable file
0
controllers/principle_contacts_controller.php
Normal file → Executable file
0
controllers/product_attachments_controller.php
Normal file → Executable file
0
controllers/product_attachments_controller.php
Normal file → Executable file
0
controllers/product_categories_controller.php
Normal file → Executable file
0
controllers/product_categories_controller.php
Normal file → Executable file
0
controllers/product_options_categories_controller.php
Normal file → Executable file
0
controllers/product_options_categories_controller.php
Normal file → Executable file
0
controllers/product_options_controller.php
Normal file → Executable file
0
controllers/product_options_controller.php
Normal file → Executable file
0
controllers/quote_pages_controller.php
Normal file → Executable file
0
controllers/quote_pages_controller.php
Normal file → Executable file
0
controllers/quote_products_controller.php
Normal file → Executable file
0
controllers/quote_products_controller.php
Normal file → Executable file
0
models/app_model.php
Normal file → Executable file
0
models/app_model.php
Normal file → Executable file
0
models/contact_category.php
Normal file → Executable file
0
models/contact_category.php
Normal file → Executable file
0
models/costing.php
Normal file → Executable file
0
models/costing.php
Normal file → Executable file
|
|
@ -71,9 +71,12 @@ class Customer extends AppModel {
|
|||
'counterQuery' => ''
|
||||
)
|
||||
);
|
||||
|
||||
var $belongsTo = array('CustomerCategory'=>array('className' => 'CustomerCategory',
|
||||
'foreignKey' => 'customer_category_id'));
|
||||
|
||||
|
||||
|
||||
var $belongsTo = array('CustomerCategory'=>
|
||||
array('className' => 'CustomerCategory','foreignKey' => 'customer_category_id')
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
|
@ -85,7 +88,5 @@ class Customer extends AppModel {
|
|||
'associationForeignKey' => 'industry_id'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
?>
|
||||
0
models/customer_category.php
Normal file → Executable file
0
models/customer_category.php
Normal file → Executable file
0
models/email.php
Normal file → Executable file
0
models/email.php
Normal file → Executable file
0
models/email_attachment.php
Normal file → Executable file
0
models/email_attachment.php
Normal file → Executable file
0
models/enquiry_email_queue.php
Normal file → Executable file
0
models/enquiry_email_queue.php
Normal file → Executable file
0
models/enquiry_file.php
Normal file → Executable file
0
models/enquiry_file.php
Normal file → Executable file
0
models/group.php
Normal file → Executable file
0
models/group.php
Normal file → Executable file
6
models/industry.php
Normal file → Executable file
6
models/industry.php
Normal file → Executable file
|
|
@ -3,14 +3,12 @@
|
|||
class Industry extends AppModel {
|
||||
|
||||
var $name = 'Industry';
|
||||
|
||||
|
||||
|
||||
var $hasAndBelongsToMany = array (
|
||||
'Customer' => array(
|
||||
'className' => 'Customer',
|
||||
'joinTable' => 'industries_customers'
|
||||
// 'foreignKey' => 'industry_id',
|
||||
// 'associationForeignKey' => 'customer_id'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
@ -36,4 +34,4 @@ class Industry extends AppModel {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
0
models/principle_address.php
Normal file → Executable file
0
models/principle_address.php
Normal file → Executable file
0
models/principle_contact.php
Normal file → Executable file
0
models/principle_contact.php
Normal file → Executable file
0
models/product_attachment.php
Normal file → Executable file
0
models/product_attachment.php
Normal file → Executable file
0
models/product_category.php
Normal file → Executable file
0
models/product_category.php
Normal file → Executable file
0
models/product_option.php
Normal file → Executable file
0
models/product_option.php
Normal file → Executable file
0
models/product_options_category.php
Normal file → Executable file
0
models/product_options_category.php
Normal file → Executable file
0
models/quote_page.php
Normal file → Executable file
0
models/quote_page.php
Normal file → Executable file
0
tmp/.gitignore
vendored
Normal file → Executable file
0
tmp/.gitignore
vendored
Normal file → Executable file
0
vendors/shells/enquiry_email.php
vendored
Normal file → Executable file
0
vendors/shells/enquiry_email.php
vendored
Normal file → Executable file
0
vendors/shells/vault.php
vendored
Normal file → Executable file
0
vendors/shells/vault.php
vendored
Normal file → Executable file
0
vendors/tcpdf/images/cmcfooter.jpg
vendored
Normal file → Executable file
0
vendors/tcpdf/images/cmcfooter.jpg
vendored
Normal file → Executable file
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
0
vendors/tcpdf/images/cmcfooter.png
vendored
Normal file → Executable file
0
vendors/tcpdf/images/cmcfooter.png
vendored
Normal file → Executable file
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
0
vendors/xtcpdf.php
vendored
Normal file → Executable file
0
vendors/xtcpdf.php
vendored
Normal file → Executable file
0
views/addresses/add_another.ctp
Normal file → Executable file
0
views/addresses/add_another.ctp
Normal file → Executable file
0
views/addresses/remove_another.ctp
Normal file → Executable file
0
views/addresses/remove_another.ctp
Normal file → Executable file
0
views/contact_categories/add.ctp
Normal file → Executable file
0
views/contact_categories/add.ctp
Normal file → Executable file
0
views/contact_categories/edit.ctp
Normal file → Executable file
0
views/contact_categories/edit.ctp
Normal file → Executable file
0
views/contact_categories/index.ctp
Normal file → Executable file
0
views/contact_categories/index.ctp
Normal file → Executable file
0
views/contact_categories/view.ctp
Normal file → Executable file
0
views/contact_categories/view.ctp
Normal file → Executable file
0
views/contacts/add_another.ctp
Normal file → Executable file
0
views/contacts/add_another.ctp
Normal file → Executable file
0
views/contacts/add_one.ctp
Normal file → Executable file
0
views/contacts/add_one.ctp
Normal file → Executable file
0
views/contacts/remove_another.ctp
Normal file → Executable file
0
views/contacts/remove_another.ctp
Normal file → Executable file
0
views/contacts/remove_one.ctp
Normal file → Executable file
0
views/contacts/remove_one.ctp
Normal file → Executable file
0
views/customer_categories/add.ctp
Normal file → Executable file
0
views/customer_categories/add.ctp
Normal file → Executable file
0
views/customer_categories/edit.ctp
Normal file → Executable file
0
views/customer_categories/edit.ctp
Normal file → Executable file
0
views/customer_categories/index.ctp
Normal file → Executable file
0
views/customer_categories/index.ctp
Normal file → Executable file
0
views/customer_categories/view.ctp
Normal file → Executable file
0
views/customer_categories/view.ctp
Normal file → Executable file
0
views/customers/complete_customer.ctp
Normal file → Executable file
0
views/customers/complete_customer.ctp
Normal file → Executable file
0
views/customers/find.ctp
Normal file → Executable file
0
views/customers/find.ctp
Normal file → Executable file
0
views/customers/tagindustries.ctp
Normal file → Executable file
0
views/customers/tagindustries.ctp
Normal file → Executable file
0
views/elements/abn.ctp
Normal file → Executable file
0
views/elements/abn.ctp
Normal file → Executable file
0
views/elements/address_table.ctp
Normal file → Executable file
0
views/elements/address_table.ctp
Normal file → Executable file
0
views/elements/email/html/enquiry_added.ctp
Normal file → Executable file
0
views/elements/email/html/enquiry_added.ctp
Normal file → Executable file
0
views/elements/email/text/enquiry_added.ctp
Normal file → Executable file
0
views/elements/email/text/enquiry_added.ctp
Normal file → Executable file
0
views/elements/email_attachments.ctp
Normal file → Executable file
0
views/elements/email_attachments.ctp
Normal file → Executable file
0
views/elements/email_table.ctp
Normal file → Executable file
0
views/elements/email_table.ctp
Normal file → Executable file
0
views/elements/email_table_ajax.ctp
Normal file → Executable file
0
views/elements/email_table_ajax.ctp
Normal file → Executable file
0
views/elements/enquiry_file_table.ctp
Normal file → Executable file
0
views/elements/enquiry_file_table.ctp
Normal file → Executable file
0
views/elements/enquiry_table.ctp
Normal file → Executable file
0
views/elements/enquiry_table.ctp
Normal file → Executable file
0
views/elements/enquiry_table.ctp~
Normal file → Executable file
0
views/elements/enquiry_table.ctp~
Normal file → Executable file
0
views/elements/enquiry_tableworkin.ctp
Normal file → Executable file
0
views/elements/enquiry_tableworkin.ctp
Normal file → Executable file
0
views/elements/payment_terms_box.ctp
Normal file → Executable file
0
views/elements/payment_terms_box.ctp
Normal file → Executable file
0
views/elements/principle_address_table.ctp
Normal file → Executable file
0
views/elements/principle_address_table.ctp
Normal file → Executable file
0
views/elements/principle_contacts.ctp
Normal file → Executable file
0
views/elements/principle_contacts.ctp
Normal file → Executable file
0
views/elements/principle_contacts_email_box.ctp
Normal file → Executable file
0
views/elements/principle_contacts_email_box.ctp
Normal file → Executable file
0
views/elements/product_attachment_table.ctp
Normal file → Executable file
0
views/elements/product_attachment_table.ctp
Normal file → Executable file
0
views/elements/product_costing.ctp
Normal file → Executable file
0
views/elements/product_costing.ctp
Normal file → Executable file
0
views/elements/product_list.ctp
Normal file → Executable file
0
views/elements/product_list.ctp
Normal file → Executable file
0
views/elements/product_table.ctp
Normal file → Executable file
0
views/elements/product_table.ctp
Normal file → Executable file
0
views/elements/quote_table.ctp
Normal file → Executable file
0
views/elements/quote_table.ctp
Normal file → Executable file
0
views/elements/tipbox.ctp
Normal file → Executable file
0
views/elements/tipbox.ctp
Normal file → Executable file
0
views/emails/add.ctp
Normal file → Executable file
0
views/emails/add.ctp
Normal file → Executable file
0
views/emails/frame.ctp
Normal file → Executable file
0
views/emails/frame.ctp
Normal file → Executable file
0
views/emails/index.ctp
Normal file → Executable file
0
views/emails/index.ctp
Normal file → Executable file
0
views/emails/print.ctp
Normal file → Executable file
0
views/emails/print.ctp
Normal file → Executable file
0
views/emails/printview.ctp
Normal file → Executable file
0
views/emails/printview.ctp
Normal file → Executable file
0
views/emails/show.ctp
Normal file → Executable file
0
views/emails/show.ctp
Normal file → Executable file
0
views/emails/view.ctp
Normal file → Executable file
0
views/emails/view.ctp
Normal file → Executable file
0
views/enquiries/complete_customer.ctp
Normal file → Executable file
0
views/enquiries/complete_customer.ctp
Normal file → Executable file
0
views/enquiries/update_status.ctp
Normal file → Executable file
0
views/enquiries/update_status.ctp
Normal file → Executable file
0
views/enquiry_files/add.ctp
Normal file → Executable file
0
views/enquiry_files/add.ctp
Normal file → Executable file
0
views/groups/add.ctp
Normal file → Executable file
0
views/groups/add.ctp
Normal file → Executable file
0
views/groups/edit.ctp
Normal file → Executable file
0
views/groups/edit.ctp
Normal file → Executable file
0
views/groups/index.ctp
Normal file → Executable file
0
views/groups/index.ctp
Normal file → Executable file
0
views/groups/view.ctp
Normal file → Executable file
0
views/groups/view.ctp
Normal file → Executable file
0
views/helpers/fck.php
Normal file → Executable file
0
views/helpers/fck.php
Normal file → Executable file
0
views/helpers/link.php
Normal file → Executable file
0
views/helpers/link.php
Normal file → Executable file
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue