Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Mon, Feb 3, 12:59 AM

in-portal

Index: trunk/kernel/module_help/languages_list.txt
===================================================================
--- trunk/kernel/module_help/languages_list.txt (revision 3440)
+++ trunk/kernel/module_help/languages_list.txt (revision 3441)
@@ -1 +1 @@
-&nbsp;super safassaf<br/>
\ No newline at end of file
+<p>This section allows the administrator to manage the regional packages (packs for short) of the In-portal platform. For more information about the packs, please read the section Concepts &amp; Customization -&gt; In-Portal Concepts -&gt; Languages &amp; Regional Settings of product manual. </p>
\ No newline at end of file
Property changes on: trunk/kernel/module_help/languages_list.txt
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1
\ No newline at end of property
+1.2
\ No newline at end of property
Index: trunk/kernel/module_help/phrases_list.txt
===================================================================
--- trunk/kernel/module_help/phrases_list.txt (nonexistent)
+++ trunk/kernel/module_help/phrases_list.txt (revision 3441)
@@ -0,0 +1,6 @@
+<p>This tab displays all language phrases, or labels, of the regional package being edited. A label has the following fields: <br/>
+&bull; Phrase Id - this field is a read-only, unique and internal system language phrase ID. <br/>
+&bull; Label &ndash; this field contains the system name of the language phrase. This name is used in all templates, and in some settings. For visual convenience, all labels to be used on the front-end start with the prefix &lsquo;lu_&rsquo;, and all labels to be used in the administrative console start with the prefix &lsquo;la_&rsquo;. The administrator may use their own conventions for naming the labels, however it is recommended to follow this naming rule to keep the regional pack compatible with the ones produced by Intechnic Corporation. <br/>
+&bull; Value &ndash; this field contains the label value in the local language of the pack. That is where the translation goes. <br/>
+&bull; Phrase Type &ndash; this field designates whether the label is to be used in the front-end, or in the administrative panel, or in both. Unlike the prefix of the label, this field must be set properly, as it drives the caching mechanism. <br/>
+</p>
\ No newline at end of file
Property changes on: trunk/kernel/module_help/phrases_list.txt
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: trunk/admin/install/upgrades/changelog_1_1_4.txt
===================================================================
--- trunk/admin/install/upgrades/changelog_1_1_4.txt (revision 3440)
+++ trunk/admin/install/upgrades/changelog_1_1_4.txt (revision 3441)
@@ -1,324 +1,325 @@
File in-portal/globals.php changed
File in-portal/index.php changed
File in-portal/admin/advanced_view.php changed
File in-portal/admin/browse.php changed
File in-portal/admin/index.php changed
File in-portal/admin/index4.php changed
File in-portal/admin/install.php changed
File in-portal/admin/login.php changed
File in-portal/admin/relation_select.php changed
File in-portal/admin/reviews.php changed
File in-portal/admin/subitems.php changed
File in-portal/admin/tag_listing.php changed
File in-portal/admin/backup/backup1.php changed
File in-portal/admin/backup/restore2.php changed
File in-portal/admin/category/addcategory.php changed
File in-portal/admin/category/addcategory_images.php changed
File in-portal/admin/category/permcacheupdate.php changed
File in-portal/admin/config/addlang.php changed
File in-portal/admin/config/addtheme_templates.php changed
File in-portal/admin/config/config_theme.php changed
File in-portal/admin/config/edit_label.php changed
File in-portal/admin/config/edit_template.php changed
File in-portal/admin/editor/editor.php changed
File in-portal/admin/editor/editor_new.php changed
File in-portal/admin/email/do_send.php changed
File in-portal/admin/help/help.php changed
File in-portal/admin/help/manual.pdf changed
File in-portal/admin/images/toolbar/tool_export.gif is new
File in-portal/admin/images/toolbar/tool_export_f2.gif is new
File in-portal/admin/images/toolbar/tool_export_f3.gif is new
File in-portal/admin/images/toolbar/tool_import.gif is new
File in-portal/admin/images/toolbar/tool_import_f2.gif is new
File in-portal/admin/images/toolbar/tool_import_f3.gif is new
File in-portal/admin/images/toolbar/tool_rebuild_cache.gif is new
File in-portal/admin/images/toolbar/tool_rebuild_cache_f2.gif is new
File in-portal/admin/images/toolbar/tool_rescan_themes.gif is new
File in-portal/admin/images/toolbar/tool_rescan_themes_f2.gif is new
File in-portal/admin/images/toolbar/tool_rescan_themes_f3.gif is new
File in-portal/admin/include/mainscript.js changed
File in-portal/admin/include/mainscript.php changed
File in-portal/admin/include/sections.php changed
File in-portal/admin/install/inportal_data.sql changed
File in-portal/admin/install/inportal_schema.sql changed
File in-portal/admin/install/install_lib.php changed
File in-portal/admin/install/restore_select.php changed
File in-portal/admin/install/langpacks/english.lang changed
File in-portal/admin/install/upgrades/changelog_1_1_3.txt changed
File in-portal/admin/install/upgrades/changelog_1_1_4.txt is new
File in-portal/admin/install/upgrades/inportal_check_v1.0.10.php changed
File in-portal/admin/install/upgrades/inportal_check_v1.0.12.php changed
File in-portal/admin/install/upgrades/inportal_check_v1.1.4.php is new
File in-portal/admin/install/upgrades/inportal_upgrade_v1.1.2.sql changed
File in-portal/admin/install/upgrades/inportal_upgrade_v1.1.3.sql changed
File in-portal/admin/install/upgrades/inportal_upgrade_v1.1.4.php is new
File in-portal/admin/install/upgrades/inportal_upgrade_v1.1.4.sql changed
File in-portal/admin/install/upgrades/readme_1_1_3.txt changed
File in-portal/admin/install/upgrades/readme_1_1_4.txt is new
File in-portal/admin/listview/listview.php changed
File in-portal/admin/logs/session_list.php changed
File in-portal/admin/templates/cat_element.tpl changed
File in-portal/admin/tree/tree.php changed
File in-portal/admin/users/addgroup.php changed
File in-portal/admin/users/adduser.php changed
File in-portal/admin/users/adduser_images.php changed
File in-portal/admin/users/adduser_permissions.php changed
File in-portal/admin/users/banuser.php changed
File in-portal/admin/users/group_select.php changed
File in-portal/kernel/action.php changed
File in-portal/kernel/constants.php is new
File in-portal/kernel/frontaction.php changed
File in-portal/kernel/parser.php changed
File in-portal/kernel/startup.php changed
File in-portal/kernel/admin/include/parser.php changed
File in-portal/kernel/admin/include/help/configure_general.txt changed
File in-portal/kernel/admin/include/help/editcategory_general.txt changed
File in-portal/kernel/admin/include/toolbar/browse.php changed
File in-portal/kernel/admin/include/toolbar/editcategory_relationselect.php changed
File in-portal/kernel/admin_templates/category_selector.tpl changed
File in-portal/kernel/admin_templates/config_email/config_email_list.tpl is new
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_payment.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_payment_type.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_payment_type_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_payment_type_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_pending.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_plan.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_plan_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_affiliate_plan_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_currency.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_currency_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_currency_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_discount.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_discount_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_discount_pending.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_entire_order.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_file.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_file_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_file_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_listing.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_listing_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_listing_pending.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_listing_type.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_manuf.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_orders.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_orders_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_orders_pending.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_payment.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_payment_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_payment_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_pricing.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_pricing_primary.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_product.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_product_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_product_pending.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_shipping.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_shipping_disabled.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon16_tax.gif is removed
File in-portal/kernel/admin_templates/img/itemicons/icon_payment__pending.gif is removed
File in-portal/kernel/admin_templates/img/toolbar/tool_reset_to_base_f3.gif is new
File in-portal/kernel/admin_templates/img/toolbar/tool_reset_to_pending.gif is new
File in-portal/kernel/admin_templates/img/toolbar/tool_reset_to_pending_f2.gif is new
File in-portal/kernel/admin_templates/img/toolbar/tool_reset_to_pending_f3.gif is new
File in-portal/kernel/admin_templates/incs/form_blocks.tpl changed
File in-portal/kernel/admin_templates/incs/grid_blocks.tpl changed
File in-portal/kernel/admin_templates/incs/header.tpl changed
File in-portal/kernel/admin_templates/incs/script.js changed
File in-portal/kernel/admin_templates/incs/style.css changed
File in-portal/kernel/admin_templates/popups/translator.tpl changed
File in-portal/kernel/admin_templates/regional/languages_export.tpl changed
File in-portal/kernel/admin_templates/regional/languages_import.tpl changed
File in-portal/kernel/admin_templates/regional/phrases_edit.tpl changed
File in-portal/kernel/admin_templates/stylesheets/stylesheets_edit_block.tpl changed
File in-portal/kernel/include/advsearch.php changed
File in-portal/kernel/include/cachecount.php changed
File in-portal/kernel/include/category.php changed
File in-portal/kernel/include/dates.php changed
File in-portal/kernel/include/debugger.php changed
File in-portal/kernel/include/emailmessage.php changed
File in-portal/kernel/include/error.php changed
File in-portal/kernel/include/favorites.php changed
File in-portal/kernel/include/image.php changed
File in-portal/kernel/include/item.php changed
File in-portal/kernel/include/itemdb.php changed
File in-portal/kernel/include/itemrating.php changed
File in-portal/kernel/include/itemreview.php changed
File in-portal/kernel/include/itemtypes.php changed
File in-portal/kernel/include/language.php changed
File in-portal/kernel/include/modules.php changed
File in-portal/kernel/include/parse.php changed
File in-portal/kernel/include/parseditem.php changed
File in-portal/kernel/include/portaluser.php changed
File in-portal/kernel/include/statitem.php changed
File in-portal/kernel/include/syscache.php changed
File in-portal/kernel/include/tag-class.php changed
File in-portal/kernel/include/theme.php changed
File in-portal/kernel/include/usersession.php changed
File in-portal/kernel/include/adodb/adodb-time.inc.php changed
File in-portal/kernel/include/adodb/adodb.inc.php changed
File in-portal/kernel/module_help/languages_list.txt is new
+File in-portal/kernel/module_help/phrases_list.txt is new
File in-portal/kernel/units/categories/categories_config.php changed
File in-portal/kernel/units/categories/categories_event_handler.php changed
File in-portal/kernel/units/categories/categories_item.php changed
File in-portal/kernel/units/category_items/category_items_config.php changed
File in-portal/kernel/units/custom_values/custom_values_config.php changed
File in-portal/kernel/units/email_events/email_events_config.php changed
File in-portal/kernel/units/email_events/email_events_event_handler.php changed
File in-portal/kernel/units/general/brackets.php changed
File in-portal/kernel/units/general/cat_dbitem.php changed
File in-portal/kernel/units/general/cat_event_handler.php changed
File in-portal/kernel/units/general/general_config.php changed
File in-portal/kernel/units/general/inp1_parser.php changed
File in-portal/kernel/units/general/inp_ses_storage.php changed
File in-portal/kernel/units/general/main_event_handler.php is new
File in-portal/kernel/units/general/my_application.php changed
File in-portal/kernel/units/help/help_tag_processor.php changed
File in-portal/kernel/units/languages/import_xml.php changed
File in-portal/kernel/units/languages/languages_event_handler.php changed
File in-portal/kernel/units/languages/languages_tag_processor.php changed
File in-portal/kernel/units/phrases/phrases_event_handler.php changed
File in-portal/kernel/units/selectors/selectors_config.php changed
File in-portal/kernel/units/selectors/selectors_event_handler.php changed
File in-portal/kernel/units/selectors/selectors_tag_processor.php changed
File in-portal/kernel/units/stylesheets/stylesheets_item.php changed
File in-portal/kernel/units/translator/translator_config.php changed
File in-portal/kernel/units/users/users_config.php changed
File in-portal/kernel/units/users/users_event_handler.php changed
File in-portal/kernel/units/users/users_item.php changed
File in-portal/kernel/units/users/users_tag_processor.php changed
File in-portal/kernel/units/visits/visits_config.php changed
File in-portal/kernel/units/visits/visits_event_handler.php changed
File in-portal/themes/default/error_notfound.tpl is new
File in-portal/themes/default/error_template.tpl changed
File in-portal/themes/default/redirect.tpl is new
File in-portal/themes/default/blocks/common/redirect.tpl is new
File in-portal/themes/default/categories/catlist_element.tpl changed
File in-portal/themes/default/common/footer.tpl changed
File in-portal/themes/default/common/pagetop.tpl changed
File in-portal/themes/default/index/sitemap_cat_element.tpl changed
File in-portal/themes/default/index/sitemap_subcat_element.tpl changed
File in-portal/themes/default/lang_select/lang_menu.tpl changed
File in-portal/themes/default/login/login_form.tpl changed
File in-portal/themes/default/misc/right_loggedin.tpl changed
File in-portal/themes/default/misc/right_quicklinks.tpl changed
File in-portal/themes/default/my_info/myinfo_dob.tpl changed
File in-portal/themes/default/register/register_dob.tpl changed
File kernel4_dev/kernel4/application.php changed
File kernel4_dev/kernel4/event_handler.php changed
File kernel4_dev/kernel4/event_manager.php changed
File kernel4_dev/kernel4/globals.php changed
File kernel4_dev/kernel4/kbase.php changed
File kernel4_dev/kernel4/startup.php changed
File kernel4_dev/kernel4/db/db_event_handler.php changed
File kernel4_dev/kernel4/db/db_tag_processor.php changed
File kernel4_dev/kernel4/db/dbitem.php changed
File kernel4_dev/kernel4/languages/phrases_cache.php changed
File kernel4_dev/kernel4/parser/construct_tags.php changed
File kernel4_dev/kernel4/parser/template.php changed
File kernel4_dev/kernel4/parser/template_parser.php changed
File kernel4_dev/kernel4/processors/main_processor.php changed
File kernel4_dev/kernel4/session/session.php changed
File kernel4_dev/kernel4/utility/adodb-time.inc.php is new
File kernel4_dev/kernel4/utility/debugger.php changed
File kernel4_dev/kernel4/utility/email.php changed
File kernel4_dev/kernel4/utility/event.php changed
File kernel4_dev/kernel4/utility/factory.php changed
File kernel4_dev/kernel4/utility/formatters.php changed
File kernel4_dev/kernel4/utility/http_query.php changed
File kernel4_dev/kernel4/utility/params.php changed
File kernel4_dev/kernel4/utility/temp_handler.php changed
File kernel4_dev/kernel4/utility/unit_config_reader.php changed
File cmseditor/editor/_source/internals/fck_2.js changed
File cmseditor/editor/filemanager/browser/default/connectors/php/commands.php changed
File cmseditor/editor/filemanager/browser/default/connectors/php/config.php changed
File cmseditor/editor/js/fckeditorcode_gecko_2.js changed
File cmseditor/editor/js/fckeditorcode_ie_2.js changed
Changes in phrases and events:
! <LANGUAGE PackName="English"><DATEFORMAT>m/d/y</DATEFORMAT><TIMEFORMAT>g:i:s A</TIMEFORMAT><DECIMAL>.</DECIMAL><THOUSANDS>,</THOUSANDS><CHARSET>iso-8859-1</CHARSET><UNITSYSTEM>2</UNITSYSTEM>
! <LANGUAGE PackName="English"><DATEFORMAT>m/d/Y</DATEFORMAT><TIMEFORMAT>g:i:s A</TIMEFORMAT><DECIMAL>.</DECIMAL><THOUSANDS>,</THOUSANDS><CHARSET>iso-8859-1</CHARSET><UNITSYSTEM>2</UNITSYSTEM>
Added label "la_col_Event" of type "1"
Added label "la_config_error_template" of type "1"
Added label "la_config_use_modrewrite" of type "1"
Added label "la_config_use_modrewrite_with_ssl" of type "1"
Added label "la_Description_in-portal:visits" of type "1"
Added label "la_EmptyFile" of type "1"
Added label "la_fld_AutomaticFilename" of type "1"
Added label "la_fld_Filename" of type "1"
Added label "la_prompt_AutomaticDirectoryName" of type "1"
Added label "la_prompt_AutomaticFilename" of type "1"
Added label "la_prompt_CustomFilename" of type "1"
Added label "la_prompt_DirectoryName" of type "1"
Added label "la_prompt_SessionKey" of type "1"
Added label "la_prompt_session_cookie_name" of type "1"
Added label "la_promt_ReferrerCheck" of type "1"
Added label "la_Rating" of type "1"
Added label "la_ToolTip_Import" of type "1"
Added label "la_ToolTip_RebuildCategoryCache" of type "1"
Added label "la_ToolTip_RescanThemes" of type "1"
Added label "lu_error_404_description" of type "0"
Added label "lu_error_404_title" of type "0"
Added label "lu_getting_rated" of type "0"
Added label "lu_getting_rated_text" of type "0"
Added label "lu_redirecting_text" of type "0"
Added label "lu_redirecting_title" of type "0"
Removed event "CATEGORY.ADD.PENDING" of type "0"
Removed event "CATEGORY.MODIFY" of type "1"
Changed event "USER.ADD.PENDING" of type "0"
Changed event "USER.SUBSCRIBE" of type "0"
Changed event "USER.APPROVE" of type "1"
Changed event "CATEGORY.ADD" of type "1"
Changed event "USER.PSWDC" of type "0"
Changed event "USER.ADD" of type "0"
Changed event "CATEGORY.ADD" of type "0"
Changed event "USER.UNSUBSCRIBE" of type "1"
Changed event "CATEGORY.DELETE" of type "0"
Changed event "USER.DENY" of type "0"
Changed event "CATEGORY.DENY" of type "0"
Changed event "CATEGORY.APPROVE" of type "0"
Changed event "CATEGORY.MODIFY" of type "0"
Changed event "USER.APPROVE" of type "0"
Changed event "USER.UNSUBSCRIBE" of type "0"
Changed event "USER.MEMBERSHIP.EXPIRATION.NOTICE" of type "0"
Changed event "USER.SUGGEST" of type "0"
Changed event "CATEGORY.DELETE" of type "1"
Changed event "USER.SUBSCRIBE" of type "1"
Changed event "USER.SUGGEST" of type "1"
Removed event "CATEGORY.APPROVE" of type "1"
Removed event "CATEGORY.DENY" of type "1"
Removed event "USER.MEMBERSHIP.EXPIRATION.NOTICE" of type "1"
Removed event "USER.MEMBERSHIP.EXPIRED" of type "0"
Removed event "USER.PSWD" of type "1"
Removed event "USER.SUBSCRIBE" of type "1"
Changed event "USER.SUGGEST" of type "1"
Changed event "CATEGORY.ADD.PENDING" of type "1"
Changed event "CATEGORY.APPROVE" of type "1"
Changed event "USER.UNSUBSCRIBE" of type "0"
Changed event "USER.APPROVE" of type "0"
Changed event "CATEGORY.DELETE" of type "1"
Changed event "USER.SUGGEST" of type "0"
Changed event "USER.PSWD" of type "1"
Changed event "CATEGORY.ADD.PENDING" of type "1"
Changed event "USER.MEMBERSHIP.EXPIRED" of type "0"
Changed event "CATEGORY.DENY" of type "0"
Changed event "CATEGORY.APPROVE" of type "0"
Changed event "USER.MEMBERSHIP.EXPIRATION.NOTICE" of type "1"
Changed event "CATEGORY.DENY" of type "1"
Changed event "CATEGORY.MODIFY" of type "0"
Changed event "CATEGORY.ADD" of type "0"
Changed event "USER.DENY" of type "0"
Changed event "CATEGORY.DELETE" of type "0"
Changed event "USER.UNSUBSCRIBE" of type "1"
Changed event "USER.PSWDC" of type "0"
Changed event "CATEGORY.ADD.PENDING" of type "0"
Changed event "USER.ADD" of type "0"
Changed event "CATEGORY.ADD" of type "1"
Changed event "USER.APPROVE" of type "1"
Changed event "USER.ADD.PENDING" of type "0"
Changed event "USER.MEMBERSHIP.EXPIRATION.NOTICE" of type "0"
Changed event "USER.SUBSCRIBE" of type "0"
Changed event "CATEGORY.MODIFY" of type "1"
Property changes on: trunk/admin/install/upgrades/changelog_1_1_4.txt
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.11
\ No newline at end of property
+1.12
\ No newline at end of property
Index: trunk/core/kernel/utility/http_query.php
===================================================================
--- trunk/core/kernel/utility/http_query.php (revision 3440)
+++ trunk/core/kernel/utility/http_query.php (revision 3441)
@@ -1,697 +1,699 @@
<?php
class kHTTPQuery extends Params {
/**
* $_POST vars
*
* @var Array
* @access private
*/
var $Post;
/**
* $_GET vars
*
* @var Array
* @access private
*/
var $Get;
/**
* $_COOKIE vars
*
* @var Array
* @access private
*/
var $Cookie;
/**
* $_SERVER vars
*
* @var Array
* @access private
*/
var $Server;
/**
* $_ENV vars
*
* @var Array
* @access private
*/
var $Env;
/**
* Order in what write
* all vars together in
* the same array
*
* @var string
*/
var $Order;
/**
* Uploaded files info
*
* @var Array
* @access private
*/
var $Files;
var $specialsToRemove = Array();
var $Admin = false;
/**
* Description
*
* @var kDBConnection
* @access public
*/
var $Conn;
/**
* Loads info from $_POST, $_GET and
* related arrays into common place
*
* @param string $order
* @return HTTPQuery
* @access public
*/
function kHTTPQuery($order = 'CGPF')
{
parent::Params();
$this->Conn =& $this->Application->GetADODBConnection();
$this->Order = $order;
$this->Admin = $this->Application->IsAdmin(); // better cache this value, not to calculate it each time in foreach
}
function Init($prefix, $special)
{
$this->AddAllVars();
$this->specialsToRemove = $this->Get('remove_specials');
if($this->specialsToRemove)
{
$this->_Params = $this->removeSpecials($this->_Params);
}
ini_set('magic_quotes_gpc', 0);
}
function removeSpecials($array)
{
$ret = Array();
$removed = false;
foreach($this->specialsToRemove as $prefix_special => $flag)
{
if($flag)
{
$removed = true;
list($prefix,$special) = explode('.',$prefix_special, 2);
foreach ($array as $key => $val) {
$new_key = preg_match("/^".$prefix."[._]{1}".$special."(.*)/", $key, $regs) ? $prefix.$regs[1] : $key;
$ret[$new_key] = is_array($val) ? $this->removeSpecials($val) : $val;
}
}
}
return $removed ? $ret : $array;
}
/**
* All all requested vars to
* common storage place
*
* @access private
*/
function AddAllVars()
{
for ($i=0; $i < strlen($this->Order); $i++)
{
$current = $this->Order[$i];
switch ($current) {
case 'G':
$this->Get = $this->AddVars($_GET);
$this->processQueryString();
break;
case 'P':
$this->Post = $this->AddVars($_POST);
$this->convertPostEvents();
break;
case 'C':
$this->Cookie = $this->AddVars($_COOKIE);
break;
case 'E';
$this->Env = $this->AddVars($_ENV);
break;
case 'S';
$this->Server = $this->AddVars($_SERVER);
break;
case 'F';
$this->convertFiles();
$this->Files = $this->MergeVars($_FILES, false); //do not strip slashes!
break;
}
}
if( $this->Application->RewriteURLs() )
{
if( $this->Application->isDebugMode() )
{
$this->Application->Debugger->profileStart('url_parsing', 'Parsing <b>MOD_REWRITE</b> url');
$this->processRewriteURL();
$this->Application->Debugger->profileFinish('url_parsing');
}
else
{
$this->processRewriteURL();
}
}
}
function convertFiles()
{
if (!$_FILES)
{
return false;
}
$file_keys = Array('error','name','size','tmp_name','type');
$tmp = Array();
foreach($_FILES as $file_name => $file_info)
{
if( is_array($file_info['error']) )
{
$tmp[$file_name] = $this->getArrayLevel( $file_info['error'], $file_name );
}
else
{
$normal_files[$file_name] = $file_info;
}
}
if(!$tmp) return false;
$files = $_FILES;
$_FILES = Array();
foreach($tmp as $prefix => $prefix_files)
{
$anchor =& $_FILES;
foreach($prefix_files['keys'] as $key)
{
$anchor =& $anchor[$key];
}
foreach($prefix_files['value'] as $field_name)
{
unset($inner_anchor);
unset($copy);
$work_copy = $prefix_files['keys'];
foreach($file_keys as $file_key)
{
$inner_anchor =& $files[$prefix][$file_key];
if (isset($copy))
{
$work_copy = $copy;
}
else
{
$copy = $work_copy;
}
array_shift($work_copy);
foreach($work_copy as $prefix_file_key)
{
$inner_anchor =& $inner_anchor[$prefix_file_key];
}
$anchor[$field_name][$file_key] = $inner_anchor[$field_name];
}
}
}
// keys: img_temp, 0, values: LocalPath, ThumbPath
}
function getArrayLevel(&$level, $prefix='')
{
$ret['keys'] = $prefix ? Array($prefix) : Array();
$ret['value'] = Array();
foreach($level as $level_key => $level_value)
{
if( is_array($level_value) )
{
$ret['keys'][] = $level_key;
$tmp = $this->getArrayLevel($level_value);
$ret['keys'] = array_merge($ret['keys'], $tmp['keys']);
$ret['value'] = array_merge($ret['value'], $tmp['value']);
}
else
{
$ret['value'][] = $level_key;
}
}
return $ret;
}
/**
* Owerwrites GET events with POST events in case if they are set and not empty
*
*/
function convertPostEvents()
{
$events = $this->Get('events');
if( is_array($events) )
{
foreach ($events as $prefix_special => $event_name)
{
if($event_name) $this->Set($prefix_special.'_event', $event_name);
}
}
}
function finalizeParsing($passed, $module_params = Array() )
{
if( !is_array($passed) ) $passed = explode(',', $passed);
$prev_passed = $this->Get('passed');
if($prev_passed)
{
$prev_passed = explode(',', $prev_passed);
$passed = array_unique( array_merge($passed, $prev_passed) );
}
$passed = implode(',', $passed);
$this->Set('passed', $passed);
$env = $this->Application->BuildEnv( $this->Get('t'), $module_params, $passed, false, false );
$this->Set(ENV_VAR_NAME, $env);
$_REQUEST['env'] = $_GET['env'] = $env; // for capability with old in-portal code
}
function processRewriteURL()
{
// directory_1_2_3/sc1/inlink/detail/3/l1_ka_asd.html
$url = $this->Get('_mod_rw_url_');
if( substr($url, -5) == '.html' ) $url = substr($url, 0, strlen($url) - 5 );
$url_parts = $url ? explode('/', $url) : Array();
if($this->Get('rewrite') == 'on' || !$url_parts)
{
// set default values
$defaults = Array('m_cat_id' => 0, 'm_cat_page' => 1, 'm_opener' => 's');
foreach ($defaults as $default_key => $default_value)
{
- $this->Set($default_key, $default_value);
+ if ($this->Get($default_key) == null) {
+ $this->Set($default_key, $default_value);
+ }
}
}
if(!$url_parts)
{
$this->Application->Phrases = new PhrasesCache();
$this->Application->VerifyLanguageId();
$this->Application->Phrases->Init('phrases');
$this->Application->VerifyThemeId();
$this->Set('t', $this->getDefaultTemplate('') );
$this->finalizeParsing('m');
return false;
}
else
{
$this->Set('t', '');
}
$url_part = array_shift($url_parts);
// match language
$sql = 'SELECT LanguageId FROM '.TABLE_PREFIX.'Language WHERE LOWER(PackName) = '.$this->Conn->qstr($url_part).' AND Enabled = 1';
$language_id = $this->Conn->GetOne($sql);
$this->Application->Phrases = new PhrasesCache();
if($language_id)
{
$this->Set('m_lang', $language_id);
$url_part = $url_parts ? array_shift($url_parts) : ''; // prepare next url part for parsing
}
$this->Application->VerifyLanguageId();
$this->Application->Phrases->Init('phrases');
// $this->Get('m_lang') );
// match theme
if($url_part)
{
$sql = 'SELECT ThemeId FROM '.TABLE_PREFIX.'Theme WHERE LOWER(Name) = '.$this->Conn->qstr($url_part).' AND Enabled = 1';
$theme_id = $this->Conn->GetOne($sql);
if($theme_id)
{
$this->Set('m_theme', $theme_id);
$url_part = $url_parts ? array_shift($url_parts) : ''; // prepare next url part for parsing
}
}
$this->Application->VerifyThemeId(); // verify anyway - will set default if not found!!!
// match category
if($url_part)
{
$category_stack = Array();
$category_found = false;
$category_path = '';
$rets = Array(); // just in case someone has used this variable before
do
{
$category_path = trim($category_path.'/'.$url_part, '/');
if( preg_match('/(.*)_([\d]+)$/', $category_path, $rets) )
{
$category_path = $rets[1];
$this->Set('m_cat_page', $rets[2]);
}
$sql = 'SELECT CategoryId FROM '.TABLE_PREFIX.'Category WHERE NamedParentPath = '.$this->Conn->qstr($category_path);
array_push($category_stack, $this->Conn->GetOne($sql) );
$category_found = end($category_stack);
if($category_found) $url_part = array_shift($url_parts);
}while ($category_found && $url_part);
if( count($category_stack) >= 2 )
{
$category_id = array_pop($category_stack); // remove last not found category
if($category_id === false)
{
$category_id = array_pop($category_stack);
}
if($category_id)
{
$this->Set('m_cat_id', $category_id);
}
}
elseif (!$category_found && getArrayValue($rets, 2))
{
$url_part = array_shift($url_parts);
}
}
// match module
$next_template = $this->Get('next_template');
if($url_part || $next_template)
{
if($next_template)
{
$next_template_parts = explode('/', $next_template);
$module_folder = array_shift($next_template_parts);
}
else
{
$module_folder = $url_part;
}
foreach ($this->Application->ModuleInfo as $module_name => $module_data)
{
if( trim($module_data['TemplatePath'], '/') == $module_folder )
{
$module_prefix = $module_data['Var'];
break;
}
}
}
// match template
$template_path = '';
$template_found = false;
if($url_part)
{
array_unshift($url_parts, $url_part);
$template_parts = $url_parts;
$url_parts = Array();
do
{
$template_path = implode('/', $template_parts);
$sql = 'SELECT FileId FROM '.TABLE_PREFIX.'ThemeFiles WHERE CONCAT(FilePath, "/", FileName) = '.$this->Conn->qstr('/'.$template_path.'.tpl');
$template_found = $this->Conn->GetOne($sql);
if(!$template_found)
{
array_unshift( $url_parts, array_pop($template_parts) );
}
}while (!$template_found && $template_parts);
}
// guess template if no existing template found
if(!$template_found && isset($module_folder) && $module_folder)
{
// 1. try index template of module
$sql = 'SELECT FileId FROM '.TABLE_PREFIX.'ThemeFiles WHERE CONCAT(FilePath, "/", FileName) = '.$this->Conn->qstr('/'.$module_folder.'/index.tpl');
$template_found = $this->Conn->GetOne($sql);
if($template_found)
{
$template_path = $module_folder.'/index';
}
else
{
// 2. return error template then
$template_found = true;
$template_path = $this->Application->ConfigValue('ErrorTemplate');
if(!$template_path) $template_path = 'error_notfound';
}
}
$this->Set('t', $this->getDefaultTemplate($template_found ? $template_path : '') );
// pass params left to module
$passed = Array('m');
$module_params = Array();
if( isset($module_prefix) )
{
$passed[] = $module_prefix;
$module_event = new kEvent($module_prefix.':ParseEnv', Array('url_parts' => $url_parts) );
$this->Application->HandleEvent($module_event);
$item_id = $this->Get($module_prefix.'_id');
$module_params = Array($module_prefix.'_id' => $item_id ? $item_id : '0' );
if($module_event->status == erFAIL)
{
$not_found = $this->Application->ConfigValue('ErrorTemplate');
$this->Set('t', $not_found ? $not_found : 'error_notfound' );
}
}
$this->finalizeParsing($passed, $module_params);
}
function getDefaultTemplate($t)
{
$t = $this->getTemplateName( trim($t, '/') );
if (!$t) $t = 'index';
return trim($t, '/');
}
function extractSIDAndTemplate(&$parts)
{
if ( defined('INPORTAL_ENV') && INPORTAL_ENV ) // SID-TEMPLATE
{
$sub_parts = array_shift($parts);
list($sid, $t) = explode('-', $sub_parts, 2);
// Save Session ID
if($sid)
{
$this->Set('sid', $sid);
$this->Get['sid'] = $sid;
}
// Save Template Name
$this->Set('t', $this->getDefaultTemplate($t) );
}
else // SID:TEMPLATE
{
// Save Session ID
$sid = array_shift($parts);
if ($sid) $this->Set('sid', $sid);
// Save Template Name
$t = array_shift($parts);
$this->Set('t', $this->getDefaultTemplate($t) );
}
}
/**
* Process QueryString only, create
* events, ids, based on config
* set template name and sid in
* desired application variables.
*
* @access private
*/
function processQueryString()
{
// env=SID:TEMPLATE:m-1-1-1-1:l0-0-0:n-0-0-0:bb-0-0-1-1-1-0
$env_var = $this->Get(ENV_VAR_NAME);
if($env_var)
{
$env_var = str_replace('\:','_&+$$+&_', $env_var); // replace escaped "=" with spec-chars :)
$parts = explode(':', $env_var);
if( !$this->Application->RewriteURLs() || ($this->Application->RewriteURLs() && $this->Get('rewrite') != 'on') )
{
$this->extractSIDAndTemplate($parts);
}
if($parts)
{
$query_maps = Array();
$event_manger =& $this->Application->recallObject('EventManager');
$passed = Array();
foreach($parts as $mixed_part)
{
//In-portal old style env conversion - adds '-' between prefix and first var
$mixed_part = str_replace('_&+$$+&_',':',$mixed_part);
$mixed_part = preg_replace("/^([a-zA-Z]+)([0-9]+)-(.*)/", "$1-$2-$3", $mixed_part);
$escaped_part = str_replace('\-', '_&+$$+&_', $mixed_part);
$escaped_part = explode('-', $escaped_part);
$mixed_part = array();
foreach ($escaped_part as $escaped_val) {
$mixed_part[] = str_replace('_&+$$+&_', '-', $escaped_val);
}
$prefix_special = array_shift($mixed_part); // l.pick, l
list($prefix) = explode('.', $prefix_special);
$query_maps[$prefix_special] = $this->Application->getUnitOption($prefix,'QueryString');
// if config is not defined for prefix in QueryString, then don't process it
if( $query_maps[$prefix_special] )
{
array_push($passed, $prefix);
foreach($query_maps[$prefix_special] as $index => $var_name)
{
// l_id, l_page, l_bla-bla-bla
$val = $mixed_part[$index - 1];
if ($val == '') $val = false;
$this->Set($prefix_special.'_'.$var_name, $val);
}
}
else
{
unset($query_maps[$prefix_special]);
}
}
$this->Set('passed', implode(',', $passed) );
$event_manger->setQueryMaps($query_maps);
}
}
else
{
$t=$this->getTemplateName('index');
$this->Set('t', $t);
}
}
/**
* Decides what template name to
* use from $_GET or from $_POST
*
* @param string $querystring_template
* @return string
* @access private
*/
function getTemplateName($querystring_template)
{
$t_from_post = $this->Get('t');
$t = $t_from_post ? $t_from_post : $querystring_template;
if ( is_numeric($t) )
{
$t = $this->Conn->GetOne(' SELECT CONCAT(FilePath, \'/\', FileName)
FROM '.TABLE_PREFIX.'ThemeFiles
WHERE FileId = '.$t);
}
$t = preg_replace('/\.tpl$/', '', $t);
return $t;
}
/**
* Saves variables from array specified
* into common variable storage place
*
* @param Array $array
* @return Array
* @access private
*/
function AddVars($array)
{
$array = $this->StripSlashes($array);
foreach($array as $key => $value)
{
$this->Set($key,$value);
}
return $array;
}
function MergeVars($array, $strip_slashes=true)
{
if ($strip_slashes) $array = $this->StripSlashes($array);
foreach($array as $key => $value)
{
$this->_Params = array_merge_recursive2($this->_Params, Array($key=>$value));
}
return $array;
}
function StripSlashes($array)
{
//if( !get_magic_quotes_gpc() ) return $array;
foreach($array as $key=>$value)
{
if( is_array($value) )
{
$array[$key] = $this->StripSlashes($value);
}
else
{
if( get_magic_quotes_gpc() ) $value = stripslashes($value);
if(!$this->Admin) $value = htmlspecialchars($value);
$array[$key] = $value;
}
//$array[$key]=is_array($value)?$this->StripSlashes($value):stripslashes($value);
}
return $array;
}
/**
* Returns all $_GET array excluding system parameters, that are not allowed to be passed through generated urls
*
* @return Array
*/
function getRedirectParams()
{
$unset_vars = Array(ENV_VAR_NAME, 'rewrite', '_mod_rw_url_', 'Action');
$ret = $this->Get;
foreach ($unset_vars as $var_name)
{
if( isset($ret[$var_name]) ) unset( $ret[$var_name] );
}
return $ret;
}
}
?>
\ No newline at end of file
Property changes on: trunk/core/kernel/utility/http_query.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.30
\ No newline at end of property
+1.31
\ No newline at end of property
Index: trunk/core/module_help/languages_list.txt
===================================================================
--- trunk/core/module_help/languages_list.txt (revision 3440)
+++ trunk/core/module_help/languages_list.txt (revision 3441)
@@ -1 +1 @@
-&nbsp;super safassaf<br/>
\ No newline at end of file
+<p>This section allows the administrator to manage the regional packages (packs for short) of the In-portal platform. For more information about the packs, please read the section Concepts &amp; Customization -&gt; In-Portal Concepts -&gt; Languages &amp; Regional Settings of product manual. </p>
\ No newline at end of file
Property changes on: trunk/core/module_help/languages_list.txt
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1
\ No newline at end of property
+1.2
\ No newline at end of property
Index: trunk/core/module_help/phrases_list.txt
===================================================================
--- trunk/core/module_help/phrases_list.txt (nonexistent)
+++ trunk/core/module_help/phrases_list.txt (revision 3441)
@@ -0,0 +1,6 @@
+<p>This tab displays all language phrases, or labels, of the regional package being edited. A label has the following fields: <br/>
+&bull; Phrase Id - this field is a read-only, unique and internal system language phrase ID. <br/>
+&bull; Label &ndash; this field contains the system name of the language phrase. This name is used in all templates, and in some settings. For visual convenience, all labels to be used on the front-end start with the prefix &lsquo;lu_&rsquo;, and all labels to be used in the administrative console start with the prefix &lsquo;la_&rsquo;. The administrator may use their own conventions for naming the labels, however it is recommended to follow this naming rule to keep the regional pack compatible with the ones produced by Intechnic Corporation. <br/>
+&bull; Value &ndash; this field contains the label value in the local language of the pack. That is where the translation goes. <br/>
+&bull; Phrase Type &ndash; this field designates whether the label is to be used in the front-end, or in the administrative panel, or in both. Unlike the prefix of the label, this field must be set properly, as it drives the caching mechanism. <br/>
+</p>
\ No newline at end of file
Property changes on: trunk/core/module_help/phrases_list.txt
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property

Event Timeline