Improved entropy for report file urls.
[fa-stable.git] / includes / ui / ui_controls.inc
index 54712f9c8ab76bb2f902943be21b14476abaa043..e575fd15d8a071382cafe07c12811b221084e1ec 100644 (file)
@@ -72,7 +72,7 @@ function end_form($breaks=0)
 
        if ($form_nested-- > 0) return;
 
-       $_SESSION['csrf_token'] = hash('sha256', uniqid(mt_rand(), true));
+       $_SESSION['csrf_token'] = random_id();
        if ($breaks)
                br($breaks);
        hidden('_focus');
@@ -509,6 +509,8 @@ $popup_editors = array(
        'supplier' => array('/purchasing/manage/suppliers.php?supplier_id=', 
                113, _("Suppliers"), 900, 700),
        'item' => array('/inventory/manage/items.php?stock_id=', 
+               115, _("Items"), 800, 600),
+       'fa_item' => array('/inventory/manage/items.php?FixedAsset=1&stock_id=', 
                115, _("Items"), 800, 600)
 );
 /*