Skip to content

Commit 6342074

Browse files
committed
commit all files
0 parents  commit 6342074

File tree

557 files changed

+241958
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

557 files changed

+241958
-0
lines changed

css/admin_styles.css

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.text-sort {
2+
3+
width:50px;
4+
}
5+
6+
.delete-pic {
7+
background:#f00 !important;
8+
}
9+
10+
.product-pic {
11+
float:left;background:#eee;text-align:center;margin:10px;border-radius:5px;padding:10px;
12+
border:1px solid #aaa;
13+
}
14+
15+
.product-pic > img {
16+
cursor:pointer;
17+
}
18+
19+
.product-pic:hover {
20+
border:1px solid #f00;
21+
}

css/bootstrap.2.3.2.css

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ct/.htaccess

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<IfModule mod_security.c>
2+
SecFilterEngine Off
3+
SecFilterScanPOST Off
4+
</IfModule>
5+
<IfModule mod_rewrite.c>
6+
7+
RewriteEngine on
8+
9+
RewriteBase /ct
10+
RewriteCond $1 !^(index\.php|ct|bower_components|user_guide|ckeditor|ckfinder|uploads|img|css|js|robots\.txt|test\.php|test|fonts|google8ad60224dd009e98\.html|c.php|tcpdf|$)
11+
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
12+
</IfModule>

ct/application/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deny from all

ct/application/cache/.htaccess

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deny from all

ct/application/cache/index.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<html>
2+
<head>
3+
<title>403 Forbidden</title>
4+
</head>
5+
<body>
6+
7+
<p>Directory access is forbidden.</p>
8+
9+
</body>
10+
</html>

ct/application/config/autoload.php

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2+
/*
3+
| -------------------------------------------------------------------
4+
| AUTO-LOADER
5+
| -------------------------------------------------------------------
6+
| This file specifies which systems should be loaded by default.
7+
|
8+
| In order to keep the framework as light-weight as possible only the
9+
| absolute minimal resources are loaded by default. For example,
10+
| the database is not connected to automatically since no assumption
11+
| is made regarding whether you intend to use it. This file lets
12+
| you globally define which systems you would like loaded with every
13+
| request.
14+
|
15+
| -------------------------------------------------------------------
16+
| Instructions
17+
| -------------------------------------------------------------------
18+
|
19+
| These are the things you can load automatically:
20+
|
21+
| 1. Packages
22+
| 2. Libraries
23+
| 3. Helper files
24+
| 4. Custom config files
25+
| 5. Language files
26+
| 6. Models
27+
|
28+
*/
29+
30+
/*
31+
| -------------------------------------------------------------------
32+
| Auto-load Packges
33+
| -------------------------------------------------------------------
34+
| Prototype:
35+
|
36+
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
37+
|
38+
*/
39+
40+
$autoload['packages'] = array();
41+
42+
43+
/*
44+
| -------------------------------------------------------------------
45+
| Auto-load Libraries
46+
| -------------------------------------------------------------------
47+
| These are the classes located in the system/libraries folder
48+
| or in your application/libraries folder.
49+
|
50+
| Prototype:
51+
|
52+
| $autoload['libraries'] = array('database', 'session', 'xmlrpc');
53+
*/
54+
55+
$autoload['libraries'] = array('database', 'uuid');
56+
57+
58+
/*
59+
| -------------------------------------------------------------------
60+
| Auto-load Helper Files
61+
| -------------------------------------------------------------------
62+
| Prototype:
63+
|
64+
| $autoload['helper'] = array('url', 'file');
65+
*/
66+
67+
$autoload['helper'] = array();
68+
69+
70+
/*
71+
| -------------------------------------------------------------------
72+
| Auto-load Config files
73+
| -------------------------------------------------------------------
74+
| Prototype:
75+
|
76+
| $autoload['config'] = array('config1', 'config2');
77+
|
78+
| NOTE: This item is intended for use ONLY if you have created custom
79+
| config files. Otherwise, leave it blank.
80+
|
81+
*/
82+
83+
$autoload['config'] = array('bookstore_config');
84+
85+
86+
/*
87+
| -------------------------------------------------------------------
88+
| Auto-load Language files
89+
| -------------------------------------------------------------------
90+
| Prototype:
91+
|
92+
| $autoload['language'] = array('lang1', 'lang2');
93+
|
94+
| NOTE: Do not include the "_lang" part of your file. For example
95+
| "codeigniter_lang.php" would be referenced as array('codeigniter');
96+
|
97+
*/
98+
99+
$autoload['language'] = array();
100+
101+
102+
/*
103+
| -------------------------------------------------------------------
104+
| Auto-load Models
105+
| -------------------------------------------------------------------
106+
| Prototype:
107+
|
108+
| $autoload['model'] = array('model1', 'model2');
109+
|
110+
*/
111+
112+
$autoload['model'] = array();
113+
114+
115+
/* End of file autoload.php */
116+
/* Location: ./application/config/autoload.php */
+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?php
2+
$config['ap_root_path'] = realpath('.');
3+
//封面圖片的檔名
4+
$config['fn_cover'] = 'cover';
5+
$config['fn_cover_default'] = 'cover_default';
6+
7+
$config['cover_width'] = 200;
8+
$config['cover_height'] = 270;
9+
10+
$config['member_status'] = array(
11+
'1'=>'正常會員',
12+
'2'=>'停權'
13+
);
14+
$config['sessionkey_is_login'] = 'islogin';
15+
$config['sessionkey_frontend_is_login'] = 'islogin';
16+
$config['frontend_login_url'] = '/member/login';
17+
18+
$config['product_type'] = array('熱水爐', '系統廚具', '其它');
19+
20+
//------以下為form validation RULES---------
21+
$config['form_validation_rules'] = array(
22+
'member_edit_add' => array(
23+
array(
24+
'field' => 'txt_email',
25+
'label' => 'eMail/帳號',
26+
'rules' => 'trim|required|max_length[45]|valid_email|callback_email_unique_check|xss_clean'
27+
),
28+
array(
29+
'field' => 'txt_password',
30+
'label' => '密碼',
31+
'rules' => 'trim|required|max_length[20]|xss_clean'
32+
),
33+
array(
34+
'field' => 'txt_name',
35+
'label' => '姓名',
36+
'rules' => 'trim|required|max_length[10]|xss_clean'
37+
),
38+
array(
39+
'field' => 'rb_gender',
40+
'label' => '性別',
41+
'rules' => 'trim|required|max_length[1]|xss_clean'
42+
),
43+
array(
44+
'field' => 'txt_address',
45+
'label' => '地址',
46+
'rules' => 'trim|required|max_length[75]|xss_clean'
47+
)
48+
),
49+
'email' => array(
50+
array(
51+
'field' => 'emailaddress',
52+
'label' => 'EmailAddress',
53+
'rules' => 'required|valid_email'
54+
),
55+
array(
56+
'field' => 'name',
57+
'label' => 'Name',
58+
'rules' => 'required|alpha'
59+
),
60+
array(
61+
'field' => 'title',
62+
'label' => 'Title',
63+
'rules' => 'required'
64+
),
65+
array(
66+
'field' => 'message',
67+
'label' => 'MessageBody',
68+
'rules' => 'required'
69+
)
70+
)
71+
);

0 commit comments

Comments
 (0)