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
b3b601b6
Commit
b3b601b6
authored
Oct 24, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa' into 'master'
Jansa See merge request
!128
parents
6996ca23
88ed6cf0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
Event.php
application/controllers/Event.php
+0
-2
OrganizerServices.php
application/controllers/OrganizerServices.php
+2
-2
Organizer_model.php
application/models/Organizer_model.php
+13
-3
Validation_organizer_model.php
application/models/Validation_organizer_model.php
+8
-0
No files found.
application/controllers/Event.php
View file @
b3b601b6
...
@@ -399,11 +399,9 @@ class Event extends CI_Controller {
...
@@ -399,11 +399,9 @@ class Event extends CI_Controller {
if
(
$this
->
upload
->
do_upload
(
'file'
)){
if
(
$this
->
upload
->
do_upload
(
'file'
)){
$iDat
=
$this
->
upload
->
data
();
$iDat
=
$this
->
upload
->
data
();
$path
=
$bPath
.
$iDat
[
'file_name'
];
$path
=
$bPath
.
$iDat
[
'file_name'
];
if
(
$extn
!=
'gif'
){
if
(
$extn
!=
'gif'
){
$size
=
array
(
'width'
=>
'720'
,
'height'
=>
'480'
);
$size
=
array
(
'width'
=>
'720'
,
'height'
=>
'480'
);
$tFile
=
date
(
'YmdHis'
)
.
gettimeofday
()[
'usec'
]
.
'_EVT_IMG_720x480.'
.
$extn
;
$tFile
=
date
(
'YmdHis'
)
.
gettimeofday
()[
'usec'
]
.
'_EVT_IMG_720x480.'
.
$extn
;
$resp
=
$this
->
imageResize
(
$tFile
,
$size
,
$path
);
$resp
=
$this
->
imageResize
(
$tFile
,
$size
,
$path
);
if
(
$resp
[
'status'
]
==
'1'
){
if
(
$resp
[
'status'
]
==
'1'
){
$file
=
$tFile
;
$file
=
$tFile
;
...
...
application/controllers/OrganizerServices.php
View file @
b3b601b6
...
@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller {
...
@@ -28,7 +28,7 @@ class OrganizerServices extends CI_Controller {
$this
->
load
->
model
(
'Validation_organizer_model'
);
$this
->
load
->
model
(
'Validation_organizer_model'
);
$method
=
$this
->
router
->
fetch_method
();
$method
=
$this
->
router
->
fetch_method
();
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
if
(
$method
==
'addEvent'
)
{
if
(
$method
==
'addEvent'
||
$method
==
'editOrganizerEventDetails'
)
{
$data
=
$_POST
;
$data
=
$_POST
;
}
}
if
(
isset
(
apache_request_headers
()[
'Auth'
]))
{
if
(
isset
(
apache_request_headers
()[
'Auth'
]))
{
...
@@ -64,7 +64,7 @@ class OrganizerServices extends CI_Controller {
...
@@ -64,7 +64,7 @@ class OrganizerServices extends CI_Controller {
public
function
successResponse
(
$data
)
{
public
function
successResponse
(
$data
)
{
$result
=
array
(
$result
=
array
(
'status'
=>
'success'
,
'message'
=>
(
isset
(
$data
[
'message'
])
&&
!
empty
(
$data
[
'message'
]))
?
$data
[
'message'
]
:
'success'
);
'
code'
=>
1
,
'
status'
=>
'success'
,
'message'
=>
(
isset
(
$data
[
'message'
])
&&
!
empty
(
$data
[
'message'
]))
?
$data
[
'message'
]
:
'success'
);
print
json_encode
(
$result
);
print
json_encode
(
$result
);
}
}
...
...
application/models/Organizer_model.php
View file @
b3b601b6
...
@@ -81,6 +81,9 @@ class Organizer_model extends CI_Model {
...
@@ -81,6 +81,9 @@ class Organizer_model extends CI_Model {
if
(
$result
->
date_time
!=
''
){
if
(
$result
->
date_time
!=
''
){
$dates
=
explode
(
','
,
$result
->
date_time
);
$dates
=
explode
(
','
,
$result
->
date_time
);
$time_spec
=
array
();
$time_spec
=
array
();
// pre($dates);
// $startDate = explode('#', $dates[0]);
//$endDate = explode('#', $dates[count($dates)-1]);
foreach
(
$dates
as
$rss
)
{
foreach
(
$dates
as
$rss
)
{
$timeArray
=
explode
(
'#'
,
$rss
);
$timeArray
=
explode
(
'#'
,
$rss
);
...
@@ -129,7 +132,16 @@ class Organizer_model extends CI_Model {
...
@@ -129,7 +132,16 @@ class Organizer_model extends CI_Model {
}
}
function
editOrganizerEventDetails
(
$data
){
function
editOrganizerEventDetails
(
$data
){
try
{
ini_set
(
"memory_limit"
,
"-1"
);
set_time_limit
(
0
);
$languages
=
getLanguages
();
pr
(
$languages
);
}
catch
(
Exception
$e
){
$res
=
array
(
'status'
=>
0
,
'message'
=>
'Ohh No!! Something Went South!!'
,
'code'
=>
'ER08'
);
}
return
$res
;
}
}
function
changeOrganizerEventStatus
(
$data
,
$status
=
''
){
function
changeOrganizerEventStatus
(
$data
,
$status
=
''
){
...
@@ -408,7 +420,7 @@ class Organizer_model extends CI_Model {
...
@@ -408,7 +420,7 @@ class Organizer_model extends CI_Model {
try
{
try
{
ini_set
(
"memory_limit"
,
"-1"
);
ini_set
(
"memory_limit"
,
"-1"
);
set_time_limit
(
0
);
set_time_limit
(
0
);
$language
=
getLanguages
();
$language
s
=
getLanguages
();
$err
=
0
;
$err
=
0
;
$postData
[
'seat_pricing'
]
=
$postData
[
'custom_seat_layout'
]
=
''
;
$postData
[
'seat_pricing'
]
=
$postData
[
'custom_seat_layout'
]
=
''
;
...
@@ -426,8 +438,6 @@ class Organizer_model extends CI_Model {
...
@@ -426,8 +438,6 @@ class Organizer_model extends CI_Model {
'custom_seat_layout'
=>
$postData
[
'custom_seat_layout'
],
'custom_seat_layout'
=>
$postData
[
'custom_seat_layout'
],
'status'
=>
3
);
'status'
=>
3
);
$languages
=
getLanguages
();
$evtName
=
json_decode
(
$postData
[
'event_name'
],
true
);
$evtName
=
json_decode
(
$postData
[
'event_name'
],
true
);
$evtDesc
=
json_decode
(
$postData
[
'event_desc'
],
true
);
$evtDesc
=
json_decode
(
$postData
[
'event_desc'
],
true
);
$status
=
$this
->
db
->
insert
(
'events'
,
$eventData
);
$status
=
$this
->
db
->
insert
(
'events'
,
$eventData
);
...
...
application/models/Validation_organizer_model.php
View file @
b3b601b6
...
@@ -439,6 +439,14 @@ class Validation_organizer_model extends CI_Model {
...
@@ -439,6 +439,14 @@ class Validation_organizer_model extends CI_Model {
)
)
),
),
),
),
'editOrganizerEventDetails'
=>
array
(
'organiser_id'
=>
array
(
'required'
=>
array
(
'code'
=>
'ER30'
,
'message'
=>
'Organizer Id is null or empty'
)
),
),
);
);
public
function
_consruct
(){
public
function
_consruct
(){
...
...
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