<?  

//  cP Account Creator Version 0.4 Beta Build 01
//  Copyright (C) 2004 Brian Freeman
//  All Rights Reserved.
//
//  This script set is distributed as is with absolutely no warranty.
//  Users of this script set agree to use at their own risk.
//  Questions or comments?  Contact webmaster@freemans-web.com
//
//


?>
<h2>Welcome <? echo$email;?></h2>
<table border=0 valign=top class=mtable width=600 height=600>
<tr>
<td valign=top align=left>
    <table width=200>
        <tr>
            <td>
                  <h2>Account Statistics</h2>


            </td>
       </tr>
        <tr>
            <td>
                  <b>Email Address</b><br>
                  <?echo"$email@$domain";?><br><br>
            </td>
       </tr>
        <tr>
            <td>
                  <b>Email Forwarders</b><br>
<?
$email_forward0=$email_fwd_list[0];
$email_forward1=$email_fwd_list[1];
$email_forward2=$email_fwd_list[2];
if ($email_forward0==""){
  echo "NONE";
  }else{

?>
                          <form method=post action=chgpoppass.php>
                          <input type=hidden name=del_forward value=1>
                          <input type=hidden name=action value=delete>
                          <input type=hidden name=fwd value=<?echo$email_fwd_list[0];?>>
                          <input type=hidden name=email value=<?echo$email;?>>
                          <input type=hidden name=pass value=<?echo$raw_pwd;?>>
                          <input type=image src=../images/delete.gif width=30 height=30 value=Delete>
                              <?echo"$email_fwd_list[0]";?></form>
<?
    }
if($email_forward1!=""){
?>
                          <form method=post action=chgpoppass.php>
                          <input type=hidden name=del_forward value=1>
                          <input type=hidden name=action value=delete>
                          <input type=hidden name=fwd value=<?echo$email_fwd_list[1];?>>
                          <input type=hidden name=email value=<?echo$email;?>>
                          <input type=hidden name=pass value=<?echo$raw_pwd;?>>
                          <input type=image src=../images/delete.gif width=30 height=30 value=Delete>
                              <?echo"$email_fwd_list[1]";?></form>
<?
  }
if($email_forward2!=""){
?>
                          <form method=post action=chgpoppass.php>
                          <input type=hidden name=del_forward value=1>
                          <input type=hidden name=action value=delete>
                          <input type=hidden name=fwd value=<?echo$email_fwd_list[2];?>>
                          <input type=hidden name=email value=<?echo$email;?>>
                          <input type=hidden name=pass value=<?echo$raw_pwd;?>>
                          <input type=image src=../images/delete.gif width=30 height=30 value=Delete>
                              <?echo"$email_fwd_list[2]";?></form>
<?
}
?>
            </td>
       </tr>


        <tr>
            <td>
                  <b>Email Storage Used</b><br>
                  <?echo $usage_form1_e[0];?> Megs.<br><br>
            </td>
       </tr>

        <tr>
            <td>
                  <b>Web Address</b><br>
                  <a href="<?echo"http://$cp_subdomain";?>" target="blank"><?echo"http://$cp_subdomain";?></a><br><br>
            </td>
       </tr>
        <tr>
            <td>
                  <b>Storage Allowed</b><br>
                  <?echo$ftp_lim;?> Meg.<br><br>
            </td>
       </tr>
        <tr>
            <td>
                  <b>Storage Used</b><br>
                  <?echo$usage_form1_st[0];?> Meg.<br><br>
            </td>
       </tr>
       <tr>
           <td>
                   <b>Bandwidth Used</b><br>
                   <?echo$usage_form1_bw[0];?> Meg.<br><br>
          </td>
       </tr>
    </table>



</td>

<td valign=top align=center bgcolor=#C0C0C0>
    <table width=100>
        <tr>
            <td>&nbsp;            </td>
       </tr>
       <tr>
           <td> &nbsp;          </td>
       </tr>
    </table>



</td>

<td valign=top align=left>
    <table width=300>
<?
if($mail_script==0){
?>
           <tr>
                      <td align=left width=150 class=mtext>
                          <form action="http://<?echo"$domain:$port_mail";?>/login/" method="post" target=_blank>
                          <input type="hidden" name="user" value="<?echo$cp_email;?>" />
                          <input type="hidden" name="pass" value="<?echo $raw_pwd;?>" />

                          <input type=image src=../images/mail.png width=30 height=30 value=WebmailLogin>
                          Read Email</form>
                      </td>


           </tr>
<?
}else{
?>
           <tr>
                      <td align=left width=150 class=mtext>
                          <form action="../sqmail/src/redirect.php" method="post" target=_blank>
                          <input type="hidden" name="login_username" value="<?echo$cp_email;?>" />
                          <input type="hidden" name="secretkey" value="<?echo $raw_pwd;?>" />
                          <input type="hidden" name="js_autodetect_results" value="0" />
                          <input type="hidden" name="just_logged_in" value="1" />
                          <input type=image src=../images/mail.png width=30 height=30 value=WebmailLogin>
                          Read Email</form>
                      </td>


           </tr>

<?
}
?>
           <tr>
                      <td align=left width=150 class=mtext>
                          <form method=post action=poppass.php>
                          <input type=hidden name=change_pass value=1>
                          <input type=hidden name=email value=<?echo$email;?>>
                          <input type=hidden name=sess value=<?echo$password;?>>
                          <input type=image src=../images/logoff.gif width=30 height=30 value=Change_Password>
                          Change Password
                          </form>
                      </td>


           </tr>

<?if($emforward==1){?>
           <tr>
                      <td align=left width=150 class=mtext>
                          <form method=post action=poppass.php>
                          <input type=hidden name=add_forward value=1>
                          <input type=hidden name=email value=<?echo$email;?>>
                          <input type=hidden name=sess value=<?echo$password;?>>
                          <input type=image src=../images/mail.png width=30 height=30 value=Change_Password>
                          Add Forwarder
                          </form>
                      </td>


           </tr>
<?}if($webftp==1){?>
           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=../webftp/index.php target=_blank>
                   <input type=hidden name=user value=<?echo$cp_email;?>>
                   <input type=hidden name=password value=<?echo$raw_pwd;?>>
                   <input type=image src=../images/gotodir.gif width=30 height=30 value=File_Manager>
                   File Manager
                   </form>
               </td>
           </tr>
<?}if($net2ftp==1){?>
           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=../net2ftp/index.php target=blank>
                   <input type=hidden name=username value=<?echo$cp_email;?>>
<input type="hidden" name="dirstructure" value="<?echo$net2ftp_dirstr[1];?>">                   <input type=hidden name=password value=<?echo$raw_pwd;?>>
 <input type="hidden" name="ftpserver" value="localhost" />
 <input type="hidden" name="ftpserverport" value="21" />
 <input type="hidden" name="anonymous" value="1" />
 <input type="hidden" name="language" value="1" />
 <input type="hidden" name="skin" value="1">
 <input type="hidden" name="ftpmode" value="binary" />
 <input type="hidden" name="state"     value="browse" />
<input type="hidden" name="state2"    value="main" />
<input type="hidden" name="cookieset" value="" />

                   <input type=image src=../images/gotodir.gif width=30 height=30 value=File_Manager>
                   Net2FTP File Manager
                   </form>
               </td>
           </tr>
<?}if($phpmyadmin==1){?>
<tr>
<td class=mtext>
<a href=../phpmyadmin target=_blank> <img src="../images/logo_right.png" border=0 width=65 height=35></a> PHP My Admin*

</td>
</tr>
<?}if($mpanel==1){?>



           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=../mpanel/login.php target=blank>
                   <input type=hidden name=username value=<?echo$ownername;?><?echo"_$email";?>>
                   <input type=hidden name=password value=<?echo$raw_pwd;?>>
                   <input type=hidden name=host value=localhost>
                   <input type=image src=../images/db.gif width=30 height=30 value=Database_Edit>
               Database Editor
                </form>
               </td>
           </tr>
<?}?>
           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=client_access.php>
                   <input type=hidden name=email value=<?echo$email;?>>
                   <input type=hidden name=sess value=<?echo$password;?>>
                   <input type=hidden name=view value=1>
                   <input type=image src=../images/stats.gif width=30 height=30 value=Web_Stats>
               Web Statistics
                </form>
               </td>
           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=client_access.php>
                   <input type=hidden name=email value=<?echo$email;?>>
                   <input type=hidden name=sess value=<?echo$password;?>>
                   <input type=hidden name=view value=2>
                   <input type=image src=../images/drive.gif width=30 height=30 value=Storage_Stats>
               Storage Statistics
                </form>
               </td>






<?
if(($user_inst_forum==1)||($inst_forum==1)){
  ?>

    </table>
<td valign=top align=center>
    <table width=150>
           <tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=http://<?echo "$cp_subdomain";?>/forum/login.php target=blank>
                   <input type=hidden name=username value=<?echo$email;?>>
                   <input type=hidden name=password value=<?echo$raw_pwd;?>>
                   <input type=image src=../images/forum.gif width=30 height=30 value=Forum>
               Forum
                </form>
               </td>
             </tr>
<?
}

if($user_inst_forum==1){
$forum_serv=explode("/",$cp_subdomain);
$forum_serve=$forum_serv[1];
if($forum_serve==""){
  $forum_server=$cp_subdomain;
}else{
  $forum_server=$forum_serv[0];
}

?>

       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="path" value="<?echo$dir_struct;?>"/>
	<input type="hidden" name="uinst_forum" value="1"/>
	<input type="hidden" name="server" value="<?echo$forum_server;?>"/>
	<input type="hidden" name="auth" value="1"/>
	<input type="hidden" name="dom_type" value="<?echo$dom_type;?>"/>
      <input type=image src=../images/forum.gif width=30 height=30   value=InstallForum>
                   Install Forum
	</form>
	</td>
       </tr>

       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="uninstall_forum" value="1"/>
	<input type="hidden" name="usr_subdomain" value="<?echo$cp_subdomain;?>"/>
	<input type="hidden" name="auth" value="1"/>
      <input type=image src=../images/forum.gif width=30 height=30   value=UnInstallForum>
                  UnInstall Forum
	</form>
	</td>
       </tr>




<?
}


