Commit Graph

127 Commits

Author SHA1 Message Date
smos
cfbfd9412b The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
2012-01-19 20:33:41 +01:00
Vinicius Coque
ea1cea05ee Converting javascript code from prototype to jQuery 2011-10-24 20:34:39 -02:00
Erik Fonnesbeck
0bee20108d Save the host name and domain to a temporary location until the setup wizard is finished to prevent triggering the DNS rebind message. Fixes #1022 Also use this information to implement the redirect for changed host for ticket #455 2010-11-18 02:34:51 -07:00
Erik Fonnesbeck
b8d4d7cdc5 Handling this properly when the web gui is on an alternate port number. 2010-11-18 00:23:41 -07:00
Erik Fonnesbeck
6898927f4f Make this check more general in case someone makes a wizard that changes an opt interface's IP address and wants to use the "Reload in progress" step. Ticket #455 2010-11-17 20:00:05 -07:00
Erik Fonnesbeck
a219c64325 Add workaround for referrer check to not be triggered on the previous IP address when redirected by the setup wizard. 2010-11-17 08:35:30 -07:00
Erik Fonnesbeck
fd7f136b26 Redirect to the correct IP at the end of the setup wizard if accessing it on an IP address that was changed. Fixes #455 2010-11-17 07:01:19 -07:00
jim-p
9882cbef8e Use addslashes() here to prevent unescaped quotes from causing PHP errors. Fixes advanced/custom options in OpenVPN wizard. 2010-11-04 13:18:29 -04:00
Ermal
24b2aa62be Resolves #971. Fix wizard.php to show interface descriptive names. Pointy-hat: gnhb 2010-10-25 11:19:29 +00:00
jim-p
27319e173b Add a patch to wizard.php to support input_errors from sullrich (with some modifications). 2010-10-20 20:59:07 -04:00
jim-p
f2a86ca96f Rename 'name' to 'descr' for CA, Certificates, and CRLs, to gain CDATA protection and standardize field names. Ticket #320. 2010-10-19 14:19:44 -04:00
gnhb
389c778ec2 Update wizard files for setup wizard to write proper config for current ppp architecture.
I also allowed selection of physical interface from the wizard screen. This is crucial
because if the user has the WAN set to anything other than the same phyical interface used
by pppoe/pptp, the old wizard has no way of knowing what physical port to use, and the wizard
can generate a bad config. Feel free to expand the list of available interfaces in the dropdown
for interface selection.
2010-09-20 21:57:13 +07:00
jim-p
4e990e1e20 CA/CERT Move 2010-09-01 15:18:44 -04:00
Ermal
9401767007 Resolves #732. Make the wizard behave better and _actually_ work by correcting typos in code. Make it faster by not using HTTP redirection for showing errors. Try to make it more user friendly, though some more work is needed. 2010-08-18 19:28:57 +00:00
Renato Botelho
e73b001e25 Merge remote branch 'mainline/master'
Conflicts:
	usr/local/www/diag_smart.php
	usr/local/www/firewall_rules_edit.php
	usr/local/www/interfaces.php
	usr/local/www/load_balancer_pool_edit.php
	usr/local/www/pkg_mgr_settings.php
