! -> Note
$ -> Affected files
+17-Dec-2010 Joe Hunt
+# [0000304] Set locale functionality broken on Windows
+$ /includes/lang/gettext.php
+ /includes/packages.inc (missing include directive for hooks.inc)
+# Bad test code left over, cleaning up
+$ /includes/db/inventory_db.inc
+
16-Dec-2010 Janusz Dobrowolski
+ Added hook for session handling, fixed bug [0000315] (session fixation)
$ /includes/hooks.inc
}
//-------------------------------------------------------------------
-// Original Code V0
+/* Original Code V0 Leave as is a while
function adjust_deliveries_v0($stock_id, $material_cost, $to)
{
if (!is_inventory_item($stock_id))
add_audit_trail(ST_COSTUPDATE, $update_no, $to);
}
}
-
+*/
//New written function
function adjust_deliveries($stock_id, $material_cost, $to)
{
display_notification('Sales Diff - '.$sales_diff.' Purchase Diff - '.$purchase_diff);
- $sql = "INSERT INTO trace values ('Diff', ".db_escape($diff).", '')";
- $result = db_query($sql, "The dstock moves could not be retrieved");
-
if ($diff != 0)
{
$update_no = get_next_trans_no(ST_COSTUPDATE);
*/
function check_support($lang_code, $encoding)
{
-
+ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') // don't do this test if server is WIN
+ return true;
$old = setlocale(LC_CTYPE, '0'); // LC_MESSAGES does not exist on Win
$up = strtoupper($encoding);
$low = strtolower($encoding);
***********************************************************************/
include_once($path_to_root. "/includes/archive.inc");
include_once($path_to_root. "/includes/remote_url.inc");
+include_once($path_to_root. "/includes/hooks.inc");
define('PKG_CACHE_PATH', $path_to_root.'/modules/_cache');
define('PUBKEY_PATH', $path_to_root);