First commit
This commit is contained in:
parent
6ae7e07e77
commit
56c02456d6
4 changed files with 35 additions and 0 deletions
10
web/clitools/date2uts.php
Executable file
10
web/clitools/date2uts.php
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/php
|
||||
<?php
|
||||
const N="\n";
|
||||
if (!isset($argv[1]) || preg_match('/^\d+-\d+-\d+$/',$argv[1])!==1) {
|
||||
echo('datetouts.php <Y-M-D>'.N);
|
||||
exit(1);
|
||||
}
|
||||
echo 'UTS: '.strtotime($argv[1]).N;
|
||||
exit(0);
|
||||
?>
|
6
web/clitools/utsnow.php
Executable file
6
web/clitools/utsnow.php
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/php
|
||||
<?php
|
||||
const N="\n";
|
||||
echo(time().N);
|
||||
exit(0);
|
||||
?>
|
BIN
web/site/imgs/LocalTimelineAndProfileDirectoryLinks.png
Normal file
BIN
web/site/imgs/LocalTimelineAndProfileDirectoryLinks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 352 KiB |
19
web/site/lib/supplangs.php
Normal file
19
web/site/lib/supplangs.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
// when adding a language code here, it is necessary to add it to "langs" variable in "../../clitools/updtrans.bash" (if missing), and to run "../../clitools/addlang.php <new language code>" locally and on the server --- it is *no longer necessary* to modify "$menu" variable in "../index.php", "$hlmap" variable in "../stats.php", "$hitslang" and "$langs" variables in "../../clitools/mustool.php" and "getlangid" function in "../../clitools/getinstinfo.php"
|
||||
|
||||
$supplangs=[
|
||||
/* 'ca'=>['orname'=>'Català','trname'=>_('Catalan')],
|
||||
'de'=>['orname'=>'Deutsch','trname'=>_('German')],*/
|
||||
'en'=>['orname'=>'English','trname'=>_('English')],
|
||||
/* 'es'=>['orname'=>'Español','trname'=>_('Spanish')],
|
||||
'fr'=>['orname'=>'Français','trname'=>_('French')],
|
||||
'gl'=>['orname'=>'Galego','trname'=>_('Galician')],*/
|
||||
'it'=>['orname'=>'Italiano','trname'=>_('Italian')],
|
||||
/* 'pt_BR'=>['orname'=>'Português (BR)','trname'=>_('Portuguese (BR)')],
|
||||
'uk'=>['orname'=>'Українська','trname'=>_('Ukrainian')]*/
|
||||
];
|
||||
|
||||
$supplangscodes=array_keys($supplangs);
|
||||
|
||||
?>
|
Loading…
Reference in a new issue