Compare commits
335 Commits
7db33ba8f4
...
ad1940201b
Author | SHA1 | Date |
---|---|---|
|
ad1940201b | |
|
cbfbb0c21a | |
![]() |
bd03632163 | |
![]() |
21e6353314 | |
![]() |
08f219779e | |
![]() |
9723969017 | |
![]() |
432f32d98a | |
![]() |
e467c1c5f1 | |
![]() |
0b7ec2716e | |
![]() |
fa8e4a71e0 | |
![]() |
0b5725cb86 | |
|
1f932fd5ec | |
![]() |
5eac4b375d | |
|
b4062026d9 | |
![]() |
b61c69f007 | |
![]() |
4832594a1e | |
|
63b19754b5 | |
|
a5d8d6d943 | |
![]() |
c5c087155a | |
![]() |
8dc23ccf06 | |
|
8b64c144b2 | |
|
da50b32d61 | |
|
08bb4af74d | |
|
504e77034f | |
![]() |
f56809fd8a | |
![]() |
7e05910237 | |
|
40fed101e3 | |
|
6a3af13817 | |
|
20db4fceba | |
![]() |
cd123f99f0 | |
|
8cabbc7e50 | |
|
451ed4c369 | |
|
ec143dda02 | |
|
16ff2ead31 | |
|
c53eda9b9e | |
|
d3b1051543 | |
|
7957deccba | |
|
6dc3b0d5a3 | |
|
ef21e3e144 | |
![]() |
a675041874 | |
![]() |
36563f7298 | |
|
e028b15e7b | |
|
c95dd63c26 | |
|
95efdafd3d | |
|
e3a59dd504 | |
![]() |
fc8ce3d487 | |
|
c59bdce1f3 | |
|
ba199de626 | |
|
bbdd2c2a64 | |
|
6e7f751dc5 | |
|
9cfc9f359b | |
|
4687bff96d | |
|
7523d6bebf | |
|
a00f4b0d5f | |
![]() |
72d0a8e47e | |
![]() |
d02593e45e | |
|
43d97f1c57 | |
![]() |
c80814c4eb | |
|
afafb3e4f6 | |
![]() |
52c27f4cbe | |
|
b9b0f6181b | |
|
a9f6e757cd | |
|
4e4a2bd5bc | |
![]() |
5a555d238a | |
![]() |
fc112ebee3 | |
|
220b38e142 | |
![]() |
9e2345bc2b | |
|
d78a5026ab | |
|
4c180272ed | |
![]() |
937339befb | |
![]() |
13a9ad5c3d | |
![]() |
811dce6370 | |
![]() |
05c581d206 | |
![]() |
1ba7a2f475 | |
![]() |
3946039c86 | |
![]() |
a85ccd043b | |
![]() |
6add7e4a40 | |
|
2e1fbd374d | |
![]() |
7e02128159 | |
![]() |
0c36883195 | |
![]() |
6448440101 | |
![]() |
8965df7640 | |
![]() |
9fe5164405 | |
![]() |
a4486fcf88 | |
|
695ba518dd | |
|
3acb44aa78 | |
![]() |
3c83f33935 | |
![]() |
5d14fed7e4 | |
![]() |
78d3aeb60f | |
|
d373365d8f | |
![]() |
b057544ba3 | |
![]() |
8cea9323dd | |
![]() |
2fa12e7245 | |
|
047bed9d1f | |
|
a6c0e8cf1b | |
|
bce334e75b | |
|
bc717c36d5 | |
![]() |
a10f67f299 | |
![]() |
f6046a2566 | |
![]() |
d1d410ed65 | |
![]() |
5ca85e7357 | |
![]() |
5e9fadd315 | |
![]() |
3744b0242a | |
![]() |
d770c70218 | |
![]() |
db471afa79 | |
![]() |
200f103adf | |
![]() |
ab73c9d6f9 | |
|
bb6d5c6863 | |
|
53570e236a | |
|
caae003c60 | |
|
f3207ec2f1 | |
|
82c87c43e0 | |
|
70184caa3a | |
|
f6860ed2be | |
![]() |
845a6b7f72 | |
|
39dba8188b | |
|
753c27a9cf | |
|
1dbe646724 | |
![]() |
ade7a3f29f | |
|
1c3e9d7d65 | |
![]() |
7e0e74375f | |
![]() |
1ca9dcf406 | |
|
d299462439 | |
|
e6c042331d | |
|
0956906e98 | |
|
5a62d13843 | |
![]() |
1fc21039f5 | |
|
2a07927acc | |
|
3b46081292 | |
![]() |
7a6d800e21 | |
![]() |
f5933a181b | |
![]() |
03e1786159 | |
![]() |
a3627a5f35 | |
![]() |
6a4ee2dc3b | |
![]() |
654edab277 | |
![]() |
fa1fae9af7 | |
![]() |
74cbc88fc1 | |
![]() |
f5d153c161 | |
![]() |
5fb091660e | |
![]() |
6ee74b5b03 | |
![]() |
15ec54d41c | |
![]() |
7e8d5487e3 | |
|
4371bb59d5 | |
|
5a5fc801f8 | |
![]() |
6ae5e22c31 | |
![]() |
c03648006f | |
![]() |
8c6dcadca0 | |
![]() |
27f907ee99 | |
![]() |
ad6bb372ea | |
![]() |
b50f028e0e | |
![]() |
ca0ed3dd40 | |
![]() |
4770c268d8 | |
![]() |
70224f71d6 | |
![]() |
020eb932d6 | |
![]() |
c8d814ff68 | |
|
36fb528818 | |
![]() |
ad17a8715b | |
![]() |
abcc48b77d | |
![]() |
1809cd67da | |
![]() |
dc1708fecd | |
|
ad201fd4f2 | |
|
9052e6ac31 | |
|
54f5491dad | |
|
b2f7538371 | |
|
d06f2877e1 | |
![]() |
da7b178743 | |
![]() |
e67d628e41 | |
|
8af6b0d1f6 | |
![]() |
b5b8bc3028 | |
![]() |
fdda4e95e8 | |
![]() |
b4aa7c3957 | |
![]() |
13564a9d73 | |
![]() |
e118f31397 | |
![]() |
af3751742a | |
![]() |
1716d14b23 | |
![]() |
0b0f08c739 | |
![]() |
e09006b69e | |
![]() |
230d3ffdd8 | |
![]() |
e06e2b3abd | |
![]() |
5aeeac1c31 | |
![]() |
1182cada25 | |
![]() |
49e81b55bf | |
![]() |
291812cead | |
![]() |
e3d2b84418 | |
![]() |
3bc65aed3f | |
![]() |
5c32a54edb | |
![]() |
e705f377b9 | |
![]() |
1e4f2783d8 | |
![]() |
cdf07913da | |
![]() |
dbfc59097b | |
![]() |
7445439654 | |
![]() |
36976cbf24 | |
![]() |
7f94d1f03f | |
![]() |
5725cd89ce | |
![]() |
f50f453707 | |
![]() |
b6a2f74326 | |
![]() |
f898407d3d | |
![]() |
9b7332f354 | |
![]() |
ed7aaa3151 | |
![]() |
a194cd80d0 | |
![]() |
db916ace66 | |
![]() |
2ad744ecc7 | |
![]() |
cdd0bfd0fa | |
![]() |
a5bf37786c | |
![]() |
a1ed5a4ad6 | |
![]() |
dbb41924bd | |
![]() |
bcde8a9ef2 | |
![]() |
f166518bb2 | |
![]() |
5b555f5281 | |
![]() |
2695db49a2 | |
![]() |
5a8fd5db20 | |
![]() |
c1688e2e07 | |
![]() |
144ff1e27a | |
![]() |
7945034004 | |
![]() |
5489387103 | |
![]() |
649b2c55d6 | |
![]() |
9e4021141a | |
![]() |
b7235d33f0 | |
![]() |
5f27d551d8 | |
![]() |
2d60cf7c0b | |
![]() |
d6c7d15028 | |
![]() |
a4c488ae70 | |
![]() |
bb3bd0b14c | |
![]() |
178823a9f0 | |
![]() |
5f72126420 | |
![]() |
3137bc5aa0 | |
![]() |
e2237a2ed9 | |
![]() |
f1026cb26e | |
![]() |
b467ce23ca | |
![]() |
e83a526c57 | |
![]() |
6fd89455fb | |
![]() |
404ba2803b | |
![]() |
2d7601e4e0 | |
![]() |
5a3b9c7a13 | |
![]() |
cb13dae853 | |
![]() |
2354c1142d | |
![]() |
d13d093c09 | |
![]() |
f9d2c783e5 | |
![]() |
8f550ce69e | |
![]() |
63f6c33f83 | |
![]() |
1db447bcec | |
![]() |
1bc8b59da9 | |
![]() |
719e1539b0 | |
![]() |
758f48ddc4 | |
![]() |
bafee6372a | |
![]() |
a2e22a8d1f | |
![]() |
152551a8bb | |
![]() |
ac841451bc | |
![]() |
8232c1a318 | |
![]() |
9587ff1bfc | |
![]() |
8dc5c20fa5 | |
![]() |
ade50df5aa | |
![]() |
0f59614372 | |
![]() |
2f00c01b48 | |
![]() |
73376121e5 | |
![]() |
ecfa105982 | |
![]() |
2ed4cbad21 | |
![]() |
b7be237b6d | |
![]() |
6007a3dea2 | |
![]() |
3dbb4d68ac | |
![]() |
272cee3f5f | |
![]() |
997795b935 | |
![]() |
ddbc6e2ff4 | |
![]() |
bf57ec3dc1 | |
![]() |
29c200da8e | |
![]() |
1a0614dcf3 | |
![]() |
46e21285d6 | |
![]() |
4ee6ae395e | |
![]() |
5079aa2e03 | |
![]() |
2ca592aa8a | |
![]() |
57c8dc5942 | |
![]() |
09bb693480 | |
![]() |
6ba6a40d05 | |
![]() |
81f440d2b4 | |
![]() |
f7c05c5e23 | |
![]() |
7a69abd660 | |
![]() |
be49630527 | |
![]() |
7ec1d068c8 | |
![]() |
6e9c3c3c63 | |
![]() |
0f66e2f073 | |
![]() |
fe09524ff3 | |
![]() |
6762429c68 | |
![]() |
88f6d04f89 | |
![]() |
791e3ddb38 | |
![]() |
d1cba34548 | |
![]() |
976296c833 | |
![]() |
eae85dcbe7 | |
![]() |
19871eb355 | |
|
e8f764de2d | |
|
2a0b0c1f99 | |
|
3556fbb2d4 | |
|
76764e735f | |
|
0be79f9b54 | |
|
5ba055cf7f | |
![]() |
aff4ed989c | |
![]() |
42441d29a2 | |
![]() |
f48618d0e5 | |
![]() |
c6d04fd3b6 | |
![]() |
f114a66d91 | |
![]() |
8166ceb58f | |
![]() |
0217985655 | |
![]() |
0c6e56d146 | |
![]() |
c88db87db3 | |
|
e2edab6364 | |
![]() |
a7382b45a3 | |
![]() |
f930bde36d | |
![]() |
3525041839 | |
![]() |
c8d94d2a50 | |
![]() |
bd53247eaf | |
![]() |
4d8d2c1c39 | |
|
5a4f924088 | |
|
ce80e3cdad | |
|
1b08ae2638 | |
|
eca8d7ccdf | |
|
9c1e7cccd0 | |
|
83d03b8ee7 | |
|
f39e72d58a | |
|
1c910f4448 | |
|
be8edc140d | |
|
29a213cc26 | |
![]() |
41278cc72a | |
![]() |
0385a933f7 | |
|
88f3457191 | |
|
56cbd2f8b4 | |
|
294397e10f | |
|
00c1d55406 | |
|
a609984d39 | |
|
971e38778f | |
|
b5382bb13b | |
|
6084650181 | |
|
bbb3e7c0e3 | |
|
d6d9be4c6a | |
|
3647151c67 | |
![]() |
a70a3735d0 | |
![]() |
9f57ebd4cf |
|
@ -18,6 +18,8 @@ debian/alternc-slave
|
|||
debian/alternc-squirrelmail
|
||||
debian/alternc-upnp
|
||||
debian/files
|
||||
debian/.debhelper
|
||||
debian/debhelper-build-stamp
|
||||
lang/de_DE.po
|
||||
lang/es_ES.po
|
||||
lang/fr_FR.po
|
||||
|
@ -39,3 +41,8 @@ bureau/locales/fr_FR/LC_MESSAGES/messages.po~
|
|||
bureau/locales/it_IT/LC_MESSAGES/messages.po~
|
||||
bureau/locales/nl_NL/LC_MESSAGES/messages.po~
|
||||
bureau/locales/pt_BR/LC_MESSAGES/messages.po~
|
||||
.tx/alternc.alternc
|
||||
# Added for running tests; currently not used otherwise
|
||||
composer.lock
|
||||
composer.json
|
||||
vendor/
|
||||
|
|
14
.travis.yml
|
@ -2,14 +2,16 @@ language: php
|
|||
services:
|
||||
- mysql
|
||||
php:
|
||||
- 7.1
|
||||
- 7.0
|
||||
- 5.6
|
||||
- 5.5
|
||||
- 5.4
|
||||
- 5.3
|
||||
script: phpunit --coverage-clover=coverage.clover
|
||||
script:
|
||||
- grep --exclude-dir=../.git/ --exclude-dir=../vendor/ -l -r -e '#!/bin/[bash|sh]' ../ | uniq | xargs shellcheck
|
||||
- ../vendor/bin/phpcs --ignore=../vendor/ ../
|
||||
- ../vendor/bin/phpunit --coverage-clover=coverage.clover
|
||||
before_script:
|
||||
# pear.phpunit.de offline, and travis have phpunit
|
||||
# - pear channel-discover pear.phpunit.de
|
||||
# - pear install phpunit/DbUnit
|
||||
- composer require 'phpunit/dbunit=<3.0.2' squizlabs/php_codesniffer
|
||||
- mysql -e 'create database alternc_test DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;'
|
||||
- cd phpunit
|
||||
after_script:
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
********************************************************************************************
|
||||
* 2013: We are trying to make AlternC enter Debian repositories and follow Debian rules :) *
|
||||
* 2018: Still trying :) *
|
||||
********************************************************************************************
|
||||
|
||||
The main issues we know as of today are:
|
||||
|
@ -14,38 +15,7 @@ Questions:
|
|||
|
||||
- some binaries / scripts don't have a man page
|
||||
|
||||
- we are packaging some JS library ourself :
|
||||
W: alternc: embedded-javascript-library var/alternc/bureau/admin/js/prototype.js
|
||||
W: alternc: embedded-javascript-library var/alternc/bureau/admin/js/jquery.min.js
|
||||
|
||||
- W: alternc: virtual-package-depends-without-real-package-depends depends: mailx
|
||||
|
||||
- We should NOT ask for "do you REALLY want to install AlternC blabla" since we don't launch alternc.install at postinst anymore.
|
||||
This question MAY be asked to the user when launching alternc installer manually (on an interactive shell)
|
||||
|
||||
|
||||
Easy to fix NOW :
|
||||
E: alternc: dir-or-file-in-var-run var/run/alternc/
|
||||
W: alternc: binary-without-manpage usr/bin/alternc_get_path
|
||||
W: alternc: binary-without-manpage usr/bin/alternc_reload
|
||||
W: alternc: maintainer-script-ignores-errors prerm
|
||||
W: alternc-awstats: possible-debconf-note-abuse preinst:13 alternc-awstats/errorinstall
|
||||
|
||||
E: alternc: duplicate-conffile etc/cron.d/alternc
|
||||
E: alternc: duplicate-conffile etc/logrotate.d/alternc
|
||||
W: alternc: malformed-prompt-in-templates alternc/slaves
|
||||
|
||||
********************************************************************************
|
||||
Should be fixed, need more test:
|
||||
- the control panel is located in /var/alternc/bureau => move it to /usr/share/alternc/panel
|
||||
- the html data are in /var/alternc/html/[a-z0-9] => move them to /var/www/alternc/[a-z0-9]
|
||||
- the mail data are in /var/alternc/mail/[a-z0-9] => move them to /var/mail/alternc/[a-z0-9]
|
||||
- the bind zones, apache vhosts and other dynamic data are in /var/alternc/(bind|apache-vhost)/ => move them to /var/lib/alternc/(samename)
|
||||
- /var/alternc/db => not used anymore, drop
|
||||
- /var/alternc/mla => not used anymore, drop
|
||||
- there is /var/alternc/cgi-bin/ is forgotten and now we use the standard /usr/lib/cgi-bin/
|
||||
- /var/alternc/exec.usr/ => usr/lib/alternc/safe_mode_exec_dir
|
||||
- /var/alternc/sessions/ disapear for the standard PHP sessions dir.
|
||||
|
||||
********************************************************************************
|
||||
FIXED:
|
||||
|
@ -89,3 +59,33 @@ W: alternc: malformed-question-in-templates alternc/use_private_ip
|
|||
|
||||
W: alternc: command-with-path-in-maintainer-script config:205 /usr/bin/awk
|
||||
|
||||
- we are packaging some JS library ourself :
|
||||
W: alternc: embedded-javascript-library var/alternc/bureau/admin/js/prototype.js
|
||||
W: alternc: embedded-javascript-library var/alternc/bureau/admin/js/jquery.min.js
|
||||
|
||||
- W: alternc: virtual-package-depends-without-real-package-depends depends: mailx
|
||||
|
||||
- We should NOT ask for "do you REALLY want to install AlternC blabla" since we don't launch alternc.install at postinst anymore.
|
||||
This question MAY be asked to the user when launching alternc installer manually (on an interactive shell)
|
||||
|
||||
|
||||
Easy to fix NOW :
|
||||
E: alternc: dir-or-file-in-var-run var/run/alternc/
|
||||
W: alternc: binary-without-manpage usr/bin/alternc_get_path
|
||||
W: alternc: binary-without-manpage usr/bin/alternc_reload
|
||||
W: alternc: maintainer-script-ignores-errors prerm
|
||||
W: alternc-awstats: possible-debconf-note-abuse preinst:13 alternc-awstats/errorinstall
|
||||
|
||||
E: alternc: duplicate-conffile etc/cron.d/alternc
|
||||
E: alternc: duplicate-conffile etc/logrotate.d/alternc
|
||||
W: alternc: malformed-prompt-in-templates alternc/slaves
|
||||
|
||||
- the control panel is located in /var/alternc/bureau => move it to /usr/share/alternc/panel
|
||||
- the html data are in /var/alternc/html/[a-z0-9] => move them to /var/www/alternc/[a-z0-9]
|
||||
- the mail data are in /var/alternc/mail/[a-z0-9] => move them to /var/mail/alternc/[a-z0-9]
|
||||
- the bind zones, apache vhosts and other dynamic data are in /var/alternc/(bind|apache-vhost)/ => move them to /var/lib/alternc/(samename)
|
||||
- /var/alternc/db => not used anymore, drop
|
||||
- /var/alternc/mla => not used anymore, drop
|
||||
- there is /var/alternc/cgi-bin/ is forgotten and now we use the standard /usr/lib/cgi-bin/
|
||||
- /var/alternc/exec.usr/ => usr/lib/alternc/safe_mode_exec_dir
|
||||
- /var/alternc/sessions/ disapear for the standard PHP sessions dir.
|
||||
|
|
18
Makefile
|
@ -21,7 +21,7 @@
|
|||
# Purpose of file: Global Makefile
|
||||
# ----------------------------------------------------------------------
|
||||
MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog)
|
||||
VERSION=$MAJOR
|
||||
VERSION=$(MAJOR)
|
||||
export VERSION
|
||||
|
||||
build:
|
||||
|
@ -34,7 +34,7 @@ install:
|
|||
install-common:
|
||||
# Shell Scripts
|
||||
test -d $(DESTDIR)/usr/lib/alternc || mkdir -p $(DESTDIR)/usr/lib/alternc
|
||||
cp src/* $(DESTDIR)/usr/lib/alternc/
|
||||
cp -r src/* $(DESTDIR)/usr/lib/alternc/
|
||||
chown root:root $(DESTDIR)/usr/lib/alternc/*
|
||||
chmod 755 $(DESTDIR)/usr/lib/alternc/*
|
||||
|
||||
|
@ -48,7 +48,7 @@ install-common:
|
|||
# Installer and upgrade scripts
|
||||
test -d $(DESTDIR)/usr/share/alternc/install || mkdir -p $(DESTDIR)/usr/share/alternc/install
|
||||
cp -r install/* $(DESTDIR)/usr/share/alternc/install
|
||||
chmod a+x $(DESTDIR)/usr/share/alternc/install/alternc.install $(DESTDIR)/usr/share/alternc/install/dopo.sh $(DESTDIR)/usr/share/alternc/install/mysql.sh $(DESTDIR)/usr/share/alternc/install/newone.php $(DESTDIR)/usr/share/alternc/install/reset_root.php $(DESTDIR)/usr/share/alternc/install/upgrade_check.sh $(DESTDIR)/usr/share/alternc/install/upgrades/*.php $(DESTDIR)/usr/share/alternc/install/upgrades/*.sh
|
||||
chmod a+x $(DESTDIR)/usr/share/alternc/install/alternc.install $(DESTDIR)/usr/share/alternc/install/dopo.sh $(DESTDIR)/usr/share/alternc/install/mysql.sh $(DESTDIR)/usr/share/alternc/install/newone.php $(DESTDIR)/usr/share/alternc/install/reset_root.php $(DESTDIR)/usr/share/alternc/install/upgrade_check.sh $(DESTDIR)/usr/share/alternc/install/upgrades/*.php $(DESTDIR)/usr/share/alternc/install/upgrades/*.sh $(DESTDIR)/usr/share/alternc/install/variables.php
|
||||
|
||||
|
||||
# install AlternC itself:
|
||||
|
@ -56,7 +56,8 @@ install-alternc: install-common
|
|||
# Web Panel
|
||||
test -d $(DESTDIR)/usr/share/alternc/panel || mkdir $(DESTDIR)/usr/share/alternc/panel
|
||||
cp -r bureau/* $(DESTDIR)/usr/share/alternc/panel
|
||||
sed -i -e "s/@@REPLACED_DURING_BUILD@@/${MAJOR}/" $(DESTDIR)/usr/share/alternc/panel/class/local.php
|
||||
sed -i -e "s/@@REPLACED_DURING_BUILD@@/${MAJOR}/" $(DESTDIR)/usr/share/alternc/panel/class/local.php $(DESTDIR)/usr/share/alternc/install/alternc.install
|
||||
help2man -n "Hosting control panel software" --no-discard-stderr --section 8 $(DESTDIR)/usr/share/alternc/install/alternc.install -o $(DESTDIR)/usr/share/man/man8/alternc.install.8
|
||||
chown -R root:root $(DESTDIR)/usr/share/alternc/panel
|
||||
chmod -R 644 $(DESTDIR)/usr/share/alternc/panel
|
||||
chmod -R a+X $(DESTDIR)/usr/share/alternc/panel
|
||||
|
@ -69,6 +70,15 @@ install-alternc: install-common
|
|||
# Man pages
|
||||
install -o root -g root -m 644 man/*.8 $(DESTDIR)/usr/share/man/man8/
|
||||
|
||||
#SSL functions
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_panel-ssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_vhost-mixssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_roundcube-ssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_squirrelmail-ssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_php52-ssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_php52-mixssl.sh
|
||||
ln -s hosting_vhost-ssl.sh $(DESTDIR)/etc/alternc/functions_hosting/hosting_url-ssl.sh
|
||||
|
||||
install-slave: install-common
|
||||
# Man pages
|
||||
pod2man --center "" --date "" --release "AlternC" --section=8 man/alternc.install.pod >$(DESTDIR)/usr/share/man/man8/alternc.install.8
|
||||
|
|
41
README.md
|
@ -8,7 +8,7 @@ This software consist of an automatic install and configuration system, a web co
|
|||
|
||||
Technically, AlternC is based on Debian GNU/Linux distribution and it depends on other software such as Apache, Postfix, Dovecot, Mailman (...). It also contains an API documentation so that users can easily customize their web desktop.
|
||||
|
||||
This project native tongue is French, and the code is commented in English. The packages are available at least in French and English, German and Spanish interfaces are usually available too.
|
||||
This project native language is French, and the code is commented in English. The packages are available at least in French and English, German and Spanish interfaces are usually available too.
|
||||
|
||||
|
||||
## Installation
|
||||
|
@ -17,32 +17,57 @@ This project native tongue is French, and the code is commented in English. The
|
|||
|
||||
[Pour installer AlternC, merci de suivre la documentation d'installation](https://alternc.com/Install-fr)
|
||||
|
||||
### Upgrading from AlternC 3.[1,2,3].11 or earlier
|
||||
|
||||
The recommended process for upgrading is to upgrade to 3.3.12 before upgrading to 3.5. If
|
||||
you choose to upgrade directly to 3.5 from an earlier version, please read this information
|
||||
as there is a risk of a loss of data.
|
||||
|
||||
AlternC >= 3.5 removes integrates alternc-ssl and alternc-admintools in the the core AlternC package.
|
||||
|
||||
As a result, both alternc-ssl and alternc-admintools will be removed during installation.
|
||||
When alternc-ssl is removed, it will mark many of the sub domain types suffixed with '-ssl'
|
||||
and '-mixssl' for deletion.
|
||||
|
||||
To safely upgrade between these versions:
|
||||
|
||||
* Backup your AlternC database
|
||||
* Stop the cron service: ```/etc/init.d/cron stop```
|
||||
* Install alternc (>= 3.5)
|
||||
* Run the following queries against the alternc database (here, it's called "alternc"): ```
|
||||
mysql alternc -e 'update sub_domaines set web_action = "OK" where type like "%-mixssl";'
|
||||
mysql alternc -e 'update sub_domaines set web_action = "OK" where type like "%-ssl";'
|
||||
```
|
||||
* Run alternc.install
|
||||
* Start the cron service again: ```/etc/init.d/cron start```
|
||||
|
||||
## Developper information
|
||||
|
||||
* This software is built around a Debian package for Squeeze whose packaging instructions are located in [debian/](debian/) folder
|
||||
* This software is built around a Debian package for Stretch whose packaging instructions are located in [debian/](debian/) folder (this package can be installed on Jessie safely too)
|
||||
* To **build the packages**, clone this repository in a Debian machine and use `debuild` or `dpkg-buildpackage` from source code root.
|
||||
* If you want to **build it for Wheezy**, clone the source and patch it for Wheezy using [wheezy/patch.sh](wheezy/patch.sh) script. You'll be able to use dpkg-buildpackage to build the Wheezy version.
|
||||
* If you want to **build it for Jessie**, clone the source and patch it for Wheezy using [wheezy/patch.sh](wheezy/patch.sh) script then patch it for Jessie using [jessie/patch.sh](jessie/patch.sh) script. You'll be able to use dpkg-buildpackage to build the Jessie version.
|
||||
|
||||
* The web control panel pages written in PHP are located in [bureau/admin](bureau/admin) and the associated PHP classes doing the stuff are in [bureau/class](bureau/class).
|
||||
|
||||
## Nightly build
|
||||
|
||||
We have 3 nightly build repositories:
|
||||
We have 1 nightly build repositories:
|
||||
* stretch - [stable 3.5](http://stable-3-5.nightly.alternc.org/)
|
||||
|
||||
and 3 nightly from former Debian releases (now unmaintained)
|
||||
* jessie - [stable 3.3](http://stable-3-3.nightly.alternc.org/)
|
||||
* wheezy - [stable 3.2](http://stable-3-2.nightly.alternc.org/)
|
||||
* squeeze - [stable 3.1](http://stable-3-1.nightly.alternc.org/)
|
||||
|
||||
To use one of them, create a file named `/etc/apt/sources.list.d/alternc-nightly-stable-3.3.list` (for debian jessie) as follow :
|
||||
To use one of them, create a file named `/etc/apt/sources.list.d/alternc-nightly-stable-3.5.list` (for debian Jessie or Stretch) as follow :
|
||||
|
||||
```
|
||||
deb http://stable-3-3.nightly.alternc.org/ latest/
|
||||
deb http://stable-3-5.nightly.alternc.org/ latest/
|
||||
```
|
||||
|
||||
The repository and the packages are signed by the pgp key of AlternC nightly build user :
|
||||
|
||||
```
|
||||
wget http://stable-3-3.nightly.alternc.org/nightly.key -O - | apt-key add -
|
||||
wget http://stable-3-5.nightly.alternc.org/nightly.key -O - | apt-key add -
|
||||
```
|
||||
|
||||
## License
|
||||
|
|
|
@ -13,7 +13,7 @@ if(isset($L_ALTERNC_LOGS_ARCHIVE))
|
|||
define('ALTERNC_LOGS', "$L_ALTERNC_LOGS");
|
||||
define('ALTERNC_PANEL', "/usr/share/alternc/panel");
|
||||
define('ALTERNC_LOCALES', ALTERNC_PANEL."/locales");
|
||||
define('ALTERNC_LOCK_JOBS', '/var/run/alternc/jobs-lock');
|
||||
define('ALTERNC_LOCK_JOBS', '/run/alternc/jobs-lock');
|
||||
define('ALTERNC_LOCK_PANEL', '/var/lib/alternc/panel/nologin.lock');
|
||||
|
||||
/* PHPLIB inclusions : */
|
||||
|
@ -72,6 +72,7 @@ $mem=new m_mem();
|
|||
$err=new m_err();
|
||||
$authip=new m_authip();
|
||||
$hooks=new m_hooks();
|
||||
$msg = new m_messages();
|
||||
|
||||
|
||||
for($i=0;$i<count($classes);$i++) {
|
||||
|
|
|
@ -6,8 +6,7 @@ CREATE TABLE IF NOT EXISTS `aws` (
|
|||
`public` INT(1) unsigned NOT NULL DEFAULT '1',
|
||||
`hostaliases` TEXT,
|
||||
PRIMARY KEY (`id`)
|
||||
) Engine=MyISAM COMMENT='Statistiques web par Awstats';
|
||||
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `aws_users` (
|
||||
|
@ -16,7 +15,7 @@ CREATE TABLE IF NOT EXISTS `aws_users` (
|
|||
`pass` varchar(38) NOT NULL,
|
||||
PRIMARY KEY (`login`),
|
||||
INDEX (`uid`)
|
||||
) COMMENT = 'Comptes pouvant accéder aux stats awstats.';
|
||||
);
|
||||
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `aws_access` (
|
||||
|
@ -24,5 +23,5 @@ CREATE TABLE IF NOT EXISTS `aws_access` (
|
|||
`uid` int(10) unsigned NOT NULL,
|
||||
`login` varchar(128) NOT NULL,
|
||||
INDEX (`id`)
|
||||
) COMMENT = 'Qui peut accéder aux stats awstats ';
|
||||
);
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ if (!$id) {
|
|||
include("aws_edit.php");
|
||||
exit();
|
||||
} else {
|
||||
$msg->raise('Ok', "aws", _("The Statistics has been successfully changed"));
|
||||
$msg->raise('INFO', "aws", _("The Statistics has been successfully changed"));
|
||||
include("aws_list.php");
|
||||
exit();
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
/**
|
||||
* Manages default domain types,
|
||||
* they are the subdomains automatically installed on a domain when you host it.
|
||||
* AlternC's modules such as squirrelmail or roundcube may create new ones, you'll see them here
|
||||
* AlternC's modules such as roundcube may create new ones, you'll see them here
|
||||
*
|
||||
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||
*/
|
||||
|
|
|
@ -181,7 +181,7 @@ if (!is_array($accountList) || empty($accountList)) {
|
|||
while (list($key, $val) = each($accountList)) {
|
||||
$col = 3 - $col;
|
||||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<tr class="lst">
|
||||
|
||||
<?php if ($val["su"]) { ?>
|
||||
<td id="user_<?php echo $val["uid"]; ?>"> </td>
|
||||
|
@ -199,7 +199,7 @@ if (!is_array($accountList) || empty($accountList)) {
|
|||
<td><div class="<?php echo 'exp' . $admin->renew_get_status($val['uid']) ?>"><?php ehe($admin->renew_get_expiry($val['uid'])); ?></div></td>
|
||||
</tr>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>" >
|
||||
<tr class="lst" >
|
||||
<td/><td ><i><?php echo _("DB:") . ' ' . $val['db_server_name'] ?></i></td>
|
||||
<td colspan="8" >
|
||||
<div id="admlistbtn">
|
||||
|
|
|
@ -59,7 +59,7 @@ foreach( variables_list() as $vars) { ?>
|
|||
|
||||
<tr class="lst">
|
||||
<td><?php ehe($vars['name']); ?></td>
|
||||
<td><input type="text" name="<?php ehe($vars['name']); ?>" value="<?php ehe($vars['value']); ?>" /></td>
|
||||
<td><input type="text" class="int" name="<?php ehe($vars['name']); ?>" value="<?php ehe($vars['value']); ?>" style="width: 200px"/></td>
|
||||
<td><?php ehe($vars['comment']); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
|
|
@ -75,6 +75,8 @@ if (isset($save) && $save) {
|
|||
}
|
||||
}
|
||||
|
||||
$addhead['css'][]='<link rel="stylesheet" href="/javascript/prettify/prettify.css" type="text/css" />';
|
||||
$addhead['js'][]='<script src="/javascript/prettify/prettify.js" type="text/javascript"></script>';
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
|
@ -126,17 +128,18 @@ echo "<pre class='prettyprint' id='file_content_view' >$content</pre>";
|
|||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$( "#tabsfile" ).tabs();
|
||||
prettyPrint();
|
||||
$( "#tabsfile" ).tabs();
|
||||
<?php if ($editing) { ?>
|
||||
$( "#tabsfile-edit" ).tabs( "option", "active", 1 );
|
||||
$( "#tabsfile-edit" ).tabs( "option", "active", 1 );
|
||||
<?php } ?>
|
||||
});
|
||||
|
||||
$('#tabsfile').on('tabsbeforeactivate', function(event, ui){
|
||||
var b = $('#file_content_editor').val();
|
||||
$('#file_content_view').text( b );
|
||||
$('#file_content_view').removeClass('prettyprinted');
|
||||
PR.prettyPrint();
|
||||
var b = $('#file_content_editor').val();
|
||||
$('#file_content_view').text( b );
|
||||
$('#file_content_view').removeClass('prettyprinted');
|
||||
PR.prettyPrint();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ echo $msg->msg_html_all();
|
|||
<br />
|
||||
<input type="submit" id="sendthisfile" class="ina" value="<?php __("Send this file"); ?>" />
|
||||
<?php echo sprintf(_("Warning: max size: %s"),$bro->getMaxAllowedUploadSize() ); ?>
|
||||
</form>
|
||||
<?php __("(If you upload a compressed file, <br />you will be able to uncompress it after.)"); ?></form>
|
||||
|
||||
</td>
|
||||
<td style="width: 20px"> </td>
|
||||
|
@ -345,11 +345,7 @@ function actmoveto_not_empty() {
|
|||
echo "<table width=\"100%\" id='tab_files_w_details' class=\"tlist\" style=\"border: 0px\" cellpadding=\"2\" cellspacing=\"0\"><thead>";
|
||||
?>
|
||||
<tr><th>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
document.write("<input type=\"checkbox\" id=\"checkall\" value=\"1\" class=\"inb\" onclick=\"CheckAll();\" />");
|
||||
// -->
|
||||
</script>
|
||||
<input type="checkbox" id="checkall" value="1" class="inb" onclick="CheckAll();" />
|
||||
</th>
|
||||
<?php if ($p["showicons"]) { ?>
|
||||
<th style="text-align: center;"><?php if (!empty($R)) { echo $bro->PathList($R,"bro_main.php",true); }?></th>
|
||||
|
|
|
@ -91,7 +91,7 @@ $maxlevel=0;
|
|||
<title>Recherche d'un dossier</title>
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<script src="js/jquery.min_embedded.js" type="text/javascript"></script>
|
||||
<script src="/javascript/jquery/jquery.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
/* Fonction appellée lors du lancement d'un popup Fichier : */
|
||||
function popupfile() {
|
||||
|
|
|
@ -51,7 +51,7 @@ echo $msg->msg_html_all();
|
|||
<form method="post" action="dom_doadd.php" id="main">
|
||||
<?php csrf_get(); ?>
|
||||
<p>
|
||||
<label for="newdomain"><b><?php __("Domain name"); ?> :</b></label> <span class="int" id="newdomwww">www.</span><input type="text" class="int" id="newdomain" name="newdomain" value="<?php ehe($newdomain); ?>" size="32" maxlength="255" /> <a class="inb configure" href="dom_import.php"><?php __("Advanced import"); ?></a>
|
||||
<label for="newdomain"><b><?php __("Domain name"); ?> :</b></label> <span class="int" id="newdomwww">www.</span><input type="text" class="int" id="newdomain" name="newdomain" value="<?php ehe($newdomain); ?>" size="32" maxlength="255" /> <a class="inb settings" href="dom_import.php"><?php __("Advanced import"); ?></a>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" name="dns" class="inc" value="1" id="yndns"<?php cbox($dns=="1"); ?>/> <label for="yndns"><?php __("host my dns here"); ?></label>
|
||||
|
|
|
@ -50,7 +50,7 @@ $dom->unlock();
|
|||
|
||||
<form action="dom_subdoedit.php" method="post" name="main" id="main">
|
||||
<?php csrf_get(); ?>
|
||||
<table border="0">
|
||||
<table class="dom-edit-table">
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="domain" value="<?php ehe($domain) ?>" />
|
||||
|
@ -64,6 +64,7 @@ $dom->unlock();
|
|||
}
|
||||
?></td><td>
|
||||
<input type="text" class="int" name="sub" style="text-align:right" value="<?php ehe($sub); ?>" size="22" id="sub" /><span class="int" id="newsubname">.<?php ehe($domain); ?></span></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
$first_advanced=true;
|
||||
|
@ -81,10 +82,8 @@ $dom->unlock();
|
|||
$lst_advanced[]=$dt['name'];
|
||||
if ($first_advanced) {
|
||||
$first_advanced=false;
|
||||
echo "<tr><td colspan=\"2\" class=\"advdom\"></td></tr>";
|
||||
echo "<tr id='domtype_show' onClick=\"domtype_advanced_show();\"><td colspan='2'><a href=\"javascript:domtype_advanced_show();\"><b>+ "; __("Show advanced options"); echo "</b></a></td></tr>";
|
||||
echo "<tr id='domtype_hide' onClick=\"domtype_advanced_hide();\" style='display:none'><td colspan='2'><a href=\"javascript:domtype_advanced_hide();\"><b>- "; __("Hide advanced options"); echo "</b></a></td></tr>";
|
||||
echo "<tr><td colspan=\"2\" class=\"advdom\"></td></tr>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -126,17 +125,31 @@ $dom->unlock();
|
|||
break;
|
||||
} // switch ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($dt['has_https_option']) { ?>
|
||||
|
||||
<select class="inl" name="https_<?php ehe($dt['name']); ?>" id="https_<?php ehe($dt['name']); ?>">
|
||||
<option value="http"<?php selected((strtoupper($type)==strtoupper($dt['name']) && $sd["https"]=="http") || false); ?>><?php __("HTTP Only (redirect HTTPS to HTTP)"); ?></option>
|
||||
<option value="https"<?php selected((strtoupper($type)==strtoupper($dt['name']) && $sd["https"]=="https") || true); ?>><?php __("HTTPS Only (redirect HTTP to HTTPS)"); ?></option>
|
||||
<option value="both"<?php selected((strtoupper($type)==strtoupper($dt['name']) && $sd["https"]=="both") || false); ?>><?php __("Both HTTP and HTTPS hosted at the same place"); ?></option>
|
||||
</select>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // foreach ?>
|
||||
|
||||
<tr class="trbtn">
|
||||
<td colspan="2"><input type="submit" class="inb ok" name="add" onclick='return check_type_selected();' value="<?php
|
||||
<td colspan="2"><button type="submit" class="inb ok" name="add" onclick='return check_type_selected();'><?php
|
||||
if ($isedit) {
|
||||
__("Edit this subdomain");
|
||||
} else {
|
||||
__("Add this subdomain");
|
||||
}
|
||||
?>" /></td>
|
||||
?></button>
|
||||
<?php if ($isedit) { ?>
|
||||
<button class="inb cancel" type="button" name="cancel" onclick="document.location = 'dom_edit.php?domain=<?php echo $domain; ?>'"><?php __("Cancel"); ?></button>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
|
|
@ -41,8 +41,11 @@ if (!$r=$dom->get_domain_all($domain)) {
|
|||
}
|
||||
$dom->unlock();
|
||||
|
||||
if (isset($_GET["msg"])) {
|
||||
$msg->raise("INFO","dom",$_GET["msg"]);
|
||||
}
|
||||
?>
|
||||
<h3><img src="images/dom.png" alt="" /> <?php printf(_("Manage %s"),$domain); ?></h3>
|
||||
<h3><i class="fas fa-globe-africa"></i> <?php printf(_("Manage %s"),$domain); ?></h3>
|
||||
<?php
|
||||
echo $msg->msg_html_all();
|
||||
?>
|
||||
|
@ -95,7 +98,7 @@ if ($r['dns_action']=='UPDATE') {?>
|
|||
<?php
|
||||
/*
|
||||
// Link hidden as long as the del_domain_cancel function is not complete
|
||||
<a href="dom_dodel.php?domain=<?php echo urlencode($domain);?>&del_cancel=true"><?php __("Clic here to cancel deletion");?></a>
|
||||
<a href="dom_dodel.php?domain=<?php echo urlencode($domain);?>&del_cancel=true"><?php __("Click here to cancel deletion");?></a>
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
|
@ -139,10 +142,11 @@ if ( ! empty($problems) ) {
|
|||
?>
|
||||
<table class="tlist" id="dom_edit_table">
|
||||
<thead>
|
||||
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
|
||||
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("HTTPS"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
|
||||
</thead>
|
||||
<?php
|
||||
$hasadvanced=false;
|
||||
// this loop expect the table to be sorted with advanced entries AFTER normal ones :
|
||||
for($i=0;$i<$r["nsub"];$i++) {
|
||||
if ($r["sub"][$i]["advanced"] && !$hasadvanced) {
|
||||
$hasadvanced=true;
|
||||
|
@ -152,7 +156,7 @@ if ($r["sub"][$i]["advanced"] && !$hasadvanced) {
|
|||
<p class="alert alert-warning"><?php __("The following entries are advanced ones, edit them at your own risks."); ?></p>
|
||||
<table class="tlist" id="dom_edit_table">
|
||||
<thead>
|
||||
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
|
||||
<tr><th colspan="2"> </th><th><?php __("Subdomain"); ?></th><th><?php __("HTTPS"); ?></th><th><?php __("Type");?></th><th><?php __("Status")?></th><th></th></tr>
|
||||
</thead>
|
||||
<?php
|
||||
|
||||
|
@ -179,7 +183,32 @@ $disabled_class=in_array(strtoupper($r['sub'][$i]['enable']),array('DISABLED','D
|
|||
</td>
|
||||
<?php } // end IF ==DELETE ?>
|
||||
<td><div class="retour-auto <?php echo $disabled_class; ?>"><a href="http://<?php echo $r["sub"][$i]["fqdn"] ?>" target="_blank"><?php echo $r["sub"][$i]["fqdn"]; ?></a></div></td>
|
||||
<td><div class="retour-auto <?php echo $disabled_class; ?>"><?php if ($r['sub'][$i]['type_desc']) { __($r['sub'][$i]['type_desc']); } else { echo __("ERROR, please check your server setup"); } ?>
|
||||
<td>
|
||||
<?php
|
||||
if (!$r["sub"][$i]["only_dns"]) {
|
||||
switch ($r["sub"][$i]["https"]) {
|
||||
case "http":
|
||||
__("HTTP only");
|
||||
break;
|
||||
case "https":
|
||||
__("HTTPS only");
|
||||
break;
|
||||
case "both":
|
||||
__("HTTP and HTTPS");
|
||||
break;
|
||||
default:
|
||||
if ($r['sub'][$i]['has_https_option']) {
|
||||
__("Unknown");
|
||||
}
|
||||
else {
|
||||
__('Not applicable');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td><div class="retour-auto <?php echo $disabled_class; ?>"><?php if ($r['sub'][$i]['type_desc']) { __($r['sub'][$i]['type_desc']); } else { echo __("ERROR, please check your server setup"); } ?>
|
||||
<?php
|
||||
//if ($r["sub"][$i]['type'] === 'VHOST') {
|
||||
if ( @$dt[$r["sub"][$i]['type']]['target'] === 'DIRECTORY') {
|
||||
|
@ -234,7 +263,15 @@ foreach ($problems as $pr => $lm) { // $problems can be empty but can't be null/
|
|||
echo "<script type='text/javascript'>$(\"tr[data-fqdn='".$pr."']\").addClass('alert-danger-tr');</script>\n";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<p> </p>
|
||||
<hr />
|
||||
<p>
|
||||
<a class="inb ssl" href="dom_sslpref.php?domain=<?php ehe($domain); ?>"><?php __("HTTPS Preferences for this domain");?></a>
|
||||
</p>
|
||||
|
||||
|
||||
</div> <!-- tabsdom-editsub -->
|
||||
|
||||
|
||||
<div id="tabsdom-addsub">
|
||||
|
@ -339,6 +376,12 @@ if (!$r['noerase']) {
|
|||
</div>
|
||||
<?php
|
||||
} ?>
|
||||
|
||||
<div id="tabsdom-ssl">
|
||||
<div id="sslpref">
|
||||
</div>
|
||||
</div> <!-- tabsdom-ssl -->
|
||||
|
||||
</div> <!-- tabsdom -->
|
||||
<script type="text/javascript">
|
||||
|
||||
|
@ -359,6 +402,14 @@ function update_dns_content(){
|
|||
}
|
||||
}
|
||||
|
||||
function update_ssl_content(){
|
||||
$.ajax({
|
||||
url: "dom_ssl.inc.php?domain=<?php echo urlencode($domain)?>",
|
||||
}).done(function( html ) {
|
||||
$("#sslpref").html(html);
|
||||
});
|
||||
}
|
||||
|
||||
function force_update_dns_content(){
|
||||
get_dns_content = 1;
|
||||
$("#divdumpdns").html('In progress...');
|
||||
|
|
|
@ -0,0 +1,126 @@
|
|||
<?php
|
||||
/*
|
||||
----------------------------------------------------------------------
|
||||
LICENSE
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License (GPL)
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* Form to get/set HTTPS preferences
|
||||
*
|
||||
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||
*/
|
||||
|
||||
require_once("../class/config.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", (empty($domain)?"":$domain) ),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if (!$r=$dom->get_domain_all($domain)) {
|
||||
$dom->unlock();
|
||||
require_once("head.php");
|
||||
echo $msg->msg_html_all();
|
||||
include('foot.php');
|
||||
die();
|
||||
}
|
||||
$dom->unlock();
|
||||
|
||||
$haserror=false;
|
||||
if (count($_POST)) {
|
||||
$dom->lock();
|
||||
// get fields from the posted form:
|
||||
foreach($r["sub"] as $subdomain) {
|
||||
if (isset($_POST["ssl_".$subdomain["id"]])) {
|
||||
if (!$dom->set_subdomain_ssl_provider($subdomain["id"],$_POST["ssl_".$subdomain["id"]])) {
|
||||
$haserror=true;
|
||||
}
|
||||
// errors will be shown below
|
||||
}
|
||||
}
|
||||
$dom->unlock();
|
||||
if ($haserror) {
|
||||
require_once("head.php");
|
||||
echo $msg->msg_html_all();
|
||||
} else {
|
||||
header("Location: dom_edit.php?domain=".eue($domain,false)."&msg=".eue(_("Your HTTPS preferences have been set"),false));
|
||||
exit();
|
||||
}
|
||||
} // post ?
|
||||
|
||||
require_once("head.php");
|
||||
|
||||
?>
|
||||
<h3><i class="fas fa-globe-africa"></i> <?php printf(_("Manage %s HTTPS preferences"),ehe($domain,false)); ?></h3>
|
||||
|
||||
<p class="alert alert-info"><?php __("These parameters are for advanced user who want to choose specific certificate provider. <br />Usually you'd want to click 'edit' in front of a subdomain to choose between HTTP and HTTPS by default."); ?></p>
|
||||
<p>
|
||||
<?php __("For each subdomain that may be available through HTTPS, please choose which certificate provider you want to use."); ?>
|
||||
<br />
|
||||
<?php __("please note that you only see a provider if you have a valid certificate for this domain"); ?>
|
||||
</p>
|
||||
|
||||
<form action="dom_sslpref.php" method="post" name="main" id="main">
|
||||
<input type="hidden" name="domain" value="<?php ehe($domain); ?>" />
|
||||
<?php csrf_get(); ?>
|
||||
<table class="tlist" id="dom_edit_ssl">
|
||||
<thead>
|
||||
<tr><th><?php __("Subdomain"); ?></th><th><?php __("HTTPS Preference"); ?></th></tr>
|
||||
</thead>
|
||||
<?php
|
||||
|
||||
for($i=0;$i<$r["nsub"];$i++) {
|
||||
if (!$r["sub"][$i]["only_dns"]) {
|
||||
continue;
|
||||
}
|
||||
$fqdn=$r["sub"][$i]["name"].(($r["sub"][$i]["name"])?".":"").$r["name"];
|
||||
$certs = $ssl->get_valid_certs($fqdn);
|
||||
|
||||
echo "<tr>";
|
||||
echo "<td>".$fqdn."</td>";
|
||||
echo "<td><select name=\"ssl_".$r["sub"][$i]["id"]."\" id=\"ssl_".$r["sub"][$i]["id"]."\">";
|
||||
echo "<option value=\"\">"._("-- no HTTPS certificate provider preference --")."</option>";
|
||||
$providers=array();
|
||||
foreach($certs as $cert) {
|
||||
if ($cert["provider"] && $cert["provider"]!="snakeoil" && !isset($providers[$cert["provider"]])) {
|
||||
$providers[$cert["provider"]]=1;
|
||||
echo "<option value=\"".$cert["provider"]."\"";
|
||||
selected($r["sub"][$i]["provider"]==$cert["provider"]);
|
||||
echo ">"._("Provider:")." ".$cert["provider"]."</option>";
|
||||
}
|
||||
}
|
||||
echo "</select>";
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<tr><td></td>
|
||||
<td>
|
||||
<p>
|
||||
<button type="submit" class="inb ok" name="go"><?php __("Set my HTTPS certificate preferences"); ?></button>
|
||||
<button type="button" class="inb cancel" name="cancel" onclick="document.location='dom_edit.php?domain=<?php eue($domain); ?>';"><?php __("Cancel"); ?></button>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
require_once("foot.php");
|
||||
?>
|
|
@ -35,11 +35,14 @@ getFields($fields);
|
|||
|
||||
// here we get a dynamic-named value
|
||||
$dynamicvar="t_$type";
|
||||
$httpsvar="https_$type";
|
||||
$fields = array (
|
||||
"$dynamicvar" => array ("post", "string", ""),
|
||||
"$httpsvar" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
$value=$$dynamicvar;
|
||||
$https=$$httpsvar;
|
||||
// The dynamic value is now in $value
|
||||
|
||||
$dom->lock();
|
||||
|
@ -52,7 +55,7 @@ if ( (!isset($isinvited) || !$isinvited) && $dt[strtolower($type)]["enable"] !=
|
|||
}
|
||||
|
||||
if (empty($sub_domain_id)) $sub_domain_id=null;
|
||||
$r=$dom->set_sub_domain($domain,$sub,$type,$value, $sub_domain_id);
|
||||
$r=$dom->set_sub_domain($domain, $sub, $type, $value, $sub_domain_id, $https);
|
||||
|
||||
$dom->unlock();
|
||||
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
require_once("../class/config.php");
|
||||
|
||||
$fields = array (
|
||||
"sub_id" => array ("post", "integer", ""),
|
||||
"status" => array ("post", "string", ""),
|
||||
"sub_id" => array ("get", "integer", ""),
|
||||
"status" => array ("get", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ if ( $val['enabled']) {
|
|||
<?php __("Here are some configuration information you will need to configure your FTP application.");?>
|
||||
|
||||
<ul>
|
||||
<li><?php echo '<b>'._("Server:").'</b> '.$ftp->srv_name; ?></li>
|
||||
<li><?php echo '<b>'._("Server:").'</b> '.$ftp->srv_proftpd; ?></li>
|
||||
<li><?php echo '<b>'._("FTP mode for data transfer:").'</b> '._("passive");?></li>
|
||||
<li><?php echo '<b>'._("User/password:").'</b> '._("the one you specified when you created the account. You can edit them in the panel.");?></li>
|
||||
</ul>
|
||||
|
|
|
@ -25,42 +25,10 @@
|
|||
|
||||
if (!isset($charset) || ! $charset) $charset="UTF-8";
|
||||
@header("Content-Type: text/html; charset=$charset");
|
||||
|
||||
require_once("html-head.php");
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||
<title><?php __("AlternC Control Panel"); ?></title>
|
||||
|
||||
<link rel="stylesheet" href="js/jquery_ui/css/redmond/jquery-ui-1.10.3.custom.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<?php
|
||||
if (file_exists("styles/style-custom.css") ) {
|
||||
echo '<link rel="stylesheet" href="styles/style-custom.css" type="text/css" />';
|
||||
}
|
||||
|
||||
$favicon = variable_get('favicon', 'favicon.ico' ,'You can specify a favicon, for example /images/my_logo.ico', array('desc'=>'URL','type'=>'string'));
|
||||
|
||||
?>
|
||||
|
||||
<link rel="stylesheet" href="styles/style-empty.css" type="text/css" title="Default - Desktop TNG"/>
|
||||
<link rel="alternate stylesheet" href="styles/style-bluedesktop10.css" type="text/css" title="Blue Desktop 1.0" />
|
||||
<link rel="alternate stylesheet" href="styles/style-hw.css" type="text/css" title="Halloween" />
|
||||
|
||||
<link rel="Shortcut Icon" href="<?php echo $favicon;?>" type="image/ico" />
|
||||
<link rel="icon" href="<?php echo $favicon;?>" type="image/ico" />
|
||||
|
||||
<script src="js/alternc.js" type="text/javascript" ></script>
|
||||
<script src="js/jquery.min_embedded.js" type="text/javascript"></script>
|
||||
<script src="js/jquery_ui/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/jquery.tablesorter.min.js" type="text/javascript"></script>
|
||||
|
||||
<link href="prettify/prettify.css" type="text/css" rel="stylesheet" />
|
||||
<script src="prettify/prettify.js" type="text/javascript"></script>
|
||||
|
||||
</head>
|
||||
<body onload="prettyPrint()">
|
||||
<body>
|
||||
<?php
|
||||
|
||||
if ($isinvited && isset($oldid) && !empty($oldid) && $oldid!=$cuid ) {
|
||||
|
|
|
@ -37,7 +37,6 @@ if(empty($dir)) {
|
|||
$is_include=true;
|
||||
include("hta_add.php");
|
||||
} else {
|
||||
$msg->raise("INFO", "hta", _("Folder %s is protected"), $dir);
|
||||
include("hta_list.php");
|
||||
}
|
||||
?>
|
||||
|
|
|
@ -76,7 +76,7 @@ for($i=0;$i<count($r);$i++){
|
|||
?>
|
||||
</table>
|
||||
<br />
|
||||
<input type="submit" class="ina up" name="submit" value="<?php __("Unprotect the checked folders"); ?>" />
|
||||
<input type="submit" class="ina unlock" name="submit" value="<?php __("Unprotect the checked folders"); ?>" />
|
||||
<span class="ina add"><a href="hta_add.php"><?php __("Protect a folder"); ?></a></span>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
/*
|
||||
----------------------------------------------------------------------
|
||||
LICENSE
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License (GPL)
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if (!defined("ALTERNC_PANEL")) exit(); // must be included ;)
|
||||
|
||||
/**
|
||||
* main HEADER of all HTML page of the panel
|
||||
*
|
||||
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" lang="<?php echo $lang; ?>">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||
<title><?php __("AlternC Control Panel"); ?></title>
|
||||
|
||||
<link rel="stylesheet" href="/javascript/jquery-ui-themes/redmond/jquery-ui.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/solid.css" type="text/css" /><!-- fontawesome solid font -->
|
||||
<link rel="stylesheet" href="styles/fontawesome.css" type="text/css" />
|
||||
<?php
|
||||
if (file_exists("styles/style-custom.css") ) {
|
||||
echo '<link rel="stylesheet" href="styles/style-custom.css" type="text/css" />';
|
||||
}
|
||||
if (isset($addhead) && count($addhead['css'])) {
|
||||
foreach($addhead['css'] as $css) echo $css."\n";
|
||||
}
|
||||
$favicon = variable_get('favicon', 'favicon.ico' ,'You can specify a favicon, for example /images/my_logo.ico', array('desc'=>'URL','type'=>'string'));
|
||||
?>
|
||||
|
||||
<link rel="Shortcut Icon" href="<?php echo $favicon;?>" type="image/ico" />
|
||||
<link rel="icon" href="<?php echo $favicon;?>" type="image/ico" />
|
||||
|
||||
<script src="js/alternc.js" type="text/javascript" ></script>
|
||||
<script src="/javascript/jquery/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="/javascript/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<script src="/javascript/jquery-tablesorter/jquery.tablesorter.min.js" type="text/javascript"></script>
|
||||
<?php
|
||||
if (isset($addhead) && count($addhead['js'])) {
|
||||
foreach($addhead['js'] as $js) echo $js."\n";
|
||||
}
|
||||
?>
|
||||
</head>
|
Before Width: | Height: | Size: 561 B After Width: | Height: | Size: 561 B |
|
@ -43,23 +43,8 @@ if (!isset($restrictip)) {
|
|||
if (!isset($charset) || ! $charset) $charset="UTF-8";
|
||||
@header("Content-Type: text/html; charset=$charset");
|
||||
|
||||
require_once("html-head.php");
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>AlternC Desktop</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<?php
|
||||
if (file_exists("styles/style-custom.css") ) {
|
||||
echo '<link rel="stylesheet" href="styles/style-custom.css" type="text/css" />';
|
||||
}
|
||||
?>
|
||||
|
||||
<script type="text/javascript" src="js/alternc.js"></script>
|
||||
<script src="js/jquery.min_embedded.js" type="text/javascript"></script>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
|
||||
</head>
|
||||
<body class="login_page">
|
||||
<div id="global">
|
||||
|
||||
|
@ -102,7 +87,8 @@ if ( empty($logo) || ! $logo ) {
|
|||
</div>
|
||||
</div>
|
||||
<div class="block_login_page">
|
||||
|
||||
<a href="request_reset.php"><?php echo _('Request new password'); ?></a>
|
||||
<br />
|
||||
<?php __("You must accept the session cookie to log-in"); ?>
|
||||
<br />
|
||||
<?php echo _("If you want to use a different language, choose it in the list below"); ?>
|
||||
|
@ -120,7 +106,7 @@ if ( empty($logo) || ! $logo ) {
|
|||
<div class="block_login_page">
|
||||
<?php
|
||||
|
||||
// Here we used to have a form to enter the squirrelmail's webmail.
|
||||
// Here we used to have a form to enter the webmail.
|
||||
// Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin.
|
||||
$res=$hooks->invoke("hook_admin_webmail");
|
||||
if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php
|
||||
<?php
|
||||
|
||||
/*
|
||||
----------------------------------------------------------------------
|
||||
|
@ -18,10 +18,10 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
/**
|
||||
* List and edit IP-Authentication list for this account
|
||||
*
|
||||
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||
*
|
||||
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||
*/
|
||||
|
||||
require_once("../class/config.php");
|
||||
|
@ -90,7 +90,7 @@ echo $msg->msg_html_all();
|
|||
<th><?php __("Access type");?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<?php
|
||||
<?php
|
||||
foreach ($lac as $ll) {
|
||||
echo "<tr class='lst' >";
|
||||
echo "<td><span title=\"{$list_ip[$ll['authorised_ip_id']]['ip_human']}\">".$list_ip[$ll['authorised_ip_id']]['infos'];
|
||||
|
@ -133,7 +133,7 @@ echo $msg->msg_html_all();
|
|||
</select>
|
||||
<?php } else { ?>
|
||||
<?php foreach ($a['values'] as $k => $v) { ?>
|
||||
<label><b><?php ehe($v); ?></b></label>
|
||||
<label><b><?php ehe($v); ?></b></label>
|
||||
<input type="hidden" name="s_affect_<?php ehe($a['protocol']);?>" id="s_affect_<?php ehe($a['protocol']);?>" value="<?php ehe($k); ?>" readonly="readonly" />
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
@ -147,7 +147,7 @@ echo $msg->msg_html_all();
|
|||
<p>
|
||||
<select name="s_ipsub">
|
||||
<?php foreach ($list_ip as $li) { ?>
|
||||
<option value="<?php echo $li['id']; ?>"><?php ehe($li['infos']);
|
||||
<option value="<?php echo $li['id']; ?>"><?php ehe($li['infos']);
|
||||
//echo " - ".$li['ip'] ; if (!($li['subnet']==32 || $li['subnet'] == 128)) echo "/".$li['subnet'];
|
||||
?></option>
|
||||
<?php } ?>
|
||||
|
@ -170,7 +170,7 @@ echo $msg->msg_html_all();
|
|||
<h3><?php __("Known IP and networks");?></h3>
|
||||
<table class="tlist">
|
||||
<tr><th><?php __("Name"); ?></th><th><?php __("IP or network"); ?></th><th><?php __("Type"); ?></th><th colspan='2'></th></tr>
|
||||
<?php
|
||||
<?php
|
||||
foreach($list_ip as $i) {
|
||||
if (checkip($i['ip'])) {
|
||||
if ($i['subnet']==32) {
|
||||
|
@ -207,8 +207,8 @@ foreach($list_ip as $i) {
|
|||
|
||||
<input type="hidden" name="id" value="" id="edit_id" />
|
||||
<table class="tlistb">
|
||||
<tr><th><?php __("Name"); ?></th><th><?php __("IP or network. <i>IPv4, IPv6 and subnet allowed</i>"); ?></th><th></th></tr>
|
||||
|
||||
<tr><th><?php __("IP or network. <i>IPv4, IPv6 and subnet allowed</i>"); ?></th><th><?php __("Name"); ?></th><th></th></tr>
|
||||
|
||||
<tr class="lst2">
|
||||
<td><input type="text" size="20" maxlength="39" name="ipsub" id="edit_ip" /></td>
|
||||
<td><input type="text" size="25" maxlength="200" name="infos" id="edit_infos" /></td>
|
||||
|
@ -227,7 +227,7 @@ foreach($list_ip as $i) {
|
|||
}
|
||||
|
||||
function edit_ip(id, iph, infos) {
|
||||
if ( id != '' ) {
|
||||
if ( id != '' ) {
|
||||
$("#reset_edit_ip").show();
|
||||
}
|
||||
$("#edit_id").val(id);
|
||||
|
|
|
@ -103,7 +103,10 @@ function shuffleArray(array) {
|
|||
}
|
||||
|
||||
function generate_password_html(id, size, field1, field2, classcount) {
|
||||
$("#z"+id).html("<input id='inp"+id+"' type='textbox' size=8 readonly='readonly' value='"+generate_password(size, classcount)+"' /> <a href='javascript:generate_password_html("+id+","+size+",\""+field1+"\",\""+field2+"\");'><img src='/images/refresh.png' alt='Refresh' title='Refresh'/></a>");
|
||||
$("#z"+id).html("<input id='inp"+id+
|
||||
"' type='textbox' size=8 readonly='readonly' value='"+generate_password(size, classcount)+
|
||||
"' /> <a href='javascript:generate_password_html("+id+","+size+",\""+field1+"\",\""+field2+
|
||||
"\");'><img src='/images/refresh.png' alt='Refresh' title='Refresh'/></a>");
|
||||
$("#inp"+id).focus();
|
||||
$("#inp"+id).select();
|
||||
if (field1 != "") { $(field1).val( $("#inp"+id).val() ); }
|
||||
|
|
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 4.4 KiB |
|
@ -1,450 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>jQuery UI Example Page</title>
|
||||
<link href="css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet">
|
||||
<script src="js/jquery-1.9.1.js"></script>
|
||||
<script src="js/jquery-ui-1.10.3.custom.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
$( "#accordion" ).accordion();
|
||||
|
||||
|
||||
|
||||
var availableTags = [
|
||||
"ActionScript",
|
||||
"AppleScript",
|
||||
"Asp",
|
||||
"BASIC",
|
||||
"C",
|
||||
"C++",
|
||||
"Clojure",
|
||||
"COBOL",
|
||||
"ColdFusion",
|
||||
"Erlang",
|
||||
"Fortran",
|
||||
"Groovy",
|
||||
"Haskell",
|
||||
"Java",
|
||||
"JavaScript",
|
||||
"Lisp",
|
||||
"Perl",
|
||||
"PHP",
|
||||
"Python",
|
||||
"Ruby",
|
||||
"Scala",
|
||||
"Scheme"
|
||||
];
|
||||
$( "#autocomplete" ).autocomplete({
|
||||
source: availableTags
|
||||
});
|
||||
|
||||
|
||||
|
||||
$( "#button" ).button();
|
||||
$( "#radioset" ).buttonset();
|
||||
|
||||
|
||||
|
||||
$( "#tabs" ).tabs();
|
||||
|
||||
|
||||
|
||||
$( "#dialog" ).dialog({
|
||||
autoOpen: false,
|
||||
width: 400,
|
||||
buttons: [
|
||||
{
|
||||
text: "Ok",
|
||||
click: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
},
|
||||
{
|
||||
text: "Cancel",
|
||||
click: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
// Link to open the dialog
|
||||
$( "#dialog-link" ).click(function( event ) {
|
||||
$( "#dialog" ).dialog( "open" );
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
|
||||
|
||||
$( "#datepicker" ).datepicker({
|
||||
inline: true
|
||||
});
|
||||
|
||||
|
||||
|
||||
$( "#slider" ).slider({
|
||||
range: true,
|
||||
values: [ 17, 67 ]
|
||||
});
|
||||
|
||||
|
||||
|
||||
$( "#progressbar" ).progressbar({
|
||||
value: 20
|
||||
});
|
||||
|
||||
|
||||
// Hover states on the static widgets
|
||||
$( "#dialog-link, #icons li" ).hover(
|
||||
function() {
|
||||
$( this ).addClass( "ui-state-hover" );
|
||||
},
|
||||
function() {
|
||||
$( this ).removeClass( "ui-state-hover" );
|
||||
}
|
||||
);
|
||||
});
|
||||
</script>
|
||||
<style>
|
||||
body{
|
||||
font: 62.5% "Trebuchet MS", sans-serif;
|
||||
margin: 50px;
|
||||
}
|
||||
.demoHeaders {
|
||||
margin-top: 2em;
|
||||
}
|
||||
#dialog-link {
|
||||
padding: .4em 1em .4em 20px;
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
}
|
||||
#dialog-link span.ui-icon {
|
||||
margin: 0 5px 0 0;
|
||||
position: absolute;
|
||||
left: .2em;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
}
|
||||
#icons {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
#icons li {
|
||||
margin: 2px;
|
||||
position: relative;
|
||||
padding: 4px 0;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
list-style: none;
|
||||
}
|
||||
#icons span.ui-icon {
|
||||
float: left;
|
||||
margin: 0 4px;
|
||||
}
|
||||
.fakewindowcontain .ui-widget-overlay {
|
||||
position: absolute;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Welcome to jQuery UI!</h1>
|
||||
|
||||
<div class="ui-widget">
|
||||
<p>This page demonstrates the widgets you downloaded using the theme you selected in the download builder. We've included and linked to minified versions of <a href="js/jquery-1.9.1.js">jQuery</a>, your personalized copy of <a href="js/jquery-ui-1.10.3.custom.min.js">jQuery UI (js/jquery-ui-1.10.3.custom.min.js)</a>, and <a href="css/smoothness/jquery-ui-1.10.3.custom.min.css">css/smoothness/jquery-ui-1.10.3.custom.min.css</a> which imports the entire jQuery UI CSS Framework. You can choose to link a subset of the CSS Framework depending on your needs. </p>
|
||||
<p>You've downloaded components and a theme that are compatible with jQuery 1.6+. Please make sure you are using jQuery 1.6+ in your production environment.</p>
|
||||
</div>
|
||||
|
||||
<h1>YOUR COMPONENTS:</h1>
|
||||
|
||||
|
||||
<!-- Accordion -->
|
||||
<h2 class="demoHeaders">Accordion</h2>
|
||||
<div id="accordion">
|
||||
<h3>First</h3>
|
||||
<div>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</div>
|
||||
<h3>Second</h3>
|
||||
<div>Phasellus mattis tincidunt nibh.</div>
|
||||
<h3>Third</h3>
|
||||
<div>Nam dui erat, auctor a, dignissim quis.</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Autocomplete -->
|
||||
<h2 class="demoHeaders">Autocomplete</h2>
|
||||
<div>
|
||||
<input id="autocomplete" title="type "a"">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Button -->
|
||||
<h2 class="demoHeaders">Button</h2>
|
||||
<button id="button">A button element</button>
|
||||
<form style="margin-top: 1em;">
|
||||
<div id="radioset">
|
||||
<input type="radio" id="radio1" name="radio"><label for="radio1">Choice 1</label>
|
||||
<input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">Choice 2</label>
|
||||
<input type="radio" id="radio3" name="radio"><label for="radio3">Choice 3</label>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<!-- Tabs -->
|
||||
<h2 class="demoHeaders">Tabs</h2>
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1">First</a></li>
|
||||
<li><a href="#tabs-2">Second</a></li>
|
||||
<li><a href="#tabs-3">Third</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
|
||||
<div id="tabs-2">Phasellus mattis tincidunt nibh. Cras orci urna, blandit id, pretium vel, aliquet ornare, felis. Maecenas scelerisque sem non nisl. Fusce sed lorem in enim dictum bibendum.</div>
|
||||
<div id="tabs-3">Nam dui erat, auctor a, dignissim quis, sollicitudin eu, felis. Pellentesque nisi urna, interdum eget, sagittis et, consequat vestibulum, lacus. Mauris porttitor ullamcorper augue.</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- Dialog NOTE: Dialog is not generated by UI in this demo so it can be visually styled in themeroller-->
|
||||
<h2 class="demoHeaders">Dialog</h2>
|
||||
<p><a href="#" id="dialog-link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-newwin"></span>Open Dialog</a></p>
|
||||
|
||||
<h2 class="demoHeaders">Overlay and Shadow Classes <em>(not currently used in UI widgets)</em></h2>
|
||||
<div style="position: relative; width: 96%; height: 200px; padding:1% 2%; overflow:hidden;" class="fakewindowcontain">
|
||||
<p>Lorem ipsum dolor sit amet, Nulla nec tortor. Donec id elit quis purus consectetur consequat. </p><p>Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. </p><p>Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. </p><p>Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. </p><p>Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. Aliquam ante. </p><p>Suspendisse scelerisque dui nec velit. Duis augue augue, gravida euismod, vulputate ac, facilisis id, sem. Morbi in orci. Nulla purus lacus, pulvinar vel, malesuada ac, mattis nec, quam. Nam molestie scelerisque quam. Nullam feugiat cursus lacus.orem ipsum dolor sit amet, consectetur adipiscing elit. Donec libero risus, commodo vitae, pharetra mollis, posuere eu, pede. Nulla nec tortor. Donec id elit quis purus consectetur consequat. Nam congue semper tellus. Sed erat dolor, dapibus sit amet, venenatis ornare, ultrices ut, nisi. </p>
|
||||
|
||||
<!-- ui-dialog -->
|
||||
<div class="ui-overlay"><div class="ui-widget-overlay"></div><div class="ui-widget-shadow ui-corner-all" style="width: 302px; height: 152px; position: absolute; left: 50px; top: 30px;"></div></div>
|
||||
<div style="position: absolute; width: 280px; height: 130px;left: 50px; top: 30px; padding: 10px;" class="ui-widget ui-widget-content ui-corner-all">
|
||||
<div class="ui-dialog-content ui-widget-content" style="background: none; border: 0;">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- ui-dialog -->
|
||||
<div id="dialog" title="Dialog Title">
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<h2 class="demoHeaders">Framework Icons (content color preview)</h2>
|
||||
<ul id="icons" class="ui-widget ui-helper-clearfix">
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-n"><span class="ui-icon ui-icon-carat-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-ne"><span class="ui-icon ui-icon-carat-1-ne"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-e"><span class="ui-icon ui-icon-carat-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-se"><span class="ui-icon ui-icon-carat-1-se"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-s"><span class="ui-icon ui-icon-carat-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-sw"><span class="ui-icon ui-icon-carat-1-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-w"><span class="ui-icon ui-icon-carat-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-1-nw"><span class="ui-icon ui-icon-carat-1-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-2-n-s"><span class="ui-icon ui-icon-carat-2-n-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-carat-2-e-w"><span class="ui-icon ui-icon-carat-2-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-n"><span class="ui-icon ui-icon-triangle-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-ne"><span class="ui-icon ui-icon-triangle-1-ne"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-e"><span class="ui-icon ui-icon-triangle-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-se"><span class="ui-icon ui-icon-triangle-1-se"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-s"><span class="ui-icon ui-icon-triangle-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-sw"><span class="ui-icon ui-icon-triangle-1-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-w"><span class="ui-icon ui-icon-triangle-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-1-nw"><span class="ui-icon ui-icon-triangle-1-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-2-n-s"><span class="ui-icon ui-icon-triangle-2-n-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-triangle-2-e-w"><span class="ui-icon ui-icon-triangle-2-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-n"><span class="ui-icon ui-icon-arrow-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-ne"><span class="ui-icon ui-icon-arrow-1-ne"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-e"><span class="ui-icon ui-icon-arrow-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-se"><span class="ui-icon ui-icon-arrow-1-se"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-s"><span class="ui-icon ui-icon-arrow-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-sw"><span class="ui-icon ui-icon-arrow-1-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-w"><span class="ui-icon ui-icon-arrow-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-1-nw"><span class="ui-icon ui-icon-arrow-1-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-n-s"><span class="ui-icon ui-icon-arrow-2-n-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-ne-sw"><span class="ui-icon ui-icon-arrow-2-ne-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-e-w"><span class="ui-icon ui-icon-arrow-2-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-2-se-nw"><span class="ui-icon ui-icon-arrow-2-se-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-n"><span class="ui-icon ui-icon-arrowstop-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-e"><span class="ui-icon ui-icon-arrowstop-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-s"><span class="ui-icon ui-icon-arrowstop-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowstop-1-w"><span class="ui-icon ui-icon-arrowstop-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-n"><span class="ui-icon ui-icon-arrowthick-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-ne"><span class="ui-icon ui-icon-arrowthick-1-ne"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-e"><span class="ui-icon ui-icon-arrowthick-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-se"><span class="ui-icon ui-icon-arrowthick-1-se"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-s"><span class="ui-icon ui-icon-arrowthick-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-sw"><span class="ui-icon ui-icon-arrowthick-1-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-w"><span class="ui-icon ui-icon-arrowthick-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-1-nw"><span class="ui-icon ui-icon-arrowthick-1-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-n-s"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-ne-sw"><span class="ui-icon ui-icon-arrowthick-2-ne-sw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-e-w"><span class="ui-icon ui-icon-arrowthick-2-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthick-2-se-nw"><span class="ui-icon ui-icon-arrowthick-2-se-nw"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-n"><span class="ui-icon ui-icon-arrowthickstop-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-e"><span class="ui-icon ui-icon-arrowthickstop-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-s"><span class="ui-icon ui-icon-arrowthickstop-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowthickstop-1-w"><span class="ui-icon ui-icon-arrowthickstop-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-w"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-n"><span class="ui-icon ui-icon-arrowreturnthick-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-e"><span class="ui-icon ui-icon-arrowreturnthick-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturnthick-1-s"><span class="ui-icon ui-icon-arrowreturnthick-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-w"><span class="ui-icon ui-icon-arrowreturn-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-n"><span class="ui-icon ui-icon-arrowreturn-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-e"><span class="ui-icon ui-icon-arrowreturn-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowreturn-1-s"><span class="ui-icon ui-icon-arrowreturn-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-w"><span class="ui-icon ui-icon-arrowrefresh-1-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-n"><span class="ui-icon ui-icon-arrowrefresh-1-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-e"><span class="ui-icon ui-icon-arrowrefresh-1-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrowrefresh-1-s"><span class="ui-icon ui-icon-arrowrefresh-1-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-4"><span class="ui-icon ui-icon-arrow-4"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-arrow-4-diag"><span class="ui-icon ui-icon-arrow-4-diag"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-extlink"><span class="ui-icon ui-icon-extlink"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-newwin"><span class="ui-icon ui-icon-newwin"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-refresh"><span class="ui-icon ui-icon-refresh"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-shuffle"><span class="ui-icon ui-icon-shuffle"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-transfer-e-w"><span class="ui-icon ui-icon-transfer-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-transferthick-e-w"><span class="ui-icon ui-icon-transferthick-e-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-folder-collapsed"><span class="ui-icon ui-icon-folder-collapsed"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-folder-open"><span class="ui-icon ui-icon-folder-open"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-document"><span class="ui-icon ui-icon-document"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-document-b"><span class="ui-icon ui-icon-document-b"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-note"><span class="ui-icon ui-icon-note"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-mail-closed"><span class="ui-icon ui-icon-mail-closed"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-mail-open"><span class="ui-icon ui-icon-mail-open"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-suitcase"><span class="ui-icon ui-icon-suitcase"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-comment"><span class="ui-icon ui-icon-comment"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-person"><span class="ui-icon ui-icon-person"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-print"><span class="ui-icon ui-icon-print"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-trash"><span class="ui-icon ui-icon-trash"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-locked"><span class="ui-icon ui-icon-locked"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-unlocked"><span class="ui-icon ui-icon-unlocked"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-bookmark"><span class="ui-icon ui-icon-bookmark"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-tag"><span class="ui-icon ui-icon-tag"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-home"><span class="ui-icon ui-icon-home"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-flag"><span class="ui-icon ui-icon-flag"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-calculator"><span class="ui-icon ui-icon-calculator"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-cart"><span class="ui-icon ui-icon-cart"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-pencil"><span class="ui-icon ui-icon-pencil"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-clock"><span class="ui-icon ui-icon-clock"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-disk"><span class="ui-icon ui-icon-disk"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-calendar"><span class="ui-icon ui-icon-calendar"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-zoomin"><span class="ui-icon ui-icon-zoomin"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-zoomout"><span class="ui-icon ui-icon-zoomout"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-search"><span class="ui-icon ui-icon-search"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-wrench"><span class="ui-icon ui-icon-wrench"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-gear"><span class="ui-icon ui-icon-gear"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-heart"><span class="ui-icon ui-icon-heart"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-star"><span class="ui-icon ui-icon-star"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-link"><span class="ui-icon ui-icon-link"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-cancel"><span class="ui-icon ui-icon-cancel"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-plus"><span class="ui-icon ui-icon-plus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-plusthick"><span class="ui-icon ui-icon-plusthick"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-minus"><span class="ui-icon ui-icon-minus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-minusthick"><span class="ui-icon ui-icon-minusthick"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-close"><span class="ui-icon ui-icon-close"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-closethick"><span class="ui-icon ui-icon-closethick"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-key"><span class="ui-icon ui-icon-key"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-lightbulb"><span class="ui-icon ui-icon-lightbulb"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-scissors"><span class="ui-icon ui-icon-scissors"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-clipboard"><span class="ui-icon ui-icon-clipboard"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-copy"><span class="ui-icon ui-icon-copy"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-contact"><span class="ui-icon ui-icon-contact"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-image"><span class="ui-icon ui-icon-image"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-video"><span class="ui-icon ui-icon-video"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-script"><span class="ui-icon ui-icon-script"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-alert"><span class="ui-icon ui-icon-alert"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-info"><span class="ui-icon ui-icon-info"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-notice"><span class="ui-icon ui-icon-notice"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-help"><span class="ui-icon ui-icon-help"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-check"><span class="ui-icon ui-icon-check"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-bullet"><span class="ui-icon ui-icon-bullet"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-radio-off"><span class="ui-icon ui-icon-radio-off"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-radio-on"><span class="ui-icon ui-icon-radio-on"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-pin-w"><span class="ui-icon ui-icon-pin-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-pin-s"><span class="ui-icon ui-icon-pin-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-play"><span class="ui-icon ui-icon-play"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-pause"><span class="ui-icon ui-icon-pause"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-next"><span class="ui-icon ui-icon-seek-next"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-prev"><span class="ui-icon ui-icon-seek-prev"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-end"><span class="ui-icon ui-icon-seek-end"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-seek-first"><span class="ui-icon ui-icon-seek-first"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-stop"><span class="ui-icon ui-icon-stop"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-eject"><span class="ui-icon ui-icon-eject"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-volume-off"><span class="ui-icon ui-icon-volume-off"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-volume-on"><span class="ui-icon ui-icon-volume-on"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-power"><span class="ui-icon ui-icon-power"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-signal-diag"><span class="ui-icon ui-icon-signal-diag"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-signal"><span class="ui-icon ui-icon-signal"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-0"><span class="ui-icon ui-icon-battery-0"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-1"><span class="ui-icon ui-icon-battery-1"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-2"><span class="ui-icon ui-icon-battery-2"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-battery-3"><span class="ui-icon ui-icon-battery-3"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-plus"><span class="ui-icon ui-icon-circle-plus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-minus"><span class="ui-icon ui-icon-circle-minus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-close"><span class="ui-icon ui-icon-circle-close"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-e"><span class="ui-icon ui-icon-circle-triangle-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-s"><span class="ui-icon ui-icon-circle-triangle-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-w"><span class="ui-icon ui-icon-circle-triangle-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-triangle-n"><span class="ui-icon ui-icon-circle-triangle-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-e"><span class="ui-icon ui-icon-circle-arrow-e"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-s"><span class="ui-icon ui-icon-circle-arrow-s"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-w"><span class="ui-icon ui-icon-circle-arrow-w"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-arrow-n"><span class="ui-icon ui-icon-circle-arrow-n"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-zoomin"><span class="ui-icon ui-icon-circle-zoomin"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-zoomout"><span class="ui-icon ui-icon-circle-zoomout"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circle-check"><span class="ui-icon ui-icon-circle-check"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-plus"><span class="ui-icon ui-icon-circlesmall-plus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-minus"><span class="ui-icon ui-icon-circlesmall-minus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-circlesmall-close"><span class="ui-icon ui-icon-circlesmall-close"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-plus"><span class="ui-icon ui-icon-squaresmall-plus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-minus"><span class="ui-icon ui-icon-squaresmall-minus"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-squaresmall-close"><span class="ui-icon ui-icon-squaresmall-close"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-dotted-vertical"><span class="ui-icon ui-icon-grip-dotted-vertical"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-dotted-horizontal"><span class="ui-icon ui-icon-grip-dotted-horizontal"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-solid-vertical"><span class="ui-icon ui-icon-grip-solid-vertical"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-solid-horizontal"><span class="ui-icon ui-icon-grip-solid-horizontal"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-gripsmall-diagonal-se"><span class="ui-icon ui-icon-gripsmall-diagonal-se"></span></li>
|
||||
<li class="ui-state-default ui-corner-all" title=".ui-icon-grip-diagonal-se"><span class="ui-icon ui-icon-grip-diagonal-se"></span></li>
|
||||
</ul>
|
||||
|
||||
|
||||
<!-- Slider -->
|
||||
<h2 class="demoHeaders">Slider</h2>
|
||||
<div id="slider"></div>
|
||||
|
||||
|
||||
|
||||
<!-- Datepicker -->
|
||||
<h2 class="demoHeaders">Datepicker</h2>
|
||||
<div id="datepicker"></div>
|
||||
|
||||
|
||||
|
||||
<!-- Progressbar -->
|
||||
<h2 class="demoHeaders">Progressbar</h2>
|
||||
<div id="progressbar"></div>
|
||||
|
||||
|
||||
<!-- Highlight / Error -->
|
||||
<h2 class="demoHeaders">Highlight / Error</h2>
|
||||
<div class="ui-widget">
|
||||
<div class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
|
||||
<p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
|
||||
<strong>Hey!</strong> Sample ui-state-highlight style.</p>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="ui-widget">
|
||||
<div class="ui-state-error ui-corner-all" style="padding: 0 .7em;">
|
||||
<p><span class="ui-icon ui-icon-alert" style="float: left; margin-right: .3em;"></span>
|
||||
<strong>Alert:</strong> Sample ui-state-error style.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -82,7 +82,7 @@ while (list($key,$val)=each($d)) {
|
|||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" class="inb" name="submit" value="<?php __("Confirm the deletion"); ?>" /> - <input type="button" name="cancel" id="cancel" onclick="window.history.go(-1);" class="inb" value="<?php __("Don't delete anything and go back to the email list"); ?>"/>
|
||||
<input type="submit" class="inb" name="submit" value="<?php __("Confirm the deletion"); ?>" /> <input type="button" name="cancel" id="cancel" onclick="window.history.go(-1);" class="inb" value="<?php __("Don't delete anything and go back to the email list"); ?>"/>
|
||||
</p>
|
||||
|
||||
<p class="warningmsg">
|
||||
|
|
|
@ -100,8 +100,8 @@ echo $msg->msg_html_all();
|
|||
<div id="poptbl">
|
||||
<table class="tedit" >
|
||||
<tr id='mail_edit_pass' style='display: none;'><td colspan='2'><a href='javascript:mail_edit_pass();'><?php __("Click here to edit the existing password");?></a></td></tr>
|
||||
<tr id='mail_edit_pass1'><td><label for="pass"><?php __("Enter a POP/IMAP password"); ?></label></td><td><input type="password" class="int" autocomplete="off" name="pass" id="pass" value="" size="20" maxlength="32" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#pass","#passconf",$passwd_classcount); ?></td></tr>
|
||||
<tr id='mail_edit_pass2'><td><label for="passconf"><?php __("Confirm password"); ?></label></td><td><input type="password" class="int" autocomplete="off" name="passconf" id="passconf" value="" size="20" maxlength="32" /></td></tr>
|
||||
<tr id='mail_edit_pass1'><td><label for="pass"><?php __("Enter a POP/IMAP password"); ?></label></td><td><input type="password" class="int" autocomplete="off" name="pass" id="pass" value="" size="20"/><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#pass","#passconf",$passwd_classcount); ?></td></tr>
|
||||
<tr id='mail_edit_pass2'><td><label for="passconf"><?php __("Confirm password"); ?></label></td><td><input type="password" class="int" autocomplete="off" name="passconf" id="passconf" value="" size="20"/></td></tr>
|
||||
<tr><td><label for="quotamb"><?php __("Maximum allowed size of this Mailbox"); ?></label></td><td><input type="text" class="int intleft" style="text-align: right" name="quotamb" id="quotamb" value="<?php ehe($quotamb); ?>" size="7" maxlength="6" /><span class="int intright"><?php __("MB"); ?></span></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -75,7 +75,7 @@ echo $msg->msg_html_all(true, true);
|
|||
<?php } // $quota->cancreate("mail") ?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="inb configure" valign='bottom'><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
|
||||
<span class="inb settings" valign='bottom'><a href="mail_manage_catchall.php?domain_id=<?php echo $domain_id?>"><?php __("Manage Catch-all for this domain");?></a></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -193,11 +193,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
|
||||
<?php __("Which protocol shall you use?"); ?>
|
||||
<div id="accordion-mailout">
|
||||
<?php if ($mail->srv_submission) { ?>
|
||||
<?php if ($mail->srv_postfix) { ?>
|
||||
<h4><?php __("Submission");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_submission); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_postfix); ?></li>
|
||||
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
|
||||
<li><b><?php __("Port: ");?></b> 587</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
|
@ -206,11 +206,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($mail->srv_smtp) { ?>
|
||||
<?php if ($mail->srv_postfix) { ?>
|
||||
<h4><?php __("SMTP");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_smtp); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_postfix); ?></li>
|
||||
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
|
||||
<li><b><?php __("Port: ");?></b> 25</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
|
@ -219,11 +219,11 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if ($mail->srv_smtps) { ?>
|
||||
<?php if ($mail->srv_postfix) { ?>
|
||||
<h4><?php __("SMTPS");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_smtps); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_postfix); ?></li>
|
||||
<li><b><?php __("Username: ");?></b> <?php __("The mail address you want to access <i>(example : myuser@example.tld)</i>");?></li>
|
||||
<li><b><?php __("Port: ");?></b> 465</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
|
@ -243,7 +243,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
<h4><?php __("IMAP");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_imap); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_dovecot); ?></li>
|
||||
<li><b><?php __("Port: ");?></b> 143</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
|
||||
|
@ -254,7 +254,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
<h4><?php __("IMAPS");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_imaps); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_dovecot); ?></li>
|
||||
<li><b><?php __("Port: ");?></b> 993</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
<li><b><?php __("Authentication method: ")?></b><?php __("Normal password")?></li>
|
||||
|
@ -265,7 +265,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
<h4><?php __("POP3");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_pop3); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_dovecot); ?></li>
|
||||
<li><b><?php __("Port: ");?></b> 110</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
|
||||
|
@ -276,7 +276,7 @@ if (date("Y-m-d")==substr($val["lastlogin"],0,10)) echo substr($val["lastlogin"]
|
|||
<h4><?php __("POP3S");?></h4>
|
||||
<div>
|
||||
<ul>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_pop3s); ?></li>
|
||||
<li><b><?php __("Server name: ");?></b> <?php __($mail->srv_dovecot); ?></li>
|
||||
<li><b><?php __("Port: ");?></b> 995</li>
|
||||
<li><b><?php __("Authentication: ");?></b><?php __("Yes")?></li>
|
||||
<li><b><?php __("Authentication method: ");?></b><?php __("Normal password")?></li>
|
||||
|
|
|
@ -53,7 +53,7 @@ echo "<?xml version='1.0' encoding='UTF-8'?> \n";
|
|||
<Action>settings</Action>
|
||||
<Protocol>
|
||||
<Type>IMAP</Type>
|
||||
<Server><?php echo $mail->srv_imaps;?></Server>
|
||||
<Server><?php echo $mail->srv_dovecot; ?></Server>
|
||||
<Port>993</Port>
|
||||
<LoginName><?php echo $matches[0];?></LoginName>
|
||||
<DomainName><?php echo $emailDomain[1];?></DomainName>
|
||||
|
@ -63,7 +63,7 @@ echo "<?xml version='1.0' encoding='UTF-8'?> \n";
|
|||
</Protocol>
|
||||
<Protocol>
|
||||
<Type>SMTP</Type>
|
||||
<Server><?php echo $mail->srv_smtps;?></Server>
|
||||
<Server><?php echo $mail->srv_postfix; ?></Server>
|
||||
<Port>587</Port>
|
||||
<SPA>off</SPA>
|
||||
<SSL>on</SSL>
|
||||
|
|
|
@ -44,28 +44,28 @@ if (empty($emailDomain)) die(_('Error: Empty $emailDomain'));
|
|||
<displayName><?php echo $L_FQDN ?></displayName>
|
||||
<displayShortName><?php echo $L_FQDN ?></displayShortName>
|
||||
<incomingServer type="imap">
|
||||
<hostname><?php echo $mail->srv_imap ;?></hostname>
|
||||
<port>993</port>
|
||||
<socketType>SSL</socketType>
|
||||
<hostname><?php echo $mail->srv_dovecot ;?></hostname>
|
||||
<port>143</port>
|
||||
<socketType>STARTTLS</socketType>
|
||||
<authentication>password-cleartext</authentication>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
</incomingServer>
|
||||
<incomingServer type="pop3">
|
||||
<hostname><?php echo $mail->srv_imaps;?></hostname>
|
||||
<port>995</port>
|
||||
<socketType>SSL</socketType>
|
||||
<hostname><?php echo $mail->srv_dovecot;?></hostname>
|
||||
<port>110</port>
|
||||
<socketType>STARTTLS</socketType>
|
||||
<authentication>password-cleartext</authentication>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
</incomingServer>
|
||||
<outgoingServer type="smtp">
|
||||
<hostname><?php echo $mail->srv_smtp;?></hostname>
|
||||
<hostname><?php echo $mail->srv_postfix;?></hostname>
|
||||
<port>587</port>
|
||||
<socketType>STARTTLS</socketType>
|
||||
<username>%EMAILADDRESS%</username>
|
||||
<authentication>password-cleartext</authentication>
|
||||
</outgoingServer>
|
||||
<outgoingServer type="smtp">
|
||||
<hostname><?php echo $mail->srv_smtps;?></hostname>
|
||||
<hostname><?php echo $mail->srv_postfix;?></hostname>
|
||||
<port>465</port>
|
||||
<socketType>SSL</socketType>
|
||||
<authentication>password-cleartext</authentication>
|
||||
|
|
|
@ -81,7 +81,9 @@ echo "<p>";
|
|||
<input type="password" style="display: none" id="fakePassword" name="fakePassword" value="" />
|
||||
|
||||
<table border="1" cellspacing="0" cellpadding="4" class="tedit" >
|
||||
<tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php isset($oldpass) ? : $oldpass=""; ehe($oldpass); ?>" size="20" maxlength="128" /></td></tr>
|
||||
<?php if ($mem->requires_old_password_for_change()): ?>
|
||||
<tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php isset($oldpass) ? : $oldpass=""; ehe($oldpass); ?>" size="20" maxlength="128" /></td></tr>
|
||||
<?php endif; ?>
|
||||
<tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" autocomplete="off" id="newpass" name="newpass" value="<?php isset($newpass) ? : $newpass=""; ehe($newpass); ?>" size="20" maxlength="60" /><?php display_div_generate_password(DEFAULT_PASS_SIZE,"#newpass","#newpass2",$passwd_classcount); ?></td></tr>
|
||||
<tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" autocomplete="off" id="newpass2" name="newpass2" value="<?php isset($newpass2) ? : $newpass2=""; ehe($newpass2);?>" size="20" maxlength="61" /></td></tr>
|
||||
<tr class="trbtn"><td colspan="3"><input type="submit" class="inb ok" name="submit" value="<?php __("Change my password"); ?>" /></td></tr>
|
||||
|
@ -134,8 +136,13 @@ if ($mem->user["su"]) {
|
|||
</div> <!-- tabsmem -->
|
||||
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].oldpass.focus();
|
||||
$(function() {$( "#tabsmem" ).tabs();});
|
||||
if (document.forms['main'].getElementsByClassName("oldpass").length > 0) {
|
||||
document.forms['main'].oldpass.focus();
|
||||
}
|
||||
else {
|
||||
document.getElementById('newpass').focus();
|
||||
}
|
||||
$(function() {$( "#tabsmem" ).tabs();});
|
||||
</script>
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -42,13 +42,11 @@ echo "</div>";
|
|||
$obj_menu = $menu->getmenu();
|
||||
|
||||
foreach ($obj_menu as $k => $m ) {
|
||||
echo "<style>.$k-menu .menu-title { background-image: url('".$m['ico']."'); background-repeat: no-repeat; background-position: 8px 3px; padding-left: 30px;} </style>";
|
||||
echo "<div class='menu-box {$k}-menu ".(!empty($m['divclass'])?$m['divclass']:'')."'>\n";
|
||||
echo " <a href=\"".$m['link']."\"";
|
||||
if (!empty($m['target'])) echo " target='". $m['target']."' ";
|
||||
echo ">\n";
|
||||
echo " <span class='menu-title'>\n";
|
||||
//echo " <img src='".$m['ico']."' alt=\"".$m['title']."\" width='16px' height='16px' /> ";
|
||||
echo " <span class='";
|
||||
if (!empty($m['class'])) echo $m['class']." ";
|
||||
echo "'>"; // fin span ouvrant
|
||||
|
@ -58,17 +56,6 @@ foreach ($obj_menu as $k => $m ) {
|
|||
echo " (".$m['quota_used']."/".$m['quota_total'].")";
|
||||
echo "</span>\n";
|
||||
} // if there are some quota
|
||||
if ( empty($m['links'])) {
|
||||
$i = "images/menu_right.png";
|
||||
// img machin
|
||||
} else {
|
||||
if ( $m['visibility'] ) {
|
||||
$i="/images/menu_moins.png";
|
||||
} else {
|
||||
$i="/images/menu_plus.png";
|
||||
}
|
||||
}
|
||||
echo " <img src='$i' alt='' style='float:right;' width='16px' height='16px' id='menu-$k-img'/>\n";
|
||||
echo " </span>";
|
||||
echo " </span>\n";
|
||||
echo " </a>\n";
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\n\r]*/,null,"#"],["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
|
||||
null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[ES]?BANK=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[!-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["apollo","agc","aea"]);
|
|
@ -1,3 +0,0 @@
|
|||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["str",/^"(?:[^\n\r"\\]|\\.)*(?:"|$)/,a,'"'],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^REM[^\n\r]*/,a],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,a],["pln",/^[a-z][^\W_]?(?:\$|%)?/i,a],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/i,a,"0123456789"],["pun",
|
||||
/^.[^\s\w"$%.]*/,a]]),["basic","cbm"]);
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
Copyright (C) 2011 Google Inc.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[([{]+/,a,"([{"],["clo",/^[)\]}]+/,a,")]}"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/,a],
|
||||
["typ",/^:[\dA-Za-z-]+/]]),["clj"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n\u000c"]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]+)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],
|
||||
["com",/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}\b/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]);
|
|
@ -1,3 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!.*/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/.*/],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i],
|
||||
["typ",/^\b(?:bool|double|dynamic|int|num|object|string|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?'''[\S\s]*?[^\\]'''/],["str",/^r?"""[\S\s]*?[^\\]"""/],["str",/^r?'('|[^\n\f\r]*?[^\\]')/],["str",/^r?"("|[^\n\f\r]*?[^\\]")/],["pln",/^[$_a-z]\w*/i],["pun",/^[!%&*+/:<-?^|~-]/],["lit",/^\b0x[\da-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit",/^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(),.;[\]{}]/]]),
|
||||
["dart"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["lit",/^[a-z]\w*/],["lit",/^'(?:[^\n\f\r'\\]|\\[^&])+'?/,null,"'"],["lit",/^\?[^\t\n ({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/],
|
||||
["kwd",/^-[_a-z]+/],["typ",/^[A-Z_]\w*/],["pun",/^[,.;]/]]),["erlang","erl"]);
|
|
@ -1 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])+(?:'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\/\*[\S\s]*?\*\/)/],["pln",/^(?:[^"'/`]|\/(?![*/]))+/]]),["go"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t-\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^"(?:[^\n\f\r"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^\n\f\r'\\]|\\[^&])'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:--+[^\n\f\r]*|{-(?:[^-]|-+[^}-])*-})/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^\d'A-Za-z]|$)/,
|
||||
null],["pln",/^(?:[A-Z][\w']*\.)*[A-Za-z][\w']*/],["pun",/^[^\d\t-\r "'A-Za-z]+/]]),["hs"]);
|
|
@ -1,3 +0,0 @@
|
|||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,a,"("],["clo",/^\)+/,a,")"],["com",/^;[^\n\r]*/,a,";"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,a],
|
||||
["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["cl","el","lisp","lsp","scm","ss","rkt"]);
|
|
@ -1 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^!?"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["com",/^;[^\n\r]*/,null,";"]],[["pln",/^[!%@](?:[$\-.A-Z_a-z][\w$\-.]*|\d+)/],["kwd",/^[^\W\d]\w*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[Xx][\dA-Fa-f]+)/],["pun",/^[(-*,:<->[\]{}]|\.\.\.$/]]),["llvm","ll"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\S\s]*?(?:]\1]|$)|[^\n\r]*)/],["str",/^\[(=*)\[[\S\s]*?(?:]\1]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],
|
||||
["pln",/^[_a-z]\w*/i],["pun",/^[^\w\t\n\r \xa0][^\w\t\n\r "'+=\xa0-]*/]]),["lua"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xa0]+(?:[$_a-z][\w']*|``[^\t\n\r`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:"(?:[^"\\]|\\[\S\s])*(?:"|$)|'(?:[^'\\]|\\[\S\s])(?:'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\n\r]*|\(\*[\S\s]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/],
|
||||
["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^(?:[_a-z][\w']*[!#?]?|``[^\t\n\r`]*(?:``|$))/i],["pun",/^[^\w\t\n\r "'\xa0]+/]]),["fs","ml"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"]|\\.)*"/,null,'"']],[["com",/^;[^\n\r]*/,null,";"],["dec",/^\$(?:d|device|ec|ecode|es|estack|et|etrap|h|horolog|i|io|j|job|k|key|p|principal|q|quit|st|stack|s|storage|sy|system|t|test|tl|tlevel|tr|trestart|x|y|z[a-z]*|a|ascii|c|char|d|data|e|extract|f|find|fn|fnumber|g|get|j|justify|l|length|na|name|o|order|p|piece|ql|qlength|qs|qsubscript|q|query|r|random|re|reverse|s|select|st|stack|t|text|tr|translate|nan)\b/i,
|
||||
null],["kwd",/^(?:[^$]b|break|c|close|d|do|e|else|f|for|g|goto|h|halt|h|hang|i|if|j|job|k|kill|l|lock|m|merge|n|new|o|open|q|quit|r|read|s|set|tc|tcommit|tre|trestart|tro|trollback|ts|tstart|u|use|v|view|w|write|x|xecute)\b/i,null],["lit",/^[+-]?(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?/i],["pln",/^[a-z][^\W_]*/i],["pun",/^[^\w\t\n\r"$%;^\xa0]|_/]]),["mumps"]);
|
|
@ -1,4 +0,0 @@
|
|||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/,
|
||||
a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
|
||||
a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]);
|
|
@ -1,3 +0,0 @@
|
|||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["str",/^'(?:[^\n\r'\\]|\\.)*(?:'|$)/,a,"'"],["pln",/^\s+/,a," \r\n\t\u00a0"]],[["com",/^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/,a],["kwd",/^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i,a],
|
||||
["lit",/^(?:true|false|self|nil)/i,a],["pln",/^[a-z][^\W_]*/i,a],["lit",/^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i,a,"0123456789"],["pun",/^.[^\s\w$'./@]*/,a]]),["pascal"]);
|
|
@ -1 +0,0 @@
|
|||
PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,null,'"'],["str",/^'(?:[^'\\]|\\[\S\s])*(?:'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/],["lit",/^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/],["lit",/^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/],
|
||||
["pun",/^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/],["pln",/^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]);
|
|
@ -1 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[@-Za-z]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[()[\]{}]+/]]),["Rd","rd"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/,null,'"'],["lit",/^`(?:[^\n\r\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&(--:-@[-^{-~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/],["lit",/^'[$A-Z_a-z][\w$]*(?![\w$'])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/],
|
||||
["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i],["typ",/^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/],["pln",/^[$A-Z_a-z][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/],["kwd",/^(?:add|all|alter|and|any|apply|as|asc|authorization|backup|begin|between|break|browse|bulk|by|cascade|case|check|checkpoint|close|clustered|coalesce|collate|column|commit|compute|connect|constraint|contains|containstable|continue|convert|create|cross|current|current_date|current_time|current_timestamp|current_user|cursor|database|dbcc|deallocate|declare|default|delete|deny|desc|disk|distinct|distributed|double|drop|dummy|dump|else|end|errlvl|escape|except|exec|execute|exists|exit|fetch|file|fillfactor|following|for|foreign|freetext|freetexttable|from|full|function|goto|grant|group|having|holdlock|identity|identitycol|identity_insert|if|in|index|inner|insert|intersect|into|is|join|key|kill|left|like|lineno|load|match|matched|merge|natural|national|nocheck|nonclustered|nocycle|not|null|nullif|of|off|offsets|on|open|opendatasource|openquery|openrowset|openxml|option|or|order|outer|over|partition|percent|pivot|plan|preceding|precision|primary|print|proc|procedure|public|raiserror|read|readtext|reconfigure|references|replication|restore|restrict|return|revoke|right|rollback|rowcount|rowguidcol|rows?|rule|save|schema|select|session_user|set|setuser|shutdown|some|start|statistics|system_user|table|textsize|then|to|top|tran|transaction|trigger|truncate|tsequal|unbounded|union|unique|unpivot|update|updatetext|use|user|using|values|varying|view|waitfor|when|where|while|with|within|writetext|xml)(?=[^\w-]|$)/i,
|
||||
null],["lit",/^[+-]?(?:0x[\da-f]+|(?:\.\d+|\d+(?:\.\d*)?)(?:e[+-]?\d+)?)/i],["pln",/^[_a-z][\w-]*/i],["pun",/^[^\w\t\n\r "'\xa0][^\w\t\n\r "'+\xa0-]*/]]),["sql"]);
|
|
@ -1,3 +0,0 @@
|
|||
var a=null;
|
||||
PR.registerLangHandler(PR.createSimpleLexer([["opn",/^{+/,a,"{"],["clo",/^}+/,a,"}"],["com",/^#[^\n\r]*/,a,"#"],["pln",/^[\t\n\r \xa0]+/,a,"\t\n\r \u00a0"],["str",/^"(?:[^"\\]|\\[\S\s])*(?:"|$)/,a,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,a],["lit",/^[+-]?(?:[#0]x[\da-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[de][+-]?\d+)?)/i],["lit",
|
||||
/^'(?:-*(?:\w|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?)?/],["pln",/^-*(?:[_a-z]|\\[!-~])(?:[\w-]*|\\[!-~])[!=?]?/i],["pun",/^[^\w\t\n\r "'-);\\\xa0]+/]]),["tcl"]);
|
|
@ -1 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\n\r]*/,null,"%"]],[["kwd",/^\\[@-Za-z]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[()=[\]{}]+/]]),["latex","tex"]);
|
|
@ -1,2 +0,0 @@
|
|||
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xa0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})(?:["\u201c\u201d]c|$)|["\u201c\u201d](?:[^"\u201c\u201d]|["\u201c\u201d]{2})*(?:["\u201c\u201d]|$))/i,null,'"\u201c\u201d'],["com",/^['\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\n\r_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:addhandler|addressof|alias|and|andalso|ansi|as|assembly|auto|boolean|byref|byte|byval|call|case|catch|cbool|cbyte|cchar|cdate|cdbl|cdec|char|cint|class|clng|cobj|const|cshort|csng|cstr|ctype|date|decimal|declare|default|delegate|dim|directcast|do|double|each|else|elseif|end|endif|enum|erase|error|event|exit|finally|for|friend|function|get|gettype|gosub|goto|handles|if|implements|imports|in|inherits|integer|interface|is|let|lib|like|long|loop|me|mod|module|mustinherit|mustoverride|mybase|myclass|namespace|new|next|not|notinheritable|notoverridable|object|on|option|optional|or|orelse|overloads|overridable|overrides|paramarray|preserve|private|property|protected|public|raiseevent|readonly|redim|removehandler|resume|return|select|set|shadows|shared|short|single|static|step|stop|string|structure|sub|synclock|then|throw|to|try|typeof|unicode|until|variant|wend|when|while|with|withevents|writeonly|xor|endif|gosub|let|variant|wend)\b/i,
|
||||
null],["com",/^rem\b.*/i],["lit",/^(?:true\b|false\b|nothing\b|\d+(?:e[+-]?\d+[dfr]?|[dfilrs])?|(?:&h[\da-f]+|&o[0-7]+)[ils]?|\d*\.\d+(?:e[+-]?\d+)?[dfr]?|#\s+(?:\d+[/-]\d+[/-]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:am|pm))?)?|\d+:\d+(?::\d+)?(\s*(?:am|pm))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[!#%&@]+])?|\[(?:[a-z]|_\w)\w*])/i],["pun",/^[^\w\t\n\r "'[\]\xa0\u2018\u2019\u201c\u201d\u2028\u2029]+/],["pun",/^(?:\[|])/]]),["vb","vbs"]);
|