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
063f20d3
Commit
063f20d3
authored
Apr 05, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
dc7cdfea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
Provider.php
application/controllers/Provider.php
+2
-1
Webservice_model.php
application/models/Webservice_model.php
+14
-3
No files found.
application/controllers/Provider.php
View file @
063f20d3
...
@@ -75,7 +75,8 @@ class Provider extends CI_Controller {
...
@@ -75,7 +75,8 @@ class Provider extends CI_Controller {
$message
.=
"<html>
$message
.=
"<html>
<body>
<body>
Your Organizer Account for the username
Your Organizer Account for the username
<strong>"
.
$providerData
->
username
.
"</strong> is now activated.<br>
<strong>"
.
$providerData
->
username
.
"</strong> is now activated. Please use this link for access your account
<a href='"
.
base_url
()
.
"/admin'>"
.
base_url
()
.
"/admin</a><br>
"
.
$template
[
'provider_activation_mail'
]
.
"
"
.
$template
[
'provider_activation_mail'
]
.
"
</body>
</body>
</html>"
;
</html>"
;
...
...
application/models/Webservice_model.php
View file @
063f20d3
...
@@ -385,7 +385,7 @@ class Webservice_model extends CI_Model {
...
@@ -385,7 +385,7 @@ class Webservice_model extends CI_Model {
}
}
function
event
(
$data
)
{
function
event
(
$data
)
{
try
{
try
{
$user_id
=
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
$user_id
=
$this
->
auth_token_get
(
$data
[
'auth_token'
]);
...
@@ -458,8 +458,19 @@ class Webservice_model extends CI_Model {
...
@@ -458,8 +458,19 @@ class Webservice_model extends CI_Model {
foreach
(
$dates
as
$rss
)
{
foreach
(
$dates
as
$rss
)
{
list
(
$id
,
$date
,
$time
)
=
explode
(
'#'
,
$rss
);
list
(
$id
,
$date
,
$time
)
=
explode
(
'#'
,
$rss
);
$data_array
[
$date
][]
=
array
(
'id'
=>
$id
,
'time'
=>
$time
);
$time_spec
[]
=
array
(
'id'
=>
$id
,
'date'
=>
$date
,
'time'
=>
$time
);
if
(
$date
==
date
(
"Y-m-d"
)){
$time_array
=
explode
(
':'
,
$time
);
if
(
$time_array
[
'0'
]
>
date
(
'H'
))
{
$time_spec
[]
=
array
(
'id'
=>
$id
,
'date'
=>
$date
,
'time'
=>
$time
);
$data_array
[
$date
][]
=
array
(
'id'
=>
$id
,
'time'
=>
$time
);
}
}
else
{
$data_array
[
$date
][]
=
array
(
'id'
=>
$id
,
'time'
=>
$time
);
$time_spec
[]
=
array
(
'id'
=>
$id
,
'date'
=>
$date
,
'time'
=>
$time
);
}
}
}
$date_list
=
array
();
$date_list
=
array
();
foreach
(
$data_array
as
$key
=>
$value
)
{
foreach
(
$data_array
as
$key
=>
$value
)
{
...
...
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