cacert-webdb/www/account.php

74 lines
2.7 KiB
PHP
Raw Normal View History

2004-10-16 00:28:17 +00:00
<? /*
2008-04-06 19:45:09 +00:00
LibreSSL - CAcert web application
Copyright (C) 2004-2008 CAcert Inc.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
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.
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
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
2004-10-16 00:28:17 +00:00
*/ ?>
<?
include("../includes/account.php");
if($id == 6)
{
2006-04-20 20:08:31 +00:00
include_once("../pages/account/6.php");
2005-12-04 21:04:05 +00:00
exit;
2004-10-16 00:28:17 +00:00
} else if($id == 19) {
2006-04-20 20:08:31 +00:00
include_once("../pages/account/19.php");
2005-12-04 21:04:05 +00:00
exit;
} else if($oldid == 40 && $_REQUEST['process'] != "" && $_POST['support'] != "yes") {
$who = stripslashes($_REQUEST['who']);
$email = stripslashes($_REQUEST['email']);
$subject = stripslashes($_REQUEST['subject']);
$message = stripslashes($_REQUEST['message']);
2004-10-16 00:28:17 +00:00
$message = "From: $who\nEmail: $email\nSubject: $subject\n\nMessage:\n".$message;
2005-05-23 01:53:59 +00:00
sendmail("support@cacert.org", "[CAcert.org] ".$subject, $message, $email, $email, "", "CAcert Website");
2004-10-16 00:28:17 +00:00
showheader(_("Welcome to CAcert.org"));
echo _("Your message has been sent.");
showfooter();
exit;
} else if($oldid == 40 && $_REQUEST['process'] != "" && $_POST['support'] == "yes") {
$who = stripslashes($_REQUEST['who']);
$email = stripslashes($_REQUEST['email']);
$subject = stripslashes($_REQUEST['subject']);
$message = stripslashes($_REQUEST['message']);
2004-11-30 23:31:18 +00:00
$message = "From: $who\nEmail: $email\nSubject: $subject\n\nMessage:\n".$message;
2005-05-23 01:53:59 +00:00
sendmail("cacert-support@lists.cacert.org, $email", "[website form email]: ".$subject, $message, "website-form@cacert.org", "cacert-support@lists.cacert.org, $email", "", "CAcert Website");
2004-12-09 01:48:16 +00:00
2004-11-30 23:31:18 +00:00
showheader(_("Welcome to CAcert.org"));
echo _("Your message has been sent to the general support list.");
showfooter();
exit;
2005-03-12 19:40:24 +00:00
} else if($id == 51 && $_GET['img'] == "show") {
2008-08-14 09:35:40 +00:00
$query = "select * from `tverify` where `id`='".intval($_GET['photoid'])."' and `modified`=0";
2006-03-05 11:18:16 +00:00
$res = mysql_query($query);
if(mysql_num_rows($res))
{
$row = mysql_fetch_assoc($res);
readfile($row['photoid']);
} else {
die("No such file.");
}
2005-12-04 21:04:05 +00:00
exit;
2004-10-16 00:28:17 +00:00
} else {
showheader(_("My CAcert.org Account!"));
includeit($id, "account");
showfooter();
2005-12-04 21:04:05 +00:00
exit;
2004-10-16 00:28:17 +00:00
}
?>