2010-08-12 12:55:32 -03:00
Renato Botelho
185b9fbd5b Add missing ) 2010-08-12 10:46:40 -03:00
Erik Fonnesbeck
3a3fb8eaba Fix printf/sprintf mixups. 2010-08-11 16:15:13 -06:00
Renato Botelho
381af65980 Small gettext() fixes 2010-08-11 14:11:26 -03:00
Carlos Eduardo Ramos
e2d86c0b71 Fix gettext implementation on wizard.php 2010-07-30 16:16:34 -03:00
Rafael Lucas
2ddac0943f Implement gettext() calls on wizard.php 2010-07-29 09:42:04 -03:00
Erik Fonnesbeck
42f1649fbb Restore the code for getting the step's title and description after the step ID is set so that it is read from the correct step. 2010-07-10 14:25:58 -06:00
Renato Botelho
fe4fc20bf0 Show $g['product_name'] on wizards 2010-07-07 10:32:24 -03:00
jim-p
ce6b39f25d Hide GMZ offset zones in setup wizard. Ticket #464 2010-06-25 11:29:12 -04:00
jim-p
b4eb3a1737 Check if a variable is set before trying to unset. Otherwise, this will blow up with $a[b][c] if $a[b] doesn't exist. 2010-06-17 12:16:25 -04:00
Ermal
ddc75a8069 Fix typo. 2010-06-11 12:29:29 +00:00
Ermal
a4f07557b4 Ticket #642. Fix logic for the wizard code to unset and arraynum usage. 2010-06-11 11:59:29 +00:00
Erik Fonnesbeck
60ce86ea1e For settings that exist in the configuration but are blank, only consider it true when associated with a checkbox. 2010-06-02 18:02:20 -06:00
Ermal
b554f7bf1e Fix logic. 2010-06-02 23:01:08 +00:00
Ermal
373a1e7b44 Ticket #493. Set a value for checkboxes since the parsers marks empty tags(<tag/>) as arrays. 2010-05-17 14:20:53 +00:00
Ermal
ba374e4b29 Ticket #493. Ticket #302. Actually correct code flow to be correct and consistent to what it should do. 2010-05-14 16:21:37 +00:00
jim-p
c062a71114 Fix wizard handling of password fields. Ticket #500. 2010-04-12 15:00:16 -04:00
Erik Fonnesbeck
3f394d09e3 Ticket #313. Use $myurl when calling fixup_string to get the URL for the image link. 2010-03-20 07:43:21 -06:00
Ermal
40050fabb4 Use alias style when creating aliases in wizards. 2010-03-19 17:35:59 +00:00
Ermal
1ae5532038 Add the counterpart of enablefields. 2010-03-18 17:04:01 +00:00
Ermal
a314bebc79 Actually get values from the CA based on what was choosen during wizard. 2010-03-18 15:56:44 +00:00
Ermal
47aa4fc48c Merge common name fields with descriptive name. Default to 3650 days of lifetime and 2048 bits key length. 2010-03-18 12:49:48 +00:00
Ermal
8984dc5e4f Ticket #414. Fix wizard framework to properly display this. Not sure how it actually worked before! 2010-03-15 19:54:38 +00:00
Ermal
a3db8d75dd Add my copyright. 2010-03-12 00:00:30 +00:00
Ermal
2465ff5b5d Add a function that allows to show/hide fields. Also correct the enable/disable function. 2010-03-11 23:41:38 +00:00
Ermal Luçi
2ca50c87df Improve wizard by adding more steps and cleaness. 2010-03-11 12:39:11 +00:00
Ermal Luçi
eb20f3c51e Improve the wizard. Make it produce a correct openvpn server config. 2010-03-11 01:36:29 +00:00
Ermal Luçi
72a5f4246c Mostly style fixes. 2010-03-10 22:57:45 +00:00
Ermal Luçi
b7bb171110 Make the wizard ressemble the style as on other pages. Use switch instead of if else to make code more readble. 2010-03-10 22:13:57 +00:00
Ermal Luçi
66f773b433 Improve a lot the wizard.php page to be more userfriendly and add control types for certificates. 2010-03-10 19:51:18 +00:00
Ermal Luçi
5a8a69b312 Only extract timezone info if we have a field type 'timezone_select' 2010-03-10 10:14:37 +00:00
Ermal Luçi
ba9e9bbfed Correctly set variable values during each iteration. Ticket #414. Spotted-by: irc(Efonne) 2010-03-10 10:00:44 +00:00
Ermal Luçi
d70a5ac6d7 Ticket #313. Search if the string to be replaced really exists instead of doing a blind replace. 2010-02-26 18:27:55 +00:00
jim-p
43d9a2d3eb Fix wizard webgui URL usage so it chooses https/http properly for refresh link and logo link 2009-12-24 20:28:56 -05:00
sullrich
b6693b01cc use _SERVER[\'HTTP_HOST\'] 2009-11-27 21:00:12 -05:00
sullrich
39d1c22d8b Use _SERVER['HTTP_HOST'] instead of lanip Resolves #157 2009-11-27 20:50:48 -05:00