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
82d55c37
Commit
82d55c37
authored
Nov 11, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
5f5e611a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
11 deletions
+28
-11
OrganizerServices.php
application/controllers/OrganizerServices.php
+12
-2
Webservice.php
application/controllers/Webservice.php
+0
-0
Api_model.php
application/models/Api_model.php
+1
-1
Organizer_model.php
application/models/Organizer_model.php
+0
-0
Validation_app_model.php
application/models/Validation_app_model.php
+0
-0
Validation_organizer_model.php
application/models/Validation_organizer_model.php
+15
-8
No files found.
application/controllers/OrganizerServices.php
View file @
82d55c37
...
...
@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller {
$this
->
load
->
model
(
'Validation_organizer_model'
);
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
if
(
$method
==
'addEvent'
||
$method
==
'editOrganizerEventDetails'
)
{
if
(
$method
==
'addEvent'
)
{
$data
=
$_POST
;
}
if
(
isset
(
apache_request_headers
()[
'Auth'
]))
{
...
...
@@ -90,7 +90,7 @@ class OrganizerServices extends CI_Controller {
}
public
function
editOrganizerEventDetails
(){
$data
=
$_POST
;
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
))
;
$res
=
$this
->
Organizer_model
->
editOrganizerEventDetails
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
successResponse
(
$res
);
...
...
@@ -210,6 +210,16 @@ class OrganizerServices extends CI_Controller {
}
}
public
function
checkerDelete
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$res
=
$this
->
Organizer_model
->
checkerDelete
(
$data
);
if
(
$res
[
'status'
]
!=
0
){
$this
->
successResponse
(
$res
);
}
else
{
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
public
function
getTagList
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$res
=
$this
->
Organizer_model
->
getTagList
(
$data
);
...
...
application/controllers/Webservice.php
View file @
82d55c37
This diff is collapsed.
Click to expand it.
application/models/Api_model.php
View file @
82d55c37
...
...
@@ -158,7 +158,7 @@ class Api_model extends CI_Model {
$this
->
db
->
where
(
'email'
,
$data
[
'email_id'
])
->
update
(
'customer'
,
array
(
'reset_key'
=>
$unique_id
));
$subject
=
"TimeOut: Forgot Password"
;
$url
=
$redUrl
.
'forgot
/
?reset_key='
.
$unique_id
;
$url
=
$redUrl
.
'forgot?reset_key='
.
$unique_id
;
$msgContent
=
"Hi, Welcome to TimeOut. Please use this link
for reset your password: "
.
$url
;
$message
=
"<html><body><p>"
.
$msgContent
.
"</p></body></html>"
;
...
...
application/models/Organizer_model.php
View file @
82d55c37
This diff is collapsed.
Click to expand it.
application/models/Validation_app_model.php
View file @
82d55c37
This diff is collapsed.
Click to expand it.
application/models/Validation_organizer_model.php
View file @
82d55c37
...
...
@@ -274,12 +274,6 @@ class Validation_organizer_model extends CI_Model {
'message'
=>
'Tag is null or empty'
)
),
'layout'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER18'
,
'message'
=>
'Layout is null or empty'
)
),
),
'getLanguages'
=>
array
(),
'getCategories'
=>
array
(),
...
...
@@ -363,6 +357,20 @@ class Validation_organizer_model extends CI_Model {
)
),
),
'checkerDelete'
=>
array
(
'organiser_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER30'
,
'message'
=>
'Organizer Id is null or empty'
)
),
'checker_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER30'
,
'message'
=>
'Checker Id is null or empty'
)
),
),
);
public
function
_consruct
(){
...
...
@@ -407,4 +415,4 @@ class Validation_organizer_model extends CI_Model {
}
}
?>
\ No newline at end of file
?>
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