Server IP : 104.21.38.3 / Your IP : 172.70.93.14 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/admin/ |
Upload File : |
<?php /** * Class Caldera_Forms_Admin_Resend */ class Caldera_Forms_Admin_Resend { /** * Nonce action for resend links * * @since 1.5.2 * * @var string */ protected static $nonce_action = '_cf_resend'; /** * Generate nonce for resend links * * @since 1.5.2 * * @return string */ public static function resend_nonce(){ return wp_create_nonce( self::$nonce_action ); } /** * Verify the resend nonce * * @since 1.5.2 * * @param string $nonce Nonce to check * * @return false|int */ public static function verify_nonce( $nonce ){ return wp_verify_nonce( $nonce, self::$nonce_action ); } /** * Watch for resend requests and process if so and authorized, etc. * * @uses "init" action * * @since 1.5.2 * */ public static function watch_for_resend(){ if( isset( $_GET[ '_cf_resend' ], $_GET[ 'e' ], $_GET[ 'f' ] ) && self::verify_nonce($_GET[ '_cf_resend' ] ) ){ if ( ! current_user_can( Caldera_Forms::get_manage_cap( 'resend-email' ) ) ) { return; } $form = Caldera_Forms_Forms::get_form( $_GET[ 'f' ] ); if( is_array( $form ) ){ $resender = new Caldera_Forms_Email_Resend( absint( $_GET[ 'e' ] ), $form ); $resender->resend(); cf_redirect( add_query_arg( 'message_resent', 'true', Caldera_Forms_Admin::main_admin_page_url() ) ); exit; } } } }