Advertisement
Guest User

Untitled

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