- Timestamp:
- 08/27/2008 09:40:47 PM (3 months ago)
- Location:
- branches/website/application
- Files:
-
- 3 added
- 11 modified
- 10 moved
-
classes (added)
-
classes/controller (added)
-
classes/controller/admin.php (moved) (moved from branches/website/application/controllers/admin.php) (2 diffs, 1 prop)
-
classes/controller/donate.php (moved) (moved from branches/website/application/controllers/donate.php) (2 diffs, 1 prop)
-
classes/controller/download.php (moved) (moved from branches/website/application/controllers/download.php) (2 diffs, 1 prop)
-
classes/controller/home.php (moved) (moved from branches/website/application/controllers/home.php) (2 diffs, 1 prop)
-
classes/controller/license.php (moved) (moved from branches/website/application/controllers/license.php) (1 diff, 1 prop)
-
classes/controller/news.php (moved) (moved from branches/website/application/controllers/news.php) (1 diff, 1 prop)
-
classes/controller/tutorials.php (moved) (moved from branches/website/application/controllers/tutorials.php) (1 diff, 1 prop)
-
classes/controller/website.php (moved) (moved from branches/website/application/controllers/website.php) (3 diffs, 1 prop)
-
classes/model (added)
-
classes/model/donation.php (moved) (moved from branches/website/application/models/donation.php) (1 diff, 1 prop)
-
classes/model/video_tutorial.php (moved) (moved from branches/website/application/models/video_tutorial.php) (1 diff, 1 prop)
-
config/auth.php (modified) (1 diff)
-
config/cache.php (modified) (1 diff)
-
config/config.php (modified) (2 diffs)
-
config/database.php (modified) (1 diff)
-
config/encryption.php (modified) (1 diff)
-
config/hooks.php (modified) (1 diff)
-
config/locale.php (modified) (1 diff)
-
config/payment.php (modified) (1 diff)
-
config/routes.php (modified) (1 diff)
-
config/session.php (modified) (1 diff)
-
views/layout.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/website/application/classes/controller/admin.php
r2777 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');2 3 class Admin_Controller extends Website_Controller{1 <?php 2 3 class Controller_Admin extends Controller_Website { 4 4 5 5 public $auto_render = TRUE; … … 291 291 } 292 292 293 } // End Admin293 } // End Controller_Admin -
branches/website/application/classes/controller/donate.php
r3357 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 class Donate_Controller extends Website_Controller{3 class Controller_Donate extends Controller_Website { 4 4 5 5 protected $auth_required = 'developer'; … … 116 116 } 117 117 118 } // End Donate118 } // End Controller_Donate -
branches/website/application/classes/controller/download.php
r3315 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');2 3 class Download_Controller extends Website_Controller{1 <?php 2 3 class Controller_Download extends Controller_Website { 4 4 5 5 public $auto_render = TRUE; … … 244 244 } 245 245 246 } // End Download_Controller246 } // End Controller_Download -
branches/website/application/classes/controller/home.php
r3309 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 class Home_Controller extends Website_Controller{3 class Controller_Home extends Controller_Website { 4 4 5 5 public $auto_render = TRUE; … … 11 11 } 12 12 13 } // End Kohana Website Controller13 } // End Controller_Home -
branches/website/application/classes/controller/license.php
r3309 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 class License_Controller extends Website_Controller { -
branches/website/application/classes/controller/news.php
r3309 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 class News_Controller extends Website_Controller { -
branches/website/application/classes/controller/tutorials.php
r3309 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 class Tutorials_Controller extends Website_Controller { -
branches/website/application/classes/controller/website.php
r2777 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 class Website_Controller extends Template_Controller{3 class Controller_Website extends Controller_Template { 4 4 5 5 // Use auto-rendering, defaults to false … … 36 36 parent::__construct(); 37 37 38 // Need the first segment so that the main menu has an active tab 39 $this->uri->segment(1) or url::redirect('home'); 38 if (Router::$current_uri === '') 39 { 40 // Need the first segment so that the main menu has an active tab 41 url::redirect('home'); 42 } 40 43 41 44 if ($this->auto_render === TRUE) … … 143 146 } 144 147 145 } // End Website Controller148 } // End Controller_Website -
branches/website/application/classes/model/donation.php
r1356 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 class Donation_Modelextends ORM {}3 class Model_Donation extends ORM {} -
branches/website/application/classes/model/video_tutorial.php
r1651 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 class Video_tutorial_Model extends ORM {3 class Model_Video_Tutorial extends ORM { 4 4 5 5 public function save() -
branches/website/application/config/auth.php
r2761 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 $config = array -
branches/website/application/config/cache.php
r1480 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 $config['params'] = APPPATH.'cache'; -
branches/website/application/config/config.php
r3363 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 /** 3 3 * Base path of the web site. If this includes a domain, eg: localhost/kohana/ … … 100 100 $config['modules'] = array 101 101 ( 102 MODPATH.'archive', // Archive utility 102 103 MODPATH.'auth', // Authentication 103 MODPATH.'forge', // Form generation104 104 // MODPATH.'kodoc', // Self-generating documentation 105 105 // MODPATH.'media', // Media caching and compression 106 106 // MODPATH.'gmaps', // Google Maps integration 107 MODPATH.'archive', // Archive utility108 107 MODPATH.'payment', // Online payments 109 108 // MODPATH.'unit_test', // Unit testing -
branches/website/application/config/database.php
r2761 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 $config['website'] = array -
branches/website/application/config/encryption.php
r2761 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 $config['key'] = 'kohana rocks your socks!'; -
branches/website/application/config/hooks.php
r2786 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 $config['enable'] = TRUE; -
branches/website/application/config/locale.php
r2895 r3374 1 <?php defined('SYSPATH') or die('No direct access allowed.');1 <?php 2 2 3 3 /** -
branches/website/application/config/payment.php
r2819 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 /* 3 3 * Settings related to the Payment library. -
branches/website/application/config/routes.php
r2064 r3374 1 <?php defined('SYSPATH') or die('No direct access allowed.'); 2 $config = array 1 <?php 2 3 $config['default']['controller'] = 'home'; 4 5 $config['gophp5'] = array 3 6 ( 4 '_default' => 'home', 5 'gophp5' => 'news/gophp5', 6 'auth.+' => 'home' 7 'gophp5', 8 9 'controller' => 'news', 10 'method' => 'gophp5', 7 11 ); 12 -
branches/website/application/config/session.php
r2761 r3374 1 <?php defined('SYSPATH') or die('No direct script access.');1 <?php 2 2 3 3 // Enable session encryption -
branches/website/application/views/layout.php
r3309 r3374 94 94 <ul> 95 95 <?php foreach($menu as $link => $title): ?> 96 <li<?php if ( $link == $this->uri->segment(1)): ?> class="active"<?php endif; ?>><?php echo html::anchor($link, $title) ?></li>96 <li<?php if (strpos(Router::$current_uri, $link) === 0): ?> class="active"<?php endif; ?>><?php echo html::anchor($link, $title) ?></li> 97 97 <?php endforeach; ?> 98 98 </ul>
