1: <?php
2: /**
3: * Laravel - A PHP Framework For Web Artisans
4: *
5: * @package Laravel
6: * @version 3.2.14
7: * @author Taylor Otwell <taylorotwell@gmail.com>
8: * @link http://laravel.com
9: */
10:
11: /*
12: |----------------------------------------------------------------
13: | Application Environments
14: |----------------------------------------------------------------
15: |
16: | Laravel takes a dead simple approach to environments, and we
17: | think you'll love it. Just specify which URLs belong to a
18: | given environment, and when you access your application
19: | from a URL matching that pattern, we'll be sure to
20: | merge in that environment's configuration files.
21: |
22: */
23:
24: $environments = array(
25:
26: 'local' => array('http://localhost*', '*.dev'),
27:
28: );
29:
30: // --------------------------------------------------------------
31: // The path to the application directory.
32: // --------------------------------------------------------------
33: $paths['app'] = 'application';
34:
35: // --------------------------------------------------------------
36: // The path to the Laravel directory.
37: // --------------------------------------------------------------
38: $paths['sys'] = 'laravel';
39:
40: // --------------------------------------------------------------
41: // The path to the bundles directory.
42: // --------------------------------------------------------------
43: $paths['bundle'] = 'bundles';
44:
45: // --------------------------------------------------------------
46: // The path to the storage directory.
47: // --------------------------------------------------------------
48: $paths['storage'] = 'storage';
49:
50: // --------------------------------------------------------------
51: // The path to the public directory.
52: // --------------------------------------------------------------
53: $paths['public'] = 'public';
54:
55: // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
56: // END OF USER CONFIGURATION. HERE BE DRAGONS!
57: // *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
58: /*
59: .~))>>
60: .~)>>
61: .~))))>>>
62: .~))>> ___
63: .~))>>)))>> .-~))>>
64: .~)))))>> .-~))>>)>
65: .~)))>>))))>> .-~)>>)>
66: ) .~))>>))))>> .-~)))))>>)>
67: ( )@@*) //)>)))))) .-~))))>>)>
68: ).@(@@ //))>>))) .-~))>>)))))>>)>
69: (( @.@). //))))) .-~)>>)))))>>)>
70: )) )@@*.@@ ) //)>))) //))))))>>))))>>)>
71: (( ((@@@.@@ |/))))) //)))))>>)))>>)>
72: )) @@*. )@@ ) (\_(\-\b |))>)) //)))>>)))))))>>)>
73: (( @@@(.@(@ . _/`-` ~|b |>))) //)>>)))))))>>)>
74: )* @@@ )@* (@) (@) /\b|))) //))))))>>))))>>
75: (( @. )@( @ . _/ / / \b)) //))>>)))))>>>_._
76: )@@ (@@*)@@. (6///6)- / ^ \b)//))))))>>)))>> ~~-.
77: ( @jgs@@. @@@.*@_ VvvvvV// ^ \b/)>>))))>> _. `bb
78: ((@@ @@@*.(@@ . - | o |' \ ( ^ \b)))>> .' b`,
79: ((@@).*@@ )@ ) \^^^/ (( ^ ~)_ \ / b `,
80: (@@. (@@ ). `-' ((( ^ `\ \ \ \ \| b `.
81: (*.@* / (((( \| | | \ . b `.
82: / / ((((( \ \ / _.-~\ Y, b ;
83: / / / (((((( \ \.-~ _.`" _.-~`, b ;
84: / / `(((((() ) (((((~ `, b ;
85: _/ _/ `"""/ /' ; b ;
86: _.-~_.-~ / /' _.'~bb _.'
87: ((((~~ / /' _.'~bb.--~
88: (((( __.-~bb.-~
89: .' b .~~
90: :bb ,'
91: ~~~~
92: */
93:
94: // --------------------------------------------------------------
95: // Change to the current working directory.
96: // --------------------------------------------------------------
97: chdir(__DIR__);
98:
99: // --------------------------------------------------------------
100: // Define the directory separator for the environment.
101: // --------------------------------------------------------------
102: if ( ! defined('DS'))
103: {
104: define('DS', DIRECTORY_SEPARATOR);
105: }
106:
107: // --------------------------------------------------------------
108: // Define the path to the base directory.
109: // --------------------------------------------------------------
110: $GLOBALS['laravel_paths']['base'] = __DIR__.DS;
111:
112: // --------------------------------------------------------------
113: // Define each constant if it hasn't been defined.
114: // --------------------------------------------------------------
115: foreach ($paths as $name => $path)
116: {
117: if ( ! isset($GLOBALS['laravel_paths'][$name]))
118: {
119: $GLOBALS['laravel_paths'][$name] = realpath($path).DS;
120: }
121: }
122:
123: /**
124: * A global path helper function.
125: *
126: * <code>
127: * $storage = path('storage');
128: * </code>
129: *
130: * @param string $path
131: * @return string
132: */
133: function path($path)
134: {
135: return $GLOBALS['laravel_paths'][$path];
136: }
137:
138: /**
139: * A global path setter function.
140: *
141: * @param string $path
142: * @param string $value
143: * @return void
144: */
145: function set_path($path, $value)
146: {
147: $GLOBALS['laravel_paths'][$path] = $value;
148: }