AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.114
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/team/application/views/backend/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/team/application/views/backend/admin/calendar_body.php
<div class="calendar-body">
    <div id="event_calendar"></div>
</div>


<script type="text/javascript">
    $(document).ready(function()
    {
    var calendar = $('#event_calendar');
            calendar.fullCalendar({
            header: {
            left: 'title',
                    right: 'month,agendaWeek,agendaDay today prev,next'
            },
                    //defaultView: 'basicWeek',

                    editable: false,
                    firstDay: 0,
                    height: 600,
                    droppable: false,
                    events:
                    [
<?php
$this->db->where('user_type', $this->session->userdata('login_type'));
$this->db->where('user_id', $this->session->userdata('login_user_id'));
$events = $this->db->get('calendar_event')->result_array();
foreach ($events as $row):
    ?>
                        {
                        title   :   "<?php echo $row['title']; ?>",
                                start   :   new Date(<?php echo date('Y', $row['start_timestamp']); ?>,
    <?php echo date('m', $row['start_timestamp']) - 1; ?>,
    <?php echo date('d', $row['start_timestamp']); ?>),
                                end    :   new Date(<?php echo date('Y', $row['end_timestamp']); ?>,
    <?php echo date('m', $row['end_timestamp']) - 1; ?>,
    <?php echo date('d', $row['end_timestamp']); ?>),
                                allDay: true,
                                id: "<?php echo $row['calendar_event_id']; ?>",
                                color: "<?php echo $row['colour']; ?>",
                                tip: 'add new event'
                        },
<?php endforeach ?>
                    ],
               
            dayClick: function(date, jsEvent, view) {

            //alert('Clicked on: ' + date);
            date = $.fullCalendar.formatDate(date, "dd-MM-yyyy");
                    showAjaxModal('<?php echo base_url(); ?>index.php?modal/popup/calendar_event_add/' + date);
                    //alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);

                    //alert('Current view: ' + view.name);

                    // change the day's background color just for fun
                    //$(this).css('background-color', 'red');

            },
                    eventClick: function(calEvent, jsEvent, view) {

                    //alert('Event: ' + calEvent.id);
                    var event_id = calEvent.id;
                            showAjaxModal('<?php echo base_url(); ?>index.php?modal/popup/calendar_event_edit/' + event_id);
                            //alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
                            //alert('View: ' + view.name);

                            // change the border color just for fun
                            //$(this).css('border-color', 'red');

                    },
                    drop: function(date, allDay) {

                    var $this = $(this),
                            eventObject = {
                            title: $this.text(),
                                    start: date,
                                    allDay: allDay,
                                    className: $this.data('event-class')
                            };
                            calendar.fullCalendar('renderEvent', eventObject, true);
                            $this.remove();
                    }
            });
            $('.fc-day').css('cursor', 'crosshair');
            $('.fc-event-inner').css('cursor', 'pointer');
            
    });



</script>

Anon7 - 2022
AnonSec Team