Permalink
Browse files

adding license and author information

Signed-off-by:d1ffuz0r <ап@10.65.197.35>
  • Loading branch information...
1 parent 839a834 commit f622991c670eb14079b8821a260ee795d07d8887 d1ffuz0r committed Feb 25, 2011
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Admin extends Controller_Tpl
{
/**
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Auth extends Controller_Tpl
{
/**
@@ -8,7 +12,7 @@ class Controller_Auth extends Controller_Tpl
public function action_login()
{
$auth = Model::factory('Auth');
-
+
if(!empty($_POST))
{
$login = Arr::get($_POST, 'login');
@@ -30,7 +34,7 @@ public function action_register()
$login = Arr::get($_POST, 'login');
$password = Arr::get($_POST, 'password');
$email = Arr::get($_POST, 'email');
-
+
$this->template->title = __('Зарегистрированы');
$this->template->content = View::factory('tpl/msg')
->set('msg', $auth->register($login,$password,$email));
@@ -44,7 +48,7 @@ public function action_logout()
{
Cookie::delete('loged_in');
Cookie::delete('username');
-
+
$this->template->title = __('До свидания');
$this->template->content = View::factory('tpl/msg')
->set('msg', 'До свидания! Приходите ещё!');
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Cashier extends Controller_Tpl
{
/**
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Page extends Controller_Tpl
{
/**
@@ -1,5 +1,9 @@
<?php defined('SYSPATH')or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Shop extends Controller_Tpl
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_Tpl extends Controller_Template
{
@@ -24,7 +28,7 @@ public function after()
{
$main = Model::factory('Main');
$shop = Model::factory('Shop');
-
+
if ($this->auto_render)
{
$this->template->categories = $shop->get_category();
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Controller_View extends Controller_Tpl
{
/**
@@ -34,7 +38,7 @@ public function action_product($id)
{
$shop = Model::factory('shop');
$this->template->title = __('Просмотр категории');
-
+
$this->template->content = View::factory('page/view/product')
->set('id',$shop->view_product($id));
}
@@ -1,8 +1,9 @@
<?php defined('SYSPATH')or die('No direct script access.');
-/*
- * model auth
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
*/
-
class Model_Auth extends Model
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH')or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Model_Main extends Model
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Model_Order extends Model
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH')or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Model_Shop extends Model
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH')or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
class Model_Users extends Model
{
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct access allowed.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
return array
(
'default' => array
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
return array(
// Application defaults
@@ -1,5 +1,9 @@
<?php defined('SYSPATH') or die('No direct script access.');
-
+/**
+ * @author d1ffuz0r gladk0w@mail.ru
+ * @license GPLv3
+ * @copyright 2011
+ */
return array(
'title' => 'Сеть магазинов "Офисная техника"',
'description' => 'описание магазина',

0 comments on commit f622991

Please sign in to comment.