Skip to content

Commit e5d6e30

Browse files
lubuntulubuntu
lubuntu
authored and
lubuntu
committed
first commit
0 parents  commit e5d6e30

File tree

1,282 files changed

+144905
-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.

1,282 files changed

+144905
-0
lines changed

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
6+
before_install:
7+
- "git submodule update --init --recursive"
8+
9+
before_script:
10+
- "pear channel-discover pear.phing.info"
11+
- "pear install phing/phing"
12+
- "phpenv rehash"
13+
- "composer install"
14+
15+
script: "phing test"
16+
17+
notifications:
18+
irc:
19+
channels:
20+
- "irc.freenode.org#kohana"
21+
template:
22+
- "%{repository}/%{branch} (%{commit}) - %{author}: %{message}"
23+
- "Build details: %{build_url}"
24+
email: false

LICENSE.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Kohana License Agreement
2+
3+
This license is a legal agreement between you and the Kohana Team for the use of Kohana Framework (the "Software"). By obtaining the Software you agree to comply with the terms and conditions of this license.
4+
5+
Copyright (c) 2007-2011 Kohana Team
6+
All rights reserved.
7+
8+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
11+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
12+
* Neither the name of the Kohana nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Kohana PHP Framework
2+
3+
[Kohana](http://kohanaframework.org/) is an elegant, open source, and object oriented HMVC framework built using PHP5, by a team of volunteers. It aims to be swift, secure, and small.
4+
5+
Released under a [BSD license](http://kohanaframework.org/license), Kohana can be used legally for any open source, commercial, or personal project.
6+
7+
## Documentation
8+
Kohana's documentation can be found at <http://kohanaframework.org/documentation> which also contains an API browser.
9+
10+
The `userguide` module included in all Kohana releases also allows you to view the documentation locally. Once the `userguide` module is enabled in the bootstrap, it is accessible from your site via `/index.php/guide` (or just `/guide` if you are rewriting your URLs).
11+
12+
## Reporting bugs
13+
If you've stumbled across a bug, please help us out by [reporting the bug](http://dev.kohanaframework.org/projects/kohana3/) you have found. Simply log in or register and submit a new issue, leaving as much information about the bug as possible, e.g.
14+
15+
* Steps to reproduce
16+
* Expected result
17+
* Actual result
18+
19+
This will help us to fix the bug as quickly as possible, and if you'd like to fix it yourself feel free to [fork us on GitHub](https://github.com/kohana) and submit a pull request!

application/bootstrap.php

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?php defined('SYSPATH') or die('No direct script access.');
2+
3+
// -- Environment setup --------------------------------------------------------
4+
5+
// Load the core Kohana class
6+
require SYSPATH.'classes/Kohana/Core'.EXT;
7+
8+
if (is_file(APPPATH.'classes/Kohana'.EXT))
9+
{
10+
// Application extends the core
11+
require APPPATH.'classes/Kohana'.EXT;
12+
}
13+
else
14+
{
15+
// Load empty core extension
16+
require SYSPATH.'classes/Kohana'.EXT;
17+
}
18+
19+
/**
20+
* Set the default time zone.
21+
*
22+
* @link http://kohanaframework.org/guide/using.configuration
23+
* @link http://www.php.net/manual/timezones
24+
*/
25+
date_default_timezone_set('America/Chicago');
26+
27+
/**
28+
* Set the default locale.
29+
*
30+
* @link http://kohanaframework.org/guide/using.configuration
31+
* @link http://www.php.net/manual/function.setlocale
32+
*/
33+
setlocale(LC_ALL, 'en_US.utf-8');
34+
35+
/**
36+
* Enable the Kohana auto-loader.
37+
*
38+
* @link http://kohanaframework.org/guide/using.autoloading
39+
* @link http://www.php.net/manual/function.spl-autoload-register
40+
*/
41+
spl_autoload_register(array('Kohana', 'auto_load'));
42+
43+
/**
44+
* Optionally, you can enable a compatibility auto-loader for use with
45+
* older modules that have not been updated for PSR-0.
46+
*
47+
* It is recommended to not enable this unless absolutely necessary.
48+
*/
49+
//spl_autoload_register(array('Kohana', 'auto_load_lowercase'));
50+
51+
/**
52+
* Enable the Kohana auto-loader for unserialization.
53+
*
54+
* @link http://www.php.net/manual/function.spl-autoload-call
55+
* @link http://www.php.net/manual/var.configuration#unserialize-callback-func
56+
*/
57+
ini_set('unserialize_callback_func', 'spl_autoload_call');
58+
59+
// -- Configuration and initialization -----------------------------------------
60+
61+
/**
62+
* Set the default language
63+
*/
64+
I18n::lang('en-us');
65+
66+
/**
67+
* Set Kohana::$environment if a 'KOHANA_ENV' environment variable has been supplied.
68+
*
69+
* Note: If you supply an invalid environment name, a PHP warning will be thrown
70+
* saying "Couldn't find constant Kohana::<INVALID_ENV_NAME>"
71+
*/
72+
if (isset($_SERVER['KOHANA_ENV']))
73+
{
74+
Kohana::$environment = constant('Kohana::'.strtoupper($_SERVER['KOHANA_ENV']));
75+
}
76+
77+
/**
78+
* Initialize Kohana, setting the default options.
79+
*
80+
* The following options are available:
81+
*
82+
* - string base_url path, and optionally domain, of your application NULL
83+
* - string index_file name of your index file, usually "index.php" index.php
84+
* - string charset internal character set used for input and output utf-8
85+
* - string cache_dir set the internal cache directory APPPATH/cache
86+
* - integer cache_life lifetime, in seconds, of items cached 60
87+
* - boolean errors enable or disable error handling TRUE
88+
* - boolean profile enable or disable internal profiling TRUE
89+
* - boolean caching enable or disable internal caching FALSE
90+
* - boolean expose set the X-Powered-By header FALSE
91+
*/
92+
Kohana::init(array(
93+
'base_url' => '/kohana/',
94+
));
95+
96+
/**
97+
* Attach the file write to logging. Multiple writers are supported.
98+
*/
99+
Kohana::$log->attach(new Log_File(APPPATH.'logs'));
100+
101+
/**
102+
* Attach a file reader to config. Multiple readers are supported.
103+
*/
104+
Kohana::$config->attach(new Config_File);
105+
106+
/**
107+
* Enable modules. Modules are referenced by a relative or absolute path.
108+
*/
109+
Kohana::modules(array(
110+
// 'auth' => MODPATH.'auth', // Basic authentication
111+
// 'cache' => MODPATH.'cache', // Caching with multiple backends
112+
// 'codebench' => MODPATH.'codebench', // Benchmarking tool
113+
// 'database' => MODPATH.'database', // Database access
114+
// 'image' => MODPATH.'image', // Image manipulation
115+
// 'minion' => MODPATH.'minion', // CLI Tasks
116+
// 'orm' => MODPATH.'orm', // Object Relationship Mapping
117+
// 'unittest' => MODPATH.'unittest', // Unit testing
118+
// 'userguide' => MODPATH.'userguide', // User guide and API documentation
119+
));
120+
121+
/**
122+
* Set the routes. Each route must have a minimum of a name, a URI and a set of
123+
* defaults for the URI.
124+
*/
125+
Route::set('default', '(<controller>(/<action>(/<id>)))')
126+
->defaults(array(
127+
'controller' => 'welcome',
128+
'action' => 'index',
129+
));
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php defined('SYSPATH') or die('No direct script access.');
2+
3+
class Controller_Welcome extends Controller {
4+
5+
public function action_index()
6+
{
7+
$this->response->body('hello, world!');
8+
}
9+
10+
} // End Welcome

application/logs/2012/03/26.php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php defined('SYSPATH') or die('No direct script access.'); ?>
2+
3+
2012-03-26 09:13:53 --- ERROR: Kohana_Exception [ 0 ]: Attempted to load an invalid or missing module 'minion' at 'MODPATH/minion' ~ SYSPATH/classes/kohana/core.php [ 542 ]
4+
2012-03-26 09:13:53 --- STRACE: Kohana_Exception [ 0 ]: Attempted to load an invalid or missing module 'minion' at 'MODPATH/minion' ~ SYSPATH/classes/kohana/core.php [ 542 ]
5+
--
6+
#0 /Volumes/Code/kohana/kohana-3.3/application/bootstrap.php(109): Kohana_Core::modules(Array)
7+
#1 /Volumes/Code/kohana/kohana-3.3/index.php(102): require('/Volumes/Code/k...')
8+
#2 {main}
9+
2012-03-26 09:14:48 --- EMERGENCY: ErrorException [ 1 ]: Class 'CLI' not found ~ DOCROOT/index.php [ 109 ] in :
10+
2012-03-26 09:14:48 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
11+
#1 {main} in :
12+
2012-03-26 09:14:52 --- EMERGENCY: ErrorException [ 1 ]: Class 'CLI' not found ~ DOCROOT/index.php [ 109 ] in :
13+
2012-03-26 09:14:52 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
14+
#1 {main} in :
15+
2012-03-26 09:15:13 --- EMERGENCY: ErrorException [ 1 ]: Class 'CLI' not found ~ DOCROOT/index.php [ 109 ] in :
16+
2012-03-26 09:15:13 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
17+
#1 {main} in :
18+
2012-03-26 09:16:42 --- EMERGENCY: ErrorException [ 1 ]: Class 'Minion_Util' not found ~ MODPATH/minion/classes/Task/Help.php [ 20 ] in :
19+
2012-03-26 09:16:42 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
20+
#1 {main} in :
21+
2012-03-26 09:18:10 --- EMERGENCY: ErrorException [ 1 ]: Call to undefined method Minion_Task::compile_task_list() ~ MODPATH/minion/classes/Task/Help.php [ 20 ] in :
22+
2012-03-26 09:18:10 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
23+
#1 {main} in :
24+
2012-03-26 09:18:12 --- EMERGENCY: ErrorException [ 1 ]: Call to undefined method Minion_Task::compile_task_list() ~ MODPATH/minion/classes/Task/Help.php [ 20 ] in :
25+
2012-03-26 09:18:12 --- ALERT: #0 [internal function]: Kohana_Core::shutdown_handler()
26+
#1 {main} in :

application/logs/2012/06/25.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php defined('SYSPATH') OR die('No direct script access.'); ?>
2+
3+
2012-06-25 14:45:57 --- EMERGENCY: Kohana_Exception [ 0 ]: Cannot create instances of abstract Controller_Template ~ SYSPATH/classes/Kohana/Request/Client/Internal.php [ 87 ] in /home/vagrant/web-app/kohana-3.3/system/classes/Kohana/Request/Client.php:114
4+
2012-06-25 14:45:57 --- DEBUG: #0 /home/vagrant/web-app/kohana-3.3/system/classes/Kohana/Request/Client.php(114): Kohana_Request_Client_Internal->execute_request(Object(Mock_Request_92742025), Object(Response))
5+
#1 /home/vagrant/web-app/kohana-3.3/system/tests/kohana/request/client/InternalTest.php(64): Kohana_Request_Client->execute(Object(Mock_Request_92742025))
6+
#2 [internal function]: Kohana_Request_Client_InternalTest->test_response_failure_status('', 'Template', 'missing_action', 'kohana3/Templat...', 500)
7+
#3 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestCase.php(738): ReflectionMethod->invokeArgs(Object(Kohana_Request_Client_InternalTest), Array)
8+
#4 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestCase.php(628): PHPUnit_Framework_TestCase->runTest()
9+
#5 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestResult.php(666): PHPUnit_Framework_TestCase->runBare()
10+
#6 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestCase.php(576): PHPUnit_Framework_TestResult->run(Object(Kohana_Request_Client_InternalTest))
11+
#7 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestSuite.php(757): PHPUnit_Framework_TestCase->run(Object(PHPUnit_Framework_TestResult))
12+
#8 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestSuite.php(733): PHPUnit_Framework_TestSuite->runTest(Object(Kohana_Request_Client_InternalTest), Object(PHPUnit_Framework_TestResult))
13+
#9 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestSuite.php(693): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
14+
#10 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/Framework/TestSuite.php(693): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
15+
#11 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/TextUI/TestRunner.php(305): PHPUnit_Framework_TestSuite->run(Object(PHPUnit_Framework_TestResult), false, Array, Array, false)
16+
#12 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/TextUI/Command.php(188): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUnit_Framework_TestSuite), Array)
17+
#13 /home/vagrant/web-app/kohana-3.3/modules/unittest/vendor/phpunit/PHPUnit/TextUI/Command.php(129): PHPUnit_TextUI_Command->run(Array, true)
18+
#14 /home/vagrant/web-app/kohana-3.3/modules/unittest/phpunit(68): PHPUnit_TextUI_Command::main()
19+
#15 {main} in /home/vagrant/web-app/kohana-3.3/system/classes/Kohana/Request/Client.php:114

0 commit comments

Comments
 (0)