---
title: "HjÄlp!!!"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/15629-hjälp"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "aleborg"
published: "2001-05-13T15:12:00.000Z"
updated: "2001-05-16T05:03:00.000Z"
replies: 3
views: 161
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/15629-hjälp"
---

# HjÄlp!!!

## #1 — aleborg, 2001-05-13T15:12Z

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 == "") &#0124;&#0124; (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?

Permalänk: https://www.webforum.nu/p/15629

## #2 — P, 2001-05-13T19:41Z

Det akn nog ta ett tag :e

Permalänk: https://www.webforum.nu/p/318684

## #3 — aleborg, 2001-05-13T20:03Z

jag vore jätte tacksam för hjälp 

det är det här eller <http://cgi.webforum.nu/wf/Forum11/HTML/004163.html> 
som kan lösa mitt problem

Permalänk: https://www.webforum.nu/p/318685

## #4 — Bones_Junior, 2001-05-16T05:03Z

Om du kan ordna filen include.html så kanske det kan gå att ordna, men utan den så vet man inte hur funktionerna ser ut (ex. getaccounts() ).

Permalänk: https://www.webforum.nu/p/318686

---

Tråden på webben: https://www.webforum.nu/amne/php/15629-hjälp
