REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.12 KB
Close
/home/nshryvcy/taramarriagebureau.com/wp-content/plugins/chatway-live-chat/app/Base.php
Text
Base64
<?php /** * Chatway admin base * * @author : Chatway * @license : GPLv3 * */ namespace Chatway\App; class Base { use Singleton; public function __construct() { add_action( 'admin_init', [$this, 'plugin_redirect'] ); } /** * Redirects to the Chatway admin page if the chatway_redirection option is set and DOING_AJAX is not defined. * This function checks if the chatway_redirection option is set to true. If it is, it deletes the option and redirects * to the admin.php?page=chatway URL using wp_redirect function. It then exits the script execution. * * @return void */ public function plugin_redirect() { if ( ! defined( "DOING_AJAX" ) && get_option( 'chatway_redirection', false ) ) { delete_option( 'chatway_redirection' ); exit( wp_redirect( admin_url("admin.php?page=chatway") ) ); } } /** * Activates the plugin by setting up a temporary redirection key. * The user will be redirected to the Plugin Page on installation. * The temporary redirection key is removed as soon as it's called for the first time. * * @return void */ public function activate() { ExternalApi::update_plugins_status( 'install' ); /** * We want to take the user to the Plugin Page on installation. * Hence setting up a temporary redirection key. * It gets removed as soon as it's called for the first time. * Ussage at : plugin_redirect, and called with admin_init */ if(function_exists('chatway_clear_all_caches')) { chatway_clear_all_caches(); } if ( ! defined( "DOING_AJAX" ) ) { add_option( 'chatway_redirection', true ); } } public function deactivate() { ExternalApi::update_plugins_status( 'uninstall' ); ExternalApi::sync_wp_plugin_version(\Chatway::is_woocomerce_active(), 0); User::clear_chatway_keys(); if(function_exists('chatway_clear_all_caches')) { chatway_clear_all_caches(); } delete_option( 'chatway_redirection' ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Api.php
1.48 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Assets.php
4.84 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Base.php
2.12 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ChatwayApi.php
20.60 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ExternalApi.php
12.98 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Front.php
10.28 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Icons.php
904 B
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Singleton.php
396 B
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Url.php
4.67 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
User.php
3.16 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
View.php
5.38 KB
lrw-r--r--
2025-06-11 14:05:51
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).