Newsgroup: it.comp.www.php
Titolo: Aiuto

Mi sapete tradurre questa pagina php in pagina asp?
Grazie mille.
<?php
$redirect = "home_page.htm";
require_once("connection_db/login_filled_user.php");
require_once("connection_db/login_filled_admin.php");
require_once("connection_db/check_registered_session.php");
require_once("errore.php");
session_start();
if( ($username && $password) && ($username !== admin) ) { //se i campi della
form sono riempiti
 
	$username = strtolower($username);
	if(login_filled_user($username, md5($password))) { //se login utente ok
		$registered_user = $username;
		session_register('registered_user');
	}
	else {
//OUTPUT DI ERRORE: CASO IN CUI SI INSERISCONO USERNAME E PASSWORD ERRATI
(lato utente)
echo ('<HTML><!-- #BeginTemplate "/Templates/template.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>_ E X O N G R O U P _</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="
http://www.exongroup.com/css/stile.css
"
type="text/css">
<meta http-equiv="Content-Language" content="it">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>_E R R O R_</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
  <tr>
    <td height="80" align="center" valign="middle"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0
"
width="770" height="80">
        <param name=movie value="/area_riservata/top.swf">
        <param name=quality value=high>
        <embed src="/area_riservata/top.swf" quality=high
pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
"
type="application/x-shockwave-flash" width="770" height="80">
        </embed></object> </td>
  </tr>
  <tr>
    <td bgcolor="#CF0E20" align="center" valign="top" height="18"> <!--
#BeginEditable "menu" --><!-- #EndEditable -->
      <table border="0" cellspacing="3" cellpadding="0" height="24">
        <tr align="center" valign="middle">
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </table><tr>
    <td align="left" valign="top">
 
    <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
      <tr>
        <td align="left" valign="top"><!-- #BeginEditable "centro" -->
          <table width="160" border="0" cellspacing="0" cellpadding="0" align="left">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table border="0" cellspacing="0" cellpadding="0" width="100%"
align="right">
            <tr>
              <td align="right" valign="top" width="470">
              <img src="img/angolo.gif" width="13" height="13"></td>
            </tr>
            <tr>
              <td align="left" valign="top" width="460">
                <table width="100%" border="0" cellspacing="1" cellpadding="8"
align="right">
                  <tr>
                    <td class="tit_grigio16" width="470">Error !!!</td>
                  </tr>
                  <tr>
                    <td class="txt_grigio" width="470">Accesso negato: controlla username e
password</td>
                  </tr>
                  <tr>
                    <td class="txt_grigio" width="470"><a href= "../home_page.htm">Torna
indietro</a></td>
                  </tr>
 
                  <tr>
                    <td width="470">&nbsp;</td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <!-- #EndEditable --></td>
        <td width="140" align="left" valign="top" bgcolor="#283D82"> <!--
#BeginLibraryItem "/Library/logout.lbi" -->
<link rel="stylesheet" href="
http://www.exongroup.com/css/stile.css
"
type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr>
          <td align="left" valign="middle" height="46">
          &nbsp;</td>
        </tr>
        <tr>
          <td align="right" valign="bottom" height="14"></td>
        </tr>
        <tr>
          <td align="right" valign="middle">
          &nbsp;</td>
        </tr>
      </table>
                </td>
              </tr>
            </table><!-- #EndLibraryItem --></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#939EC0">
          <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
            <tr>
              <td bgcolor="#939EC0">&nbsp;</td>
              <td width="140" bgcolor="#3E518F">&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
 
  </td>
  </tr>
<table width="770" border="0" cellspacing="1" cellpadding="0"
align="center">
  <tr>
    <td align="center" valign="middle" height="25"><span
class="txt_grigio9">&copy;
      Copyright Exon Group 2003 - Tutti i diritti riservati | Progettazione e
      Realizzazione Grafica <a href="
http://www.asysitalia.it
" target="_blank"
class="txt_grigio9">Asys
      Italia</a></span></td>
  </tr>
</table>
<tr> </tr>
</body>
</html>');
 
}
}
elseif($username && $password) {
  if ( ($username == admin) && crypt($password, 'xx') == xxiz1FI3TBLPs ) {
	if(login_filled_admin($username, $password)) { //se login amministratore ok
		$registered_admin = $username;
		session_register('registered_admin');
	}
  }
  else {
//OUTPUT DI ERRORE: CASO IN CUI SI INSERISCONO USERNAME E PASSWORD ERRATI
(lato amministratore)
echo ('<HTML><!-- #BeginTemplate "/Templates/template.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>_ E X O N G R O U P _</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="
http://www.exongroup.com/css/stile.css
"
type="text/css">
<meta http-equiv="Content-Language" content="it">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>_E R R O R_</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
  <tr>
    <td height="80" align="center" valign="middle"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0
"
width="770" height="80">
        <param name=movie value="/area_riservata/top.swf">
        <param name=quality value=high>
        <embed src="/area_riservata/top.swf" quality=high
pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
"
type="application/x-shockwave-flash" width="770" height="80">
        </embed></object> </td>
  </tr>
  <tr>
    <td bgcolor="#CF0E20" align="center" valign="top" height="18"> <!--
#BeginEditable "menu" --><!-- #EndEditable -->
      <table border="0" cellspacing="3" cellpadding="0" height="24">
        <tr align="center" valign="middle">
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </table><tr>
    <td align="left" valign="top">
 
    <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
      <tr>
        <td align="left" valign="top"><!-- #BeginEditable "centro" -->
          <table width="160" border="0" cellspacing="0" cellpadding="0" align="left">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table border="0" cellspacing="0" cellpadding="0" width="100%"
align="right">
            <tr>
              <td align="right" valign="top" width="470">
              <img src="file:///C:/web/Exon.it/area_riservata/css/angolo.gif" width="13"
height="13"></td>
            </tr>
            <tr>
              <td align="left" valign="top" width="460">
                <table width="100%" border="0" cellspacing="1" cellpadding="8"
align="right">
                  <tr>
                    <td class="tit_grigio16" width="470">Error !!!</td>
                  </tr>
                  <tr>
                    <td class="txt_grigio" width="470">Accesso negato: controlla username e
password</td>
                  </tr>
                  <tr>
                    <td width="470">&nbsp;</td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <!-- #EndEditable --></td>
        <td width="140" align="left" valign="top" bgcolor="#283D82"> <!--
#BeginLibraryItem "/Library/logout.lbi" -->
<link rel="stylesheet"
href="file:///C:/web/Exon.it/area_riservata/css/stile.css" type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr>
          <td align="left" valign="middle" height="46">
          &nbsp;</td>
        </tr>
        <tr>
          <td align="right" valign="bottom" height="14"></td>
        </tr>
        <tr>
          <td align="right" valign="middle">
          &nbsp;</td>
        </tr>
      </table>
                </td>
              </tr>
            </table><!-- #EndLibraryItem --></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#939EC0">
          <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
            <tr>
              <td bgcolor="#939EC0">&nbsp;</td>
              <td width="140" bgcolor="#3E518F">&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
 
  </td>
  </tr>
<table width="770" border="0" cellspacing="1" cellpadding="0"
align="center">
  <tr>
    <td align="center" valign="middle" height="25"><span
class="txt_grigio9">&copy;
      Copyright Exon Group 2003 - Tutti i diritti riservati | Progettazione e
      Realizzazione Grafica <a href="
http://www.asysitalia.it
" target="_blank"
class="txt_grigio9">Asys
      Italia</a></span></td>
  </tr>
</table>
<tr> </tr>
</body>
</html>');
 
  }
}
elseif($username) {
	errore("password non inserita");
	exit;
}
elseif($password) {
	errore("username non inserito");
	exit;
}
else {
 
//OUTPUT DI ERRORE: CASO IN CUI SI TENTA DI ACCEDERE ALL'AREA RISERVATA
SENZA EFFETTUARE IL LOGIN
echo ('<HTML><!-- #BeginTemplate "/Templates/template.dwt" -->
<head>
<!-- #BeginEditable "doctitle" -->
<title>_ E X O N G R O U P _</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="
http://www.exongroup.com/css/stile.css
"
type="text/css">
 
<meta http-equiv="Content-Language" content="it">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>_E R R O R_</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0"
align="center">
  <tr>
    <td height="80" align="center" valign="middle"><object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0
"
width="770" height="80">
        <param name=movie value="/area_riservata/top.swf">
        <param name=quality value=high>
        <embed src="/area_riservata/top.swf" quality=high
pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash
"
type="application/x-shockwave-flash" width="770" height="80">
        </embed></object> </td>
  </tr>
  <tr>
    <td bgcolor="#CF0E20" align="center" valign="top" height="18"> <!--
#BeginEditable "menu" --><!-- #EndEditable -->
      <table border="0" cellspacing="3" cellpadding="0" height="24">
        <tr align="center" valign="middle">
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="50">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </table><tr>
    <td align="left" valign="top">
 
    <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
      <tr>
        <td align="left" valign="top"><!-- #BeginEditable "centro" -->
          <table width="160" border="0" cellspacing="0" cellpadding="0" align="left">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table border="0" cellspacing="0" cellpadding="0" width="100%"
align="right">
            <tr>
              <td align="right" valign="top" width="470">
              <img src="img/angolo.gif" width="13" height="13"></td>
            </tr>
            <tr>
              <td align="left" valign="top" width="460">
                <table width="100%" border="0" cellspacing="1" cellpadding="8"
align="right">
                  <tr>
                    <td class="tit_grigio16" width="470">Error !!!</td>
                  </tr>
                  <tr>
                    <td class="txt_grigio" width="470">Per entrare nella pagina
                    riservata devi effettuare il <a href= "../home_page.htm" style=
"text-decoration:none">Login</a></td>
                  </tr>
                  <tr>
                    <td width="470">&nbsp;</td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <!-- #EndEditable --></td>
        <td width="140" align="left" valign="top" bgcolor="#283D82"> <!--
#BeginLibraryItem "/Library/logout.lbi" -->
<link rel="stylesheet"
href="file:///C:/web/Exon.it/area_riservata/css/stile.css" type="text/css">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="4" cellpadding="0">
        <tr>
          <td align="left" valign="middle" height="46">
          &nbsp;</td>
        </tr>
        <tr>
          <td align="right" valign="bottom" height="14"></td>
        </tr>
        <tr>
          <td align="right" valign="middle">
          &nbsp;</td>
        </tr>
      </table>
                </td>
              </tr>
            </table><!-- #EndLibraryItem --></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#939EC0">
          <table width="770" border="0" cellspacing="0" cellpadding="0"
align="center">
            <tr>
              <td bgcolor="#939EC0">&nbsp;</td>
              <td width="140" bgcolor="#3E518F">&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
 
  </td>
  </tr>
<table width="770" border="0" cellspacing="1" cellpadding="0"
align="center">
  <tr>
    <td align="center" valign="middle" height="25"><span
class="txt_grigio9">&copy;
      Copyright Exon Group 2003 - Tutti i diritti riservati | Progettazione e
      Realizzazione Grafica <a href="
http://www.asysitalia.it
" target="_blank"
class="txt_grigio9">Asys
      Italia</a></span></td>
  </tr>
</table>
<tr></tr>
</body>
</html>');
}
check_registered_session(); //controlla se l'utente corrente ha una sessione
registrata
?>
--------------------------------
Inviato via 
http://arianna.libero.it/usenet/

 Mi sapete tradurre questa pagina php in pagina asp?
Si.
-- 
I'am what I'am, I do what I can

e me la traduci per piacere?


ja' xke' non gliela traduci?
-- 
Posted via Mailgate.ORG Server - 
http://www.Mailgate.ORG

 Inviato via 
http://arianna.libero.it/usenet/
Tu cosa dai in cambio per tradurlo? Forse è questo che ci chiediamo un po'..
tutti!

 e me la traduci per piacere?
Cara Annalisa (?),
"giocane laureata in lingue", non desideri piu' "diventare una brava
teacher"?
Credi veramente che su questo od altri newsgroup ci sia qualcuno di
sposto a fare un lavoro al posto tuo gratis?
Oltretutto non si tratta di un sito personale, ma di un sito di lavoro
( 
http://www.exongroup.com
 ).
Se vuoi che te lo traduca e' sufficiete che mi mandi i tuoi dati e 200
euro + IVA.


Non è lavoro mio e poi php non lo conosco. Ma chi è questa laureata in
lingue?


 Ma chi h questa laureata in lingue?
Tu. (?)
http://tinyurl.com/uptp
