Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
55af829e
Commit
55af829e
authored
6 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
dc See merge request
!28
parents
661b0b46
3bd08006
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
5 deletions
+22
-5
Customer.php
application/controllers/Customer.php
+17
-1
Api_model.php
application/models/Api_model.php
+2
-2
Customer_model.php
application/models/Customer_model.php
+1
-0
left-menu.php
application/views/Templates/left-menu.php
+1
-1
venueAddForm.php
application/views/Venue/venueAddForm.php
+1
-1
1550213061_giphy.gif
assets/uploads/services/1550213061_giphy.gif
+0
-0
No files found.
application/controllers/Customer.php
View file @
55af829e
...
...
@@ -114,9 +114,25 @@ class Customer extends CI_Controller {
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'Customer/addCustomer'
));
}
$temp_password
=
rand
(
10000000
,
99999999
);
$_POST
[
'password'
]
=
md5
(
$temp_password
);
$status
=
$this
->
Customer_model
->
addCustomer
(
$_POST
);
if
(
$status
==
1
){
$this
->
load
->
model
(
'Api_model'
);
$subject
=
"Your TimeOut Account is now activated"
;
$email_id
=
$_POST
[
'email'
];
$template
=
getNotifTemplate
();
$message
.=
"<html>
<body>
Hi,
\n\r
Welcome to TimeOut.
\r\n
Please use username:
"
.
$_POST
[
'email'
]
.
" and Password: "
.
$temp_password
.
"
for access your account <br>
"
.
$template
[
'registration_mail'
]
.
"
</body>
</html>"
;
$this
->
Api_model
->
send_mail
(
$subject
,
$email_id
,
$message
);
$flashMsg
=
array
(
'message'
=>
'Successfully Updated User Details..!'
,
'class'
=>
'success'
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'Customer/viewCustomers'
));
...
...
This diff is collapsed.
Click to expand it.
application/models/Api_model.php
View file @
55af829e
...
...
@@ -1037,12 +1037,12 @@ class Api_model extends CI_Model {
$this
->
db
->
update
(
'customer'
,
array
(
'reset_key'
=>
''
),
array
(
'customer_id'
=>
$cust
[
'customer_id'
]));
$res
=
array
(
'status'
=>
1
,
'data'
=>
'
Success
'
);
$res
=
array
(
'status'
=>
1
,
'data'
=>
'
Password Updated Successfully
'
);
}
else
{
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something went South!!'
,
'code'
=>
'ER24'
);
}
}
else
{
$res
=
array
(
'status'
=>
0
,
'message'
=>
'
User Doesn\'t Exist
'
,
'code'
=>
'ER25'
);
$res
=
array
(
'status'
=>
0
,
'message'
=>
'
Sorry, Reset Key Expired
'
,
'code'
=>
'ER25'
);
}
}
catch
(
Exception
$e
){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something went South!!'
,
'code'
=>
'ER06'
);
...
...
This diff is collapsed.
Click to expand it.
application/models/Customer_model.php
View file @
55af829e
...
...
@@ -42,6 +42,7 @@ class Customer_model extends CI_Model {
$status
=
$this
->
db
->
insert
(
'users'
,
array
(
'username'
=>
$customer_data
[
'email'
],
'password'
=>
$customer_data
[
'password'
],
'display_name'
=>
$customer_data
[
'name'
],
'profile_image'
=>
$customer_data
[
'profile_image'
],
'user_type'
=>
'3'
,
'status'
=>
'1'
));
...
...
This diff is collapsed.
Click to expand it.
application/views/Templates/left-menu.php
View file @
55af829e
...
...
@@ -46,7 +46,7 @@ x <aside class="main-sidebar">
<li>
<a
href=
"
<?=
base_url
(
'Region/listRegion'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m4.png"
)
?>
"
>
<span>
Region
Management
</span>
<span>
City
Management
</span>
</a>
</li>
<li>
...
...
This diff is collapsed.
Click to expand it.
application/views/Venue/venueAddForm.php
View file @
55af829e
...
...
@@ -80,7 +80,7 @@
<?php
}
?>
<div
class=
"form-group"
>
<label>
Venue Details
</label>
<textarea
type=
"text"
class=
"ip_reg_form_input form-control reset-form-custom required"
placeholder=
"Venue Details"
name=
"venue_details"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
required=
""
style=
"height:
34
px;"
>
<?=
(
isset
(
$venue_data
->
venue_details
))
?
$venue_data
->
venue_details
:
''
?>
</textarea>
<textarea
type=
"text"
class=
"ip_reg_form_input form-control reset-form-custom required"
placeholder=
"Venue Details"
name=
"venue_details"
data-parsley-trigger=
"change"
data-parsley-minlength=
"1"
required=
""
style=
"height:
106
px;"
>
<?=
(
isset
(
$venue_data
->
venue_details
))
?
$venue_data
->
venue_details
:
''
?>
</textarea>
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
<?php
if
(
!
isset
(
$venue_id
)
||
empty
(
$venue_id
)){
?>
...
...
This diff is collapsed.
Click to expand it.
assets/uploads/services/1550213061_giphy.gif
deleted
100644 → 0
View file @
661b0b46
226 KB
This diff is collapsed.
Click to expand it.
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