if(($user_inst_sf==1)||($inst_siteframe==1)){
  ?>
       <tr>
               <td align=left width=150 class=mtext>
<form method="post" action="http://<?echo "$cp_subdomain";?>/web/login.php" name="login" target=_blank enctype="multipart/form-data">

<input type="hidden" name="login_user_email"  size="30"  maxlength="250" value="<?echo"$email@$domain";?>"/>
<input type="hidden" name="login_password"  size="30"  maxlength="250" value="<?echo$raw_pwd;?>"/>
<input type="hidden" name="login_remember" value="1"/>
<input type="hidden" name="submitted" value="1"/>
<input type="hidden" name="login_redirect" value=""/>
                   <input type=image src=../images/siteframe.png width=60 height=20   value=SiteFrame>

</form>
</td>
       </tr>
<?
}

if($user_inst_sf==1){
?>
       
       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="homedir" value="<?echo$dir_struct;?>"/>
	<input type="hidden" name="uinst_siteframe" value="1"/>
	<input type="hidden" name="siteurl" value="<?echo$cp_subdomain;?>"/>
	<input type="hidden" name="auth" value="1"/>
      <input type=image src=../images/siteframe.png width=60 height=20   value=InstallSiteFrame>
                   Install
	</form>
	</td>
       </tr>
       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="uninstall_siteframe" value="1"/>
	<input type="hidden" name="usr_subdomain" value="<?echo$cp_subdomain;?>"/>
	<input type="hidden" name="auth" value="1"/>
      <input type=image src=../images/siteframe.png width=60 height=20      value=UnInstallSiteFrame>
                  UnInstall
	</form>
	</td>
       </tr>


<?
}



if(($user_inst_guestbook==1)||($inst_guestbook==1)){
  ?>
       <tr>
               <td align=left width=150 class=mtext>
<form method="post" action="http://<?echo "$cp_subdomain";?>/guestbook/login.php" name="login" target=_blank enctype="multipart/form-data">

<input type="hidden" name="user"  size="30"  maxlength="250" value="administrator"/>
<input type="hidden" name="password"  size="30"  maxlength="250" value="password"/>

                   <input type=image src=../images/guestbook.png width=60 height=20   value=SiteFrame>

</form>
</td>
       </tr>
<?
}

if($user_inst_guestbook==1){
?>

       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="host" value="<?echo"$host";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="uinst_guestbook" value="1"/>
	<input type="hidden" name="auth" value="1"/>
      <input type=image src=../images/guestbook.png width=60 height=20   value=InstallGuestbook>
                   Install
	</form>
	</td>
       </tr>
       <tr>
       <td align=left width=150 class=mtext>
	<form method="post" action="../client_inst.php" name="login" target=_blank>
	<input type="hidden" name="email" value="<?echo"$cp_username";?>"/>
	<input type="hidden" name="password" value="<?echo$raw_pwd;?>"/>
	<input type="hidden" name="uninstall_guestbook" value="1"/>
	<input type="hidden" name="usr_subdomain" value="<?echo$cp_subdomain;?>"/>
	<input type="hidden" name="auth" value="1"/>
      <input type=image src=../images/guestbook.png width=60 height=20      value=UnInstallGuestbook>
                  UnInstall
	</form>
	</td>
       </tr>
<?}?>





<?if($pphlogger==1){ ?>
<tr>
<td align=left width=150 class=mtext>
<form action="http://<?echo$pphlogger_url;?>/login.php" name="login_form" method="post" target=_blank>

<input size="15" id="username" class="myInput" type="hidden" name="usr" value="<?echo"$cp_username";?>" tabindex="1" />

<input size="8" id="password" class="myInput" type="hidden" name="pw" value="<?echo$raw_pwd;?>"tabindex="2" />&nbsp;&nbsp;
<input class="myInput" type="submit" value="Login" name="submit" />PowerPhlogger
</form>
	</td>
</tr>
<?}?>
<tr>
               <td align=left width=150 class=mtext>
                   <form method=post action=client_access.php target=_blank>
                   <input type=hidden name=email value=<?echo$email;?>>
                   <input type=hidden name=sess value=<?echo$password;?>>
                   <input type=hidden name=view value=3>
      <input type=image src=../images/php.gif width=60 height=30   value=PHPInfo>
                   PHP Info

                </form>
               </td>
</tr>



       <tr>


       </tr>

    </table>



</td>
<td valign=top align=center>
    <table width=50>
       <tr>
           <td> &nbsp;          </td>
       </tr>
       <tr>
           <td> &nbsp;          </td>
       </tr>
    </table>



</td>
</td>
</tr>
</table>
<table>
<tr>


<td><form method=post action=client_acc.php>
<input type=hidden name=user value="">
<input type=hidden name=pass value="">
<input type=submit value=LOGOUT>
</form></td>

</tr>
<tr>
<td>
<font size="2">* No Autologin provided</font>
</td>
</tr>
</table>