Index: branches/RC/sample.htaccess
===================================================================
diff -u -N
--- branches/RC/sample.htaccess (revision 12743)
+++ branches/RC/sample.htaccess (revision 0)
@@ -1,9 +0,0 @@
-#Options +FollowSymLinks
-RewriteEngine On
-
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteCond %{REQUEST_FILENAME}/ !-f
-RewriteCond %{REQUEST_FILENAME}/index.php !-f
-RewriteCond %{REQUEST_FILENAME}/index.html !-f
-RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|js|css|ico|swf)$ [NC]
-RewriteRule ^(.*) index.php?rewrite=on&_mod_rw_url_=$1 [QSA]
Index: branches/1.0.x/custom/install/install_data.sql
===================================================================
diff -u -N
--- branches/1.0.x/custom/install/install_data.sql (revision 12743)
+++ branches/1.0.x/custom/install/install_data.sql (revision 0)
@@ -1,19 +0,0 @@
-# place here only sql queries, that were executed on live AND dev sites !!!
-
-INSERT INTO Permissions VALUES(DEFAULT, 'custom.view', 11, 1, 1, 0);
-INSERT INTO Permissions VALUES(DEFAULT, 'custom:widgets.delete', 11, 1, 1, 0);
-INSERT INTO Permissions VALUES(DEFAULT, 'custom:widgets.edit', 11, 1, 1, 0);
-INSERT INTO Permissions VALUES(DEFAULT, 'custom:widgets.add', 11, 1, 1, 0);
-INSERT INTO Permissions VALUES(DEFAULT, 'custom:widgets.view', 11, 1, 1, 0);
-
-INSERT INTO Modules VALUES ('Custom', 'custom/', 'custom-sections', DEFAULT, 1, 10, 'custom/', 0, NULL);
-
-
-# ===== SQLs above this line already on LIVE ================================================================================================
-
-# place here only sql queries, that were executed on dev site !!!
-
-
-# ===== SQLs above this line already on DEV ========================================================================================================
-
-# place here only sql queries, that were executed on prod server !!!
Index: branches/1.0.x/custom/install/english.lang
===================================================================
diff -u -N
--- branches/1.0.x/custom/install/english.lang (revision 12743)
+++ branches/1.0.x/custom/install/english.lang (revision 0)
@@ -1,19 +0,0 @@
-
- m/d/Yg:i Am/d/Yg:i:s A.,utf-82
-
- R29vZA==
- UGhvbmU=
- RGF0YSBmaWxl
- R29vZA==
- Q3VzdG9t
- RGVmYXVsdA==
- V2lkZ2V0cw==
- QWRkaW5nIFdpZGdldA==
- RWRpdGluZyBXaWRnZXQ=
- Q3VzdG9t
- TmV3IFdpZGdldA==
- V2lkZ2V0cw==
- TmV3IFdpZGdldA==
-
-
-
\ No newline at end of file
Index: branches/1.0.x/custom/install/install_schema.sql
===================================================================
diff -u -N
--- branches/1.0.x/custom/install/install_schema.sql (revision 12743)
+++ branches/1.0.x/custom/install/install_schema.sql (revision 0)
@@ -1,27 +0,0 @@
-# place here only sql queries, that were executed on live AND dev sites !!!
-
-CREATE TABLE Widgets (
- WidgetId int(11) NOT NULL AUTO_INCREMENT,
- Title varchar(255) NOT NULL DEFAULT '',
- Description text,
- Email varchar(255) NOT NULL DEFAULT '',
- `Type` tinyint(4) NOT NULL DEFAULT '1',
- Phone varchar(50) NOT NULL DEFAULT '',
- Qty double NOT NULL DEFAULT '0',
- `Status` tinyint(4) NOT NULL DEFAULT '2',
- CreatedOn int(11) DEFAULT NULL,
- Good tinyint(4) NOT NULL DEFAULT '0',
- BirthTime int(10) unsigned DEFAULT NULL,
- Image text,
- `DataFile` text,
- PRIMARY KEY (WidgetId)
-);
-
-# ===== SQLs above this line already on LIVE ================================================================================================
-
-# place here only sql queries, that were executed on dev site !!!
-
-
-# ===== SQLs above this line already on DEV ========================================================================================================
-
-# place here only sql queries, that were executed on prod server !!!
Index: branches/1.0.x/custom/install/upgrades.sql
===================================================================
diff -u -N
--- branches/1.0.x/custom/install/upgrades.sql (revision 12743)
+++ branches/1.0.x/custom/install/upgrades.sql (revision 0)
@@ -1,8 +0,0 @@
-# ===== v 1.0.0 =====
-
-# ===== v 1.0.1 =====
-UPDATE Modules SET LoadOrder = 10 WHERE `Name` = 'Custom';
-
-# ===== v 1.0.2-B1 =====
-ALTER TABLE Widgets CHANGE CreatedOn CreatedOn INT(11) NULL DEFAULT NULL;
-UPDATE Modules SET TemplatePath = 'custom/' WHERE Name = 'Custom';
Index: branches/1.0.x/custom/install.php
===================================================================
diff -u -N
--- branches/1.0.x/custom/install.php (revision 12743)
+++ branches/1.0.x/custom/install.php (revision 0)
@@ -1,33 +0,0 @@
-toolkit;
- /* @var $toolkit kInstallToolkit */
- }
-
- $application =& kApplication::Instance();
- $application->Init();
-
- if ($application->RecallVar('user_id') != -1) {
- die('restricted access!');
- }
-
- $toolkit->RunSQL('/' . $module_folder .'/install/install_schema.sql');
- $toolkit->RunSQL('/' . $module_folder .'/install/install_data.sql');
- $toolkit->ImportLanguage('/' . $module_folder .'/install/english');
-
- $toolkit->finalizeModuleInstall($module_folder, false);
\ No newline at end of file
Index: trunk/custom/admin_templates/tests/test_edit.tpl
===================================================================
diff -u -N
--- trunk/custom/admin_templates/tests/test_edit.tpl (revision 12743)
+++ trunk/custom/admin_templates/tests/test_edit.tpl (revision 0)
@@ -1,99 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Index: trunk/custom/admin_templates/tests/test_list.tpl
===================================================================
diff -u -N
--- trunk/custom/admin_templates/tests/test_list.tpl (revision 12743)
+++ trunk/custom/admin_templates/tests/test_list.tpl (revision 0)
@@ -1,63 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
Index: trunk/custom/units/test/test_eh.php
===================================================================
diff -u -N
--- trunk/custom/units/test/test_eh.php (revision 12743)
+++ trunk/custom/units/test/test_eh.php (revision 0)
@@ -1,5 +0,0 @@
- 'test',
- 'ItemClass' => Array('class'=>'kDBItem','file'=>'','build_event'=>'OnItemBuild'),
- 'ListClass' => Array('class'=>'kDBList','file'=>'','build_event'=>'OnListBuild'),
- 'EventHandlerClass' => Array('class'=>'TestEventHandler','file'=>'test_eh.php','build_event'=>'OnBuild'),
- 'TagProcessorClass' => Array('class'=>'kDBTagProcessor','file'=>'','build_event'=>'OnBuild'),
-
- 'AutoLoad' => true,
- 'Hooks' => Array(
- ),
- 'QueryString' => Array(
- 1 => 'id',
- 2 => 'Page',
- 3 => 'event',
- 4 => 'mode',
- ),
- 'IDField' => 'TestId',
- 'StatusField' => Array('Status'),
- 'TableName' => TABLE_PREFIX.'Tests',
-
-/*
- 'ForeignKey' => 'ParentId', // field title in TableName, linking record to a parent
- 'ParentTableKey' => 'ParentId', // id (or other key) field title in parent's table
- 'ParentPrefix' => 'parent',
- 'AutoDelete' => true, // delete these items when parent is being deleted
- 'AutoClone' => true, // clone these items when parent is being cloned
-*/
-
- 'TitlePresets' => Array(
- 'default' => Array(
- 'new_status_labels' => Array('test'=>'!la_title_AddingTest!'),
- 'edit_status_labels' => Array('test'=>'!la_title_EditingTest!'),
- 'new_titlefield' => Array('test'=>''),
- ),
-
- 'test_list'=>Array(
- 'prefixes' => Array('test_List'),
- 'format' => '!la_title_Tests! (#test_recordcount#)',
- ),
-
- 'test_edit'=>Array(
- 'prefixes' => Array('test'),
- 'format' => '#test_status# #test_titlefield#',
- ),
- ),
-
- 'PermSection' => Array('main' => 'custom:tests'),
-
- // don't forget to add corresponding permissions to install script
- // INSERT INTO Permissions VALUES (0, 'custom:custom.view', 11, 1, 1, 0);
- // INSERT INTO Permissions VALUES (0, 'custom:tests.view', 11, 1, 1, 0), (0, 'custom:tests.add', 11, 1, 1, 0), (0, 'custom:tests.edit', 11, 1, 1, 0), (0, 'custom:tests.delete', 11, 1, 1, 0);
- 'Sections' => Array(
-
- 'custom' => Array(
- 'parent' => 'in-portal:root',
- 'icon' => 'custom:custom',
- 'label' => 'la_title_Custom',
- 'url' => Array('t' => 'sections_list', 'pass_section' => true, 'pass' => 'm'),
- 'permissions' => Array('view'),
- 'priority' => 1.95,
- 'type' => stTREE,
- ),
-
- 'custom:tests' => Array(
- 'parent' => 'custom',
- 'icon' => 'custom:tests',
- 'label' => 'la_tab_Tests',
- 'url' => Array('t' => 'custom/tests/test_list', 'pass' => 'm'),
- 'permissions' => Array('view', 'add', 'edit', 'delete'),
- 'priority' => 1,
- 'type' => stTREE,
- ),
- ),
-
- 'TitleField' => 'LastName', // field, used in bluebar when editing existing item
-
- // Use %1$s for local table name with prefix, %2$s for calculated fields
- 'ListSQLs' => Array( // key - special, value - list select sql
- '' => 'SELECT %1$s.* %2$s
- FROM %1$s',
- ),
- 'ItemSQLs' => Array(
- '' => 'SELECT %1$s.* %2$s
- FROM %1$s',
- ),
- 'ListSortings' => Array(
- '' => Array(
-// 'ForcedSorting' => Array('Priority' => 'desc'),
- 'Sorting' => Array('Title' => 'asc'),
- )
- ),
- 'Fields' => Array(
- 'TestId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0),
- 'Title' => Array('type' => 'string','not_null' => '1','default' => '', 'required'=>true,'max_len'=>255),
- 'Description' => Array('type' => 'string', 'default' => null),
- 'Email' => Array(
- 'type' => 'string', 'formatter'=>'kFormatter',
- 'regexp'=>'/^[_a-zA-Z0-9-\.]+@[a-zA-Z0-9-\.]+\.[a-z]{2,4}$/',
- 'sample_value' => 'email@domain.com',
- 'not_null' => 1, 'default' => '',
- 'error_msgs' => Array('invalid_format'=>'!la_invalid_email!')
- ),
- 'Type' => array('type' => 'int',
- 'formatter' => 'kOptionsFormatter', 'use_phrases' => 1,
- 'options'=> array(
- 1=>'la_default_type',
- 2=>'la_some_type',
- 3=>'la_another_type',
- ),
- 'not_null' => 1,
- 'default' => 1,
- 'required' => 1,
- ),
- 'Phone' => Array('type' => 'string','default' => '','not_null' => 1),
- 'Qty' => array('type'=>'double','required'=>0,'not_null' => 1, 'default' => 0),
- 'Status' => Array(
- 'type' => 'int', 'formatter' => 'kOptionsFormatter',
- 'options' => array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'),
- 'use_phrases' => 1, 'not_null' => 1, 'default' => 2
- ),
- 'CreatedOn' => Array('type' => 'int', 'formatter' => 'kDateFormatter', 'time_format' => '', 'input_time_format' => '', 'default'=>'#NOW#', 'not_null' => true),
- 'Good' => Array(
- 'type' => 'int', 'formatter' => 'kOptionsFormatter',
- 'options' => Array(1 => 'la_Yes', 0 => 'la_No'),
- 'use_phrases' => 1, 'not_null' => 1, 'default' => 0
- ),
- 'BirthTime' => Array(
- 'type' => 'int', 'formatter' => 'kDateFormatter',
- 'date_format' => '', 'input_date_format' => '',
- 'default' => null
- ),
- 'Image' => Array(
- 'type'=>'string', 'formatter'=>'kUploadFormatter',
- 'max_size'=>MAX_UPLOAD_SIZE, // in Bytes !
- 'file_types'=>'*.jpg;*.gif;*.png', 'files_description'=>'!la_ImageFiles!',
- 'upload_dir'=>'/system/user_files/', // relative to project's home
- 'as_image'=>true, 'thumb_width'=>100, 'thumb_height'=>100,
- 'multiple'=>false, // false or max number of files - will be stored as serialized array of paths
- 'direct_links'=>false, // use direct file urls or send files through wrapper (requires mod_mime_magic)
- ),
- 'DataFile' => Array(
- 'type'=>'string', 'formatter'=>'kUploadFormatter',
- 'max_size'=>MAX_UPLOAD_SIZE, // in Bytes !
- 'file_types'=>'*.*',
- 'files_description'=>'!la_AllFiles!',
- 'upload_dir'=>'/system/user_files/', // relative to project's home
- 'as_image'=>false,
- 'multiple'=>2, // false or max number of files - will be stored as serialized array of paths
- 'direct_links'=>true, // use direct file urls or send files through wrapper (requires mod_mime_magic)
- ),
- ),
-
- 'Grids' => Array(
- 'Default' => Array(
- 'Icons' => Array('default'=>'icon16_test.gif'),
- 'Fields' => Array(
- 'TestId' => Array( 'title'=>'la_col_Id', 'data_block' => 'grid_checkbox_td', 'width'=>50 ),
- 'Title' => Array( 'title'=>'la_col_TestName', 'width'=>100),
- 'Type' => Array( 'title'=>'la_col_Type', 'filter_block' => 'grid_options_filter'),
- 'Status' => Array( 'title'=>'la_col_Status', 'filter_block' => 'grid_options_filter'),
- 'Good' => Array( 'title'=>'la_col_Good'),
- 'Qty' => Array( 'title'=>'la_col_Qty', 'filter_block' => 'grid_float_range_filter'),
- 'Email' => Array( 'title'=>'la_col_Email', 'width'=>70),
- 'Phone' => Array( 'title'=>'la_col_Phone', 'width'=>80),
- 'CreatedOn' => Array( 'title'=>'la_col_CreatedOn', 'filter_block' => 'grid_date_range_filter', 'filter_width'=>60, 'width'=>110),
- 'FirstName' => Array('title' => 'la_col_FirstName', 'width'=>100),
- 'LastName' => Array('title' => 'la_col_LastName', 'width'=>100),
- 'IdentityNr' => Array('title' => 'la_col_IdentityNr', 'width'=>80),
- //'BirthTime' => Array ('title' => 'la_col_BirthTime', 'filter_block' => 'grid_date_range_filter'),
- ),
- ),
- ),
-
- 'ConfigMapping' => Array(
- 'PerPage' => 'Comm_Perpage_Tests',
- 'ShortListPerPage' => 'Comm_Perpage_Tests_Short',
- ),
-);
-
-/*
-
-Don't forget to:
-
-- Add table create statement to install_schema.sql
- CREATE TABLE Tests (
- `TestId` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
- `Title` VARCHAR( 255 ) NOT NULL ,
- `Description` TEXT NULL ,
- `Email` VARCHAR( 255 ) NOT NULL ,
- `Type` TINYINT NOT NULL ,
- `Phone` VARCHAR( 50 ) NOT NULL ,
- `Qty` DOUBLE NOT NULL ,
- `Status` TINYINT NOT NULL ,
- `CreatedOn` INT NOT NULL ,
- `Good` TINYINT NOT NULL
-)
-
-- Add permissions for admin gorup to install script (see 'Sections' key above)
-
-
-*/
\ No newline at end of file
Index: branches/RC/index.php
===================================================================
diff -u -N
--- branches/RC/index.php (revision 12743)
+++ branches/RC/index.php (revision 0)
@@ -1,19 +0,0 @@
-Init();
-$application->Run();
-$application->Done();
-
-$end = getmicrotime();
-
-function getmicrotime()
-{
- list($usec, $sec) = explode(" ", microtime());
- return ((float)$usec + (float)$sec);
-}
-?>
\ No newline at end of file
Index: branches/RC/themes/test_theme/index.tpl
===================================================================
diff -u -N
--- branches/RC/themes/test_theme/index.tpl (revision 12743)
+++ branches/RC/themes/test_theme/index.tpl (revision 0)
@@ -1 +0,0 @@
-
Index: branches/RC/admin/index.php
===================================================================
diff -u -N
--- branches/RC/admin/index.php (revision 12743)
+++ branches/RC/admin/index.php (revision 0)
@@ -1,21 +0,0 @@
-Init();
-$application->Run();
-$application->Done();
-
-$end = getmicrotime();
-
-function getmicrotime()
-{
- list($usec, $sec) = explode(" ", microtime());
- return ((float)$usec + (float)$sec);
-}
-
-?>
\ No newline at end of file