/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
includes
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes
mkdir
upload
Name
Size
Mode
Actions
admin/
-
0755
rm
api/
-
0755
rm
database/
-
0755
rm
deprecated/
-
0755
rm
donors/
-
0755
rm
emails/
-
0755
rm
forms/
-
0755
rm
frontend/
-
0755
rm
gateways/
-
0755
rm
libraries/
-
0755
rm
payments/
-
0755
rm
actions.php
9723
0644
edit
dl
rm
ajax-functions.php
20842
0644
edit
dl
rm
class-give-async-process.php
1177
0644
edit
dl
rm
class-give-background-updater.php
13110
0644
edit
dl
rm
class-give-cache-setting.php
6402
0644
edit
dl
rm
class-give-cache.php
18186
0644
edit
dl
rm
class-give-cli-commands.php
33154
0644
edit
dl
rm
class-give-comment.php
17386
0644
edit
dl
rm
class-give-cron.php
5157
0644
edit
dl
rm
class-give-donate-form.php
24078
0644
edit
dl
rm
class-give-donor.php
41007
0644
edit
dl
rm
class-give-email-access.php
8503
0644
edit
dl
rm
class-give-license-handler.php
27610
0644
edit
dl
rm
class-give-logging.php
7492
0644
edit
dl
rm
class-give-readme-parser.php
1259
0644
edit
dl
rm
class-give-roles.php
10783
0644
edit
dl
rm
class-give-scripts.php
25159
0644
edit
dl
rm
class-give-session.php
15164
0644
edit
dl
rm
class-give-stats.php
12049
0644
edit
dl
rm
class-give-template-loader.php
3638
0644
edit
dl
rm
class-give-tooltips.php
4670
0644
edit
dl
rm
class-give-translation.php
8466
0644
edit
dl
rm
class-notices.php
19401
0644
edit
dl
rm
country-functions.php
77972
0644
edit
dl
rm
currencies-list.php
48937
0644
edit
dl
rm
currency-functions.php
11784
0644
edit
dl
rm
error-tracking.php
2996
0644
edit
dl
rm
filters.php
8946
0644
edit
dl
rm
formatting.php
25206
0644
edit
dl
rm
install.php
16535
0644
edit
dl
rm
login-register.php
10578
0644
edit
dl
rm
misc-functions.php
113297
0644
edit
dl
rm
plugin-compatibility.php
3247
0644
edit
dl
rm
post-types.php
18224
0644
edit
dl
rm
price-functions.php
2895
0644
edit
dl
rm
process-donation.php
47979
0644
edit
dl
rm
setting-functions.php
4461
0644
edit
dl
rm
shortcodes.php
29823
0644
edit
dl
rm
template-functions.php
13292
0644
edit
dl
rm
user-functions.php
16145
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/includes/error-tracking.php
(2996B)
<?php /** * Error Tracking * * @package Give * @subpackage Functions/Errors * @copyright Copyright (c) 2016, GiveWP * @license https://opensource.org/licenses/gpl-license GNU Public License * @since 1.0 */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Get Errors * * Retrieves all error messages stored during the checkout process. * If errors exist, they are returned. * * @since 1.0 * @uses Give_Session::get() * @return array|bool array if errors are present, false if none found */ function give_get_errors() { return Give()->session->get( 'give_errors' ); } /** * Set Error * * Stores an error in a session var. * * @since 1.0 * @uses Give_Session::get() * * @param int $error_id ID of the error being set. * @param string $error_message Message to store with the error. * @param array $notice_args * * @return void */ function give_set_error( $error_id, $error_message, $notice_args = array() ) { $errors = give_get_errors(); if ( ! $errors ) { $errors = array(); } if ( is_array( $notice_args ) && ! empty( $notice_args ) ) { $errors[ $error_id ] = array( 'message' => $error_message, 'notice_args' => $notice_args, ); } else { // Backward compatibility v<1.8.11. $errors[ $error_id ] = $error_message; } Give()->session->set( 'give_errors', $errors ); } /** * Clears all stored errors. * * @since 1.0 * @uses Give_Session::set() * @return void */ function give_clear_errors() { Give()->session->set( 'give_errors', null ); } /** * Removes (unsets) a stored error * * @since 1.0 * @uses Give_Session::set() * * @param int $error_id ID of the error being set. * * @return void */ function give_unset_error( $error_id ) { $errors = give_get_errors(); if ( $errors ) { /** * Check If $error_id exists in the array. * If exists then unset it. * * @since 1.8.13 */ if ( isset( $errors[ $error_id ] ) ) { unset( $errors[ $error_id ] ); } Give()->session->set( 'give_errors', $errors ); } } /** * Register die handler for give_die() * * @since 1.0 * @return string */ function _give_die_handler() { if ( defined( 'GIVE_UNIT_TESTS' ) ) { return '_give_die_handler'; } else { die(); } } /** * Wrapper function for wp_die(). This function adds filters for wp_die() which * kills execution of the script using wp_die(). This allows us to then to work * with functions using give_die() in the unit tests. * * @since 1.0 * * @param string $message Message to store with the error. * @param string $title Error title. * @param int $status HTTP status code.. * * @return void */ function give_die( $message = '', $title = '', $status = 400 ) { add_filter( 'wp_die_ajax_handler', '_give_die_handler', 10, 3 ); add_filter( 'wp_die_json_handler', '_give_die_handler', 10, 3 ); add_filter( 'wp_die_handler', '_give_die_handler', 10, 3 ); wp_die( $message, $title, array( 'response' => $status ) ); }
Save
cmd:
run