Loading...
 
Features / Usability

Features / Usability


Need help with a script - generate random 4 digit numbers every month

posts: 1 Germany

Hey folks,

I established some dynamic content in our Tiki Wiki which displays a special sentence every month in one of our Wiki pages. Those sentences (mostly some life wisdoms) contain the letters for some important passwords if you have the formula (kind of a secret code which only me and my supervisor can decypher correctly). So far so good.. but now I would like to embed a special script which generates a 4 digit number every month which is also required for the password since the letters from before are not enough (to make the PW even more secure and random).

Back in the days, we already had such a script (based on HTML/Perl) and it worked fine. As a bonus, the number was hidden in the source code and only visible in there. Because our old system is, as suggested, VERY old, we decided to move on and migrate our whole Wiki to the Tiki application. Everything works fine, we just need to implement this random 4 digit number generation somehow.

Does anybody have an idea how to manage this? I read that you can create your own plugins but since I am absolutely not familiar with programming, I cannot do it myself. I also copied the string which generates the random number:

export RND=$(echo ${RANDOM:0:4})&&export MDATE=$(echo `date`)&&perl -i.bak -pe 's@.*Incony.*$@\@' /srv/www/htdocs/H3.1/horde/templates/common-header-sidebar.inc

TL;DR =>
So all I need is a way or a script which generates 4 digit long random numbers once every month. This number should be visible somewhere in the Tiki Wiki.

Kind regards,

Kolle

There are no comments at this time.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting