<?php

include("includes/db.inc.php");

include("includes/config.php");

$msql=new SHARP_SQL;

if($step=="new"){

if($urlname=="" || $urlname==" " || $sitename=="" || $sitename==" " ){

echo "<p align=center><br>¹ï¤£°_,ºô¯¸¦WºÙ©Mºô§}¥²¶·¶ñ¼g <br><br><a href=javascript:history.back();>ÂI³o¸Ìªð¦^</a></p>";

exit;

}

if($user=="" || $password==""){

echo "<p align=center><br>¥Î¤á¦W©M±K½X¥²¶·¶ñ¼g <br><br><a href=javascript:history.back();>ÂI³o¸Ìªð¦^</a></p>";

exit;

}

$msql->query("select * from auto_user where urlname='$urlname'");

if($msql->next_record()){

$nurl=$baseurl."com/".$urlname;

echo "<p align=center><br>¹ï¤£°_,±z»Ý­n¥Ó½Ðªººô§}¤w¸g¦³¤H¥Î¤F,½Ð­«·s«ü©wºô§} <br><br><a href=javascript:history.back();>ÂI³o¸Ìªð¦^</a></p>";

exit;

}

$msql->query("select userid from auto_user where user='$user'");

if($msql->next_record()){



echo "<p align=center><br>¹ï¤£°_,±z»Ý­n¥Ó½Ðªº¥Î¤á¦W¤w¸g¦³¤H¥Î¤F,½Ð­«·s«ü©w¥Î¤á¦W <br><br><a href=javascript:history.back();>ÂI³o¸Ìªð¦^</a></p>";

exit;

}

///////////////////////////////////////

$date = getdate();

		$hour = $date['hours'];

		$minute = $date['minutes'];

		$second = $date['seconds'];

		$yy = $date['year'];

		$dd= $date['mday'];

		$mm= $date['mon'];

		$regtime="$yy-$mm-$dd $hour:$minute:$second";

// ¹L´Á®É¶¡­pºâ		
		if($mm<10){
		$mm="0".$mm;
		}
		if($dd<10){
		$dd="0".$dd;
		}
		if($mm>11){
        $testmm="010000";
		}
 $exptime = $yy.$mm.$dd + $testmm;

////////////////////////////////////////

if($ttype=="html"){

$intro=str_replace("\n","",$intro);

}else{

$intro=str_replace("  ","–R",$intro);

$intro=str_replace("¡@","–R",$intro);

}

$msql->query("insert into auto_user values (

0,

'$user',

'$password',

'$urlname',

'$sitename',

'$ensitename',

'$name',

'$email',

'$tel',

'$fax',

'$addr',

'$zip',

'$intro',

'$mod',

'0',

'15',

'12',

'',

'0',

'',

'$regtime',

'$exptime',

'$HEZUOID',

'0',

'0'

)");

$msql->query("select userid from auto_user where user='$user' and password='$password'");

if($msql->next_record()){

$userid=$msql->f('userid');

SetCookie("EMAIL", "$email"); 

SetCookie("NAME", "$name"); 

SetCookie("AUTOUSERID", "$userid"); 

SetCookie("URLNAME", "$urlname"); 

SetCookie("SITENAME", "$sitename"); 

SetCookie("MOD", "$mod"); 

SetCookie("EXPTIME", "0"); 

/////////µo«H

$subject="ºô¯¸ºÞ²z¨t²Î¥Ó½Ð¦¨¥\&nbsp;&nbsp;!";

$message="$name ±z¦n¡I

·PÁÂ±z¨Ï¥Î".$owner."«Ø¥ßºô¯¸¡C

±z¥i¥H¨Ï¥Î¥H¤U¥Î¤á¦W©M±K½Xµn¿ý¡A¹wÄý©MºÞ²z±zªººô¯¸¡C

¥Î¤á¦W¡G $user

±K½X¡G $password



µn¿ý«á¡A§A¥i¥H¨Ï¥Î¦U¶µºô¯¸ºÞ²z¥\¯à¡G



¹wÄýºô¯¸ - ¨C¦¸ºûÅ@ºô¯¸«á¡A³q¹L¡ª§ó·s©M¹wÄýºô¯¸¡ª«ö¶s¡A¥i¬Ý¨ì§ó·s«áªººô¯¸

¦WºÙºÞ²z - ­×§ïºô¯¸¦WºÙ¤Î¨ä¤å¦r¤Ø¤o¡BÃC¦â¡B¦rÅéµ¥

ºô­¶§G´º - ÀH®É¿ï¾Ü§ó´«§A³ßÅwªººô­¶³]­p§G´º

Äæ¥ØºÞ²z - ¼W¥[¡A§R°£©Î­×§ïºô¯¸Äæ¥Ø¦WºÙ¡F¶}³]¤G¯ÅÄæ¥Ø¡F«ü©wÄæ¥ØÃþ«¬©M±Æ¦C¶¶§Ç

¤º®eºÞ²z - ¤W¶Çºô¯¸¤¤¦UÄæ¥Øªº¤º®e©M¹Ï¤ù¡C

­º­¶±Æª© - ¥i¥H³]©w­º­¶¤£¦Pªº±Æª©¤è¦¡¡A±N­«­n¤º®e±ÀÂË¨ì­º­¶

³sµ²ºÞ²z - ©M¨ä¥Lºô¯¸°µ¤å¦r©Î¹Ï¤ù³sµ²

Âù»y³]¸m - §â¤À§O«Ø¥ßªº¤¤¡B­^¤åª©ºô¯¸³sµ²¦b¤@°_

¨ä¥L¶µ¥Ø - ¥]¬A¤W¶Ç¥ø·~¼Ð»x¡A¤W¶Ç­º­¶§Î¶H¹Ï¤ù¡B­p¼Æ¾¹ºÞ²z¡B¼s§i±øºÞ²z

¯d¨¥ªOºÞ²z - ³Ð«Ø©MºÞ²zºô¯¸¯d¨¥ªO

ºô§}¥Ó½Ð - ¥i¥H¬°ºô¯¸¥Ó½Ð°ê»Ú©Î°ê¤ººô§}



¦pªG±z¦b¾Þ§@¤¤¦³¤°»ò§xÃø¡AÅwªï¦V§Ú­Ì¸ß°Ý¡C

§Ú­ÌÄ@¬°±z´£¨Ñ³Ì¦nªºªA°È¡I



-------------------------------------------------------------------

¦b±z§¹¦¨¤Fºô¯¸Äæ¥Ø³]¸m«á¡A±z·|¦¬¨ì¤@«Ê¡mºô¯¸¶}³q³qª¾¡n

-------------------------------------------------------------------

".$owner." 

".$ownerurl." 



";



$from=$owneremail;

mail($email,$subject,$message,"From: $from\nReply-To: $from\nX-Mailer: PHP/".phpversion());

////////////////////////¦X§@¹Ù¦ñ³qª¾¶l¥ó

$ms="

$ADMAIL :

¦³¥Î¤á¥Ó½Ðºô­¶³]­pDIY!



ºô¯¸¦WºÙ¡G $sitename

§K¶Oºô§}¡G ".$baseurl."com/".$urlname."

¥Î¤á¦W¡G $user

Ápµ¸¹q¸Ü¡G $tel

¹q¤l¶l¥ó¡G $email

Ápµ¸¤H¡G   $name



½Ð»P¥Î¤áÁpµ¸¡A¤Î®É¦V¥Î¤á´£¨Ñ«Ø¯¸À°§U¡A¶}®i·~°È



";

$su="¦³¥Î¤á¥Ó½Ðºô­¶³]­pDIY";

	//mail($ADMAIL,$su,$ms,"From: $from\nReply-To: $from\nX-Mailer: PHP/".phpversion());

///////////////////////

}



}

?><HTML><HEAD><TITLE>ºô­¶³]­pDIY¨t²Î ·s«Øºô¯¸¾ÉÄý</TITLE>
<META content="text/html; charset=big5" http-equiv=Content-Type>
<STYLE>HTML {TEXT-DECORATION: none}
A:link {COLOR: #000000; TEXT-DECORATION: underline}
A:hover {COLOR: rgb(0,147,43); TEXT-DECORATION: underline}
EM {FONT-FAMILY: CourierNew; FONT-SIZE: 16pt; FONT-STYLE: normal}
A {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
P {



FONT-SIZE: 9pt



}



.hh input {background-color: #ffffff; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}



</STYLE>



</HEAD>



<BODY aLink=#000000 bgColor=#666666 leftMargin=0 link=#000000 topMargin=0 vLink=#000000 marginwidth="0" marginheight="0">
<div align="center"> 
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="80" bgcolor="#FFFFFF">
    <tr> 
      <td height="75" width="249"> 
        <div align="center"><img src="images/logo.gif"></div>
      </td>
      <td height="75" width="527"> 
        <div align="center"><a href=http://www.sina.com.cn target=_blank><img src=images/1.gif width=468 height=60 border=0></a> </div>
      </td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="16">
    <tr> 
      <td><a href="index.html"><img src="images/new_1.gif" width="776" height="26" border="0"></a></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center" height="16">
    <tr bgcolor="#FFFFFF"> 
      <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="776" height="89">
          <param name=movie value="images/auto.swf">
          <param name=quality value=high>
          <embed src="images/auto.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="776" height="89">
          </embed> 
        </object></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td height="2"><img src="images/new_3.gif" width="776" height="2"></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
    <tr> 
      <td valign="top" width="170"> 
        <table width="170" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="23"> 
              <table width="100%" border="0" cellspacing="1" cellpadding="0" height="23" background="images/new_bg.gif">
                <tr> 
                  <td><img src="images/dot.gif" width="10" height="10"><img src="images/news_4.gif" width="9" height="9">¡@¥Î 
                    ¤á µn ¿ý </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr valign="top"> 
            <td height="129"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <form method="post" action="main.php3">
                <tr> 
                  <td align="center"> 
                    <table width="90%" border="0" cellspacing="0" cellpadding="0" >
                      <tr> 
                        <td width="58" height="11"><img src="image/spacer.gif" width="1" height="1"></td>
                        <td height="11" width="105"><img src="image/spacer.gif" width="1" height="1"></td>
                      </tr>
                      <tr> 
                        <td width="58" height="25" align="center">¥Î¤á¦W</td>
                        <td height="25" class="hh" width="105"> 
                          <input type="text" name="user" size="12" maxlength="20">
                        </td>
                      </tr>
                      <tr> 
                        <td width="58" height="25" align="center">±K¡@½X</td>
                        <td height="25" class="hh" width="105"> 
                          <input type="password" name="password" size="12" maxlength="20">
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
                <tr align="center"> 
                  <td height="38"> 
                    <table width="89%" border="0" cellspacing="0" cellpadding="0" height="25">
                      <tr> 
                        <td height="8" colspan="2" valign="top" align="center">&nbsp;</td>
                      </tr>
                      <tr> 
                        <td height="25" width="48%" align="center" valign="top"><a href="reg.php3" ><img src="images/new_zc.gif" border="0" vspace="1" width="66" height="20"></a></td>
                        <td height="25" align="center" width="52%"> 
                          <div align="left"> 
                            <input type="image" border="0" name="Submit" src="images/new_dl.gif" width="66" height="20" >
                          </div>
                        </td>
                      </tr>
                      <tr> 
                        <td height="25" colspan="2"> 
                          <div align="center"><img src="images/mails.gif" width="14" height="13"> 
                            <a href="lostpassword.php3"><font color="#336600">§Ñ°O±K½X?½Ð«ö³o¸Ì</font></a></div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </form>
            </table></td>
          </tr>
          <tr> 
            <td  background="images/new_bg.gif" height="23"> 
              <table width="100%" border="0" cellspacing="1" cellpadding="0" height="23" background="images/new_bg.gif">
                <tr> 
                  <td><img src="images/dot.gif" width="10" height="10"><img src="images/news_4.gif" width="9" height="9">¡@¥Ó 
                    ½Ð ¨B ÆJ</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr valign="top" align="right"> 
            <td height="225"> 
              <table width="96%" border="0" cellspacing="1" cellpadding="1">
                <tr> 
                  <td height="22"><font color="#000000">²Ä¤@¨B ¡÷ µù¥U¨óÄ³</font></td>
                </tr>
                <tr> 
                  <td height="22"><font color="#000000"> ²Ä¤G¨B ¡÷ ¿ï¾Üºô­¶§G´º </font></td>
                </tr>
                <tr> 
                  <td height="22"><font color="#000000">²Ä¤T¨B ¡÷ ¶ñ¼g°ò¥»¸ê®Æ </font></td>
                </tr>
                <tr> 
                  <td height="22"><font color="#000000">²Ä¥|¨B ¡÷ ³]©wºô¯¸Äæ¥Ø¦WºÙ</font></td>
                </tr>
                <tr> 
                  <td height="22"><font color="#000000">²Ä¤­¨B ¡÷ §¹¦¨¡Aµn¿ýºÞ²z</font></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      <td width="3" valign="top" background="images/new_bg2.gif"><img src="images/dot.gif" width="4" height="10"></td>
      <td valign="top"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="23">
          <tr> 
            <td> 
              <table width="100%" border="0" cellspacing="1" cellpadding="0" height="23" background="images/new_bg.gif">
                <tr> 
                  <td><img src="images/dot.gif" width="10" height="10"><img src="images/news_4.gif" width="9" height="9">¡@ºô 
                    ¯¸ ¥Ó ½Ð ¾É Äý</td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="8" cellpadding="0">
          <tr valign="top"> 
            <td height="370">
              <form method='post' action='reg_3.php3'>
                <div align="center"> 
                  <table width="550" border="1" cellspacing="1" cellpadding="6" bgcolor="#bde1ac" bordercolor="#333333">
                    <tr bgcolor="#FFF5D0"> 
                      <td height="178"> 
                        <div align="center">±zªº¸ê®Æ¤w¸g«O¦s<br>
                          <br>
                          §¹¦¨¤U¤@¨Bªº¡ªºô¯¸¥DÄæ¥Ø³]¸m¡ª«á¡A´N¥i¥H¬d¬Ý©MºÞ²z±z¦Û¤vªººô¯¸¤F¡I<br>
                          <br>
                          <input type="submit" name="Submit" value="¤U¤@¨B¡G³]¸mºô¯¸Äæ¥Ø&gt;&gt;&gt;">
                          <input type="hidden" name="user" value="<?php echo "$user"; ?>">

                    <input type="hidden" name="password" value="<?php echo "$password"; ?>">
                        </div>
                      </td>
                    </tr>
                  </table>
                  <font color="#0066FF"><b><br>
                  <br>
                  </b></font> </div>
              </form>
            </td>
          </tr>
        </table>
      </td>
      <td background="images/new_bg3.gif" width="3"><img src="images/dot.gif" width="4" height="10"></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr> 
      <td height="2"><img src="images/new_3.gif" width="776" height="2"></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="0" cellpadding="0" height="5" align="center" background="images/new_bg.gif">
    <tr> 
      <td height="4"><img src="images/dot.gif" width="4" height="5"></td>
    </tr>
  </table>
  <table width="776" border="0" cellspacing="8" cellpadding="0" align="center" bgcolor="#FFFFFF">
    
    <tr> 
      <td height="109"> 
      <DIV align=center><a href="http://www.syoc.com" target="blank">¸Û¶§¬ì§Þ TEL¡G+886-2-89819990 FAX¡G+886-2-89819993</a></DIV>
	  <div align="center">¥ø·~ªA°È¬ÛÃö°ÝÃD¡AÅwªï¸ß°Ý</div>
<DIV align=center><A HREF="http://www.vf.com.tw" target="_blank" STYLE="text-decoration:none"¡@><font color="#000000">ºô­¶³]­p by </font></A><A HREF="http://www.syoc.com" target="_blank" STYLE="text-decoration:none"><font color="#000000">syoc</font></A></center></div>
      </td>
    </tr>
  </table>
</div>
</BODY></HTML>



