Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tetiana yaremko
/
web-app-group2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
da08e901
authored
Apr 23, 2020
by
tetiana yaremko
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
cart session fixed
parent
e1259a18
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
52 deletions
application/config/config.php
application/controllers/Auth.php
application/views/succes_reg.php
asset/css/register_style.css
application/config/config.php
View file @
da08e901
...
@@ -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
...
@@ -458,7 +458,7 @@ $config['global_xss_filtering'] = true;
...
@@ -458,7 +458,7 @@ $config['global_xss_filtering'] = true;
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
*/
$config
[
'csrf_protection'
]
=
fals
e
;
$config
[
'csrf_protection'
]
=
tru
e
;
$config
[
'csrf_token_name'
]
=
'csrf_test_name'
;
$config
[
'csrf_token_name'
]
=
'csrf_test_name'
;
$config
[
'csrf_cookie_name'
]
=
'csrf_cookie_name'
;
$config
[
'csrf_cookie_name'
]
=
'csrf_cookie_name'
;
$config
[
'csrf_expire'
]
=
7200
;
$config
[
'csrf_expire'
]
=
7200
;
...
...
application/controllers/Auth.php
View file @
da08e901
...
@@ -99,7 +99,8 @@ class Auth extends CI_Controller
...
@@ -99,7 +99,8 @@ class Auth extends CI_Controller
if
(
$this
->
form_validation
->
run
()
==
TRUE
)
{
if
(
$this
->
form_validation
->
run
()
==
TRUE
)
{
$this
->
load
->
model
(
'Register_model'
,
'reg'
);
$this
->
load
->
model
(
'Register_model'
,
'reg'
);
$this
->
reg
->
register_user
();
$this
->
reg
->
register_user
();
redirect
(
"register_successful/registration_complete"
,
"refresh"
);
$name
=
$this
->
input
->
post
(
'name'
);
$this
->
load
->
view
(
"auth/registration_successful"
,
$name
);
}
}
...
@@ -208,6 +209,13 @@ class Auth extends CI_Controller
...
@@ -208,6 +209,13 @@ class Auth extends CI_Controller
}
}
public
function
registration_success
()
{
$this
->
load
->
view
(
'registration_sucess'
);
}
...
...
application/views/succes_reg.php
deleted
100644 → 0
View file @
e1259a18
<!doctype html>
<html
lang=
"en"
>
<head>
<!-- Required meta tags -->
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, shrink-to-fit=no"
>
<!-- Bootstrap CSS -->
<link
href=
"
<?php
echo
base_url
();
?>
assets/css/bootstrap.min.css"
rel=
"stylesheet"
>
<title></title>
</head>
<style>
h2
{
margin-top
:
200px
;
}
</style>
<body>
<div
class=
"row justify-content-center"
>
<div
class =
"col-lg-4 col-lg-offset-8"
>
<h2>
Your registration is successful. Please,
<a
href=
"
<?php
echo
base_url
();
?>
index.php/auth/login"
>
log in.
</a></h2>
<br><br>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script
src=
"https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity=
"sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin=
"anonymous"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity=
"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin=
"anonymous"
></script>
<script
src=
"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity=
"sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin=
"anonymous"
></script>
<script
src=
"
<?php
echo
base_url
();
?>
assets/js/bootstrap.min.js"
></script>
</body>
</html>
asset/css/register_style.css
View file @
da08e901
...
@@ -259,3 +259,4 @@ em {
...
@@ -259,3 +259,4 @@ em {
color
:
white
;
color
:
white
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment