Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from lgnap/master
Browse files Browse the repository at this point in the history
Merged
  • Loading branch information
Nick Pappas committed Apr 24, 2013
2 parents fe66105 + 1613ae8 commit f72e9a9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ distclean: clean
echo -e '<?php\nheader("Location: ./../index.php");\n?>' > ca/index.php

echo '<?php' > config.php
echo 'define(PHPKI_VERSION, "$(VERSION)");' >> config.php
echo 'define("PHPKI_VERSION", "$(VERSION)");' >> config.php
echo '?>' >> config.php

rm -f index.php setup.php
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
define(PHPKI_VERSION, "0.83");
define("PHPKI_VERSION", "0.83");
?>
2 changes: 1 addition & 1 deletion include/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

umask(0007);

if ($_SERVER['PHP_AUTH_USER'])
if (isset($_SERVER['PHP_AUTH_USER']))
$PHPki_user = md5($_SERVER['PHP_AUTH_USER']);
else
$PHPki_user = md5('default');
Expand Down
4 changes: 2 additions & 2 deletions include/my_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function upload($source, $destination, $content_type="application/octet-stream")
function gpvar($v) {
global $_GET, $_POST;
$x = "";
if ($_GET[$v]) $x = $_GET[$v];
if ($_POST[$v]) $x = $_POST[$v];
if (isset($_GET[$v])) $x = $_GET[$v];
if (isset($_POST[$v])) $x = $_POST[$v];
if (get_magic_quotes_gpc()) $x = stripslashes($x);
return $x;
}
Expand Down
4 changes: 2 additions & 2 deletions setup.php-presetup
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ case 'validate':
if ( $passwd and $passwd != $passwdv )
$er .= 'Password and password verification do not match.<br>';

if ( $email && ! is_email($contact) )
if ( $contact && ! is_email($contact) )
$er .= 'E-mail address ('. htvar($contact) . ') may be invalid.<br>';

if (strpos($store_dir,$_SERVER['DOCUMENT_ROOT']) === 0)
Expand Down Expand Up @@ -739,7 +739,7 @@ E-mail: <a href=mailto:[email protected]>[email protected]</a>&nbsp;&nbs
<td>
<strong>Password</strong> <font color=red>*</font><br>
This password will be used to protect your root certificate private
key. <strong><font color=red>Do not lose or forget this password.</font></strong>
key.<br/>Can't contain single quote ! <strong><font color=red>Do not lose or forget this password.</font></strong>
</td>
<td><input type=password name=passwd value="<?=htvar($passwd)?>" size=30>&nbsp;&nbsp; Again <input type=password name=passwdv value="<?=htvar($passwdv)?>" size=30></td>
</tr>
Expand Down

0 comments on commit f72e9a9

Please sign in to comment.