Advertisement
Guest User

Untitled

a guest
May 19th, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 26.87 KB | None | 0 0
  1.  <?
  2. /**
  3.  * @+===========================================================================+
  4.  * @¦ MUCore v1.0.8 Premium                                                     ¦
  5.  * @¦ Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF                      ¦
  6.  * @+===========================================================================+
  7.  */
  8. $settings = simplexml_load_file('engine/config_mods/account_settings_settings.xml');
  9. $active   = trim($settings->active);
  10. if ($active == '0') {
  11.     echo msg('0', text_sorry_feature_disabled);
  12. } else {
  13.     if ($settings->method == '2') {
  14.         $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
  15.         if ($verification_config->human_verification_type == 'reCAPTCHA') {
  16.             $is_reCAPTCHA = '1';
  17.             require_once('engine/recaptchalib.php');
  18.             $privatekey = $verification_config->reCAPTCHA_private_key;
  19.             $resp       = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
  20.         }
  21.        
  22.         $jq_cron = $core_db->Execute("Select next_cron from MUCore_Cron_Jobs where cron_id=?", array(
  23.             trim($settings->cron_job)
  24.         ));
  25.         if (cron_check($jq_cron->fields[0]) == false) {
  26.             $jq_cron_up          = $core_db->Execute("Update MUCore_Cron_Jobs set next_cron=(" . time() . "+cron_time_set) where cron_id=?", array(
  27.                 trim($settings->cron_job)
  28.             ));
  29.             $_get_temp_passwords = $core_db->Execute("Select id,expire from MUCore_Change_Passwords order by expire asc");
  30.             while (!$_get_temp_passwords->EOF) {
  31.                 $temp_expire_pass_time = $_get_temp_passwords->fields[1] - time();
  32.                 if ($temp_expire_pass_time <= 0) {
  33.                     $delete_temp_pass = $core_db->Execute("Delete from MUCore_Change_Passwords where id=?", array(
  34.                         $_get_temp_passwords->fields[0]
  35.                     ));
  36.                 }
  37.                 $_get_temp_passwords->MoveNext();
  38.             }
  39.         }
  40.        
  41.         if (isset($_POST['change_pass'])) {
  42.             require("engine/validate.php");
  43.            
  44.             $elems[] = array(
  45.                 'name' => 'email',
  46.                 'label' => text_register_error5,
  47.                 'type' => 'text',
  48.                 'required' => true,
  49.                 'len_max' => 50,
  50.                 'cont' => 'email'
  51.             );
  52.             $elems[] = array(
  53.                 'name' => 'current_password',
  54.                 'label' => '' . text_accountsettings_t1 . '',
  55.                 'type' => 'text',
  56.                 'required' => true,
  57.                 'len_min' => 6,
  58.                 'len_max' => 12,
  59.                 'cont' => 'alpha'
  60.             );
  61.             $elems[] = array(
  62.                 'name' => 'new_password',
  63.                 'label' => '' . text_accountsettings_t2 . '',
  64.                 'type' => 'text',
  65.                 'required' => true,
  66.                 'len_min' => 6,
  67.                 'len_max' => 12,
  68.                 'cont' => 'alpha'
  69.             );
  70.             $elems[] = array(
  71.                 'name' => 'confirm_new_password',
  72.                 'label' => '' . text_accountsettings_t3 . '',
  73.                 'type' => 'text',
  74.                 'required' => true,
  75.                 'len_min' => 6,
  76.                 'len_max' => 12,
  77.                 'cont' => 'alpha',
  78.                 'equal' => array(
  79.                     'new_password'
  80.                 )
  81.             );
  82.            
  83.             $f   = new FormValidator($elems);
  84.             $err = $f->validate($_POST);
  85.             if ($err === true) {
  86.                 $valid = $f->getValidElems();
  87.                 foreach ($valid as $k => $v) {
  88.                     if ($valid[$k][0][1] == false) {
  89.                         if (empty($valid[$k][0][2])) {
  90.                             echo msg('0', $valid[$k][0][2]);
  91.                             $error_password = '1';
  92.                         } else {
  93.                             echo msg('0', $valid[$k][0][2]);
  94.                             $error_password = '1';
  95.                         }
  96.                     }
  97.                 }
  98.             } else {
  99.                 $email     = safe_input($_POST['email'], '\_\@\.\-');
  100.                 $current_password     = safe_input($_POST['current_password'], '');
  101.                 $new_password         = safe_input($_POST['new_password'], '');
  102.                 $confirm_new_password = safe_input($_POST['confirm_new_password'], '');
  103.                
  104.                 if ($is_reCAPTCHA == '1') {
  105.                     if (!$resp->is_valid) {
  106.                         $bot_check = '1';
  107.                     }
  108.                 } else {
  109.                     if ($_SESSION['SID_code'] != md5($_POST['verify_int'])) {
  110.                         $bot_check = '1';
  111.                     }
  112.                 }
  113.                
  114.                
  115.                 if ($bot_check == '1') {
  116.                     echo msg('0', text_accountsettings_t4);
  117.                     $error_password = '1';
  118.                 } else {
  119.                     if ($core['config']['md5'] == '1') {
  120.                         $pass_ver = $core_db2->Execute("Select memb__pwd,mail_addr from MEMB_INFO where memb__pwd = [dbo].[fn_md5](?,?) and memb___id = ?", array(
  121.                             $current_password,
  122.                             $user_auth_id,
  123.                             $user_auth_id
  124.                         ));
  125.                     } elseif ($core['config']['md5'] == '0') {
  126.                         $pass_ver = $core_db2->Execute("Select memb__pwd,mail_addr from MEMB_INFO where memb__pwd = ? and memb___id = ?", array(
  127.                             $current_password,
  128.                             $user_auth_id
  129.                         ));
  130.                     }
  131.                     if ($pass_ver) {
  132.                         if ($pass_ver->EOF) {
  133.                             echo msg('0', text_accountsettings_t5);
  134.                             $error_password = '1';
  135.                         } else {
  136.                             if($pass_ver->fields[1] != $email){
  137.                                 echo msg('0', 'Wrong email address.');
  138.                                 $error_password = '1';
  139.                             }
  140.                             else{
  141.                                 $hash                   = md5(uniqid(microtime(), 1));
  142.                                 $insert_change_password = $core_db->Execute("Insert into MUCore_Change_Passwords(password,email,expire,memb___id,hash) VALUES (?,?,?,?,?)", array(
  143.                                     $new_password,
  144.                                     $pass_ver->fields[1],
  145.                                     time() + 86400,
  146.                                     $user_auth_id,
  147.                                     $hash
  148.                                 ));
  149.                                 if ($insert_change_password) {
  150.                                     $password_insert = '1';
  151.                                 }
  152.                             }
  153.                             /*
  154.                             if($core['config']['md5'] == '1'){
  155.                             $pass_up = $core_db2->Execute("Update memb_info set memb__pwd = [dbo].[fn_md5](?,?) where memb___id=?",array($new_password,$user_auth_id,$user_auth_id));
  156.                             }elseif ($core['config']['md5'] == '0'){
  157.                             $pass_up = $core_db2->Execute("Update memb_info set memb__pwd = ? where memb___id=?",array($new_password,$user_auth_id));
  158.                             }
  159.                             if($pass_up){
  160.                             echo msg('1','Password successfully changed, please re log-in.');
  161.                             }else{
  162.                             echo msg('0','Unable to change password, reason: system error, please contact administrator.');
  163.                             }*/
  164.                         }
  165.                        
  166.                     } else {
  167.                         echo msg('0', text_accountsettings_t6);
  168.                     }
  169.                 }
  170.             }
  171.         }
  172.        
  173.        
  174.         if (isset($_GET['change_password_md5'])) {
  175.             $change_password_md5 = '1';
  176.         }
  177.        
  178.        
  179.         echo '    <table  border="0" cellspacing="4" cellpadding="0"  align="center" width="100%" >
  180.            <tr>';
  181.         if ($password_insert != '1' && $change_password_md5 != '1') {
  182.             echo '<td align="left" class="curent_step" width="33%">1. ' . text_accountsettings_t7 . '</td>';
  183.         } else {
  184.             echo '<td align="left" class="step" width="33%">1. ' . text_accountsettings_t7 . '</td>';
  185.         }
  186.         if ($password_insert == '1' && $change_password_md5 != '1') {
  187.             echo '<td align="left" class="curent_step"  width="33%">2. ' . text_accountsettings_t8 . '</td>';
  188.         } else {
  189.             echo '<td align="left" class="step"  width="33%">2. ' . text_accountsettings_t8 . '</td>';
  190.         }
  191.         if ($change_password_md5 == '1') {
  192.             echo '<td align="left" class="curent_step"  width="33%">3. ' . text_accountsettings_t9 . '</td>';
  193.         } else {
  194.             echo '<td align="left" class="step"  width="33%">3. ' . text_accountsettings_t9 . '</td>';
  195.         }
  196.         echo '
  197.            </tr>
  198.            </table>';
  199.        
  200.         if ($password_insert != '1' && $change_password_md5 != '1') {
  201.             echo '    <form name="form" method="post" action="">
  202.            <table border="0" cellspacing="10" cellpadding="0" width="100%" style="margin-top: 10px; margin-bottom: 10px;" align="center">
  203.            <tr>
  204.            <td colspan="3" align="left" class="iRg_line">' . text_accountsettings_t10 . ':</td>
  205.            </tr>
  206.             <tr>
  207.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="160">' . text_email_address . '</td>
  208.            <td align="left" class="iRg_inf"><input class="iRg_input" type="text" name="email" maxlength="50"></td>
  209.            <td align="left" ><span class="iRg_inf">' . text_register_req5 . '</span></td>
  210.            </tr>
  211.            <tr>
  212.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="160">' . text_accountsettings_t11 . '</td>
  213.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="current_password" maxlength="12"></td>
  214.            <td align="left" ><span class="iRg_inf">' . text_accountsettings_t12 . '</span></td>
  215.            </tr>
  216.            <tr>
  217.            <tr>
  218.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="130">' . text_accountsettings_t13 . '</td>
  219.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="new_password" maxlength="12"></td>
  220.            <td align="left" ><span class="iRg_inf">' . text_accountsettings_t12 . '</span></td>
  221.            </tr>
  222.            <tr>        
  223.            <tr>
  224.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="130">' . text_accountsettings_t14 . '</td>
  225.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="confirm_new_password" maxlength="12"></td>
  226.            <td align="left" ><span class="iRg_inf"><em>*' . text_accountsettings_t16 . '</em></span></td>
  227.            </tr>
  228.            <tr>    
  229.            
  230. <td colspan="3" align="left" class="iRg_line">' . text_accountsettings_t17 . ':</td>
  231. </tr>
  232.            <tr>
  233. <td align="left" colspan="3"> ';
  234.             if ($is_reCAPTCHA == '1') {
  235.                 $publickey = $verification_config->reCAPTCHA_public_key;
  236.                 echo '<script type="text/javascript">
  237.        var RecaptchaOptions = {
  238.            theme : \'' . $verification_config->reCAPTCHA_theme . '\'
  239.            ,lang : \'en\'
  240.        };
  241.    </script>
  242. ';
  243.                 echo recaptcha_get_html($publickey);
  244.                
  245.             } else {
  246.                 echo '
  247. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  248. <tr>
  249. <td align="left"><img src="get.php?aI" border="0"></td>
  250. <td align="left" class="iRg_inf"><div align="left" style="padding-bottom: 4px; ">' . text_accountsettings_t18 . '</div><input class="iRg_input" type="text" name="verify_int" id="verify_int"></td>
  251. </tr>
  252. </table>';
  253.             }
  254.            
  255.             echo '
  256. </td>
  257. </tr>
  258.            </table>
  259.            <input type="hidden" name="change_pass">
  260.            
  261.            <table border="0" cellspacing="10" cellpadding="0" width="100%"  align="center">
  262.            <tr>
  263.            <td align="right"><input type="image" src="template/' . $core['config']['template'] . '/images/submit_btn.gif" onclick="return prse_inputs()"></td>
  264.            <td align="left"><img src="template/' . $core['config']['template'] . '/images/cancel_btn.gif" border="0" onclick="location.href=\'' . $core['config']['website_url'] . '\'"></td>
  265.            </table>
  266.            </form>';
  267.            
  268.         } elseif ($password_insert == '1') {
  269.             /*
  270.             require("engine/smtp.php");
  271.             $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  272.             $mail = new SMTP($get_config->smtp_server,$get_config->smtp_username,$get_config->smtp_password);
  273.             $header = $mail->make_header($core['config']['master_mail'],$pass_ver->fields[1],'Change Password for '.$core['config']['websitetitle'].'');
  274.             $header .= "Content-Type: text/html; charset=\"utf-8\" \r\n";
  275.             $header .= "Content-Transfer-Encoding: 8bit \r\n";
  276.             $header .= "MIME-Version: 1.0 \r\n";
  277.             */
  278.             $body = str_replace("{user_id}", $user_auth_id, mail_changepassword_t1);
  279.             $body = str_replace("{website_title}", $core['config']['websitetitle'], $body);
  280.             $body = str_replace("{change_password_url}", $core['config']['website_url'] . '/' . ROOT_INDEX . '?' . LOAD_GET_PAGE . '=' . USER_CMS_PAGE . '&' . USER_GET_PAGE . '=' . ACCOUNTSETTINGS_CMS_USER . '&change_password_md5=' . $hash, $body);
  281.             $body = str_replace("{new_password}", $new_password, $body);
  282.            
  283.             /*
  284.             $body = 'Dear '.$user_auth_id.',<br><br>
  285.             You have requested to change your password on '.$core['config']['websitetitle'].'. If you did not request this, please ignore it. It will expire in 24 hours time.<br>
  286.             <br>
  287.             To change your password, please visit the following page:<br>
  288.             <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.ACCOUNTSETTINGS_CMS_USER.'&change_password_md5='.$hash.'">'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.USER_CMS_PAGE.'&'.USER_GET_PAGE.'='.ACCOUNTSETTINGS_CMS_USER.'&change_password_md5='.$hash.'</a><br><br>
  289.             When you visit that page, your password will be changed.<br><br>
  290.             Your username is: '.$user_auth_id.'<br>
  291.             Your new password is: '.$new_password.'
  292.             <br><br><br>
  293.             All the best,<br>
  294.             '.$core['config']['websitetitle'].' Team.';
  295.             */
  296.             if ($core['debug'] == '1') {
  297.                 define('DISPLAY_XPM4_ERRORS', true);
  298.             } else {
  299.                 define('DISPLAY_XPM4_ERRORS', false);
  300.             }
  301.            
  302.             $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  303.            
  304.             require("engine/mail.php");
  305.             $m = new MAIL;
  306.             $m->From($core['config']['master_mail']);
  307.             $m->AddTo(trim($pass_ver->fields[1]));
  308.             $m->Subject('Change Password for ' . $core['config']['websitetitle'] . '');
  309.             $m->Html($body);
  310.            
  311.             if ($get_config->smtp_connection == 'none') {
  312.                 $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password)) or $smtp_connect_fail = '1';
  313.             } else {
  314.                 $c = $m->Connect(trim($get_config->smtp_server), intval($get_config->smtp_port), trim($get_config->smtp_username), trim($get_config->smtp_password), trim($get_config->smtp_connection), 10, 'localhost', null, 'plain') or $smtp_connect_fail = '1';
  315.             }
  316.            
  317.             if ($smtp_connect_fail != '1') {
  318.                 if ($m->Send($c)) {
  319.                     echo msg('1', text_accountsettings_t19);
  320.                 } else {
  321.                     echo msg('0', text_accountsettings_t20);
  322.                 }
  323.             } else {
  324.                 echo msg('0', text_accountsettings_t21);
  325.             }
  326.            
  327.         } elseif ($change_password_md5 == '1') {
  328.             if (empty($_GET['change_password_md5'])) {
  329.                 header('Location: ' . ROOT_INDEX . '');
  330.             } else {
  331.                 $md5_link = safe_input($_GET['change_password_md5'], '');
  332.                
  333.                
  334.                 $take_pass = $core_db->Execute("Select memb___id,password from MUCore_Change_Passwords where hash=?", array(
  335.                     $md5_link
  336.                 ));
  337.                 if ($take_pass->EOF) {
  338.                     echo msg('0', text_accountsettings_t22);
  339.                 } else {
  340.                     if ($core['config']['md5'] == '1') {
  341.                         $pass_up = $core_db2->Execute("Update MEMB_INFO set memb__pwd = [dbo].[fn_md5](?,?) where memb___id=?", array(
  342.                             $take_pass->fields[1],
  343.                             $take_pass->fields[0],
  344.                             $take_pass->fields[0]
  345.                         ));
  346.                     } elseif ($core['config']['md5'] == '0') {
  347.                         $pass_up = $core_db2->Execute("Update MEMB_INFO set memb__pwd = ? where memb___id=?", array(
  348.                             $take_pass->fields[1],
  349.                             $take_pass->fields[0]
  350.                         ));
  351.                     }
  352.                     if ($pass_up) {
  353.                         echo msg('1', text_accountsettings_t23);
  354.                     } else {
  355.                         echo msg('0', text_accountsettings_t24);
  356.                     }
  357.                 }
  358.             }
  359.         }
  360.        
  361.     } elseif ($settings->method == '1') {
  362.         $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
  363.         if ($verification_config->human_verification_type == 'reCAPTCHA') {
  364.             $is_reCAPTCHA = '1';
  365.             require_once('engine/recaptchalib.php');
  366.             $privatekey = $verification_config->reCAPTCHA_private_key;
  367.             $resp       = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
  368.         }
  369.        
  370.         if (isset($_POST['change_pass'])) {
  371.             require("engine/validate.php");
  372.            
  373.             $elems[] = array(
  374.                 'name' => 'email',
  375.                 'label' => text_register_error5,
  376.                 'type' => 'text',
  377.                 'required' => true,
  378.                 'len_max' => 50,
  379.                 'cont' => 'email'
  380.             );
  381.             $elems[] = array(
  382.                 'name' => 'current_password',
  383.                 'label' => '' . text_accountsettings_t1 . '',
  384.                 'type' => 'text',
  385.                 'required' => true,
  386.                 'len_min' => 6,
  387.                 'len_max' => 12,
  388.                 'cont' => 'alpha'
  389.             );
  390.             $elems[] = array(
  391.                 'name' => 'new_password',
  392.                 'label' => '' . text_accountsettings_t2 . '',
  393.                 'type' => 'text',
  394.                 'required' => true,
  395.                 'len_min' => 6,
  396.                 'len_max' => 12,
  397.                 'cont' => 'alpha'
  398.             );
  399.             $elems[] = array(
  400.                 'name' => 'confirm_new_password',
  401.                 'label' => '' . text_accountsettings_t3 . '',
  402.                 'type' => 'text',
  403.                 'required' => true,
  404.                 'len_min' => 6,
  405.                 'len_max' => 12,
  406.                 'cont' => 'alpha',
  407.                 'equal' => array(
  408.                     'new_password'
  409.                 )
  410.             );
  411.            
  412.             $f   = new FormValidator($elems);
  413.             $err = $f->validate($_POST);
  414.             if ($err === true) {
  415.                 $valid = $f->getValidElems();
  416.                 foreach ($valid as $k => $v) {
  417.                     if ($valid[$k][0][1] == false) {
  418.                         if (empty($valid[$k][0][2])) {
  419.                             echo msg('0', $valid[$k][0][2]);
  420.                         } else {
  421.                             echo msg('0', $valid[$k][0][2]);
  422.                         }
  423.                     }
  424.                 }
  425.             } else {
  426.                 $email     = safe_input($_POST['email'], '\_\@\.\-');
  427.                 $current_password     = safe_input($_POST['current_password'], '');
  428.                 $new_password         = safe_input($_POST['new_password'], '');
  429.                 $confirm_new_password = safe_input($_POST['confirm_new_password'], '');
  430.                
  431.                 if ($is_reCAPTCHA == '1') {
  432.                     if (!$resp->is_valid) {
  433.                         $bot_check = '1';
  434.                     }
  435.                 } else {
  436.                     if ($_SESSION['SID_code'] != md5($_POST['verify_int'])) {
  437.                         $bot_check = '1';
  438.                     }
  439.                 }
  440.                
  441.                 if ($bot_check == '1') {
  442.                     echo msg('0', text_accountsettings_t4);
  443.                 } else {
  444.                     if ($core['config']['md5'] == '1') {
  445.                         $pass_ver = $core_db2->Execute("Select memb__pwd, mail_addr from MEMB_INFO where memb__pwd = [dbo].[fn_md5](?,?) and memb___id = ?", array(
  446.                             $current_password,
  447.                             $user_auth_id,
  448.                             $user_auth_id
  449.                         ));
  450.                     } elseif ($core['config']['md5'] == '0') {
  451.                         $pass_ver = $core_db2->Execute("Select memb__pwd, mail_addr from MEMB_INFO where memb__pwd = ? and memb___id = ?", array(
  452.                             $current_password,
  453.                             $user_auth_id
  454.                         ));
  455.                     }
  456.                     if ($pass_ver) {
  457.                         if ($pass_ver->EOF) {
  458.                             echo msg('0', text_accountsettings_t5);
  459.                         } else {
  460.                             if($pass_ver->fields[1] != $email){
  461.                                 echo msg('0', 'Wrong email address.');
  462.                                 $error_password = '1';
  463.                             }
  464.                             else{
  465.                                 if ($core['config']['md5'] == '1') {
  466.                                     $pass_up = $core_db2->Execute("Update MEMB_INFO set memb__pwd = [dbo].[fn_md5](?,?) where memb___id=?", array(
  467.                                         $new_password,
  468.                                         $user_auth_id,
  469.                                         $user_auth_id
  470.                                     ));
  471.                                 } elseif ($core['config']['md5'] == '0') {
  472.                                     $pass_up = $core_db2->Execute("Update MEMB_INFO set memb__pwd = ? where memb___id=?", array(
  473.                                         $new_password,
  474.                                         $user_auth_id
  475.                                     ));
  476.                                 }
  477.                             }
  478.                             if ($pass_up) {
  479.                                 echo msg('1', text_accountsettings_t23);
  480.                             } else {
  481.                                 echo msg('0', text_accountsettings_t24);
  482.                             }
  483.                         }
  484.                        
  485.                     } else {
  486.                         echo msg('0', text_accountsettings_t25);
  487.                     }
  488.                    
  489.                 }
  490.                
  491.                
  492.             }
  493.         }
  494.         echo '    <form name="form" method="post" action="">
  495.            <table border="0" cellspacing="10" cellpadding="0" width="100%" style="margin-top: 10px; margin-bottom: 10px;" align="center">
  496.            <tr>
  497.            <td colspan="3" align="left" class="iRg_line">' . text_accountsettings_t10 . ':</td>
  498.            </tr>
  499.             <tr>
  500.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="160">' . text_email_address . '</td>
  501.            <td align="left" class="iRg_inf"><input class="iRg_input" type="text" name="email" maxlength="50"></td>
  502.            <td align="left" ><span class="iRg_inf">' . text_register_req5 . '</span></td>
  503.            </tr>
  504.            <tr>
  505.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="160">' . text_accountsettings_t11 . '</td>
  506.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="current_password" maxlength="12"></td>
  507.            <td align="left" ><span class="iRg_inf">' . text_accountsettings_t12 . '</span></td>
  508.            </tr>
  509.            <tr>
  510.            <tr>
  511.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="130">' . text_accountsettings_t13 . '</td>
  512.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="new_password" maxlength="12"></td>
  513.            <td align="left" ><span class="iRg_inf">' . text_accountsettings_t12 . '</span></td>
  514.            </tr>
  515.            <tr>        
  516.            <tr>
  517.            <td align="left" class="iRg_text" style="padding-left: 24px;" width="130">' . text_accountsettings_t14 . '</td>
  518.            <td align="left" class="iRg_inf"><input class="iRg_input" type="password" name="confirm_new_password" maxlength="12"></td>
  519.            <td align="left" ><span class="iRg_inf"><em>*' . text_accountsettings_t16 . '</em></span></td>
  520.            </tr>
  521.            <tr>    
  522.            
  523. <td colspan="3" align="left" class="iRg_line">' . text_accountsettings_t17 . ':</td>
  524. </tr>
  525.            <tr>
  526. <td align="left" colspan="3">';
  527.         if ($is_reCAPTCHA == '1') {
  528.             $publickey = $verification_config->reCAPTCHA_public_key;
  529.             echo '<script type="text/javascript">
  530.        var RecaptchaOptions = {
  531.            theme : \'' . $verification_config->reCAPTCHA_theme . '\'
  532.            ,lang : \'en\'
  533.        };
  534.    </script>
  535. ';
  536.             echo recaptcha_get_html($publickey);
  537.            
  538.         } else {
  539.             echo '
  540. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  541. <tr>
  542. <td align="left"><img src="get.php?aI" border="0"></td>
  543. <td align="left" class="iRg_inf"><div align="left" style="padding-bottom: 4px; ">' . text_accountsettings_t18 . '</div><input class="iRg_input" type="text" name="verify_int" id="verify_int"></td>
  544. </tr>
  545. </table>';
  546.         }
  547.        
  548.         echo '
  549.  
  550. </td>
  551. </tr>
  552.            </table>
  553.            <input type="hidden" name="change_pass">
  554.            
  555.            <table border="0" cellspacing="10" cellpadding="0" width="100%"  align="center">
  556.            <tr>
  557.            <td align="right"><input type="image" src="template/' . $core['config']['template'] . '/images/submit_btn.gif" onclick="return prse_inputs()"></td>
  558.            <td align="left"><img src="template/' . $core['config']['template'] . '/images/cancel_btn.gif" border="0" onclick="location.href=\'' . $core['config']['website_url'] . '\'"></td>
  559.            </table>
  560.            </form>';
  561.     }
  562.    
  563.    
  564. }
  565. /**
  566.  * @+===========================================================================+
  567.  * @¦ MUCore v1.0.8 Premium                                                     ¦
  568.  * @¦ Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF                      ¦
  569.  * @+===========================================================================+
  570.  */
  571. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement