Jag har en PHP sida som jag skulle behöva få veta "vad den betyder"
Jag vet att den sparar information om en ny användare, men jag skulle behöva "översätta" den till asp!
<?
$errorstring = "<HTML><HEAD><TITLE>ICE Web Mail - Creation Error</TITLE><LINK REL=\"StyleSheet\" HREF=\"styles.css\" type=\"text/css\"><SCRIPT type=\"text/javascript\" src=\"menu.js\"></SCRIPT></HEAD><BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\" LINK=\"#000080\" VLINK=\"#800080\" ALINK=\"#FF0000\" LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0>";
include("include.html");
$accounts = getaccounts();
$message = "";
if (($accountname == "") || (strpos($accountname, " ") <> 0))
{
$message = "\"Account Name\"";
if ($email == "") $message .= ", ";
}
if (!($integrate)) if ($email == "") $message .= "\"E-mail\"";
if (!($message == ""))
{
include(messagesfile);
$message = $emptyfields["MESSAGE"] . $message;
echo $errorstring;
showmessage($message, "", "", true, errorcolor, false);
die();
}
if ($ddomain) $accountname = $ddomain . "/" . $accountname;
$account["USER"] = $accountname;
$account["PASS"] = $accountpass;
if ($integrate)
{
$add = "";
list($fdomain, $username) = explode("/", $accountname);
if (!($username))
{
list($fdomain) = explode(";", $domain);
$username = $accountname;
}
if (!(strpos($username, "@"))) $add = "@" . $fdomain;
$account["EMAIL"] = $username . $add;
$account["HOSTUSER"] = $accountname;
$account["HOSTPASS"] = $accountpass;
$account["HOST"] = $mailserver;
}
else
{
$account["EMAIL"] = $email;
$account["HOSTUSER"] = $hostuser;
$account["HOSTPASS"] = $hostpass;
$account["HOST"] = $host;
}
$account["DELETE"] = !($dleavemessages);
$account["DELETESERVER"] = $otherconfig["DELETEMESSAGES"];
$account["UIDLDELETE"] = $otherconfig["DELETEDELETED"];
$account["FULLNAME"] = $fullname;
$account["ADMIN"] = false;
$account["REPLYTO"] = "";
$account["FULLHEADER"] = "";
$account["MULTI"] = "";
$account["ATTACH"] = "";
if (getnewaccountid($accounts, $account["USER"]))
$accounts[] = $account;
else
{
include(messagesfile);
echo $errorstring;
showmessage($alreadyexists, "", "", true, errorcolor, false);
die();
}
saveaccounts($accounts);
if (!($integrate))
{
$username = $accountname;
$password = $accountpass;
$accountcreated = true;
$noinclude = true;
include("index.html");
}
else
{
if ($otherconfig["FULLMERAK"])
{
$xdomain = "";
if ($fdomain) $xdomain = "@" . $fdomain;
$line = "-a -u\"" . $username . $xdomain . "\" -m\"" . $username . "\" -n\"" . $fullname . "\" -p\"" . $accountpass . "\"";
$result = integrationcall($line);
}
if ($result)
{
$accounts[count($accounts) - 1]["DELETED"] = true;
saveaccounts($accounts);
$nocreateuser = true;
$noinclude = true;
include("self.html");
}
else
{
$accountcreated = true;
$noinclude = true;
include("index.html");
}
}
?>
Är det möjligt?
------------------
Data-Doktorn