'AVAILABLE', 'comp' => 'FULL', 'annu' => 'CANCEL', ]); /* |-------------------------------------------------------------------------- | Backoffice statuses |-------------------------------------------------------------------------- */ define('BO_STAT', [ /* En cours de création */ 'en_c' => 0, /* Publié */ 'pub' => 1, /* Ouvert */ 'ouv' => 2, /* Verrouillé */ 'ver' => 3, /* Fermé */ 'fer' => 4, /* Archivé */ 'arc' => 5, /* Deleted */ 'del' => 6, /* Terminé */ 'ter' => 7, ]); /* |-------------------------------------------------------------------------- | SEAT FEATURE |-------------------------------------------------------------------------- */ define('SEAT_FEATURE', [ /* Per date (assigned per event schedule) */ 'per_date' => 1, /* Per date (assigned per event) */ 'combined' => 2, ]); /* |-------------------------------------------------------------------------- | Registration types |-------------------------------------------------------------------------- */ define('REG_TYPE', [ /* for normal registration */ 'normal_reg' => 1, /* for waiting list registration */ 'waitlist_reg' => 2, /* Cancellation */ 'cancel_reg' => 3, ]); /* |-------------------------------------------------------------------------- | Process types |-------------------------------------------------------------------------- */ define('PROCESS_TYPE', [ /* Event Registration, */ 'event_reg' => 1, /* Cancel Event Registration, */ 'cancel_reg' => 2, /* Register to Wait list, */ 'waitlist_reg' => 3, /* Cancel Wait list Registration, */ 'cancel_wl_reg' => 4, /* Update Profile */ 'update_profile' => 5, /* Modify reg */ 'modify_reg' => 6, /* Modify waitlist reg */ 'modify_wl_reg' => 7, ]); /* |-------------------------------------------------------------------------- | Subscribe actions |-------------------------------------------------------------------------- */ define('SUBSCRIBE_ACTION', [ /* Register, */ 'register'=> 1, /* Modify, */ 'modify'=> 2, /* Cancel */ 'cancel'=> 3, ]); /* |-------------------------------------------------------------------------- | MAILJET API |-------------------------------------------------------------------------- */ define('MAILJET_API', [ 'KEY'=> '59ae3aaddf424842ac322790396e8ad7', 'SECRET'=> '6180b0930a1ec1174e6facee7a327880', 'SENDER_EMAIL' => 'univ@c4m.mg', 'SENDER_NAME' => 'COMPANY FOR MADAGASCAR MasterClass' ]); /* |-------------------------------------------------------------------------- | GOOGLE ANALYTICS CODES |-------------------------------------------------------------------------- | | These modes are used when working with Google Analytics | */ // DEVELOPMENT if (ENVIRONMENT !== "production") { // Google Tag Manager define('GTAG_MANAGER',"GTM-NH7GK82"); // Google Analytics define('GA4_TRACKER_ID',"G-1FLXDQ0E6V"); define('GA_TRACKER_ID',"UA-208056088-1"); define('GA_VIEW_ID_ALL',"251534712"); define('GA_VIEW_BYUSER_ID',"251671546"); } else { // PRODUCTION // Google Tag Manager define('GTAG_MANAGER',"GTM-NH7GK82"); // Google Analytics define('GA4_TRACKER_ID',"G-1FLXDQ0E6V"); define('GA_TRACKER_ID', "UA-207874204-2"); define('GA_VIEW_ID_ALL',"3470038966"); define('GA_VIEW_BYUSER_ID',"251637913"); } // OAuth 2.0 Client IDs define('GA_CLIENT_ID', "494469634504-ab1ghj4avd105hgmquuj8ulu59vdou8d.apps.googleusercontent.com"); define('GA_CLIENT_SECRET', "PuW5ZXxHXXFHmIDuK9N4R2Sz"); /** * Facebook Pixel Tracker ID */ define('FB_TRACKER_ID', '607705069438811'); /** * Event Image desire Width and Height */ define('DESIRED_IMAGE_WIDTH', 612); define('DESIRED_IMAGE_HEIGHT', 432); define('COUNTRIES', array( "AF" => "Afghanistan", "ZA" => "Afrique du Sud", "AX" => "Aland", "AL" => "Albanie", "DZ" => "Algérie", "DE" => "Allemagne", "AD" => "Andorre", "AO" => "Angola", "AI" => "Anguilla", "AQ" => "Antarctique", "AG" => "Antigua-et-Barbuda", "SA" => "Arabie saoudite", "AR" => "Argentine", "AM" => "Arménie", "AW" => "Aruba", "AU" => "Australie", "AT" => "Autriche", "AZ" => "Azerbaïdjan", "BS" => "Bahamas", "BH" => "Bahreïn", "BD" => "Bangladesh", "BB" => "Barbade", "BY" => "Biélorussie", "BE" => "Belgique", "BZ" => "Belize", "BJ" => "Bénin", "BM" => "Bermudes", "BT" => "Bhoutan", "BO" => "Bolivie", "BQ" => "Bonaire", "BA" => "Bosnie-Herzégovine", "BW" => "Botswana", "BV" => "Île Bouvet", "BR" => "Brésil", "BN" => "Brunei", "BG" => "Bulgarie", "BF" => "Burkina Faso", "BI" => "Burundi", "KY" => "Îles Caïmans", "KH" => "Cambodge", "CM" => "Cameroun", "CA" => "Canada", "CV" => "Cap-Vert", "CF" => "République centrafricaine", "CL" => "Chili", "CN" => "Chine", "CX" => "Île Christmas", "CY" => "Chypre", "CC" => "Îles Cocos", "CO" => "Colombie", "KM" => "Comores", "CG" => "République du Congo", "CD" => "République démocratique du Congo", "CK" => "Îles Cook", "KR" => "Corée du Sud", "KP" => "Corée du Nord", "CR" => "Costa Rica", "CI" => "Côte d Ivoire", "HR" => "Croatie", "CU" => "Cuba", "CW" => "Curaçao", "DK" => "Danemark", "DJ" => "Djibouti", "DO" => "République dominicaine", "DM" => "Dominique", "EG" => "Égypte", "SV" => "Salvador", "AE" => "Émirats arabes unis", "EC" => "Équateur", "ER" => "Érythrée", "ES" => "Espagne", "EE" => "Estonie", "US" => "États-Unis", "ET" => "Éthiopie", "FK" => "Îles Malouines", "FO" => "Îles Féroé", "FJ" => "Fidji", "FI" => "Finlande", "FR" => "France", "GA" => "Gabon", "GM" => "Gambie", "GE" => "Géorgie", "GS" => "Géorgie du Sud-et-les Îles Sandwich du Sud", "GH" => "Ghana", "GI" => "Gibraltar", "GR" => "Grèce", "GD" => "Grenade", "GL" => "Groenland", "GP" => "Guadeloupe", "GU" => "Guam", "GT" => "Guatemala", "GG" => "Guernesey", "GN" => "Guinée", "GW" => "Guinée-Bissau", "GQ" => "Guinée équatoriale", "GY" => "Guyana", "GF" => "Guyane", "HT" => "Haïti", "HM" => "Îles Heard-et-MacDonald", "HN" => "Honduras", "HK" => "Hong Kong", "HU" => "Hongrie", "IM" => "Île de Man", "UM" => "Îles mineures éloignées des États-Unis", "VG" => "Îles Vierges britanniques", "VI" => "Îles Vierges des États-Unis", "IN" => "Inde", "ID" => "Indonésie", "IR" => "Iran", "IQ" => "Irak", "IE" => "Irlande", "IS" => "Islande", "IL" => "Israël", "IT" => "Italie", "JM" => "Jamaïque", "JP" => "Japon", "JE" => "Jersey", "JO" => "Jordanie", "KZ" => "Kazakhstan", "KE" => "Kenya", "KG" => "Kirghizistan", "KI" => "Kiribati", "KW" => "Koweït", "LA" => "Laos", "LS" => "Lesotho", "LV" => "Lettonie", "LB" => "Liban", "LR" => "Liberia", "LY" => "Libye", "LI" => "Liechtenstein", "LT" => "Lituanie", "LU" => "Luxembourg", "MO" => "Macao", "MK" => "Macédoine", "MG" => "Madagascar", "MY" => "Malaisie", "MW" => "Malawi", "MV" => "Maldives", "ML" => "Mali", "MT" => "Malte", "MP" => "Îles Mariannes du Nord", "MA" => "Maroc", "MH" => "Marshall", "MQ" => "Martinique", "MU" => "Maurice", "MR" => "Mauritanie", "YT" => "Mayotte", "MX" => "Mexique", "FM" => "Micronésie", "MD" => "Moldavie", "MC" => "Monaco", "MN" => "Mongolie", "ME" => "Monténégro", "MS" => "Montserrat", "MZ" => "Mozambique", "MM" => "Birmanie", "NA" => "Namibie", "NR" => "Nauru", "NP" => "Népal", "NI" => "Nicaragua", "NE" => "Niger", "NG" => "Nigeria", "NU" => "Niue", "NF" => "Île Norfolk", "NO" => "Norvège", "NC" => "Nouvelle-Calédonie", "NZ" => "Nouvelle-Zélande", "IO" => "Territoire britannique de l\océan Indien", "OM" => "Oman", "UG" => "Ouganda", "UZ" => "Ouzbékistan", "PK" => "Pakistan", "PW" => "Palaos", "PS" => "Autorité Palestinienne", "PA" => "Panama", "PG" => "Papouasie-Nouvelle-Guinée", "PY" => "Paraguay", "NL" => "Pays-Bas", "PE" => "Pérou", "PH" => "Philippines", "PN" => "Îles Pitcairn", "PL" => "Pologne", "PF" => "Polynésie française", "PR" => "Porto Rico", "PT" => "Portugal", "QA" => "Qatar", "RE" => "La Réunion", "RO" => "Roumanie", "GB" => "Royaume-Uni", "RU" => "Russie", "RW" => "Rwanda", "EH" => "Sahara occidental", "BL" => "Saint-Barthélemy", "KN" => "Saint-Christophe-et-Niévès", "SM" => "Saint-Marin", "MF" => "Saint-Martin Antilles françaises", "SX" => "Saint-Martin", "PM" => "Saint-Pierre-et-Miquelon", "VA" => "Saint-Siège État de la Cité du Vatican", "VC" => "Saint-Vincent-et-les-Grenadines", "SH" => "Sainte-Hélène", "LC" => "Sainte-Lucie", "SB" => "Salomon", "WS" => "Samoa", "AS" => "Samoa américaines", "ST" => "Sao Tomé-et-Principe", "SN" => "Sénégal", "RS" => "Serbie", "SC" => "Seychelles", "SL" => "Sierra Leone", "SG" => "Singapour", "SK" => "Slovaquie", "SI" => "Slovénie", "SO" => "Somalie", "SD" => "Soudan", "SS" => "Soudan du Sud", "LK" => "Sri Lanka", "SE" => "Suède", "CH" => "Suisse", "SR" => "Suriname", "SJ" => "Svalbard et Île Jan Mayen", "SZ" => "Swaziland", "SY" => "Syrie", "TJ" => "Tadjikistan", "TW" => "Taïwan", "TZ" => "Tanzanie", "TD" => "Tchad", "CZ" => "République tchèque", "TF" => "Terres australes et antarctiques françaises", "TH" => "Thaïlande", "TL" => "Timor oriental", "TG" => "Togo", "TK" => "Tokelau", "TO" => "Tonga", "TT" => "Trinité-et-Tobago", "TN" => "Tunisie", "TM" => "Turkménistan", "TC" => "Îles Turques-et-Caïques", "TR" => "Turquie", "TV" => "Tuvalu", "UA" => "Ukraine", "UY" => "Uruguay", "VU" => "Vanuatu", "VE" => "Venezuela", "VN" => "Viêt Nam", "WF" => "Wallis-et-Futuna", "YE" => "Yémen", "ZM" => "Zambie" )); define('COUNTRIES_CODE', array( "Afghanistan" => "AF", "Afrique du Sud" => "ZA" , "Aland" => "AX", "Albanie" =>"AL", "Algérie" =>"DZ", "Allemagne" =>"DE", "Andorre" =>"AD", "Angola" =>"AO", "Anguilla" =>"AI", "Antarctique" =>"AQ", "Antigua-et-Barbuda" =>"AG", "Arabie saoudite" =>"SA", "Argentine" =>"AR", "Arménie" =>"AM", "Aruba" =>"AW", "Australie" =>"AU", "Autriche" =>"AT", "Azerbaïdjan" =>"AZ", "Bahamas" =>"BS", "Bahreïn" =>"BH", "Bangladesh" =>"BD", "Barbade" =>"BB", "Biélorussie" =>"BY", "Belgique" =>"BE", "Belize" =>"BZ", "Bénin" =>"BJ", "Bermudes" =>"BM", "Bhoutan" =>"BT", "Bolivie" =>"BO", "Bonaire" =>"BQ", "Bosnie-Herzégovine" =>"BA", "Botswana" =>"BW", "Île Bouvet" =>"BV", "Brésil" =>"BR", "Brunei" =>"BN", "Bulgarie" =>"BG", "Burkina Faso" =>"BF", "Burundi" =>"BI", "Îles Caïmans" =>"KY", "Cambodge" =>"KH", "Cameroun" =>"CM", "Canada" =>"CA", "Cap-Vert" =>"CV", "République centrafricaine" =>"CF", "Chili" =>"CL", "Chine" =>"CN", "Île Christmas" =>"CX", "Chypre" =>"CY", "Îles Cocos" =>"CC", "Colombie" =>"CO", "Comores" =>"KM", "République du Congo" =>"CG", "République démocratique du Congo" =>"CD", "Îles Cook" =>"CK", "Corée du Sud" =>"KR", "Corée du Nord" =>"KP", "Costa Rica" =>"CR", "Côte d Ivoire" =>"CI", "Croatie" =>"HR", "Cuba" =>"CU", "Curaçao" =>"CW", "Danemark" =>"DK", "Djibouti" =>"DJ", "République dominicaine" =>"DO", "Dominique" =>"DM", "Égypte" =>"EG", "Salvador" =>"SV", "Émirats arabes unis" =>"AE", "Équateur" =>"EC", "Érythrée" =>"ER", "Espagne" =>"ES", "Estonie" =>"EE", "États-Unis" =>"US", "Éthiopie" =>"ET", "Îles Malouines" =>"FK", "Îles Féroé" =>"FO", "Fidji" =>"FJ", "Finlande" =>"FI", "France" =>"FR", "Gabon" =>"GA", "Gambie" =>"GM", "Géorgie" =>"GE", "Géorgie du Sud-et-les Îles Sandwich du Sud" =>"GS", "Ghana" =>"GH", "Gibraltar" =>"GI", "Grèce" =>"GR", "Grenade" =>"GD", "Groenland" =>"GL", "Guadeloupe" =>"GP", "Guam" =>"GU", "Guatemala" =>"GT", "Guernesey" =>"GG", "Guinée" =>"GN", "Guinée-Bissau" =>"GW", "Guinée équatoriale" =>"GQ", "Guyana" =>"GY", "Guyane" =>"GF", "Haïti" =>"HT", "Îles Heard-et-MacDonald" =>"HM", "Honduras" =>"HN", "Hong Kong" =>"HK", "Hongrie" =>"HU", "Île de Man" =>"IM", "Îles mineures éloignées des États-Unis" =>"UM", "Îles Vierges britanniques" =>"VG", "Îles Vierges des États-Unis" =>"VI", "Inde" =>"IN", "Indonésie" =>"ID", "Iran" =>"IR", "Irak" =>"IQ", "Irlande" =>"IE", "Islande" =>"IS", "Israël" =>"IL", "Italie" =>"IT", "Jamaïque" =>"JM", "Japon" =>"JP", "Jersey" =>"JE", "Jordanie" =>"JO", "Kazakhstan" =>"KZ", "Kenya" =>"KE", "Kirghizistan" =>"KG", "Kiribati" =>"KI", "Koweït" =>"KW", "Laos" =>"LA", "Lesotho" =>"LS", "Lettonie" =>"LV", "Liban" =>"LB", "Liberia" =>"LR", "Libye" =>"LY", "Liechtenstein" =>"LI", "Lituanie" =>"LT", "Luxembourg" =>"LU", "Macao" =>"MO", "Macédoine" =>"MK", "Madagascar" =>"MG", "Malaisie" =>"MY", "Malawi" =>"MW", "Maldives" =>"MV", "Mali" =>"ML", "Malte" =>"MT", "Îles Mariannes du Nord" =>"MP", "Maroc" =>"MA", "Marshall" =>"MH", "Martinique" =>"MQ", "Maurice" =>"MU", "Mauritanie" =>"MR", "Mayotte" =>"YT", "Mexique" =>"MX", "Micronésie" =>"FM", "Moldavie" =>"MD", "Monaco" =>"MC", "Mongolie" =>"MN", "Monténégro" =>"ME", "Montserrat" =>"MS", "Mozambique" =>"MZ", "Birmanie" =>"MM", "Namibie" =>"NA", "Nauru" =>"NR", "Népal" =>"NP", "Nicaragua" =>"NI", "Niger" =>"NE", "Nigeria" =>"NG", "Niue" =>"NU", "Île Norfolk" =>"NF", "Norvège" =>"NO", "Nouvelle-Calédonie" =>"NC", "Nouvelle-Zélande" =>"NZ", "Territoire britannique de l\océan Indien" =>"IO", "Oman" =>"OM", "Ouganda" =>"UG", "Ouzbékistan" =>"UZ", "Pakistan","PK", "Palaos" =>"PW", "Autorité Palestinienne" =>"PS", "Panama" =>"PA", "Papouasie-Nouvelle-Guinée" =>"PG", "Paraguay" =>"PY", "Pays-Bas" =>"NL", "Pérou" =>"PE", "Philippines" =>"PH", "Îles Pitcairn" =>"PN", "Pologne" =>"PL", "Polynésie française" =>"PF", "Porto Rico" =>"PR", "Portugal" =>"PT", "Qatar" =>"QA", "La Réunion" =>"RE", "Roumanie" =>"RO", "Royaume-Uni" =>"GB", "Russie" =>"RU", "Rwanda" =>"RW", "Sahara occidental" =>"EH", "Saint-Barthélemy" =>"BL", "Saint-Christophe-et-Niévès" =>"KN", "Saint-Marin" =>"SM", "Saint-Martin Antilles françaises" =>"MF", "Saint-Martin" =>"SX", "Saint-Pierre-et-Miquelon" =>"PM", "Saint-Siège État de la Cité du Vatican" =>"VA", "Saint-Vincent-et-les-Grenadines" =>"VC", "Sainte-Hélène" =>"SH", "Sainte-Lucie" =>"LC", "Salomon" =>"SB", "Samoa" =>"WS", "Samoa américaines" =>"AS", "Sao Tomé-et-Principe" =>"ST", "Sénégal" =>"SN", "Serbie" =>"RS", "Seychelles" =>"SC", "Sierra Leone" =>"SL", "Singapour" =>"SG", "Slovaquie" =>"SK", "Slovénie" =>"SI", "Somalie" =>"SO", "Soudan" =>"SD", "Soudan du Sud" =>"SS", "Sri Lanka" =>"LK", "Suède" =>"SE", "Suisse" =>"CH", "Suriname" =>"SR", "Svalbard et Île Jan Mayen" =>"SJ", "Swaziland" =>"SZ", "Syrie" =>"SY", "Tadjikistan" =>"TJ", "Taïwan" =>"TW", "Tanzanie" =>"TZ", "Tchad" =>"TD", "République tchèque" =>"CZ", "Terres australes et antarctiques françaises" =>"TF", "Thaïlande" =>"TH", "Timor oriental" =>"TL", "Togo" =>"TG", "Tokelau" =>"TK", "Tonga" =>"TO", "Trinité-et-Tobago" =>"TT", "Tunisie" =>"TN", "Turkménistan" =>"TM", "Îles Turques-et-Caïques" =>"TC", "Turquie" =>"TR", "Tuvalu" =>"TV", "Ukraine" =>"UA", "Uruguay" =>"UY", "Vanuatu" =>"VU", "Venezuela" =>"VE", "Viêt Nam" =>"VN", "Wallis-et-Futuna" =>"WF", "Yémen" =>"YE", "Zambie" =>"ZM" )); /* |-------------------------------------------------------------------------- | USER PRIVILEGES IN BACKOFFICE |-------------------------------------------------------------------------- | | |-------------------------------------------------------------------------- | User roles |-------------------------------------------------------------------------- */ define('USER_ROLES', [ 'superadmin' => 1, 'lemonde_user' => 2, 'regular' => 3, // subscriber 'admin_rc' => 7 ]); /* |-------------------------------------------------------------------------- | PAGE CODE | The sections in the backoffice |-------------------------------------------------------------------------- */ define('PAGE_CODE', [ 'dashboard' => 'dashb', 'statistics' => 'stats', 'events' => 'events', 'noshow' => 'noshow', 'email' => 'email', 'moderation' => 'mod', 'subscribers' => 'subsc', 'sys_settings' => 'sys_set', 'personalization' => 'pers', 'faq' => 'faq', 'misc' => 'misc' ]); define('PAGE_NAME', [ PAGE_CODE['dashboard'] => 'Tableau de bord', PAGE_CODE['statistics'] => 'Statistiques', PAGE_CODE['events'] => 'Gestion des ateliers', PAGE_CODE['noshow'] => 'Noshow', PAGE_CODE['email'] => 'Gestion des emails', PAGE_CODE['moderation'] => 'Moderation', PAGE_CODE['subscribers'] => 'COMPANY FOR MADAGASCAR MasterClass', PAGE_CODE['sys_settings'] => 'Configuration du système', PAGE_CODE['personalization'] => 'Personalisation', PAGE_CODE['faq'] => 'FAQ', PAGE_CODE['misc'] => 'Générale' ]); /* |-------------------------------------------------------------------------- | PRIVILEGES | These are available privileges in the backoffice and is used in the user roles form | | To add a new privilege, simply add the PAGE_CODE[item] and then the privilege + id |-------------------------------------------------------------------------- */ define('PRIVS', [ /* Miscelaneous */ PAGE_CODE['misc'] => [ 'upload' => 0, 'login_to_bo' => 1, ], /* Dashboard page */ PAGE_CODE['dashboard'] => [ 'view' => 0 ], /* Statistics page */ PAGE_CODE['statistics'] => [ 'view' => 0, 'export' => 1, ], /* Events page */ PAGE_CODE['events'] => [ 'view' => 0, 'add' => 1, 'edit' => 2, 'delete' => 3, /* Event schedules */ 'sched_add' => 4, 'sched_edit' => 5, 'sched_delete' => 6, 'sched_export_subs_list_btn' => 7, 'sched_view_noshow_btn' => 8, 'sched_resend_email_btn' => 9, /* Email template */ 'sched_email_template_btn' => 10, 'sched_email_template_edit' => 11, 'sched_email_template_reset' => 12, 'sched_email_template_resend' => 13, 'sched_email_template_remove' => 14, /* Email reminder */ 'sched_email_reminder_btn' => 15, 'sched_email_reminder_create' => 16, 'sched_email_reminder_edit' => 17, 'sched_email_reminder_delete' => 18, /* Event schedule moderation */ 'sched_moderation_btn' => 19, 'sched_moderation_flex' => 20, 'global_change_stat' => 21, 'preview_event' => 22, ], /* No show page*/ PAGE_CODE['noshow'] => [ 'view' => 0, 'toggle' => 1, 'export' => 2, 'import' => 3, 'mod_attendance' => 4, 'add_walk_in' => 5, ], /* Email page*/ PAGE_CODE['email'] => [ /* Email template */ 'template_view' => 0, 'template_add' => 1, 'template_edit' => 2, 'template_delete' => 3, /* Default settings */ 'settings_view' => 4, 'settings_add' => 5, 'settings_edit' => 6, 'settings_delete' => 7, 'page' => 8, ], /* Moderation settings page */ PAGE_CODE['moderation'] => [ /* View */ 'view' => 0, 'on_off_toggle' => 1, 'nshow_per_subscriber_toggle' => 2, 'res_per_subscriber_toggle' => 3, 'event_category_toggle' => 4, 'event_location_toggle' => 5, 'event_month_toggle' => 6, 'flex_mod_toggle' => 7, ], /* Subscribers page */ PAGE_CODE['subscribers'] => [ 'view' => 0, 'export' => 1, 'edit' => 2, 'delete' => 3, 'login_as' => 4, 'mod_toggle' => 5, ], /* System settings page */ PAGE_CODE['sys_settings'] => [ /* User management */ 'user_mgt_view' => 1, 'user_mgt_add' => 2, 'user_mgt_edit' => 3, 'user_mgt_delete' => 4, /* City attachment */ 'city_mgt_view' => 5, 'city_mgt_add' => 6, 'city_mgt_edit' => 7, 'city_mgt_delete' => 8, /* Event types */ 'evtype_mgt_view' => 9, 'evtype_mgt_add' => 10, 'evtype_mgt_edit' => 11, 'evtype_mgt_delete' => 12, /* Contact form */ 'contact_form_view' => 13, 'contact_mod_email' => 14, 'contact_nature_add' => 15, 'contact_nature_edit' => 16, 'contact_nature_delete' => 17, 'page' => 18, /* User role management */ 'user_role_view' => 19, 'user_role_add' => 20, 'user_role_edit' => 21, 'user_role_delete' => 22, ], /* Personalization page*/ PAGE_CODE['personalization'] => [ 'view' => 0, 'change_banner' => 1, 'change_legal_notice' => 2, 'change_registration_form' => 3, ], /* FAQ page*/ PAGE_CODE['faq'] => [ 'view' => 0, 'add' => 1, 'edit' => 2, 'delete' => 3, ], ]); /* |-------------------------------------------------------------------------- | DESCRIPTION OF PRIVILEGES | This will be used in the user role form as label of each privlege |-------------------------------------------------------------------------- */ define("PRIV_DESC", [ PAGE_CODE['misc'].PRIVS[PAGE_CODE['misc']]['upload'] => "Ability to upload", PAGE_CODE['misc'].PRIVS[PAGE_CODE['misc']]['login_to_bo'] => "Login to backoffice", /* Tableau de bord & Statistiques page */ PAGE_CODE['dashboard'].PRIVS[PAGE_CODE['dashboard']]['view'] => "Tableau de bord page access", PAGE_CODE['statistics'].PRIVS[PAGE_CODE['statistics']]['view'] => "Statistiques page access", PAGE_CODE['statistics'].PRIVS[PAGE_CODE['statistics']]['export'] => "Export statistics", /* Gestion des ateliers */ PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['view'] => "Page access", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['add'] => "Add event", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['edit'] => "Edit event", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['delete'] => "Delete event", /* Event schedules */ PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_add'] => "Add schedule", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_edit'] => "Edit schedule", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_delete'] => "Delete schedule", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_export_subs_list_btn'] => "Export subscriber list", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_view_noshow_btn'] => "Noshow page button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_resend_email_btn'] => "Resend email button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_template_btn'] => "Email template button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_template_edit'] => "Edit specific email template", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_template_reset'] => "Reset specific email template", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_template_resend'] => "Resend specific email template", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_template_remove'] => "Remove specific email template", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_reminder_btn'] => "Reminder email button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_reminder_create'] => "Create email reminder", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_reminder_edit'] => "Edit email reminder", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_email_reminder_delete'] => "Delete email reminder", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_moderation_btn'] => "Toggle event schedule moderation button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['sched_moderation_flex'] => "Toggle flexible moderation button", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['global_change_stat'] => "Multiple change event status", PAGE_CODE['events'].PRIVS[PAGE_CODE['events']]['preview_event'] => "Preview event", /* Noshow page */ PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['view'] => "Access noshow page", PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['toggle'] => "Toggle noshow button", PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['export'] => "Export noshow", PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['import'] => "Import noshow", PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['mod_attendance'] => "Modify attendance", PAGE_CODE['noshow'].PRIVS[PAGE_CODE['noshow']]['add_walk_in'] => "Add walk in", /* Gestion des emails */ PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['page'] => "Gestion des emails page access", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['template_view'] => "Edition d’emails page access", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['template_add'] => "Add email template", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['template_edit'] => "Edit email template", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['template_delete'] => "Delete email template", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['settings_view'] => "Paramètres par défaut page access", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['settings_add'] => "Add email reminder", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['settings_edit'] => "Edit email reminder", PAGE_CODE['email'].PRIVS[PAGE_CODE['email']]['settings_delete'] => "Delete email reminder", /* Moderation page */ PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['view'] => "Access moderation page", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['on_off_toggle'] => "Turn moderation on off", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['nshow_per_subscriber_toggle'] => "Noshow per subscriber", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['res_per_subscriber_toggle'] => "Reservations per subscriber", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['event_category_toggle'] => "Event category", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['event_location_toggle'] => "Event location", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['event_month_toggle'] => "Event month", PAGE_CODE['moderation'].PRIVS[PAGE_CODE['moderation']]['flex_mod_toggle'] => "Flexible moderation", /* Les abonnes page */ PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['view'] => "COMPANY FOR MADAGASCAR MasterClass", PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['export'] => "Export subscribers", PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['edit'] => "Edit subscribers", PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['delete'] => "Delete subscriber", PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['login_as'] => "Login as", PAGE_CODE['subscribers'].PRIVS[PAGE_CODE['subscribers']]['mod_toggle'] => "Toggle moderation setting", /* Configuration du système */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['page'] => "Access configuration du système page", /* Compte utilisateur/User management */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_mgt_view'] => "Compte utilisateur page access", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_mgt_add'] => "Add users", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_mgt_edit'] => "Edit users", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_mgt_delete'] => "Delete users", /* User role management */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_role_view'] => "User role page access", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_role_add'] => "Add user roles", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_role_edit'] => "Edit user roles", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['user_role_delete'] => "Delete user roles", /* Ville de rattachement/City location */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['city_mgt_view'] => "Ville de rattachement page access", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['city_mgt_add'] => "Add city", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['city_mgt_edit'] => "Edit city", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['city_mgt_delete'] => "Delete city", /* Type d'ateliers/Event type management */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_view'] => "Type d'ateliers page access", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_add'] => "Add event type", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_edit'] => "Edit event type", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_delete'] => "Delete event type", /* Formulaire de contact/Contact email settings */ PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['contact_form_view'] => "Formulaire de contact page access", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['contact_mod_email'] => "Modify contact email", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['contact_nature_add'] => "Add contact nature", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['contact_nature_edit'] => "Edit contact nature", PAGE_CODE['sys_settings'].PRIVS[PAGE_CODE['sys_settings']]['contact_nature_delete'] => "Delete contact nature", /* Personalisation page */ PAGE_CODE['personalization'].PRIVS[PAGE_CODE['personalization']]['view'] => "Personalisation page access", PAGE_CODE['personalization'].PRIVS[PAGE_CODE['personalization']]['change_banner'] => "Change banner", PAGE_CODE['personalization'].PRIVS[PAGE_CODE['personalization']]['change_legal_notice'] => "Change legal notice", PAGE_CODE['personalization'].PRIVS[PAGE_CODE['personalization']]['change_registration_form'] => "Change registration form", /* FAQ page */ PAGE_CODE['faq'].PRIVS[PAGE_CODE['faq']]['view'] => "FAQ page access", PAGE_CODE['faq'].PRIVS[PAGE_CODE['faq']]['add'] => "Add FAQ", PAGE_CODE['faq'].PRIVS[PAGE_CODE['faq']]['edit'] => "Edit FAQ", PAGE_CODE['faq'].PRIVS[PAGE_CODE['faq']]['delete'] => "Delete FAQ", ]); /* |-------------------------------------------------------------------------- | DEFAULT USER PRIVILEGES | These are the default privileges when reinitializeDefaultPrivileges() (from MY_Controller is executed) |-------------------------------------------------------------------------- */ define('DEF_USER_PRIVS', [ USER_ROLES['superadmin'] => [ PAGE_CODE['misc'] => [ PRIVS[PAGE_CODE['misc']]['upload'], PRIVS[PAGE_CODE['misc']]['login_to_bo'], ], PAGE_CODE['dashboard'] => [ PRIVS[PAGE_CODE['dashboard']]['view'] ], PAGE_CODE['statistics'] => [ PRIVS[PAGE_CODE['statistics']]['view'], PRIVS[PAGE_CODE['statistics']]['export'], ], PAGE_CODE['events'] => [ PRIVS[PAGE_CODE['events']]['view'], PRIVS[PAGE_CODE['events']]['add'], PRIVS[PAGE_CODE['events']]['edit'], PRIVS[PAGE_CODE['events']]['delete'], PRIVS[PAGE_CODE['events']]['sched_add'], PRIVS[PAGE_CODE['events']]['sched_edit'], PRIVS[PAGE_CODE['events']]['sched_delete'], PRIVS[PAGE_CODE['events']]['sched_export_subs_list_btn'], PRIVS[PAGE_CODE['events']]['sched_view_noshow_btn'], PRIVS[PAGE_CODE['events']]['sched_resend_email_btn'], PRIVS[PAGE_CODE['events']]['sched_email_template_btn'], PRIVS[PAGE_CODE['events']]['sched_email_template_edit'], PRIVS[PAGE_CODE['events']]['sched_email_template_reset'], PRIVS[PAGE_CODE['events']]['sched_email_template_resend'], PRIVS[PAGE_CODE['events']]['sched_email_template_remove'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_btn'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_create'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_edit'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_delete'], PRIVS[PAGE_CODE['events']]['sched_moderation_btn'], PRIVS[PAGE_CODE['events']]['sched_moderation_flex'], PRIVS[PAGE_CODE['events']]['global_change_stat'], PRIVS[PAGE_CODE['events']]['preview_event'], ], PAGE_CODE['noshow'] => [ PRIVS[PAGE_CODE['noshow']]['view'], PRIVS[PAGE_CODE['noshow']]['toggle'], PRIVS[PAGE_CODE['noshow']]['export'], PRIVS[PAGE_CODE['noshow']]['import'], PRIVS[PAGE_CODE['noshow']]['mod_attendance'], PRIVS[PAGE_CODE['noshow']]['add_walk_in'], ], PAGE_CODE['email'] => [ PRIVS[PAGE_CODE['email']]['template_view'], PRIVS[PAGE_CODE['email']]['template_add'], PRIVS[PAGE_CODE['email']]['template_edit'], PRIVS[PAGE_CODE['email']]['template_delete'], PRIVS[PAGE_CODE['email']]['settings_view'], PRIVS[PAGE_CODE['email']]['settings_add'], PRIVS[PAGE_CODE['email']]['settings_edit'], PRIVS[PAGE_CODE['email']]['settings_delete'], PRIVS[PAGE_CODE['email']]['page'], ], PAGE_CODE['moderation'] => [ PRIVS[PAGE_CODE['moderation']]['view'], PRIVS[PAGE_CODE['moderation']]['on_off_toggle'], PRIVS[PAGE_CODE['moderation']]['nshow_per_subscriber_toggle'], PRIVS[PAGE_CODE['moderation']]['res_per_subscriber_toggle'], PRIVS[PAGE_CODE['moderation']]['event_category_toggle'], PRIVS[PAGE_CODE['moderation']]['event_location_toggle'], PRIVS[PAGE_CODE['moderation']]['event_month_toggle'], PRIVS[PAGE_CODE['moderation']]['flex_mod_toggle'], ], PAGE_CODE['subscribers'] => [ PRIVS[PAGE_CODE['subscribers']]['view'], PRIVS[PAGE_CODE['subscribers']]['export'], PRIVS[PAGE_CODE['subscribers']]['edit'], PRIVS[PAGE_CODE['subscribers']]['delete'], PRIVS[PAGE_CODE['subscribers']]['login_as'], PRIVS[PAGE_CODE['subscribers']]['mod_toggle'], ], PAGE_CODE['sys_settings'] => [ /* Users */ PRIVS[PAGE_CODE['sys_settings']]['user_mgt_view'], PRIVS[PAGE_CODE['sys_settings']]['user_mgt_add'], PRIVS[PAGE_CODE['sys_settings']]['user_mgt_edit'], PRIVS[PAGE_CODE['sys_settings']]['user_mgt_delete'], /* User roles */ PRIVS[PAGE_CODE['sys_settings']]['user_role_view'], PRIVS[PAGE_CODE['sys_settings']]['user_role_add'], PRIVS[PAGE_CODE['sys_settings']]['user_role_edit'], PRIVS[PAGE_CODE['sys_settings']]['user_role_delete'], /* City location */ PRIVS[PAGE_CODE['sys_settings']]['city_mgt_view'], PRIVS[PAGE_CODE['sys_settings']]['city_mgt_add'], PRIVS[PAGE_CODE['sys_settings']]['city_mgt_edit'], PRIVS[PAGE_CODE['sys_settings']]['city_mgt_delete'], /* Event type management */ PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_view'], PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_add'], PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_edit'], PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_delete'], /* Contact email settings */ PRIVS[PAGE_CODE['sys_settings']]['contact_form_view'], PRIVS[PAGE_CODE['sys_settings']]['contact_mod_email'], PRIVS[PAGE_CODE['sys_settings']]['contact_nature_add'], PRIVS[PAGE_CODE['sys_settings']]['contact_nature_edit'], PRIVS[PAGE_CODE['sys_settings']]['contact_nature_delete'], PRIVS[PAGE_CODE['sys_settings']]['page'], ], PAGE_CODE['personalization'] => [ PRIVS[PAGE_CODE['personalization']]['view'], PRIVS[PAGE_CODE['personalization']]['change_banner'], PRIVS[PAGE_CODE['personalization']]['change_legal_notice'], PRIVS[PAGE_CODE['personalization']]['change_registration_form'], ], PAGE_CODE['faq'] => [ PRIVS[PAGE_CODE['faq']]['view'], PRIVS[PAGE_CODE['faq']]['add'], PRIVS[PAGE_CODE['faq']]['edit'], PRIVS[PAGE_CODE['faq']]['delete'], ], ], USER_ROLES['lemonde_user'] => [ PAGE_CODE['misc'] => [ PRIVS[PAGE_CODE['misc']]['upload'], PRIVS[PAGE_CODE['misc']]['login_to_bo'], ], PAGE_CODE['dashboard'] => [ PRIVS[PAGE_CODE['dashboard']]['view'] ], PAGE_CODE['statistics'] => [ PRIVS[PAGE_CODE['statistics']]['view'], PRIVS[PAGE_CODE['statistics']]['export'], ], PAGE_CODE['events'] => [ PRIVS[PAGE_CODE['events']]['view'], PRIVS[PAGE_CODE['events']]['add'], PRIVS[PAGE_CODE['events']]['edit'], PRIVS[PAGE_CODE['events']]['delete'], PRIVS[PAGE_CODE['events']]['sched_add'], PRIVS[PAGE_CODE['events']]['sched_edit'], PRIVS[PAGE_CODE['events']]['sched_delete'], PRIVS[PAGE_CODE['events']]['sched_export_subs_list_btn'], PRIVS[PAGE_CODE['events']]['sched_view_noshow_btn'], PRIVS[PAGE_CODE['events']]['sched_resend_email_btn'], PRIVS[PAGE_CODE['events']]['sched_email_template_btn'], PRIVS[PAGE_CODE['events']]['sched_email_template_edit'], PRIVS[PAGE_CODE['events']]['sched_email_template_reset'], PRIVS[PAGE_CODE['events']]['sched_email_template_resend'], PRIVS[PAGE_CODE['events']]['sched_email_template_remove'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_btn'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_create'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_edit'], PRIVS[PAGE_CODE['events']]['sched_email_reminder_delete'], PRIVS[PAGE_CODE['events']]['sched_moderation_btn'], PRIVS[PAGE_CODE['events']]['sched_moderation_flex'], PRIVS[PAGE_CODE['events']]['global_change_stat'], PRIVS[PAGE_CODE['events']]['preview_event'], ], PAGE_CODE['noshow'] => [ PRIVS[PAGE_CODE['noshow']]['view'], PRIVS[PAGE_CODE['noshow']]['toggle'], PRIVS[PAGE_CODE['noshow']]['export'], PRIVS[PAGE_CODE['noshow']]['import'], PRIVS[PAGE_CODE['noshow']]['mod_attendance'], PRIVS[PAGE_CODE['noshow']]['add_walk_in'], ], PAGE_CODE['email'] => [ PRIVS[PAGE_CODE['email']]['template_view'], PRIVS[PAGE_CODE['email']]['template_add'], PRIVS[PAGE_CODE['email']]['template_edit'], PRIVS[PAGE_CODE['email']]['template_delete'], PRIVS[PAGE_CODE['email']]['settings_view'], PRIVS[PAGE_CODE['email']]['settings_add'], PRIVS[PAGE_CODE['email']]['settings_edit'], PRIVS[PAGE_CODE['email']]['settings_delete'], PRIVS[PAGE_CODE['email']]['page'], ], PAGE_CODE['moderation'] => [ // PRIVS[PAGE_CODE['moderation']]['view'], // PRIVS[PAGE_CODE['moderation']]['on_off_toggle'], // PRIVS[PAGE_CODE['moderation']]['nshow_per_subscriber_toggle'], // PRIVS[PAGE_CODE['moderation']]['res_per_subscriber_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_category_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_location_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_month_toggle'], // PRIVS[PAGE_CODE['moderation']]['flex_mod_toggle'], ], PAGE_CODE['subscribers'] => [ PRIVS[PAGE_CODE['subscribers']]['view'], PRIVS[PAGE_CODE['subscribers']]['export'], PRIVS[PAGE_CODE['subscribers']]['edit'], // PRIVS[PAGE_CODE['subscribers']]['delete'], PRIVS[PAGE_CODE['subscribers']]['login_as'], PRIVS[PAGE_CODE['subscribers']]['mod_toggle'], ], PAGE_CODE['sys_settings'] => [ /* Users */ // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_delete'], // /* City location */ // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_delete'], // /* Event type management */ // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_delete'], // /* Contact email settings */ // PRIVS[PAGE_CODE['sys_settings']]['contact_form_view'], // PRIVS[PAGE_CODE['sys_settings']]['contact_mod_email'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_add'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_edit'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_delete'], // // PRIVS[PAGE_CODE['sys_settings']]['page'], ], PAGE_CODE['personalization'] => [ // PRIVS[PAGE_CODE['personalization']]['view'], // PRIVS[PAGE_CODE['personalization']]['change_banner'], // PRIVS[PAGE_CODE['personalization']]['change_legal_notice'], // PRIVS[PAGE_CODE['personalization']]['change_registration_form'], ], PAGE_CODE['faq'] => [ // PRIVS[PAGE_CODE['faq']]['view'], // PRIVS[PAGE_CODE['faq']]['add'], // PRIVS[PAGE_CODE['faq']]['edit'], // PRIVS[PAGE_CODE['faq']]['delete'], ], ], USER_ROLES['regular'] => [ PAGE_CODE['misc'] => [], PAGE_CODE['dashboard'] => [], PAGE_CODE['statistics'] => [], PAGE_CODE['events'] => [], PAGE_CODE['noshow'] => [], PAGE_CODE['email'] => [], PAGE_CODE['moderation'] => [], PAGE_CODE['subscribers'] => [], PAGE_CODE['sys_settings'] => [], PAGE_CODE['personalization'] => [], PAGE_CODE['faq'] => [], ], USER_ROLES['admin_rc'] => [ PAGE_CODE['misc'] => [ PRIVS[PAGE_CODE['misc']]['upload'], PRIVS[PAGE_CODE['misc']]['login_to_bo'], ], PAGE_CODE['dashboard'] => [ PRIVS[PAGE_CODE['dashboard']]['view'] ], PAGE_CODE['statistics'] => [ PRIVS[PAGE_CODE['statistics']]['view'], PRIVS[PAGE_CODE['statistics']]['export'], ], PAGE_CODE['events'] => [ PRIVS[PAGE_CODE['events']]['view'], // PRIVS[PAGE_CODE['events']]['add'], // PRIVS[PAGE_CODE['events']]['edit'], // PRIVS[PAGE_CODE['events']]['delete'], // PRIVS[PAGE_CODE['events']]['sched_add'], // PRIVS[PAGE_CODE['events']]['sched_edit'], // PRIVS[PAGE_CODE['events']]['sched_delete'], // PRIVS[PAGE_CODE['events']]['sched_export_subs_list_btn'], // PRIVS[PAGE_CODE['events']]['sched_view_noshow_btn'], PRIVS[PAGE_CODE['events']]['sched_resend_email_btn'], // PRIVS[PAGE_CODE['events']]['sched_email_template_btn'], // PRIVS[PAGE_CODE['events']]['sched_email_template_edit'], // PRIVS[PAGE_CODE['events']]['sched_email_template_reset'], // PRIVS[PAGE_CODE['events']]['sched_email_template_resend'], // PRIVS[PAGE_CODE['events']]['sched_email_template_remove'], // PRIVS[PAGE_CODE['events']]['sched_email_reminder_btn'], // PRIVS[PAGE_CODE['events']]['sched_email_reminder_create'], // PRIVS[PAGE_CODE['events']]['sched_email_reminder_edit'], // PRIVS[PAGE_CODE['events']]['sched_email_reminder_delete'], // PRIVS[PAGE_CODE['events']]['sched_moderation_btn'], // PRIVS[PAGE_CODE['events']]['sched_moderation_flex'], // PRIVS[PAGE_CODE['events']]['global_change_stat'], // PRIVS[PAGE_CODE['events']]['preview_event'], ], PAGE_CODE['noshow'] => [ // PRIVS[PAGE_CODE['noshow']]['view'], // PRIVS[PAGE_CODE['noshow']]['toggle'], // PRIVS[PAGE_CODE['noshow']]['export'], // PRIVS[PAGE_CODE['noshow']]['import'], // PRIVS[PAGE_CODE['noshow']]['mod_attendance'], // PRIVS[PAGE_CODE['noshow']]['add_walk_in'], ], PAGE_CODE['email'] => [ PRIVS[PAGE_CODE['email']]['template_view'], // PRIVS[PAGE_CODE['email']]['template_add'], // PRIVS[PAGE_CODE['email']]['template_edit'], // PRIVS[PAGE_CODE['email']]['template_delete'], // // PRIVS[PAGE_CODE['email']]['settings_view'], // PRIVS[PAGE_CODE['email']]['settings_add'], // PRIVS[PAGE_CODE['email']]['settings_edit'], // PRIVS[PAGE_CODE['email']]['settings_delete'], // /* View the actual page */ PRIVS[PAGE_CODE['email']]['page'], ], PAGE_CODE['moderation'] => [ // PRIVS[PAGE_CODE['moderation']]['view'] // PRIVS[PAGE_CODE['moderation']]['on_off_toggle'], // PRIVS[PAGE_CODE['moderation']]['nshow_per_subscriber_toggle'], // PRIVS[PAGE_CODE['moderation']]['res_per_subscriber_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_category_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_location_toggle'], // PRIVS[PAGE_CODE['moderation']]['event_month_toggle'], // PRIVS[PAGE_CODE['moderation']]['flex_mod_toggle'], ], PAGE_CODE['subscribers'] => [ PRIVS[PAGE_CODE['subscribers']]['view'], PRIVS[PAGE_CODE['subscribers']]['export'], PRIVS[PAGE_CODE['subscribers']]['edit'], // PRIVS[PAGE_CODE['subscribers']]['delete'], PRIVS[PAGE_CODE['subscribers']]['login_as'], PRIVS[PAGE_CODE['subscribers']]['mod_toggle'], ], PAGE_CODE['sys_settings'] => [ /* Users */ // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['user_mgt_delete'], // /* City location */ // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['city_mgt_delete'], // /* Event type management */ // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_view'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_add'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_edit'], // PRIVS[PAGE_CODE['sys_settings']]['evtype_mgt_delete'], // /* Contact email settings */ // PRIVS[PAGE_CODE['sys_settings']]['contact_form_view'], // PRIVS[PAGE_CODE['sys_settings']]['contact_mod_email'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_add'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_edit'], // PRIVS[PAGE_CODE['sys_settings']]['contact_nature_delete'], // // PRIVS[PAGE_CODE['sys_settings']]['page'], ], PAGE_CODE['personalization'] => [ // PRIVS[PAGE_CODE['personalization']]['view'], // PRIVS[PAGE_CODE['personalization']]['change_banner'], // PRIVS[PAGE_CODE['personalization']]['change_legal_notice'], // PRIVS[PAGE_CODE['personalization']]['change_registration_form'], ], PAGE_CODE['faq'] => [ PRIVS[PAGE_CODE['faq']]['view'], PRIVS[PAGE_CODE['faq']]['add'], PRIVS[PAGE_CODE['faq']]['edit'], PRIVS[PAGE_CODE['faq']]['delete'], ], ], ]); /** * Determines whether an event is a * online event, * paid event, * regular event */ define('EVENT_CATEGORY', [ 'REGULAR_EVENT' => 'Regular event', 'ONLINE_EVENT' => 'Online event', 'PAID_EVENT' => 'Paid event' ]); // DEVELOPMENT if (ENVIRONMENT !== "production") { /** * ACTIVATE CMP / GDPR */ define('GDPR', [ "on" => false, // If GDPR is off, replace this with 'src=' "external_src" => 'type="text/plain" data-gdpr-purposes="analytics" data-gdpr-src=', // If GDPR is off, replace this with '' "inline_src" => 'type="text/plain" data-gdpr-purposes="analytics" data-gdpr-inline' ]); } else { /** * ACTIVATE CMP / GDPR */ define('GDPR', [ "on" => false, // If GDPR is off, replace this with 'src=' "external_src" => 'type="text/plain" data-gdpr-purposes="analytics" data-gdpr-src=', // If GDPR is off, replace this with '' "inline_src" => 'type="text/plain" data-gdpr-purposes="analytics" data-gdpr-inline' ]); } /** * HP Events Display Limit Per Page */ define('HP_EVENT_DISPLAY', [ 'perPage' => 12, 'perRow' => 3 // 'ONLINE_EVENT' => 'Online event', // 'PAID_EVENT' => 'Paid event' ]); /** * Mercanet account */ define('MERCANET', [ 'SECRET_KEY' => 'S9i8qClCnb2CZU3y3Vn0toIOgz3z_aBi79akR30vM9o', 'MERCHANT_ID' => '211000021310001', 'MID' => 'BNP_DEMO_AXEPTA', 'TRANSACTION_REFERENCE_PREFIX' => 'sdltest', 'HMAC' => '4n!BmF3_?9oJ2Q*z(iD7q6[RSb5)a]A8', 'Blowfish' => 'Tc5*2D_xs7B[6E?w' ]); define('MODE_OF_PAYMENT', [ 'cheque', 'card' ]); /** * Set the workshop id here if required a -5 in the event_rate * otherwise set FALSE */ define('EVENT_ID', FALSE); define('VIDEO_EXPIRATION', 365); //number of days define('REMINDER_EVENT_IDS', [47, 53]); //[47, 53]