Warning: set_time_limit() has been disabled for security reasons in /wp-user.php on line 2
darkshadow File Manager

darkshadow File Manager

Current Path : /
Upload File :
Current File : //confirm.php

<?
/***************************************************************************
 *                                confirm.php
 *                            -------------------
 *   begin                : Tuesday', Aug 15', 2002
 *   copyright            : ('C) 2002 Bugada Andrea
 *   email                : phpATM@free.fr
 *
 *   $Id: confirm.php, v1.02 2002/09/28 11:53:50 bugada Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License', or
 *   ('at your option) any later version.
 *
 ***************************************************************************/

define('IN_PHPATM', true);
include('include/conf.php');
include('include/common.'.$phpExt);

function print_default()
{
global $mess, $font, $normalfontcolor, $selectedfontcolor, $homeurl, $languages;
global $uploadcentercaption, $phpExt;
global $tablecolor,$bordercolor,$headercolor,$headerfontcolor;

echo "
   <br>
   <table border=\"0\" width=\"90%\" bgcolor=\"$bordercolor\" cellpadding=\"4\" cellspacing=\"1\">
     <tr>
       <th align=\"left\" bgcolor=\"$headercolor\" valign=\"middle\"><font size=\"2\" face=\"$font\" color=\"$headerfontcolor\">$mess[145]</font></th>
     </tr>
     <tr>
         <td align=\"left\" bgcolor=\"$tablecolor\" valign=\"middle\">
         <form name=\"userlogin\" action=\"confirm.$phpExt?".SID."\" enctype=\"multipart/form-data\" method=\"post\" style=\"margin: 0\">
           <input type=\"hidden\" name=\"action\" value=\"".ACTION_CONFIRM."\">
           <table border=\"0\" width=\"100%\" cellpadding=\"4\">
             <tr>
               <td align=\"left\" width=\"15%\"><font size=\"1\" face=\"$font\" color=\"$normalfontcolor\">$mess[57]</font></td>
               <td align=\"left\" width=\"90%\" colspan=\"2\">
                 <input type=\"text\" class=\"vform\" name=\"user_name\" size=25>
               </td>
             </tr>
             <tr>
               <td align=\"left\" width=\"15%\"><font size=\"1\" face=\"$font\" color=\"$normalfontcolor\">$mess[146]</font></td>
               <td align=\"left\" width=\"75%\">
                 <input type=\"text\" class=\"vform\" name=\"code\" size=25>
               </td>
               <td align=\"right\" width=\"10%\" colspan=\"2\">
                 <input type=\"submit\" class=\"vform\" name=\"Submit\" value=\"$mess[127]\" />
               </td>
             </tr>
           </table>
         </form>
         </td>
     </tr>
     </table>
 </div>";
}


//----------------------------------------------------------------------------
//      MAIN
//----------------------------------------------------------------------------

switch($action)
{
	case ACTION_SELECTSKIN;
		change_skin();
		place_message($mess[147], $mess[96], basename(__FILE__));
		print_default();
		break;


	case ACTION_CONFIRM;
		if (($user_name != '') && ($code != ''))
		{
			$userfilename = "$users_folder_name/$user_name";
			// Check the user name
			if (file_exists($userfilename))
			{
				load_user_profile($user_name);
				if (substr($user_temp_info,0,1) != 'm')
				{
					place_message($mess[147], $mess[148].' '.sprintf($mess[116], "<a href=\"login.$phpExt?".SID."\" style=\"font-size:10px;\">", "</a>"), basename(__FILE__));
					show_footer_page();
					exit;
				}
				list($m, $confcode, $newmail) = explode(":", $user_temp_info);
				if ($confcode == $code)
				{
					$user_email = $newmail;
					$user_temp_info = '';
					save_user_profile($user_name);
					place_message(sprintf($mess[147], $user_email), sprintf($mess[150], $user_email)." ".sprintf($mess[116], "<a href=\"login.$phpExt?".SID."\" style=\"font-size:10px;\">", "</a>"), "");
					show_footer_page();
					exit;
				}
			}
			// Show invalid activation code message
			place_message($mess[147], $mess[149].' '.sprintf($mess[101], "<a href=\"confirm.$phpExt?".SID."\" style=\"font-size:10px;\">", "</a>"), basename(__FILE__));
		}
		else
			place_message($mess[147], $mess[149].' '.sprintf($mess[101], "<a href=\"confirm.$phpExt?".SID."\" style=\"font-size:10px;\">", "</a>"), basename(__FILE__));
		break;

	default;
		place_message($mess[147], $mess[147], basename(__FILE__));
		print_default();
		break;
}

show_footer_page();
?>

darkshadow File Manager Version 1.0, Coded By Fallag darkshadow-tn
Email: dhiajridi12@gmail.com