Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 29.48 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @Author: roman
  4.  * @Date:   2018-02-22 22:07:30
  5.  * @Last Modified by:   roman
  6.  * @Last Modified time: 2018-02-22 23:38:05
  7.  */
  8.  
  9. /**
  10.  * Codifica un una cadena y devuelve una cadena codificada en hex
  11.  *
  12.  * @param  Recibe el aprametro usuario.
  13.  * @return Retorna cadena encriptada.
  14.  */
  15. function _enc($usr) {
  16.     $hash = bin2hex(base64_encode($usr));
  17.     return $hash;
  18. }
  19.  
  20. /**
  21.  * Decodifica una cadena y la devuelve en cadena..
  22.  *
  23.  * @param  Recibe el aprametro usuario
  24.  * @return Retorna cadena desencriptada.
  25.  */
  26. function _dec($usr){
  27.     $hash = base64_decode(hex2bin($usr));
  28.     return $hash;
  29. }
  30. ?>
  31.  
  32. <br />
  33. <br />
  34. <center><img alt="Mu Online Latino" src="/images/gift_referral.jpg" /></center>
  35. <style type="text/css">
  36. .labelter {color: #CCC; font-size:12px; font-family: arial; background: #0a0a0a; display: inline-block; padding: 15px;}
  37. input-radio,
  38. .input-checkbox {width: 15px; height: 20px;cursor: pointer; }
  39. .loginbutton {
  40.     width:280px;    
  41.     font-family: 'Quicksand', sans-serif;
  42.     border: 0px;
  43.     border-bottom: 2px solid #E6B925;
  44.     color: #222426;
  45.     background:#DAA520;
  46.     -webkit-border-radius: 2px !important;
  47.     -moz-border-radius: 2px!important;
  48.     border-radius: 3px!important;
  49.     text-shadow: 0px 1px #FFE021;}
  50. .checkbox {}
  51. .tablareg { width:80%; text-align:center; }
  52.  
  53. select              {
  54.   background: rgba(0,0,0,0.5);
  55.   font-size:20px;
  56.   padding:10px 10px 10px 5px;
  57.   color:#CCC;
  58.   display:block;
  59.   width:300px;
  60.   border:none;
  61.   border-bottom:1px solid #757575;text-shadow:1px 1px 1px #000;
  62. }
  63.  
  64. select option { background-color:#333; color: #cacaca; font-size:14px;text-shadow:1px 1px 1px #000;}
  65.  
  66.  
  67. input               {
  68.   background: rgba(0,0,0,0.5);
  69.   font-size:20px;
  70.   padding:10px 10px 10px 5px;
  71.   color:#CCC;
  72.   display:block;
  73.   width:285px;
  74.   border:none;
  75.   border-bottom:1px solid #757575;text-shadow:1px 1px 1px #000;
  76. }
  77. input:focus         { outline:none; }
  78.  
  79.  
  80. .textinfo               {
  81.   background: rgba(255,0,0,0.5);
  82.   text-shadow:1px 1px 1px #000;
  83.   font-size:20px;
  84.   padding:10px 10px 10px 5px;
  85.   color:#CCC;
  86.   display:block;
  87.   width:180px;
  88.   border:none;
  89.   border-bottom:1px solid #757575;
  90. }
  91.  
  92. .Campos_server{
  93.     font-size: 20px;
  94.     font-family: arial;
  95. }
  96. </style>
  97. <?
  98. $get_config = simplexml_load_file('engine/config_mods/register_settings.xml');
  99. if ($get_config->active == '0') {
  100.     echo msg('0', text_sorry_feature_disabled);
  101. } else {
  102.     $register_method = $get_config->method;
  103.    
  104.     $verification_config = simplexml_load_file('engine/config_mods/human_verification.xml');
  105.     if ($verification_config->human_verification_type == 'reCAPTCHA') {
  106.         $is_reCAPTCHA = '1';
  107.         require_once('engine/recaptchalib.php');
  108.         $privatekey = $verification_config->reCAPTCHA_private_key;
  109.         $resp       = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]);
  110.     }
  111.    
  112.    
  113.    
  114.     echo '
  115. <script type="text/javascript">    
  116. load_image= new Image(16,16);
  117. load_image.src="template/' . $core['config']['template'] . '/images/load.gif";
  118.  
  119. function Ajax(div,id, page, form, append, data){
  120.  
  121.    document.getElementById(div).innerHTML = \'<img src="template/' . $core['config']['template'] . '/images/load.gif" width="16" height="16"> Please wait...\';
  122.    var veri = \'\';
  123.    if( typeof(data) == "string")
  124.        veri = data;
  125.    else
  126.        veri = $(form).serialize();
  127.    $.ajax({
  128.   type: "POST",
  129.   url: page,
  130.   data: veri,
  131.   error: function(html)
  132.   {
  133.           alert("falied");
  134.   },
  135.   success: function(html)
  136.   {
  137.        if( typeof(append) == "boolean")
  138.            $(id).append(html);
  139.        else
  140.            $(id).html(html);
  141.   }
  142.  });
  143.  return false;
  144. }
  145. </script>
  146.  
  147. <script type="text/javascript">
  148. function cs_ua_a(){
  149.    if (document.sign_up_frm.userid.value.length < 4){
  150.        alert(\'User ID, 4-10 characters\n(letters and numbers only)\');
  151.    }else{
  152.        uss = document.getElementById(\'userid\').value;
  153.        url_p = "get.php?aA="+uss;
  154.        Ajax(\'c_uss\',\'#c_uss\',url_p, null, \'data=c_uss\');
  155.    }
  156.  
  157. }
  158.  
  159. function csm_uam_am(){
  160.    if (document.sign_up_frm.email_address.value.length < 2){
  161.        alert(\'Please enter an valid mail address \n(e.g: somebody@yahoo.com)\');
  162.    }else{
  163.        uss = document.getElementById(\'email_address\').value;
  164.        url_p = "get.php?aMl="+uss;
  165.        Ajax(\'c_mss\',\'#c_mss\',url_p, null, \'data=c_mss\');
  166.    }
  167.  
  168. }
  169.  
  170. function parse_inputs(){
  171.    if (document.sign_up_frm.userid.value.length < 4){
  172.        alert(\'User ID, 4-12 characters\n(letters and numbers only)\');
  173.        return false;
  174.    }
  175.  
  176.    if (document.sign_up_frm.password.value.length < 6){
  177.        alert(\'Password, 6-12 characters\n(letters and numbers only, passwords are case-sensitive.)\');
  178.        return false;
  179.    }
  180.  
  181.    if (document.sign_up_frm.confirm_password.value.length < 6){
  182.        alert(\'Confirm Password, 6-12 characters\n(letters and numbers only, passwords are case-sensitive.)\');
  183.        return false;
  184.    }
  185.    if (document.sign_up_frm.password.value != document.sign_up_frm.confirm_password.value){
  186.        alert(\'Passwords did not match.\');
  187.        return false;
  188.    }
  189.    ';
  190.     if ($get_config->pers_id_active == '1') {
  191.         echo 'if (document.sign_up_frm.pers_id.value.length < ' . $get_config->pers_id_length . '){
  192.        alert(\'Please enter an valid Personal ID number \n(12 digits, numbers only.)\');
  193.        return false;
  194.    }';
  195.     }
  196.    
  197.     echo '
  198.    if (document.sign_up_frm.email_address.value.length < 2){
  199.        alert(\'Please enter an valid mail address \n(e.g: somebody@gmail.com)\');
  200.        return false;
  201.    }
  202.    if (document.sign_up_frm.country.value ==  \'x\'){
  203.        alert(\'Please select country.\');
  204.        return false;
  205.    }
  206.    if ((document.sign_up_frm.gender[0].checked==false)&&(document.sign_up_frm.gender[1].checked==false)){
  207.        alert(\'Please select gender.\');
  208.        return false;
  209.    }
  210.    if (document.sign_up_frm.question.value ==  \'x\'){
  211.        alert(\'Please select question.\');
  212.        return false;
  213.    }
  214.    if (document.sign_up_frm.answer.value.length < 4){
  215.        alert(\'Please enter the answer to your secret question.\n(letters and numbers only)\');
  216.        return false;
  217.    }';
  218.     if ($is_reCAPTCHA != '1') {
  219.         echo '    if (document.sign_up_frm.verify_int.value.length < 6){
  220.        alert(\'Please enter the code from verification image.\');
  221.        return false;
  222.    }';
  223.        
  224.     }
  225.    
  226.    
  227.     echo '
  228.    if ((document.sign_up_frm.terms.checked==false)){
  229.        alert(\'Please read the Terms of Service.\');
  230.        return false;
  231.    }
  232.  
  233.    document.sign_up_frm.submit();
  234. }
  235.  
  236. </script>';
  237.    
  238.    
  239.     if (isset($_POST['create_account'])) {
  240.         require("engine/validate.php");
  241.         $elems[] = array(
  242.             'name' => 'userid',
  243.             'label' => text_register_error1,
  244.             'type' => 'text',
  245.             'uname' => 'true',
  246.             'required' => true,
  247.             'len_min' => 4,
  248.             'len_max' => 10,
  249.             'cont' => 'alpha'
  250.         );
  251.        
  252.        
  253.         $elems[] = array(
  254.             'name' => 'password',
  255.             'label' => text_register_error2,
  256.             'type' => 'text',
  257.             'required' => true,
  258.             'len_min' => 6,
  259.             'len_max' => 10,
  260.             'cont' => 'alpha'
  261.         );
  262.         $elems[] = array(
  263.             'name' => 'confirm_password',
  264.             'label' => text_register_error3,
  265.             'type' => 'text',
  266.             'required' => true,
  267.             'len_min' => 6,
  268.             'len_max' => 10,
  269.             'cont' => 'alpha',
  270.             'equal' => array(
  271.                 'password'
  272.             )
  273.         );
  274.        
  275.         if ($get_config->pers_id_active == '1') {
  276.             $elems[] = array(
  277.                 'name' => 'pers_id',
  278.                 'label' => str_replace("{pers_id_length}", $get_config->pers_id_length, text_register_error4),
  279.                 'type' => 'text',
  280.                 'required' => true,
  281.                 'len_min' => $get_config->pers_id_length,
  282.                 'len_max' => $get_config->pers_id_length,
  283.                 'cont' => 'digit'
  284.             );
  285.         }
  286.        
  287.         $elems[] = array(
  288.             'name' => 'email_address',
  289.             'label' => text_register_error5,
  290.             'type' => 'text',
  291.             'required' => true,
  292.             'len_max' => 50,
  293.             'cont' => 'email'
  294.         );
  295.        
  296.         $elems[] = array(
  297.             'name' => 'country',
  298.             'label' => text_register_error6,
  299.             'type' => 'text',
  300.             'required' => true,
  301.             'len_max' => 3,
  302.             'cont' => 'digit'
  303.         );
  304.         $elems[] = array(
  305.             'name' => 'gender',
  306.             'label' => text_register_error7,
  307.             'type' => 'text',
  308.             'required' => true,
  309.             'len_max' => 1,
  310.             'cont' => 'digit'
  311.         );
  312.         $elems[] = array(
  313.             'name' => 'question',
  314.             'label' => text_register_error8,
  315.             'type' => 'text',
  316.             'required' => false,
  317.             'len_max' => 2,
  318.             'cont' => 'digit'
  319.         );
  320.        
  321.         $elems[] = array(
  322.             'name' => 'answer',
  323.             'label' => text_register_error9,
  324.             'type' => 'text',
  325.             'required' => true,
  326.             'len_min' => 4,
  327.             'len_max' => 20,
  328.             'cont' => 'alpha'
  329.         );
  330.        
  331.         $elems[] = array(
  332.             'name' => 'referral',
  333.             'label' => text_register_error19,
  334.             'type' => 'text',
  335.             'uname' => 'true',
  336.             'required' => true,
  337.             'len_min' => 4,
  338.             'len_max' => 10,
  339.             'cont' => 'alpha'
  340.         );
  341.         $f       = new FormValidator($elems);
  342.         $err     = $f->validate($_POST);
  343.         if ($err === true) {
  344.             $valid = $f->getValidElems();
  345.             foreach ($valid as $k => $v) {
  346.                 if ($valid[$k][0][1] == false) {
  347.                     if (empty($valid[$k][0][2])) {
  348.                         $msg_error = msg('0', $valid[$k][0][2]);
  349.                     } else {
  350.                         $msg_error = msg('0', $valid[$k][0][2]);
  351.                     }
  352.                 }
  353.             }
  354.         } else {
  355.             $userid   = safe_input($_POST['userid'], '');
  356.             $password = safe_input($_POST['password'], '');
  357.             $email    = safe_input($_POST['email_address'], '\_\@\.\-');
  358.             $country  = safe_input($_POST['country'], '');
  359.             $gender   = safe_input($_POST['gender'], '');
  360.             $question = safe_input($_POST['question'], '');
  361.             $anaswer  = safe_input($_POST['answer'], '');
  362.             $areferral  = safe_input(_dec($_POST['referral']), '');
  363.             if ($get_config->pers_id_active == '1') {
  364.                 $pid = safe_input($_POST['pers_id'], '');
  365.             } else {
  366.                 $pid = trim($get_config->pers_id);
  367.             }
  368.            
  369.            
  370.             if ($is_reCAPTCHA == '1') {
  371.                 if (!$resp->is_valid) {
  372.                     $bot_check = '1';
  373.                 }
  374.             } else {
  375.                 if ($_SESSION['SID_code'] != md5($_POST['verify_int'])) {
  376.                     $bot_check = '1';
  377.                 }
  378.             }
  379.            
  380.            
  381.             if ($bot_check == '1') {
  382.                 $msg_error = msg('0', text_register_error10);
  383.                
  384.             } else {
  385.                 if (check_account($userid) === true) {
  386.                     $msg_error = msg('0', text_register_error11);
  387.                 } else {
  388.                     if (check_mail($email) === true) {
  389.                         $msg_error = msg('0', text_register_error12);
  390.                     } else {
  391.                         if ($register_method == '1') {
  392.                             $confirmed       = '1';
  393.                             $blocked         = '0';
  394.                             $activation_need = '0';
  395.                             $activation_id   = md5($userid);
  396.                         } elseif ($register_method == '2') {
  397.                             $confirmed       = '0';
  398.                             $blocked         = '1';
  399.                             $activation_need = '1';
  400.                             $activation_id   = md5($userid);
  401.                         }
  402.                        
  403.                         if ($core['config']['md5'] == '1') {
  404.                             $make_me_acc = $core_db2->Execute("INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,AccountLevel,SecretAnswer,Referido,Country,Gender,confirmed,activation_id) VALUES (?,[dbo].[fn_md5](?,?),?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)", array(
  405.                                 $userid,
  406.                                 $password,
  407.                                 $userid,
  408.                                 'test',
  409.                                 $pid,
  410.                                 $blocked,
  411.                                 '0',
  412.                                 '1',
  413.                                 $email,
  414.                                 date('m/d/Y'),
  415.                                 date('m/d/Y'),
  416.                                 '2005-01-03',
  417.                                 '2005-01-03',
  418.                                 $question,
  419.                                 $anaswer,
  420.                                 $areferral,
  421.                                 $country,
  422.                                 $gender,
  423.                                 $confirmed,
  424.                                 $activation_id
  425.                             ));
  426.                         } elseif ($core['config']['md5'] == '0') {
  427.                             $query = "INSERT INTO MEMB_INFO (memb___id,memb__pwd,memb_name,sno__numb,bloc_code,ctl1_code,mail_chek,mail_addr,appl_days,modi_days,out__days,true_days,AccountLevel,SecretAnswer,Referido,Country,Gender,Confirmed,activation_id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
  428.                            
  429.                             try {
  430.                                 $make_me_acc  = $core_db2->Execute($query, array(
  431.                                 $userid,
  432.                                 $password,
  433.                                 'test',
  434.                                 $pid,
  435.                                 $blocked,
  436.                                 '0',
  437.                                 '1',
  438.                                 $email,
  439.                                 date('m/d/Y'),
  440.                                 date('m/d/Y'),
  441.                                 '2005-01-03',
  442.                                 '2005-01-03',
  443.                                 $question,
  444.                                 $anaswer,
  445.                                 $areferral,
  446.                                 $country,
  447.                                 $gender,
  448.                                 $confirmed,
  449.                                 $activation_id
  450.                             ));
  451.                                
  452.                             } catch (Exception $e) {
  453.                                 echo ='ERROR='.$core_db2->errorInfo();
  454.                             }
  455.                            
  456.                             $make_me_acc_ = 1;
  457.  
  458.                             echo 'esto se esta ingresando = '.$query;
  459.                             /*
  460.                             $make_me_acc_ = $core_db2->Execute("INSERT INTO VI_CURR_INFO (ends_days,chek_code,used_time,memb___id,memb_name,memb_guid,sno__numb,Bill_Section,Bill_value,Bill_Hour,Surplus_Point,Surplus_Minute,Increase_Days ) VALUES ('2005','1',1234,?,?,1,'7','6','3','6','6',".date('m/d/Y').",'0' )", array($userid,'test'));
  461.                             */
  462.                         }
  463.                         if ($make_me_acc) {
  464.                             if ($activation_need == '0') {
  465.                                 $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success1));
  466.                                 $complete  = 1;
  467.                             } elseif ($activation_need == '1') {
  468.                                 /*
  469.                                 require("engine/smtp.php");
  470.                                 $smtp_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  471.                                 $mail = new SMTP($smtp_config->smtp_server,$smtp_config->smtp_username,$smtp_config->smtp_password);
  472.                                 $header = $mail->make_header($core['config']['master_mail'],$email,'Account Activation for '.$core['config']['websitetitle'].'');
  473.                                 $header .= "Content-Type: text/html; charset=\"iso-8859-1\" \r\n";
  474.                                 $header .= "Content-Transfer-Encoding: 8bit \r\n";
  475.                                 $header .= "MIME-Version: 1.0 \r\n";
  476.                                 */
  477.                                
  478.                                
  479.                                 $body = str_replace("{user_id}", $userid, mail_register_t1);
  480.                                 $body = str_replace("{website_title}", $core['config']['websitetitle'], $body);
  481.                                 $body = str_replace("{activation_url}", $core['config']['website_url'] . '/' . ROOT_INDEX . '?' . LOAD_GET_PAGE . '=' . REGISTER_CMS_PAGE . '&activation_id=' . $activation_id, $body);
  482.                                 /*
  483.                                
  484.                                 $body = 'Dear '.$userid.',<br><br>
  485.                                 Thank you for registering at the '.$core['config']['websitetitle'].'. Before we can activate your account one last step must be taken to complete your registration.<br><br>
  486.                                 Please note - you must complete this last step to become a registered member. You will only need to visit this URL once to activate your account.<br>
  487.                                 <br>
  488.                                 To complete your registration, please visit this URL:<br>
  489.                                 <a href="'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'">'.$core['config']['website_url'].'/'.ROOT_INDEX.'?'.LOAD_GET_PAGE.'='.REGISTER_CMS_PAGE.'&activation_id='.$activation_id.'</a>
  490.                                 <br><br><br>
  491.                                 All the best,<br>
  492.                                 '.$core['config']['websitetitle'].' Team.';
  493.                                 */
  494.                                
  495.                                
  496.                                 if ($core['debug'] == '1') {
  497.                                     define('DISPLAY_XPM4_ERRORS', true);
  498.                                 } else {
  499.                                     define('DISPLAY_XPM4_ERRORS', false);
  500.                                 }
  501.                                
  502.                                 $get_config = simplexml_load_file('engine/config_mods/smtp_settings.xml');
  503.                                
  504.                                 require("engine/mail.php");
  505.                                 $m = new MAIL;
  506.                                 $m->From($core['config']['master_mail']);
  507.                                 $m->AddTo(trim($email));
  508.                                 $m->Subject('Activacion de Cuenta LatinMU ' . $subject_set . '');
  509.                                 $m->Html($body);
  510.                                
  511.                                 if ($get_config->smtp_connection == 'none') {
  512.                                     $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';
  513.                                 } else {
  514.                                     $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';
  515.                                 }
  516.                                 if ($smtp_connect_fail != '1') {
  517.                                     if ($m->Send($c)) {
  518.                                         $msg_error = msg('1', str_replace("{userid}", $userid, text_register_success2));
  519.                                     } else {
  520.                                         echo msg('0', text_register_error13);
  521.                                     }
  522.                                 } else {
  523.                                     echo msg('0', text_register_error14);
  524.                                 }
  525.                                
  526.                                
  527.                             }
  528.                         } else {
  529.                             $msg_error = msg('0', text_register_error15);
  530.                         }
  531.                     }
  532.                 }
  533.             }
  534.         }
  535.     }
  536.    
  537.     if ($register_method == '2') {
  538.         if (isset($_GET['activation_id'])) {
  539.             $activate_md5 = '1';
  540.             if (empty($_GET['activation_id'])) {
  541.                 header('Location: ' . ROOT_INDEX . '');
  542.             } else {
  543.                 $md5_link   = safe_input($_GET['activation_id'], '');
  544.                 $check_link = $core_db2->Execute("Select confirmed,memb___id from MEMB_INFO where activation_id=?", array(
  545.                     $md5_link
  546.                 ));
  547.                 if ($check_link->EOF) {
  548.                     $msg_error = msg('0', text_register_error16);
  549.                 } else {
  550.                     if ($check_link->fields[0] == '1') {
  551.                         $msg_error = msg('0', text_register_error17);
  552.                     } elseif ($check_link->fields[0] == '0') {
  553.                         $active_id = $core_db2->Execute("Update MEMB_INFO set bloc_code='0',confirmed='1' where activation_id=?", array(
  554.                             $md5_link
  555.                         ));
  556.                         if ($active_id) {
  557.                             $msg_error = msg('1', str_replace("{userid}", $check_link->fields[1], text_register_success3));
  558.                         } else {
  559.                             $msg_error = msg('0', text_register_error18);
  560.                         }
  561.                        
  562.                     }
  563.                 }
  564.             }
  565.         }
  566.        
  567.         echo '    <table  border="0" cellspacing="4" cellpadding="0"  align="center" width="100%" class="iR_stats_reset" >
  568.            <tr>';
  569.         if ($activate_md5 != 1) {
  570.             echo '<td align="left" class="curent_step" width="33%" style="display: none;">1. ' . text_register_complete_form . '</td>';
  571.         } else {
  572.             echo '<td align="left" class="step" width="33%" style="display: none;">1. ' . text_register_complete_form . '</td>';
  573.         }
  574.         if ($activate_md5 == '1') {
  575.             echo '<td align="left" class="curent_step"  width="33%" style="display: none;">2. ' . text_register_activate_account . '</td>';
  576.         } else {
  577.             echo '<td align="left" class="step"  width="33%" style="display: none;">2. ' . text_register_activate_account . '</td>';
  578.         }
  579.         echo '
  580.    </tr>
  581.    </table>';
  582.        
  583.        
  584.        
  585.     }
  586.     if ($msg_error) {
  587.         echo $msg_error;
  588.     }
  589.     if ($activate_md5 != '1') {
  590.         if ($complete != '1') {
  591.             $userid_post   = htmlspecialchars($_POST['userid']);
  592.             $p_id_post     = htmlspecialchars($_POST['pers_id']);
  593.             $email_post    = htmlspecialchars($_POST['email_address']);
  594.             $country_post  = htmlspecialchars($_POST['country']);
  595.             $question_post = htmlspecialchars($_POST['question']);
  596.             $anaswer_post  = htmlspecialchars($_POST['answer']);
  597.             $areferral_post  = ($_GET['areferral_post']);
  598.         }
  599.         echo '
  600. <br />
  601. <form name="sign_up_frm" method="post" action="" id="sign_up_frm">
  602. <div align=center width=100%>
  603.  
  604. <table class="tablareg" border="0" cellspacing="15" cellpadding="0">
  605. <tr>
  606. <td colspan="2" align="left" class="messageinfo">' . text_register_arch0 . ':</td>
  607. </tr>
  608.  
  609. <tr>
  610. <td class="textinfo ">' . text_register_arch1 . '</td>
  611. <td align="left" class="iRg_inf">
  612. <input class="iRg_input" type="text" name="userid" id="userid" maxlength="10" onclick="document.getElementById(\'c_uss\').innerHTML=\'4-10 Caracteres\'" value="' . $userid_post . '"></td>
  613. </tr>
  614.  
  615. <tr style="display: none;">
  616. <td class="textinfo "> ' . text_register_arch2 . ' </td>
  617. <td align="left">
  618. <input type="text" name="nombreuser" id="nombreuser" maxlength="30" onclick="document.getElementById(\'c_uss\').innerHTML=\'4-10 Caracteres\'" value="Usuario">
  619. </td>
  620.  
  621. <tr>
  622. <td class="textinfo ">' . text_register_arch3 . '</td>
  623. <td align="left"><input class="iRg_input" type="password" name="password" id="password" maxlength="10"></td>
  624. </tr>
  625.  
  626. <tr>
  627. <td class="textinfo ">' . text_register_arch4 . '</td>
  628. <td align="left"><input class="iRg_input" type="password" name="confirm_password" id="confirm_password" maxlength="10"></td>
  629. </tr>
  630. ';
  631.         if ($get_config->pers_id_active == '1') {
  632.             echo '<tr>
  633. <tr style="display:none;"><td class="veriveri"  align="center" colspan="2">' . text_register_arch10 . '</td></tr>
  634. </tr>
  635. <tr style="display:none;">
  636. <td class="textinfo ">' . text_register_arch5 . '</td>
  637. <td align="left"><input class="iRg_input" type="text" name="pers_id" id="pers_id" maxlength="' . $get_config->pers_id_length . '" value="587423698521"' . $p_id_post . '"></td>
  638. </tr>
  639. ';
  640.         }
  641.        
  642.         echo '
  643. <tr>
  644. <td class="veriveri" style="background: #0a5e8a; border-radius: 0px 0px 50px;" align="center" colspan="2">Usa un Email real y al que tengas acceso</td>
  645. </tr>
  646. <tr>
  647. <td class="textinfo ">' . text_register_arch6 . '</td>
  648. <td align="left" class="iRg_inf"><input placeholder=" Recibiras un correo" class="iRg_input" maxlength="50" type="text" name="email_address" id="email_address" onclick="document.getElementById(\'c_mss\').innerHTML=\'' . text_register_req5 . '\'" value="' . $email_post . '"></td>
  649. </tr>
  650.  
  651.  
  652. <tr>
  653. <td class="textinfo ">' . text_register_arch7 . '</td>
  654. <td align="left"><select name="country" class="iRg_input" id="country"><option value="x">--' . text_select . '</option>';
  655.        
  656.         $c = getcountry('list');
  657.         foreach ($c as $cc => $v) {
  658.             if ($country_post == $cc) {
  659.                 echo '<option value="' . $cc . '" selected="selected">' . $v . '</option>';
  660.             } else {
  661.                 echo '<option value="' . $cc . '">' . $v . '</option>';
  662.             }
  663.            
  664.         }
  665.        
  666.         echo '</select></td>
  667. </tr>
  668.  
  669. <tr style="display:none;">
  670. <td align="left" class="iRg_text"  style="padding-left: 24px;">' . text_gender . '</td>
  671. <td align="left" class="iRg_gender"><label><input name="gender" id="gender" type="text" value="1">' . text_male . '</td>
  672. <td align="left"></td>
  673. </tr>
  674.  
  675.  
  676. <tr>
  677. <td align="center" class="textinfo">' . text_register_secret_question . '</td>
  678. <td align="left" colspan="2"><select name="question" id="question"  class="Campos">
  679.  
  680. <option class="Campos_server" value="0" selected="selected">LatinMU 1</option>
  681. <option class="Campos_server" value="1" >LatinMU 2 (nuevo)</option>
  682.  
  683. </select></td>
  684. <td align="left"></td>
  685. </tr>
  686. <tr>
  687. <td align="center" class="textinfo">' . text_register_answer_question . '</td>
  688. <td align="left" colspan="2"><input placeholder="Guardala en un lugar seguro" class="Campos" type="text" name="answer" id="answer" maxlength="20" value="' . $anaswer_post . '"></td>
  689. </tr>
  690. <tr style="displays: none;">
  691. <td align="center" class="textinfo">Referido por</td>
  692. <td align="left" colspan="2"><input readonly="readonly" style="color: #ccff00" placeholder="Id de quien te invito al server" class="Campos" type="text" name="referral" id="referral" maxlength="10" value="' . $areferral_post . '"></td>
  693. </tr>
  694. </tr>
  695.  
  696. <tr><td class="veriveri" style="background: #0a5e8a; border-radius: 0px 0px 50px;" align="center" colspan="2">' . text_register_arch9 . '</td></tr>
  697. <tr>
  698. <td align="left" colspan="3"> ';
  699.         if ($is_reCAPTCHA == '1') {
  700.             $publickey = $verification_config->reCAPTCHA_public_key;
  701.             echo '<script type="text/javascript">
  702.        var RecaptchaOptions = {
  703.            theme : \'' . $verification_config->reCAPTCHA_theme . '\'
  704.            ,lang : \'en\'
  705.        };
  706.    </script>
  707. ';
  708.             echo recaptcha_get_html($publickey);
  709.            
  710.         } else {
  711.             echo '
  712. <table border="0" cellspacing="0" cellpadding="0" width="100%">
  713. <tr>
  714. <td align="left"><img src="get.php?aI" border="0"></td>
  715. <td align="left" class="Campos2"><input class="Campos" type="text" name="verify_int" id="verify_int"></td>
  716. </tr>
  717. </table>
  718. ';
  719.         }
  720.         echo '
  721. </td>
  722. </tr>
  723. </table>
  724.  
  725. <table class="tablareg" border="0" cellspacing="15" cellpadding="0">
  726. <tr style="display: block; position: relative; right: 19px; bottom: 15px; width: 600px;">
  727. <td width="100%" align="center" colspan="1" class="iRg_terms_agree">
  728. <label class="labelter"><input type="checkbox" name="terms" value="1" style=" display: none;" class="input-checkbox input-checkbox-checked" checked>
  729. '.text_register_arch8.'
  730. </label>
  731. <input type="hidden" name="create_account"></td>
  732. </tr>
  733. <tr align="center" style="display: block; position: relative; bottom: 15px;">
  734. <td align="center"><input class="loginbutton" type="submit" src="template/' . $core['config']['template'] . '/images/submit_btn.gif"" onclick="return parse_inputs()"></td>
  735. </tr>
  736. </table>
  737. </div>
  738. </form>';
  739.     }
  740. }
  741.  
  742. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement