Commit 7994e1f1 by tetiana yaremko

update

parent a841e669
...@@ -23,8 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ...@@ -23,8 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own. | a PHP script and you can easily do that on your own.
| |
*/ */
//$config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/'; $config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/';
$config['base_url'] = 'http://localhost/webapp/ci/'; //$config['base_url'] = 'http://localhost/webapp/ci/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
......
...@@ -75,12 +75,12 @@ $query_builder = TRUE; ...@@ -75,12 +75,12 @@ $query_builder = TRUE;
$db['default'] = array( $db['default'] = array(
'dsn' => '', 'dsn' => '',
// 'hostname' => '104.199.82.156', 'hostname' => '104.199.82.156',
// 'username' => 'tetiana', 'username' => 'tetiana',
// 'password' => 'yaremko_tetiana', 'password' => 'yaremko_tetiana',
'hostname' => 'localhost', // 'hostname' => 'localhost',
'username' => 'root', // 'username' => 'root',
'password' => '', // 'password' => '',
'database' => 'mydb', 'database' => 'mydb',
'dbdriver' => 'mysqli', 'dbdriver' => 'mysqli',
'dbprefix' => '', 'dbprefix' => '',
......
...@@ -36,7 +36,7 @@ class Register_model extends CI_Model { ...@@ -36,7 +36,7 @@ class Register_model extends CI_Model {
'protocol'=>'smtp', 'protocol'=>'smtp',
'smtp_host'=>'ssl://smtp.googlemail.com', 'smtp_host'=>'ssl://smtp.googlemail.com',
'smtp_user'=>'tetianayaremko@gmail.com', 'smtp_user'=>'tetianayaremko@gmail.com',
'smtp_pass'=>'*', 'smtp_pass'=>'55aKenuh',
'smtp_port'=> '465', 'smtp_port'=> '465',
'mailtype'=> 'html', 'mailtype'=> 'html',
'charset'=> 'iso-8859-1', 'charset'=> 'iso-8859-1',
......
...@@ -234,29 +234,27 @@ ...@@ -234,29 +234,27 @@
base_url = '<?php echo base_url(); ?>'; base_url = '<?php echo base_url(); ?>';
$(document).ready(function() { $(document).ready(function() {
$('#email').change(function() { $('#email').change(function () {
var email=$('#email').val(); var email = $('#email').val();
if(email!='') if (email != '') {
{
$.ajax({ $.ajax({
url: base_url+'index.php/auth/email_availability', url: base_url + 'index.php/auth/email_availability',
method: "POST", method: "POST",
data: {email:email}, data: {email: email},
success:function(data) { success: function (data) {
$('#email_result').html(data); $('#email_result').html(data);
} }
}) })
} }
}) })
})
$(document).ready(function() {
})
</script> </script>
</body> </body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment