PHP 8.2.30
Preview: events.conf.php Size: 3.23 KB
/proc/thread-self/root/proc/thread-self/root/var/softaculous/chamilo/events.conf.php

<?php
/* For licensing terms, see /license.txt */

/**
 * Events' configuration
 * @deprecated to be removed in 2.x
 * Used to configure each event and to link them to functions the event'll fire.
 * The flow is like the following :
 * 1. somewhere in the application an event is fired
 * 2. that event is intercepted by the switch EventsDispatcher
 * 3. that switch will go all over the "actions" in the event_config initialized beneath us according to the event
 * 4. that switch will see if the function actually exists (if not, we get dont do anything)
 * 5. then it will see if a filter for that function exists (if it does, the filter is executed)
 * 6. if the filter says it's ok, the function linked to the event is executed
 * 7. and that function will actually call the truly interesting function with the good require_once 
 */
global $event_config;

$event_config = array(
    'portal_homepage_edited' => array( // key for "user registration" event
        'actions' => array( // we link this event to a bunch of functions that will be triggered when the event is fired
            'event_send_mail' // don't forget to actually write this function in the events.lib.php file
        ),
        'self_sent' => false, // this key states that we can't add user to this event through the admin panel
        'name_lang_var' => get_lang('PortalHomepageEdited'),
        'desc_lang_var' => get_lang('PortalHomepageEdited'),
        'available_keyvars' => array (// keys used for the mail template
            'url'           => 'portal',
            'sitename'      => 'sitename',
            'firstname'     => 'firstname',
            'lastname'      => 'lastname',
            'username'      => 'username',
            'usermail'      => 'usermail',
            'password'      => 'password',
            'user_lang'     => 'language',
            'admin_name'    => 'administrator_name',
            'admin_surname' => 'administrator_surname',
            'admin_phone'   => 'administrator_phone',
            'admin_email'   => 'administrator_email',
        )
    ),
    'user_registration' => array( // key for "user registration" event
        'actions' => array( // we link this event to a bunch of functions that will be triggered when the event is fired
            'event_send_mail' // don't forget to actually write this function in the events.lib.php file
        ),
        'self_sent' => true, // this key states that we can't add user to this event through the admin panel
        'name_lang_var' => get_lang('UserRegistrationTitle'),
        'desc_lang_var' => get_lang('UserRegistrationComment'),
        'available_keyvars' => array (// keys used for the mail template
            'url'           => 'portal',
            'sitename'      => 'sitename',
            'firstname'     => 'firstname',
            'lastname'      => 'lastname',
            'username'      => 'username',
            'usermail'      => 'usermail',
            'password'      => 'password',
            'user_lang'     => 'language',
            'admin_name'    => 'administrator_name',
            'admin_surname' => 'administrator_surname',
            'admin_phone'   => 'administrator_phone',
            'admin_email'   => 'administrator_email',
        )
    ),
);


@include 'events.conf.local.php';

Directory Contents

Dirs: 6 × Files: 24

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
php53 DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
php56 DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
php71 DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
php81 DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
php82 DIR
- drwxr-xr-x 2026-03-25 21:02:29
Edit Download
265 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
6.37 KB lrw-r--r-- 2024-10-22 11:51:56
Edit Download
284.14 KB lrw-r--r-- 2026-03-25 08:11:00
Edit Download
126.31 MB lrw-r--r-- 2026-03-25 08:11:00
Edit Download
5.85 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
138.33 KB lrw-r--r-- 2026-03-25 08:11:00
Edit Download
176 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
4.27 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
433 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
3.23 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
516 B lrw-r--r-- 2023-01-25 05:55:00
Edit Download
3.46 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
3.18 KB lrw-r--r-- 2026-03-25 08:11:00
Edit Download
924 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
6.77 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
4.24 KB lrw-r--r-- 2021-12-23 11:54:36
Edit Download
3.42 KB lrw-r--r-- 2024-10-22 11:51:56
Edit Download
3.28 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
1.22 KB lrw-r--r-- 2024-01-24 10:57:10
Edit Download
1.31 KB lrw-r--r-- 2023-01-25 05:55:00
Edit Download
6.03 KB lrw-r--r-- 2026-03-25 12:22:18
Edit Download
419 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
110.34 MB lrw-r--r-- 2026-03-25 08:11:00
Edit Download
60.18 MB lrw-r--r-- 2026-03-25 08:11:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).