Commit 3041f616 by tetiana yaremko

upload file on live server

parent 48e107ef
...@@ -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/';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
...@@ -379,22 +379,22 @@ $config['encryption_key'] = 'femEDWTX$AQ@6HggkKn8RWGf!*ufK?KC'; ...@@ -379,22 +379,22 @@ $config['encryption_key'] = 'femEDWTX$AQ@6HggkKn8RWGf!*ufK?KC';
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here. | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
| |
*/ */
$config['sess_driver'] = 'memcached'; //$config['sess_driver'] = 'memcached';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'localhost:11211';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 7200;
$config['sess_regenerate_destroy'] = FALSE;
//$config['sess_driver'] = 'database';
//$config['sess_cookie_name'] = 'ci_session'; //$config['sess_cookie_name'] = 'ci_session';
//$config['sess_expiration'] = 7200; //$config['sess_expiration'] = 7200;
//$config['sess_save_path'] = 'ci_sessions'; //$config['sess_save_path'] = 'localhost:11211';
//$config['sess_match_ip'] = FALSE; //$config['sess_match_ip'] = FALSE;
//$config['sess_time_to_update'] = 7200; //$config['sess_time_to_update'] = 7200;
//$config['sess_regenerate_destroy'] = FALSE; //$config['sess_regenerate_destroy'] = FALSE;
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 7200;
$config['sess_regenerate_destroy'] = FALSE;
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Cookie Related Variables | Cookie Related Variables
......
...@@ -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' => '',
......
...@@ -50,6 +50,9 @@ $(document).ready(function() { ...@@ -50,6 +50,9 @@ $(document).ready(function() {
//el.stopImmediatePropagation(); //el.stopImmediatePropagation();
}) })
} }
}) })
} }
...@@ -104,7 +107,7 @@ $(document).ready(function() { ...@@ -104,7 +107,7 @@ $(document).ready(function() {
}; };
$('.cart-link').click(function () { $('.cart-link').click(function () {
load_cart_data();
showCart(); showCart();
}) })
$('.close').click(function () { $('.close').click(function () {
...@@ -113,7 +116,7 @@ $(document).ready(function() { ...@@ -113,7 +116,7 @@ $(document).ready(function() {
}) })
load_cart_data();
function load_cart_data() function load_cart_data()
{ {
$.ajax({ $.ajax({
...@@ -130,29 +133,6 @@ $(document).ready(function() { ...@@ -130,29 +133,6 @@ $(document).ready(function() {
$('.cart-btn').click(function (event) {
var product_id = $(this).data("productid");
var product_artist = $(this).data("productartist");
var product_title = $(this).data("producttitle");
var product_price = $(this).data("productprice");
var image = $(this).data("productimage");
var buttonId=$(this).data("btnid");
var quantity = 1;
$.ajax({
url : baseUrl+'index.php/cart/add_to_cart',
method : "POST",
data : {product_id: product_id, product_artist: product_artist, product_title: product_title, product_price: product_price, quantity:quantity, image:image},
success: function(data){
$('.cart-btn').val(data.token);
load_cart_data();
showCart();
},
});
//el.stopImmediatePropagation();
})
......
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