viewtopic.php?t=85851
The full help citation:Dalai wrote: 2025-05-20, 12:08 UTC Set(or add 8192 to its value if already present).Code: Select all
[Configuration] RestrictInterface=8192
TC help, section 4.b), part 2 wrote:RestrictInterface=
Disable parts of the user interface. Just build the sum of the following options:
[...]
8192: Do not redirect plugin ini files to user profile
Following the instructions from the help, I have made a script to automate the RestrictInterface parameter setup.RestrictInterface= Disable parts of the user interface. Just build the sum of the following options:
1=Start menu
2=Command line
4=Buttonbar change
8=Drive right click menu
16=File right click menu
32=Directory hotlist change
64=FTP (CTRL+N, CTRL+F)
128=ENTER key (run programs, open files)
256=File system plugins
512=Port connection (via USB or LPT)
1024=Disable update checks (manual and automatic)
2048: Disallow plugins except if signed by us (ghisler)
4096: Disallow plugins without a valid digital signature
6144: Disallow all plugins
8192: Do not redirect plugin ini files to user profile
The script (depending on conditions) does (at least, was intended to do) something like that:
- if no RestrictInterface in the ini, it creates one with the predefined $value in question (8192)
- if RestrictInterface is there, and is non-zero, it adds the predefined $value to the current value if needed.
- if the predefined $value is there (as a standalone, or as a summand of the current value) it does nothing.
Long story short, working on the script, something interesting turns out.
As you can see, the RestrictInterface's option list is a progression that is 'nearly' a perfect binary sequence (a.k.a. powers of two; see: https://oeis.org/A000079):
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 6144, 8192
or
2^0,2^1,2^2,2^3,2^4,2^5,2^6,2^7,2^8,2^9,2^10,2^11,2^12,3*2^11,2^13
Upon summation of its elements within the sets of valid combinations/permutations/subsets (name it), the genuine binary sequence is fully collision-proof.
That 'nearly' makes the difference, because the '6144' element is an alien here, since it doesn't fall under the rules.
With the '6144' element, the sequence just becomes collision-prone.
That is because 6144 = 2048 + 4096, and 2048 + 6144 = 8192.
As a result:
- being on the top of the sequence* the '6144' element gives us something as follows:
1, ..., 6144 sequence renders 16384 combinations [including zero/null] of which 4096 are the collisions.
- as soon as the '8192' comes to the top**, the '6144' gives us something as follows:
1, ..., 6144, 8192 sequence renders 32768 combinations [including zero/null] of which now 20480 (2/3!) are the collisions.
*,** notes from history:
Luckily, Ctr+F in the history doesn't show any '6144' occurrences outside of 2, related to the RestrictInterface.12.02.21 Added: Disable redirection of plugins: Add 8192 to RestrictInterface in wincmd.ini or registry (32/64)
17.02.19 Added: RestrictInterface=6144: Disallow all plugins (for companies with highest security requirements) (32/64)
How does Total Commander handle this?