From 90dcf899dae9bff3dc9d7e7953e2841dadea178f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=A4nzer?= Date: Tue, 5 Mar 2013 23:08:48 +0100 Subject: Source code taken from cacert-20130227.tar.bz2 --- includes/account.php | 1 + includes/keygen.php | 128 +++++++++++ locale/Makefile | 3 +- pages/account/12.php | 8 +- pages/account/17.php | 122 +---------- pages/account/4.php | 175 +-------------- pages/index/4.php | 8 +- www/keygenIE.js | 609 +++++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 753 insertions(+), 301 deletions(-) create mode 100644 includes/keygen.php create mode 100644 www/keygenIE.js diff --git a/includes/account.php b/includes/account.php index 8125602..496c7ca 100644 --- a/includes/account.php +++ b/includes/account.php @@ -422,6 +422,7 @@ `created`=FROM_UNIXTIME(UNIX_TIMESTAMP()), `subject`='".mysql_real_escape_string($csrsubject)."', `codesign`='".$_SESSION['_config']['codesign']."', + `disablelogin`='".($_SESSION['_config']['disablelogin']?1:0)."', `rootcert`='".$_SESSION['_config']['rootcert']."'"; mysql_query($query); $emailid = mysql_insert_id(); diff --git a/includes/keygen.php b/includes/keygen.php new file mode 100644 index 0000000..09ec7f9 --- /dev/null +++ b/includes/keygen.php @@ -0,0 +1,128 @@ + + + + +
+

+

+

Internet Options -> Security -> Trusted '. + 'Websites", click on "Custom Level", set "ActiveX control '. + 'elements that are not marked as safe initialized on start in '. + 'scripts" to "Confirm" and click "OK". Now click "Sites", add '. + '"%s" and "%s" to your list of trusted sites and make the '. + 'changes come into effect by clicking "Close" and "OK".'), + 'https://'.$_SESSION['_config']['normalhostname'], + 'https://'.$_SESSION['_config']['securehostname'])?> +

+
+ + + + + + + + + + + + + + +

+

+ + + + "> + +
+

+ $@ diff --git a/pages/account/12.php b/pages/account/12.php index 44926ca..fa8b41a 100644 --- a/pages/account/12.php +++ b/pages/account/12.php @@ -36,7 +36,7 @@ `domaincerts`.`expire` as `expires`, `revoked` as `revoke`, UNIX_TIMESTAMP(`revoked`) as `revoked`, `CN`, `domaincerts`.`serial`, `domaincerts`.`id` as `id` from `domaincerts`,`domains` - where `memid`='".intval($_SESSION['profile']['id'])."' and `deleted`=0 and `domaincerts`.`domid`=`domains`.`id` "; + where `memid`='".intval($_SESSION['profile']['id'])."' and `domaincerts`.`domid`=`domains`.`id` "; if($viewall != 1) { $query .= "AND `revoked`=0 AND `renewed`=0 "; @@ -49,7 +49,7 @@ { ?> - + "> + + + -

diff --git a/pages/account/17.php b/pages/account/17.php index 2ba5390..8ac8b65 100644 --- a/pages/account/17.php +++ b/pages/account/17.php @@ -14,124 +14,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ ?> - - - - -

- - - - - - -
-

- - -

-

- - - - -"> - -
-

- +require_once($_SESSION['_config']['filepath'].'/includes/keygen.php'); diff --git a/pages/account/4.php b/pages/account/4.php index a4d6597..8ac8b65 100644 --- a/pages/account/4.php +++ b/pages/account/4.php @@ -14,177 +14,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -*/ ?> - - -Internet Options->Security->Trusted Websites, click on Custom Level, check ActiveX control elements that are not marked as safe initialized on start in scripts")?> - -

- - - - - -
-

- - -

-

- - - -"> - -
-

- +require_once($_SESSION['_config']['filepath'].'/includes/keygen.php'); diff --git a/pages/index/4.php b/pages/index/4.php index ffbfe26..9eb90af 100644 --- a/pages/index/4.php +++ b/pages/index/4.php @@ -29,7 +29,7 @@