/[smecontribs]/rpms/phpki-ng/contribs10/phpki-ng-0.84-fix-final-redirect.patch
ViewVC logotype

Annotation of /rpms/phpki-ng/contribs10/phpki-ng-0.84-fix-final-redirect.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Sep 30 20:42:12 2021 UTC (3 years, 1 month ago) by jcrisp
Branch: MAIN
CVS Tags: phpki-ng-0_84-15_el7_sme, phpki-ng-0_84-14_el7_sme, phpki-ng-0_84-13_el7_sme, phpki-ng-0_84-16_el7_sme, phpki-ng-0_84-12_el7_sme, HEAD
* Thu Sep 30 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-12.sme
- Attempt to fix the final reload after CA creation [SME: 11192]

1 jcrisp 1.1 diff -ruN phpki-ng.old/phpki-ng-0.84/css/style.css phpki-ng/phpki-ng-0.84/css/style.css
2     --- phpki-ng.old/phpki-ng-0.84/css/style.css 2021-09-30 18:10:39.971946417 +0200
3     +++ phpki-ng/phpki-ng-0.84/css/style.css 2021-09-30 18:05:07.561556378 +0200
4     @@ -44,6 +44,10 @@
5     margin: 0;
6     }
7    
8     +input[type='submit']:active{
9     + background-color:green;
10     +}
11     +
12     fieldset {
13     border: 2px solid black;
14     margin-left: 10px;
15     diff -ruN phpki-ng.old/phpki-ng-0.84/setup.php-presetup phpki-ng/phpki-ng-0.84/setup.php-presetup
16     --- phpki-ng.old/phpki-ng-0.84/setup.php-presetup 2021-09-30 18:10:39.968946433 +0200
17     +++ phpki-ng/phpki-ng-0.84/setup.php-presetup 2021-09-30 18:05:07.561556378 +0200
18     @@ -192,6 +192,9 @@
19     printFooter();
20     break;
21     }
22     +
23     + // Here we have "if (not $er)" then fall through to case 'write'
24     + // It's pretty crappy coding TBH
25    
26     case 'write':
27     printHeader('about');
28     @@ -787,14 +790,26 @@
29     }
30     ?>
31     <p><br><br>
32     - <form action=index.php>
33     + <form action='<?php echo $PHP_SELF?>' method=post>
34     <input type=submit name=submit value="Proceed To The PHPki Main Menu">
35     + <input type=hidden name=stage value=finished>
36     </form>
37     </center>
38     <?php
39     printFooter();
40     break;
41    
42     + case 'finished':
43     + // We get here if we complete the previous section
44     + // if OS = SME then go to server manager else, reload
45     + if (getOSInformation){
46     + $location = "/server-manager/cgi-bin/phpki";
47     + } else {
48     + $location = $PHP_SELF;
49     + }
50     + echo '<META HTTP-EQUIV="Refresh" Content="0; URL=' . $location . '">';
51     + exit;
52     +
53     default:
54     if (! $country) {
55     $country = $config['country'];

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed