caipin 8 年之前
父節點
當前提交
321649b7c6
共有 2 個文件被更改,包括 0 次插入63 次删除
  1. 0 56
      protected/config/common.conf.php
  2. 0 7
      protected/config/db.conf.php

+ 0 - 56
protected/config/common.conf.php

@@ -1,56 +0,0 @@
-<?php
-/* 
- * Common configuration that can be used throughout the application
- * Please refer to DooConfig class in the API doc for a complete list of configurations
- * Access via Singleton, eg. Doo::conf()->BASE_PATH;
- */
-error_reporting(E_ALL | E_STRICT);
-date_default_timezone_set('Asia/Kuala_Lumpur');
-
-/**
- * for benchmark purpose, call Doo::benchmark() for time used.
- */
-//$config['START_TIME'] = microtime(true);
-
-
-//For framework use. Must be defined. Use full absolute paths and end them with '/'      eg. /var/www/project/
-$config['SITE_PATH'] = realpath('..').'/dongleerp/';
-//$config['PROTECTED_FOLDER'] = 'protected/';
-$config['BASE_PATH'] = realpath('..').'/dooframework/';
-
-//for production mode use 'prod'
-$config['APP_MODE'] = 'dev';
-
-//----------------- optional, if not defined, default settings are optimized for production mode ----------------
-//if your root directory is /var/www/ and you place this in a subfolder eg. 'app', define SUBFOLDER = '/app/'
-
-$config['SUBFOLDER'] = str_replace($_SERVER['DOCUMENT_ROOT'], '', str_replace('\\','/',$config['SITE_PATH']));
-if(strpos($config['SUBFOLDER'], '/')!==0){
-	$config['SUBFOLDER'] = '/'.$config['SUBFOLDER'];
-}
-
-$config['APP_URL'] = 'http://'.$_SERVER['HTTP_HOST'].$config['SUBFOLDER'];
-//$config['AUTOROUTE'] = TRUE;
-$config['DEBUG_ENABLED'] = TRUE;
-
-//$config['TEMPLATE_COMPILE_ALWAYS'] = TRUE;
-
-//register functions to be used with your template files
-//$config['TEMPLATE_GLOBAL_TAGS'] = array('url', 'url2', 'time', 'isset', 'empty');
-
-/**
- * Path to store logs/profiles when using with the logger tool. This is needed for writing log files and using the log viewer tool
- */
-//$config['LOG_PATH'] = '/var/logs/';
-
-
-
-//$config['ERROR_404_DOCUMENT'] = 'error.php';
-$config['ERROR_404_ROUTE'] = '/error';
-
-define ( "WEB_SITE", "http://cld.com" );
-define ( "WEB_SITE_GLOBAL", WEB_SITE . "/global/" );
-define ( "REAL_PATH", realpath ( '..' ) );
-define ( "SITE_PATH", REAL_PATH . "/dongleerp/" );
-
-//$config['pagesize'] = 10;

+ 0 - 7
protected/config/db.conf.php

@@ -1,7 +0,0 @@
-<?php
-
-$dbconfig['dev'] = array('192.168.78.128', 'dongleerp', 'caipin', '123456', 'mysql', true, 'collate'=>'utf8_unicode_ci', 'charset'=>'utf8');
-//$dbconfig['dev'] = array('127.0.0.1', 'dongleerp', 'os', '123456', 'mysql', true, 'collate'=>'utf8_unicode_ci', 'charset'=>'utf8');
-//$dbconfig['dev'] = array('127.0.0.1', 'dongleerp', 'root', 'root', 'mysql', true, 'collate'=>'utf8_unicode_ci', 'charset'=>'utf8');
-   
-?>