100+ results results for 'php get_current_user' (484 ms)
81 $getKeyLink = 'http://dylan.homeip.net/webdevelopment/expirepass-key-registration/'; 82 $activateURL = get_bloginfo('url') . '/wp-admin/admin.php?page=PassExpire&do=activatePassExpire'; 83 102 103 <form method="POST" action="<?php echo $_SERVER['REQUEST_URI'];?>"> 104 <table><tr><td><strong>Product Key:</strong></td> 110 <tr><td><strong>User Key:</strong></td> 111 <td><input type="input" name="uK1" size="4" maxlength="5" value="<?php echo $_POST['uK1']?>"> 112 - <input type="input" name="uK2" size="3" maxlength="4" value="<?php echo $_POST['uK2']?>"> 116 </form> 117 <p><strong>NOTE:</strong> Your blog url is: <?php echo get_bloginfo('url'); ?></p> 118 <?php } 215 <form name="insertNewPassword" method="post" action="<?php $_SERVER['REQUEST_URI'];?>"> 216 <input type="hidden" name="current_user" id="current_user" value="<?php $current_user = wp_get_current_user(); echo $current_user->user_login; ?>" /> 217 <input type="hidden" name="redirectTo" id="redirectTO" value="<?php echo wp_logout_url( home_url() ); ?>" />theme-install.php https://gitlab.com/mostafame/team_website | PHP | 329 lines
1<?php 2/** 9/** WordPress Administration Bootstrap */ 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11require( ABSPATH . 'wp-admin/includes/theme-install.php' ); 18if ( is_multisite() && ! is_network_admin() ) { 19 wp_redirect( network_admin_url( 'theme-install.php' ) ); 20 exit(); 23$title = __( 'Add Themes' ); 24$parent_file = 'themes.php'; 25 26if ( ! is_network_admin() ) { 27 $submenu_file = 'themes.php'; 28} 41 'canInstall' => current_user_can( 'install_themes' ), 42 'installURI' => current_user_can( 'install_themes' ) ? self_admin_url( 'theme-install.php' ) : null, 43 'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH )user-moderation-admin.php https://gitlab.com/Gashler/sg | PHP | 432 lines
180 ?> 181 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_none" value="none"<?php checked( $this->get_option( 'type' ), 'none' ); ?> /> 182 <label for="<?php echo $this->options_key; ?>_type_none"><?php _e( 'None', 'theme-my-login' ); ?></label> 184 185 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_email" value="email" <?php checked( $this->get_option( 'type' ), 'email' ); ?> /> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 186 <label for="<?php echo $this->options_key; ?>_type_email"><?php _e( 'E-mail Confirmation', 'theme-my-login' ); ?></label> 187 <p class="description"><?php _e( 'Check this option to require new users to confirm their e-mail address before they may log in.', 'theme-my-login' ); ?></p> 188 188 189 <input name="<?php echo $this->options_key; ?>[type]" type="radio" id="<?php echo $this->options_key; ?>_type_admin" value="admin" <?php checked( $this->get_option( 'type' ), 'admin' ); ?> /> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label> 190 <label for="<?php echo $this->options_key; ?>_type_admin"><?php _e( 'Admin Approval', 'theme-my-login' ); ?></label> 191 <p class="description"><?php _e( 'Check this option to require new users to be approved by an administrator before they may log in.', 'theme-my-login' ); ?></p> 192 <?phpclass-wc-shortcode-checkout.php https://gitlab.com/campus-academy/krowkaramel | PHP | 297 lines
1<?php 2/** 108 // If order has does not have same billing email then current logged in user then show warning. 109 if ( $order->get_billing_email() !== wp_get_current_user()->user_email ) { 110 wc_print_notice( __( 'You are paying for a guest order. Please continue with payment only if you recognize this order.', 'woocommerce' ), 'error' ); 186 wc_get_template( 187 'checkout/form-pay.php', 188 array( 207 208 wc_get_template( 'checkout/order-receipt.php', array( 'order' => $order ) ); 209 255 256 wc_get_template( 'checkout/thankyou.php', array( 'order' => $order ) ); 257 } 281 282 wc_get_template( 'checkout/cart-errors.php', array( 'checkout' => $checkout ) ); 283 wc_clear_notices();lang_api.php https://github.com/fusenigk/mantisbt-1.git | PHP | 404 lines
1<?php 2# MantisBT - A PHP based bugtracking system 25 * 26 * @uses authentication_api.php 27 * @uses config_api.php 27 * @uses config_api.php 28 * @uses constant_inc.php 29 * @uses error_api.php 29 * @uses error_api.php 30 * @uses plugin_api.php 31 * @uses user_pref_api.php 33 34require_api( 'authentication_api.php' ); 35require_api( 'config_api.php' ); 35require_api( 'config_api.php' ); 36require_api( 'constant_inc.php' ); 37require_api( 'error_api.php' );class-wc-api-webhooks.php https://gitlab.com/luyxtran264/myproject | PHP | 462 lines
1<?php 2/** 194 'ping_status' => 'closed', 195 'post_author' => get_current_user_id(), 196 'post_password' => strlen( ( $password = uniqid( 'webhook_' ) ) ) > 20 ? substr( $password, 0, 20 ) : $password, 212 // set secret if provided, defaults to API users consumer secret 213 $webhook->set_secret( ! empty( $data['secret'] ) ? $data['secret'] : get_user_meta( get_current_user_id(), 'woocommerce_api_consumer_secret', true ) ); 214 295 'ID' => $webhook->id, 296 'post_author' => get_current_user_id() 297 );testcase-rest-post-type-controller.php https://gitlab.com/morganestes/wordpress-develop | PHP | 315 lines
1<?php 2 277 'status' => 'publish', 278 'author' => get_current_user_id(), 279 'type' => 'post',class-wp-ms-themes-list-table.php https://gitlab.com/puppet-br/puppet-br.org-wordpress | PHP | 361 lines
1<?php 2/** 24 if ( $status != $default_status && 'search' != $status ) 25 update_user_meta( get_current_user_id(), 'themes_last_view', $status ); 26 214 if ( $this->is_site_themes ) 215 $url = 'site-themes.php?id=' . $this->site_id; 216 else 216 else 217 $url = 'themes.php'; 218 267 if ( $this->is_site_themes ) 268 $url = "site-themes.php?id={$this->site_id}&"; 269 else 269 else 270 $url = 'themes.php?'; 271after-the-deadline.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 330 lines
62include( dirname( __FILE__ ) . '/after-the-deadline/config-options.php' ); 63include( dirname( __FILE__ ) . '/after-the-deadline/config-unignore.php' ); 64include( dirname( __FILE__ ) . '/after-the-deadline/proxy.php' ); 144 145 $user = wp_get_current_user(); 146 147 $init_array['atd_rpc_url'] = admin_url( 'admin-ajax.php?action=proxy_atd&_wpnonce=' . wp_create_nonce( 'proxy_atd' ) . '&url=' ); 148 $init_array['atd_ignore_rpc_url'] = admin_url( 'admin-ajax.php?action=atd_ignore&_wpnonce=' . wp_create_nonce( 'atd_ignore' ) . '&phrase=' ); 149 $init_array['atd_rpc_id'] = AtD_get_rpc_id(); 170function AtD_settings() { 171 $user = wp_get_current_user(); 172 285 286 $pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' ); 287em-event-posts-admin.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 293 lines
16 $hidden = array('event-id'); 17 update_user_option(get_current_user_id(), "manage{$screen}columnshidden", $hidden, true); 18 } 157 ?> 158 <a href="<?php echo $EM_Event->get_bookings_url(); ?>"><?php echo __("Bookings",'dbem'); ?></a> – 159 <?php _e("Booked",'dbem'); ?>: <?php echo $EM_Event->get_bookings()->get_booked_spaces()."/".$EM_Event->get_spaces(); ?> 160 <?php if( get_option('dbem_bookings_approval') == 1 ): ?> 161 | <?php _e("Pending",'dbem') ?>: <?php echo $EM_Event->get_bookings()->get_pending_spaces(); ?> 162 <?php endif; 171 <div class="row-actions"> 172 <a href="<?php echo admin_url(); ?>post.php?action=edit&post=<?php echo $EM_Event->get_event_recurrence()->post_id ?>"><?php _e ( 'Edit Recurring Events', 'dbem' ); ?></a> | <span class="trash"><a class="em-delete-recurrence-link" href="<?php echo get_delete_post_link($EM_Event->get_event_recurrence()->post_id); ?>"><?php _e('Delete','dbem'); ?></a></span> | <a class="em-detach-link" href="<?php echo $EM_Event->get_detach_url(); ?>"><?php _e('Detach', 'dbem'); ?></a> 173 </div> 220 $warning = sprintf(__( 'Modifications to these events will cause all recurrences of each event to be deleted and recreated and previous bookings will be deleted! You can edit individual recurrences and detach them from recurring events by visiting the <a href="%s">events page</a>.', 'dbem' ), admin_url().'edit.php?post_type='.EM_POST_TYPE_EVENT); 221 ?><div class="updated"><p><?php echo $warning; ?></p></div><?php 222 }account_sponsor_page.php https://github.com/fusenigk/mantisbt-1.git | PHP | 352 lines
39 * 40 * @uses core.php 41 * @uses access_api.php 41 * @uses access_api.php 42 * @uses authentication_api.php 43 * @uses bug_api.php 101 <td class="form-title"> 102 <?php echo lang_get( 'my_sponsorship' ) ?> 103 </td> 104 <td class="right"> 105 <?php print_account_menu( 'account_sponsor_page.php' ) ?> 106 </td> 261 <td class="form-title" width="10%"><?php echo lang_get( 'amount' ) ?></td> 262 <td class="form-title" width="10%"><?php echo lang_get( 'status' ) ?></td> 263 </tr>class-wc-stripe-payment-tokens.php https://gitlab.com/campus-academy/krowkaramel | PHP | 398 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 59 * 60 * TODO: Once php requirement is bumped to >= 7.1.0 set return type to ?\WC_Payment_Token 61 * since the return type is nullable, as per 61 * since the return type is nullable, as per 62 * https://www.php.net/manual/en/functions.returning-values.php#functions.returning-values.type-declaration 63 * 77 78 //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash 79 $token = \WC_Payment_Tokens::get( wc_clean( $request[ $token_request_key ] ) ); 81 // If the token doesn't belong to this gateway or the current user it's invalid. 82 if ( ! $token || $payment_method !== $token->get_gateway_id() || $token->get_user_id() !== get_current_user_id() ) { 83 return null; 363 public function woocommerce_payment_token_deleted( $token_id, $token ) { 364 $stripe_customer = new WC_Stripe_Customer( get_current_user_id() ); 365 if ( WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {custom-html-widget.php https://gitlab.com/morganestes/wordpress-develop | PHP | 304 lines
1<?php 2/** 9/** 10 * Test wp-includes/widgets/class-wp-widget-custom-html.php 11 * 62 public function test__register() { 63 set_current_screen( 'widgets.php' ); 64 $widget = new WP_Widget_Custom_HTML(); 66 67 $this->assertEquals( 10, has_action( 'admin_print_scripts-widgets.php', array( $widget, 'enqueue_admin_scripts' ) ) ); 68 $this->assertEquals( 10, has_action( 'admin_footer-widgets.php', array( 'WP_Widget_Custom_HTML', 'render_control_template_scripts' ) ) ); 68 $this->assertEquals( 10, has_action( 'admin_footer-widgets.php', array( 'WP_Widget_Custom_HTML', 'render_control_template_scripts' ) ) ); 69 $this->assertEquals( 10, has_action( 'admin_head-widgets.php', array( 'WP_Widget_Custom_HTML', 'add_help_text' ) ) ); 70 $this->assertContains( 'wp.customHtmlWidgets.idBases.push( "custom_html" );', wp_scripts()->registered['custom-html-widgets']->extra['after'] ); 244 wp_set_current_user( $user ); 245 wp_get_current_user()->syntax_highlighting = 'true'; 246 set_current_screen( 'widgets.php' );user.php https://github.com/MikeLockz/lockwitz.git | PHP | 383 lines
1<?php 2/** 29 // Don't let anyone with 'edit_users' (admins) edit their own role to something without it. 30 if ( $user_id != get_current_user_id() || $wp_roles->role_objects[$new_role]->has_cap( 'edit_users' ) ) { 31 // If the new role isn't editable by the logged-in user die with error 48 * 49 * Used on user-edit.php and profile.php to manage and process user options, passwords etc. 50 * 81 // Multisite super admins can freely edit their blog roles -- they possess all caps. 82 if ( ( is_multisite() && current_user_can( 'manage_sites' ) ) || $user_id != get_current_user_id() || ($potential_role && $potential_role->has_cap( 'edit_users' ) ) ) 83 $user->role = $new_role; 369 global $pagenow; 370 if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it. 371 return; 377 echo '</p><p>'; 378 printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', admin_url('profile.php') . '#password' ); 379 printf( '<a href="%s" id="default-password-nag-no">' . __('No thanks, do not remind me again') . '</a>', '?default_password_nag=0' );sendgrid-settings.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 256 lines
1<?php 2 50 self::add_settings_field( 'secure', __( 'Secure Connection' ), 'checkbox', array( 51 'description' => ' Make sure you have the SSL extension for PHP installed before enabling.', 52 'label' => 'Use a secure connection (recommended).' 74 // add_options_page does not work for the network admin page, so we need to use add_submenu_page 75 add_submenu_page('settings.php', __('SendGrid Settings'), __('SendGrid Settings'), 76 'manage_network_options', self::SETTINGS_PAGE_SLUG, array(__CLASS__, 'show_settings_page')); 86 public static function ajax_check_settings() { 87 $user_id = get_current_user_id(); 88 $user = get_userdata( $user_id ); 98 // Compose the network admin url to post to. 99 $url = add_query_arg( 'action', 'update_sendgrid_network_options', network_admin_url('edit.php')); 100 109 <p> 110 <strong><?php _e( 'SendGrid options updated' ); ?> 111 <input type="button" class="button" id="wp-sendgrid-test-settings" value="<?php echo esc_attr( __( 'Send Test Email' ) ); ?>" />user.php https://bitbucket.org/lordmuffin/origin.git | PHP | 372 lines
1<?php 2/** 22 * 23 * Used on user-edit.php and profile.php to manage and process user options, passwords etc. 24 * 55 // Multisite super admins can freely edit their blog roles -- they possess all caps. 56 if ( ( is_multisite() && current_user_can( 'manage_sites' ) ) || $user_id != get_current_user_id() || ($potential_role && $potential_role->has_cap( 'edit_users' ) ) ) 57 $user->role = $new_role; 360 global $pagenow; 361 if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it. 362 return; 368 echo '</p><p>'; 369 printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', get_edit_profile_url( get_current_user_id() ) . '#password' ); 370 printf( '<a href="%s" id="default-password-nag-no">' . __('No thanks, do not remind me again') . '</a>', '?default_password_nag=0' );class-wp-admin-bar.php https://gitlab.com/Blueprint-Marketing/WordPress-1 | PHP | 507 lines
377 378 ?><div id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="ab-group-container"><?php 379 foreach ( $node->children as $group ) { 396 397 ?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $class; ?>><?php 398 foreach ( $node->children as $item ) { 428 429 <li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>"<?php echo $menuclass; ?>><?php 430 if ( $has_link ): 430 if ( $has_link ): 431 ?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php 432 if ( ! empty( $node->meta['onclick'] ) ) : 444 if ( ! empty( $node->meta['title'] ) ) : 445 ?> title="<?php echo esc_attr( $node->meta['title'] ); ?>"<?php 446 endif;functions.bb-users.php https://bitbucket.org/codemen_iftekhar/codemen.git | PHP | 496 lines
1<?php 2 6 global $bbdb; 7 if ( $id = bb_get_current_user_info( 'id' ) ) 8 bb_update_usermeta( $id, $bbdb->prefix . 'been_blocked', 1 ); // Just for logging. 284 $reseturi = bb_get_uri( 285 'bb-reset-password.php', 286 array( 'key' => $resetkey ),class.jetpack-videopress.php https://gitlab.com/chernushov881/charity-fund | PHP | 428 lines
1<?php 2 68 /** 69 * The media-new.php page isn't supported for uploading to VideoPress. 70 * 76 77 if ( 'media-new.php' === $pagenow ) { 78 echo '<div class="notice notice-warning is-dismissible">' . 83 __( 'VideoPress uploads are not supported here. To upload to VideoPress, add your videos from the <a href="%s">Media Library</a> or the block editor using the Video block.', 'jetpack' ), 84 esc_url( admin_url( 'upload.php' ) ) 85 ), 109 if ( ! $user_id ) { 110 $user_id = get_current_user_id(); 111 } 304 $acceptable_pages = array( 305 'post-new.php', 306 'post.php',class-yoast-notification-center.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 589 lines
1<?php 2/** 144 145 $user_id = ( ! is_null( $user_id ) ? $user_id : get_current_user_id() ); 146 $dismissal_key = $notification->get_dismissal_key(); 498 499 $user_id = get_current_user_id(); 500 509 // Dismiss notification. 510 return ( false !== update_user_meta( get_current_user_id(), $notification->get_dismissal_key(), $meta_value ) ); 511 }abstract-wc-payment-gateway.php https://gitlab.com/campus-academy/krowkaramel | PHP | 562 lines
1<?php 2/** 161 if ( is_user_logged_in() && $this->supports( 'tokenization' ) ) { 162 $this->tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id(), $this->id ); 163 } 190 echo '<h2>' . esc_html( $this->get_method_title() ); 191 wc_back_link( __( 'Return to payments', 'woocommerce' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ); 192 echo '</h2>'; 546 547 echo apply_filters( 'woocommerce_payment_gateway_save_new_payment_method_option_html', $html, $this ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 548 }after-the-deadline.php https://gitlab.com/relacilia/cakra | PHP | 334 lines
65include( dirname( __FILE__ ) . '/after-the-deadline/config-unignore.php' ); 66include( dirname( __FILE__ ) . '/after-the-deadline/proxy.php' ); 67 113 114 /* kill the spellchecker.. don't need no steenkin PHP spell checker */ 115 foreach ( $buttons as $key => $button ) { 148 149 $init_array['atd_rpc_url'] = admin_url( 'admin-ajax.php?action=proxy_atd&_wpnonce=' . wp_create_nonce( 'proxy_atd' ) . '&url=' ); 150 $init_array['atd_ignore_rpc_url'] = admin_url( 'admin-ajax.php?action=atd_ignore&_wpnonce=' . wp_create_nonce( 'atd_ignore' ) . '&phrase=' ); 172function AtD_settings() { 173 $user = wp_get_current_user(); 174 287 288 $pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'admin.php', 'profile.php' ); 289manager.php https://gitlab.com/campus-academy/krowkaramel | PHP | 435 lines
1<?php 2namespace Elementor\Core\Kits; 96 * 97 * After moving the `default_font` to the kit, the Typography group control cause initialize the kit controls at: https://github.com/elementor/elementor/blob/e6e1db9eddef7e3c1a5b2ba0c2338e2af2a3bfe3/includes/controls/groups/typography.php#L91 98 * and because the group control is a singleton, its args are changed to the last kit group control. 236 public function render_panel_html() { 237 require __DIR__ . '/views/panel.php'; 238 } 245 if ( $is_kit_preview ) { 246 $kit = Plugin::$instance->documents->get_doc_or_auto_save( $active_kit->get_main_id(), get_current_user_id() ); 247 } elseif ( 'publish' === $active_kit->get_main_post()->post_status ) { 352 ! $this->is_kit( $post_id ) || 353 isset( $_GET['force_delete_kit'] ) || // phpcs:ignore -- nonce validation is not require here. 354 ( $is_permanently_delete && $document->is_trash() ) 359 ob_start(); 360 require __DIR__ . '/views/trash-kit-confirmation.php'; 361class-wp-admin-bar.php https://github.com/vidor/vidor.me.git | PHP | 474 lines
371 372 ?><ul id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $class ); ?>"><?php 373 foreach ( $node->children as $item ) { 400 401 <li id="<?php echo esc_attr( 'wp-admin-bar-' . $node->id ); ?>" class="<?php echo esc_attr( $menuclass ); ?>"><?php 402 if ( $has_link ): 402 if ( $has_link ): 403 ?><a class="ab-item" <?php echo $aria_attributes; ?> href="<?php echo esc_url( $node->href ) ?>"<?php 404 if ( ! empty( $node->meta['onclick'] ) ) : 404 if ( ! empty( $node->meta['onclick'] ) ) : 405 ?> onclick="<?php echo esc_js( $node->meta['onclick'] ); ?>"<?php 406 endif; 407 if ( ! empty( $node->meta['target'] ) ) : 408 ?> target="<?php echo esc_attr( $node->meta['target'] ); ?>"<?php 409 endif;class.jetpack-debugger.php https://github.com/chopsuei3/oscc.git | PHP | 366 lines
53 $debug_info .= "\r\n" . esc_html( "USER_TOKEN: " . $user_token ); 54 $debug_info .= "\r\n" . esc_html( "PHP_VERSION: " . PHP_VERSION ); 55 $debug_info .= "\r\n" . esc_html( "WORDPRESS_VERSION: " . $GLOBALS['wp_version'] ); 140 <ol> 141 <li><b><em><?php esc_html_e( 'A known issue.', 'jetpack' ); ?></em></b> <?php echo sprintf( __( 'Some themes and plugins have <a href="%1$s" target="_blank">known conflicts</a> with Jetpack – check the <a href="%2$s" target="_blank">list</a>. (You can also browse the <a href="%3$s">Jetpack support pages</a> or <a href="%4$s">Jetpack support forum</a> to see if others have experienced and solved the problem.)', 'jetpack' ), 'http://jetpack.me/known-issues/', 'http://jetpack.me/known-issues/', 'http://jetpack.me/support/', 'http://wordpress.org/support/plugin/jetpack' ); ?></li> 142 <li><b><em><?php esc_html_e( 'An incompatible plugin.', 'jetpack' ); ?></em></b> <?php esc_html_e( "Find out by disabling all plugins except Jetpack. If the problem persists, it's not a plugin issue. If the problem is solved, turn your plugins on one by one until the problem pops up again – there's the culprit! Let us know, and we'll try to help.", 'jetpack' ); ?></li> 143 <li><b><em><?php esc_html_e( 'A theme conflict.', 'jetpack' ); ?></em></b> <?php esc_html_e( "If your problem isn't known or caused by a plugin, try activating Twenty Twelve (the default WordPress theme). If this solves the problem, something in your theme is probably broken – let the theme's author know.", 'jetpack' ); ?></li> 144 <li><b><em><?php esc_html_e( 'A problem with your XMLRPC file.', 'jetpack' ); ?></em></b> <?php echo sprintf( __( 'Load your <a href="%s">XMLRPC file</a>. It should say “XML-RPC server accepts POST requests only.” on a line by itself.', 'jetpack' ), site_url( 'xmlrpc.php' ) ); ?> 145 <ul> 145 <ul> 146 <li>- <?php esc_html_e( "If it's not by itself, a theme or plugin is displaying extra characters. Try steps 2 and 3.", 'jetpack' ); ?></li> 147 <li>- <?php esc_html_e( "If you get a 404 message, contact your web host. Their security may block XMLRPC.", 'jetpack' ); ?></li> 150 </ol> 151 <p class="jetpack-show-contact-form"><?php _e( 'If none of these help you find a solution, <a href="#">click here to contact Jetpack support</a>. Tell us as much as you can about the issue and what steps you\'ve tried to resolve it, and one of our Happiness Engineers will be in touch to help.', 'jetpack' ); ?> 152 </p>user.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 358 lines
1<?php 2/** 22 * 23 * Used on user-edit.php and profile.php to manage and process user options, passwords etc. 24 * 55 // Multisite super admins can freely edit their blog roles -- they possess all caps. 56 if ( ( is_multisite() && current_user_can( 'manage_sites' ) ) || $user_id != get_current_user_id() || ($potential_role && $potential_role->has_cap( 'edit_users' ) ) ) 57 $user->role = $new_role; 346 global $pagenow; 347 if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it. 348 return; 354 echo '</p><p>'; 355 printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', admin_url('profile.php') . '#password' ); 356 printf( '<a href="%s" id="default-password-nag-no">' . __('No thanks, do not remind me again') . '</a>', '?default_password_nag=0' );em-ms-options.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 219 lines
11 foreach($blog_ids as $blog_id){ 12 $plugin_basename = plugin_basename(dirname(dirname(__FILE__)).'/events-manager.php'); 13 if( in_array( $plugin_basename, (array) get_blog_option($blog_id, 'active_plugins', array() ) ) || is_plugin_active_for_network($plugin_basename) ){ 31 <p><?php _e('To update your network blogs with the latest Events Manager automatically, click the update button below.'); ?></p> 32 <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('em_ms_ugrade_'.get_current_user_id()); ?>" /> 33 <input type="hidden" name="action" value="upgrade" /> 154 <div class="postbox " > 155 <div class="handlediv" title="<?php __('Click to toggle', 'dbem'); ?>"><br /></div><h3><span><?php _e ( 'Multi Site Options', 'dbem' ); ?></span></h3> 156 <div class="inside"> 168 $options_page_link = get_admin_url($current_site->blog_id, 'edit.php?post_type=event&page=events-manager-options#pages'); 169 ?><tr><td><strong><?php echo sprintf(__('%s Options','dbem'),__('Event','dbem')); ?></strong></td></tr><?php 170 em_options_radio_binary ( sprintf(__( 'Display global events on main blog?', 'dbem'), __('events','dbem')), 'dbem_ms_global_events', sprintf($global_post_tip, __('events','dbem'), __('events','dbem')) ); 172 em_options_input_text ( sprintf(__( 'Global %s slug', 'dbem' ),__('event','dbem')), 'dbem_ms_events_slug', sprintf($global_slug_tip, __('Events','dbem'), __('events','dbem')).__('Example:','dbem').'<code>http://yoursite.com/events/<strong>event</strong>/subsite-event-slug/', EM_EVENT_SLUG ); 173 ?><tr><td><strong><?php echo sprintf(__('%s Options','dbem'),__('Location','dbem')); ?></strong></td></tr><?php 174 em_options_radio_binary ( sprintf(__( 'Locations on main blog?', 'dbem'), __('locations','dbem')), 'dbem_ms_mainblog_locations', __('If you would prefer all your locations to belong to your main blog, users in sub-sites will still be able to create locations, but the actual locations are created and reside in the main blog.','dbem') );em-ms-options.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 205 lines
31 <p><?php _e('To update your network blogs with the latest Events Manager automatically, click the update button below.','dbem'); ?></p> 32 <input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce('em_ms_ugrade_'.get_current_user_id()); ?>" /> 33 <input type="hidden" name="action" value="upgrade" /> 131 <h3 id="em-options-title"><?php _e ( 'Event Manager Options', 'dbem' ); ?></h3> 132 <?php echo $EM_Notices; ?> 133 <form id="em-options-form" method="post" action=""> 140 <div class="postbox " id="em-opt-ms-options" > 141 <div class="handlediv" title="<?php __('Click to toggle', 'dbem'); ?>"><br /></div><h3><span><?php _e ( 'Multi Site Options', 'dbem' ); ?></span></h3> 142 <div class="inside"> 154 $options_page_link = get_admin_url($current_site->blog_id, 'edit.php?post_type=event&page=events-manager-options#pages'); 155 ?><tr><td><strong><?php echo sprintf(__('%s Options','dbem'),__('Event','dbem')); ?></strong></td></tr><?php 156 em_options_radio_binary ( sprintf(__( 'Display global events on main blog?', 'dbem'), __('events','dbem')), 'dbem_ms_global_events', sprintf($global_post_tip, __('events','dbem'), __('events','dbem')) ); 158 em_options_input_text ( sprintf(__( 'Global %s slug', 'dbem' ),__('event','dbem')), 'dbem_ms_events_slug', sprintf($global_slug_tip, __('Events','dbem'), __('events','dbem')).__('Example:','dbem').'<code>http://yoursite.com/events/<strong>event</strong>/subsite-event-slug/', EM_EVENT_SLUG ); 159 ?><tr><td><strong><?php echo sprintf(__('%s Options','dbem'),__('Location','dbem')); ?></strong></td></tr><?php 160 em_options_radio_binary ( sprintf(__( 'Locations on main blog?', 'dbem'), __('locations','dbem')), 'dbem_ms_mainblog_locations', __('If you would prefer all your locations to belong to your main blog, users in sub-sites will still be able to create locations, but the actual locations are created and reside in the main blog.','dbem') );gravatar-profile.php https://gitlab.com/Gashler/sg | PHP | 331 lines
182 <label for="<?php echo $this->get_field_id( 'title' ); ?>"> 183 <?php esc_html_e( 'Title', 'jetpack' ); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> 184 </label> 203 <label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Custom Email Address', 'jetpack' ); ?> 204 <input class="widefat" id="<?php echo $this->get_field_id('email'); ?>" name="<?php echo $this->get_field_name( 'email' ); ?>" type="text" value="<?php echo esc_attr( $email ); ?>" /> 205 </label> 209 <label for="<?php echo $this->get_field_id( 'show_personal_links' ); ?>"> 210 <input type="checkbox" name="<?php echo $this->get_field_name( 'show_personal_links' ); ?>" id="<?php echo $this->get_field_id( 'show_personal_links' ); ?>" <?php checked( $show_personal_links ); ?> /> 211 <?php esc_html_e( 'Show Personal Links', 'jetpack' ); ?> 218 <label for="<?php echo $this->get_field_id( 'show_account_links' ); ?>"> 219 <input type="checkbox" name="<?php echo $this->get_field_name( 'show_account_links' ); ?>" id="<?php echo $this->get_field_id( 'show_account_links' ); ?>" <?php checked( $show_account_links ); ?> /> 220 <?php esc_html_e( 'Show Account Links', 'jetpack' ); ?> 225 226 <p><a href="<?php echo esc_url( $profile_url ); ?>" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( 'Edit Your Profile', 'jetpack' )?></a> | <a href="http://gravatar.com" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( "What's a Gravatar?", 'jetpack' ); ?></a></p> 227UnixFileSystem.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 266 lines
1<?php 2/* 2/* 3 * $Id: UnixFileSystem.php 3076 2006-12-18 08:52:12Z fabien $ 4 * 21 22include_once 'phing/system/io/FileSystem.php'; 23 25 * UnixFileSystem class. This class encapsulates the basic file system functions 26 * for platforms using the unix (posix)-stylish filesystem. It wraps php native 27 * functions suppressing normal PHP error reporting and instead uses Exception 30 * This class is part of a oop based filesystem abstraction and targeted to run 31 * on all supported php platforms. 32 * 32 * 33 * Note: For debugging turn track_errors on in the php.ini. The error messages 34 * and log messages from this class will then be clearer because $php_errormsgduplicate-post.php https://gitlab.com/webkod3r/tripolis | PHP | 102 lines
1<?php 2/* 23 */ 24 $current_user = wp_get_current_user(); 25 $new_post_author = $current_user->ID; 82 */ 83 wp_redirect( admin_url( 'post.php?action=edit&post=' . $new_post_id ) ); 84 exit; 95 if (current_user_can('edit_posts')) { 96 $actions['duplicate'] = '<a href="admin.php?action=rd_duplicate_post_as_draft&post=' . $post->ID . '" title="Duplicar este elemento" rel="permalink">Duplicar</a>'; 97 }class-lp-shortcodes.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 324 lines
1<?php 2/** 46 if ( empty( $wp->query_vars['user'] ) ) { 47 $current_user = wp_get_current_user(); 48 if ( !empty( $current_user->user_login ) ) { 112 if ( LP()->cart->is_empty() ) { 113 learn_press_get_template( 'cart/empty-cart.php', array( 'checkout' => LP()->checkout() ) ); 114 } else { 114 } else { 115 learn_press_get_template( 'checkout/form.php', array( 'checkout' => LP()->checkout() ) ); 116 } 141 142 learn_press_get_template( 'checkout/order-received.php', array( 'order' => $order ) ); 143 } 148 if ( LP()->cart->is_empty() ) { 149 learn_press_get_template( 'cart/empty-cart.php', array( 'cart' => LP()->cart ) ); 150 } else {class-wc-gateway-stripe-addons.php https://gitlab.com/hunt9310/ras | PHP | 394 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 152 153 $source = $this->get_source( get_current_user_id(), true ); 154balance.php https://bitbucket.org/akeda/bmw-id-hris.git | PHP | 368 lines
1<?php 2 37 38 add_action( 'load-post-new.php', array( $this, 'show_remaining_leave_as_notice' ) ); 39 add_action( 'load-edit.php', array( $this, 'show_remaining_leave_as_notice' ) ); 229 /** 230 * Show remaining leave inside notice in post-new.php 231 * 231 * 232 * @action load-post-new.php 233 */ 240 241 $current_user = wp_get_current_user(); 242 if ( hris_check_user_role( 'administrator', $current_user->ID ) )class-wp-users-list-table.php https://github.com/terry69/fluxflex_wordpress.git | PHP | 319 lines
1<?php 2/** 84 if ( $this->is_site_users ) { 85 $url = 'site-users.php?id=' . $this->site_id; 86 switch_to_blog( $this->site_id ); 89 } else { 90 $url = 'users.php'; 91 $users_of_blog = count_users(); 141 <div class="alignleft actions"> 142 <label class="screen-reader-text" for="new_role"><?php _e( 'Change role to…' ) ?></label> 143 <select name="new_role" id="new_role"> 143 <select name="new_role" id="new_role"> 144 <option value=''><?php _e( 'Change role to…' ) ?></option> 145 <?php wp_dropdown_roles(); ?> 146 </select> 147 <?php submit_button( __( 'Change' ), 'secondary', 'changeit', false ); ?> 148 </div>users.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 159 lines
1<?php 2 93 // set result 94 $result = $count > 0 ? "<a href='edit.php?post_type={$post_type}&author={$user_id}'>{$count}</a>" : (string) $count; 95 break; 132 if ( 'site-users-network' == $screen->id ) 133 $url = "site-users.php?id={$this->site_id}&"; 134 else 134 else 135 $url = 'users.php?'; 136 136 137 if ( get_current_user_id() == $user_object->ID ) { 138 $edit_link = 'profile.php'; 139 } else { 140 $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( stripslashes( $_SERVER['REQUEST_URI'] ) ), "user-edit.php?user_id=$user_object->ID" ) ); 141 }class-wc-gateway-stripe-alipay.php https://gitlab.com/campus-academy/krowkaramel | PHP | 308 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 67 __( 'All other general Stripe settings can be adjusted %1$shere%2$s.', 'woocommerce-gateway-stripe' ), 68 '<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=stripe' ) ) . '">', 69 '</a>' 177 public function init_form_fields() { 178 $this->form_fields = require WC_STRIPE_PLUGIN_PATH . '/includes/admin/stripe-alipay-settings.php'; 179 } 185 global $wp; 186 $user = wp_get_current_user(); 187 $total = WC()->cart->total;class-wc-gateway-stripe-bancontact.php https://gitlab.com/campus-academy/krowkaramel | PHP | 296 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 67 __( 'All other general Stripe settings can be adjusted %1$shere%2$s.', 'woocommerce-gateway-stripe' ), 68 '<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=stripe' ) ) . '">', 69 '</a>' 164 public function init_form_fields() { 165 $this->form_fields = require WC_STRIPE_PLUGIN_PATH . '/includes/admin/stripe-bancontact-settings.php'; 166 } 172 global $wp; 173 $user = wp_get_current_user(); 174 $total = WC()->cart->total;class-mb-include-exclude.php https://gitlab.com/code26/selah | PHP | 379 lines
1<?php 2/** 245 protected static function check_user_role( $roles ) { 246 $user = wp_get_current_user(); 247 $roles = array_map( 'strtolower', self::csv_to_array( $roles ) ); 259 protected static function check_user_id( $user_ids ) { 260 $user_id = get_current_user_id(); 261 return in_array( $user_id, self::csv_to_array( $user_ids ) ); 274 */ 275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) { 276 // If edit other's profile, check edited user. 283 return ! empty( $roles ); 284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) { 285 // If edit profile, check current user. 298 protected static function check_edited_user_id( $user_ids ) { 299 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) { 300 // If edit other's profile, check edited user.custom-types-form.php https://gitlab.com/Fraternal-Group/fraternal | PHP | 287 lines
1<?php 2/** 231 232 $data[WPCF_AUTHOR] = get_current_user_id(); 233 280 ), 281 admin_url( 'admin.php' ) 282 )class-gitium-submenu-configure.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 243 lines
132 <input type="text" class="regular-text" name="remote_url" id="remote_url" placeholder="git@github.com:user/example.git" value=""> 133 <p class="description"><?php _e( 'This URL provide access to a Git repository via SSH, HTTPS, or Subversion.', 'gitium' ); ?><br /> 134 <?php _e( 'If you need to authenticate over "https://" instead of SSH use: <code>https://user:pass@github.com/user/example.git</code>', 'gitium' ); ?></p> 174 <div class="wrap"> 175 <h2><?php _e( 'Configuration step 1', 'gitium' ); ?></h2> 176 <p><?php _e( 'If you need help to set this up, please click on the "Help" button from the top right corner of this screen.' ); ?></p> 206 <?php foreach ( $git->get_remote_branches() as $branch ) : ?> 207 <option value="<?php echo esc_attr( $branch ); ?>"><?php echo esc_html( $branch ); ?></option> 208 <?php endforeach; ?> 209 </select> 210 <p class="description"><?php _e( 'Your code origin is set to', 'gitium' ); ?> <code><?php echo esc_html( $git->get_remote_url() ); ?></code></p> 211 </td> 215 <p class="submit"> 216 <input type="submit" name="GitiumSubmitMergeAndPush" class="button-primary" value="<?php _e( 'Merge & Push', 'gitium' ); ?>" /> 217 </p>class-wc-shortcode-my-account.php https://gitlab.com/webkod3r/tripolis | PHP | 363 lines
103 104 $user_id = get_current_user_id(); 105 $order = wc_get_order( $order_id ); 126 private static function edit_account() { 127 wc_get_template( 'myaccount/form-edit-account.php', array( 'user' => get_user_by( 'id', get_current_user_id() ) ) ); 128 } 139 140 $address = WC()->countries->get_address_fields( get_user_meta( get_current_user_id(), $load_address . '_country', true ), $load_address . '_' ); 141 266 if ( empty( $wp_hasher ) ) { 267 require_once ABSPATH . 'wp-includes/class-phpass.php'; 268 $wp_hasher = new PasswordHash( 8, true ); 310 if ( empty( $wp_hasher ) ) { 311 require_once ABSPATH . 'wp-includes/class-phpass.php'; 312 $wp_hasher = new PasswordHash( 8, true );users.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 329 lines
1<?php 2/** 10/** Load WordPress Administration Bootstrap */ 11require_once( dirname( __FILE__ ) . '/admin.php' ); 12 19function confirm_delete_users( $users ) { 20 $current_user = wp_get_current_user(); 21 if ( ! is_array( $users ) || empty( $users ) ) { 24 ?> 25 <h2><?php esc_html_e( 'Users' ); ?></h2> 26 309 if ( current_user_can( 'create_users') ) : ?> 310 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 311 endif; 328 329<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?> 330ajax.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 445 lines
1<?php 2/** 82 83 update_user_meta( get_current_user_id(), 'wpseo_seen_tagline_notice', 'seen' ); 84 239 240 if ( ! current_user_can( $post_type_object->cap->edit_others_posts ) && $the_post->post_author != get_current_user_id() ) { 241class.ls.sliders.php https://gitlab.com/webkod3r/tripolis | PHP | 409 lines
1<?php 2 175 $wpdb->insert($wpdb->prefix.LS_DB_TABLE, array( 176 'author' => get_current_user_id(), 177 'name' => $title,duplicate-post-admin.php https://gitlab.com/gabdark/aceit | PHP | 354 lines
1<?php 2// Added by WarmStal 5 6require_once (dirname(__FILE__).'/duplicate-post-options.php'); 7 135 <a class="submitduplicate duplication" 136 href="<?php echo duplicate_post_get_clone_post_link( $_GET['post'] ) ?>"><?php _e('Copy to a new draft', DUPLICATE_POST_I18N_DOMAIN); ?> 137 </a> 138</div> 139 <?php 140 } 175 // Redirect to the post list screen 176 wp_redirect( admin_url( 'edit.php?post_type='.$post->post_type) ); 177 } else { 178 // Redirect to the edit screen for the new draft post 179 wp_redirect( admin_url( 'post.php?action=edit&post=' . $new_id ) ); 180 }class-yoast-notification-center.php https://gitlab.com/iamgraeme/royalmile | PHP | 568 lines
1<?php 2/** 93 94 $user_id = ( ! is_null( $user_id ) ? $user_id : get_current_user_id() ); 95 $dismissal_key = $notification->get_dismissal_key(); 373 // Save the notifications to the storage. 374 update_user_option( get_current_user_id(), self::STORAGE_KEY, $notifications ); 375 } 420 421 $stored_notifications = get_user_option( self::STORAGE_KEY, get_current_user_id() ); 422 473 // Dismiss notification. 474 return ( false !== update_user_meta( get_current_user_id(), $notification->get_dismissal_key(), $meta_value ) ); 475 } 481 482 delete_user_option( get_current_user_id(), self::STORAGE_KEY ); 483 }box.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 322 lines
1<?php 2 243 'post_title' => $_POST['post_title'], 244 'post_author' => get_current_user_id(), 245 'post_type' => $this->ctype->get( 'opposite', 'side' )->first_post_type()class-wp-plugin-install-list-table.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | PHP | 238 lines
115 $class = ( $action == $tab ) ? ' class="current"' : ''; 116 $href = self_admin_url('plugin-install.php?tab=' . $action); 117 $display_tabs['plugin-install-'.$action] = "<a href='$href'$class>$text</a>"; 126 <div class="alignleft actions"> 127 <?php do_action( 'install_plugins_table_header' ); ?> 128 </div> 223 <tr> 224 <td class="name column-name"<?php echo $style['name']; ?>><strong><?php echo $title; ?></strong> 225 <div class="action-links"><?php if ( !empty( $action_links ) ) echo implode( ' | ', $action_links ); ?></div> 226 </td> 227 <td class="vers column-version"<?php echo $style['version']; ?>><?php echo $version; ?></td> 228 <td class="vers column-rating"<?php echo $style['rating']; ?>> 232 </td> 233 <td class="desc column-description"<?php echo $style['description']; ?>><?php echo $description, $author; ?></td> 234 </tr>login.php https://bitbucket.org/metrobee/tr.deconord.eu.git | PHP | 118 lines
1<?php 2 26 27 $current_user = wp_get_current_user(); 28 33 if ( ! class_exists( 'Facebook_User' ) ) 34 require_once( dirname( dirname(__FILE__) ) . '/facebook-user.php' ); 35 44 // Facebook information not found 45 $facebook_user = Facebook_User::get_current_user( array( 'id','username' ) ); 46 if ( $facebook_user ) { 46 if ( $facebook_user ) { 47 $permissions = $facebook->get_current_user_permissions( $facebook_user ); 48base.php https://gitlab.com/endomorphosis/falkenstein | PHP | 293 lines
1<?php 2 172 if ( is_user_logged_in() ) { 173 $user = wp_get_current_user(); 174 $user_id = $user->ID; 219 220 $user = wp_get_current_user(); 221abstract-wc-payment-gateway.php https://gitlab.com/hunt9310/ras | PHP | 459 lines
1<?php 2 128 if ( is_user_logged_in() && $this->supports( 'tokenization' ) ) { 129 $this->tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id(), $this->id ); 130 }class.jetpack-client-server.php https://gitlab.com/hunt9310/ras | PHP | 280 lines
1<?php 2 91 92 $current_user_id = get_current_user_id(); 93 if ( $current_user_id != $data['state'] ) { 142 public static function deactivate_plugin( $probable_file, $probable_title ) { 143 include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 144 if ( is_plugin_active( $probable_file ) ) {admin-header.php https://github.com/muskmelon/Greemo.git | PHP | 219 lines
33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 34<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> 35<head> 35<head> 36<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> 37<title><?php echo $admin_title; ?></title> 54 'url': '<?php echo SITECOOKIEPATH; ?>', 55 'uid': '<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>', 56 'time':'<?php echo time() ?>' 109<div id="wpwrap"> 110<?php require(ABSPATH . 'wp-admin/menu-header.php'); ?> 111<div id="wpcontent"> 141<h1 id="site-heading" <?php echo $title_class ?>> 142 <a href="<?php echo trailingslashit( get_bloginfo( 'url' ) ); ?>" title="<?php esc_attr_e('Visit Site') ?>"> 143 <span id="site-title"><?php echo $blog_name ?></span>users.php https://github.com/qsmith/WordPress.git | PHP | 295 lines
27 <p><?php _e( 'Transfer or delete posts and links before deleting users.' ); ?></p> 28 <form action="users.php?action=dodelete" method="post"> 29 <input type="hidden" name="dodelete" /> 107 echo '</div>'; 108 require_once( '../admin-footer.php' ); 109 } else { 109 } else { 110 wp_redirect( network_admin_url( 'users.php' ) ); 111 } 275 if ( current_user_can( 'create_users') ) : ?> 276 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 277 endif; 294 295<?php require_once( '../admin-footer.php' ); ?> 296class-wc-customer.php https://gitlab.com/haque.mdmanzurul/soundkreationsfinal | PHP | 569 lines
1<?php 2/** 376 foreach ( $this->_data as $key => $value ) { 377 $meta_value = get_user_meta( get_current_user_id(), ( false === strstr( $key, 'shipping_' ) ? 'billing_' : '' ) . $key, true ); 378 $this->_data[ $key ] = $meta_value ? $meta_value : $this->_data[ $key ]; 563 if ( is_user_logged_in() ) { 564 $downloads = wc_get_customer_available_downloads( get_current_user_id() ); 565 }profile.php https://bitbucket.org/iRonBot/bbpress-persian.git | PHP | 89 lines
1<?php bb_get_header(); ?> 2 <div class="bbcrumb"><a href="<?php bb_option('uri'); ?>">انجمن</a> » شناسنامهی <?php echo get_user_name( $user->ID ); ?></div> 3 <div id="sidebar"><!-- Sidebar --> 22 <th class="title">آخرین پاسخها</th> 23 <th><?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf('آخرین پاسخ شما'); else printf('آخرین پاسخ کاربر'); ?></th> 24 <th>آخرین پاسخ</th> 31 <td class="title"><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 32 <td><?php if ( $user->ID == bb_get_current_user_info( 'id' ) ) printf(__('%s پیش'), bb_get_post_time()); else printf(__('%s پیش'), bb_get_post_time()); ?></td> 33 <td><?php if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) ) printf(__('%s پیش'), get_topic_time()); else _e('بدون پاسخ');?></td> 36 37 <?php else : if ( $page ) : ?> 38 <tr> 64 <tr<?php alt_class('topics'); ?>> 65 <td class="title"><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td> 66 <td><?php printf(__('%s پیش'), get_topic_start_time()); ?></td>deprecated.php https://gitlab.com/Datse-Multimedia-Productions/datse-multimedia-base | PHP | 444 lines
353 354 <form id="commentform" action="<?php echo site_url( '/wp-comments-post.php' ) ?>" method="post"> 355 356 <?php if ( $user_ID ) : ?> 357 <p id="login"><span class="loggedin"><?php _e('Logged in as', 'thematic' ) . printf( ' <a href="%1$s" title="%2$s">%3$s</a>', admin_url( 'profile.php' ), sprintf( esc_attr__('Logged in as %s', 'thematic'), $user_identity ) , $user_identity ) ;?></span> <span class="logout"><?php printf('<a href="%s" title="%s">%s</a>' , esc_attr( wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ), esc_attr__('Log out of this account', 'thematic' ) , __('Log out?', 'thematic' ) ); ?></span> 358 </p> 369 <div id="form-section-email" class="form-section"> 370 <div class="form-label"><label for="email"><?php _e( 'Email', 'thematic' ) ?></label> <?php if ( $req ) _e( '<span class="required">*</span>', 'thematic' ) ?></div> 371 <div class="form-input"><input id="email" name="email" type="text" value="<?php echo $comment_author_email ?>" size="30" maxlength="50" tabindex="4" /></div> 386 <div id="form-allowed-tags" class="form-section"> 387 <p><span><?php printf( _x('You may use these %1$sHTML%2$s tags and attributes', '%$1s and %$2s are <abbr> tags', 'thematic'), '<abbr title="HyperText Markup Language">', '</abbr>' ) ?></span> <code><?php echo allowed_tags(); ?></code></p> 388 </div> 391 392 <div class="form-submit"><input id="submit" name="submit" type="submit" value="<?php echo thematic_commentbutton_text(); ?>" tabindex="7" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div> 393File.php https://github.com/lanmediaservice/lms-tplib.git | PHP | 397 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $ 22 */ 26 */ 27//*** require_once "Zend/OpenId/Provider/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) {File.php https://github.com/gryzz/crystal_magento.git | PHP | 460 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $ 22 */ 26 */ 27#require_once "Zend/OpenId/Consumer/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) { 75 */ 76 #require_once 'Zend/OpenId/Exception.php'; 77 throw new Zend_OpenId_Exception( 85 */ 86 #require_once 'Zend/OpenId/Exception.php'; 87 throw new Zend_OpenId_Exception(class-wc-shortcode-my-account.php https://gitlab.com/campus-academy/krowkaramel | PHP | 415 lines
56 } else { 57 wc_get_template( 'myaccount/form-login.php' ); 58 } 95 96 wc_deprecated_function( 'Your theme version of my-account.php template', '2.6', 'the latest version, which supports multiple account pages and navigation, from WC 2.6.0' ); 97 } 119 wc_get_template( 120 'myaccount/my-account.php', 121 array( 159 public static function edit_account() { 160 wc_get_template( 'myaccount/form-edit-account.php', array( 'user' => get_user_by( 'id', get_current_user_id() ) ) ); 161 } 168 public static function edit_address( $load_address = 'billing' ) { 169 $current_user = wp_get_current_user(); 170 $load_address = sanitize_key( $load_address );File.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 460 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 16212 2009-06-21 19:24:49Z thomas $ 22 */ 26 */ 27require_once "Zend/OpenId/Consumer/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) { 75 */ 76 require_once 'Zend/OpenId/Exception.php'; 77 throw new Zend_OpenId_Exception( 85 */ 86 require_once 'Zend/OpenId/Exception.php'; 87 throw new Zend_OpenId_Exception(template-bootstrap.php https://gitlab.com/danielortiz1982/spicer | PHP | 198 lines
1<!DOCTYPE html> 2<html lang="en" class="<?php echo returnBrowser(); ?>"> 3 <head> 25 </head> 26 <body data-tempdir="<?php echo PAGEDIR; ?>" id="<?php echo get_post( $post )->post_name; ?>" <?=(returnMobile() == 'true')? 'class="mobileMode"' : 'class="desktopMode"';?>> 27 75 <a class="navbar-brand" href="<?php echo home_url(); ?>"> 76 <img src="<?php echo PAGEDIR; ?>/images/graphics/logo.png" alt="<?php bloginfo('name');?>" /> 77 </a> 171 <div> 172 <script src="<?php echo PAGEDIR; ?>/machines/libraries/owlcarousel/owlcarousel.js"></script> 173 <script src="<?php echo PAGEDIR; ?>/machines/libraries/modernizr/modernizr.js"></script> 194 <?php endif; ?> 195 <?php wp_footer(); ?> 196 </div>login-redirects.inc.php https://gitlab.com/Gashler/dp | PHP | 212 lines
1<?php 2/** 184 185 $user = ((is_object ($user) || is_object ($user = (is_user_logged_in ()) ? wp_get_current_user () : false)) && !empty ($user->ID)) ? $user : false; 186File.php https://bitbucket.org/mercysam/zfs.git | PHP | 460 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 12970 2008-12-01 12:55:17Z dmitry $ 22 */ 26 */ 27require_once "Zend/OpenId/Consumer/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) { 75 */ 76 require_once 'Zend/OpenId/Exception.php'; 77 throw new Zend_OpenId_Exception( 85 */ 86 require_once 'Zend/OpenId/Exception.php'; 87 throw new Zend_OpenId_Exception(ms-delete-site.php https://gitlab.com/mostafame/team_website | PHP | 95 lines
1<?php 2/** 9 10require_once( dirname( __FILE__ ) . '/admin.php' ); 11 27$blog = get_blog_details(); 28$user = wp_get_current_user(); 29 30$title = __( 'Delete Site' ); 31$parent_file = 'tools.php'; 32require_once( ABSPATH . 'wp-admin/admin-header.php' ); 42 43 $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); 44 77 78 <p><?php _e( 'Thank you. Please check your email for a link to confirm your action. Your site will not be deleted until this link is clicked.' ) ?></p> 79functions.php https://bitbucket.org/midasinc/your-submission.git | PHP | 306 lines
1<?php 2function load_membership_plugins() { 6 while ( ( $plugin = readdir( $dh ) ) !== false ) 7 if ( substr( $plugin, -4 ) == '.php' ) 8 $mem_plugins[] = $plugin; 142 143 $user = wp_get_current_user(); 144 164 165 $user = wp_get_current_user(); 166 186 187 $user = wp_get_current_user(); 188 if(count($subs) >= 2) { 288 289 if(array_key_exists('membership/membership.php', $plugins) && !in_array('membership.php', (array) array_map('basename', wp_get_active_and_valid_plugins() ))) { 290 unset($plugins['membership/membership.php']);class-vc-backend-editor.php https://gitlab.com/rubengrb/ws.vidrialum | PHP | 349 lines
1<?php 2if ( ! defined( 'ABSPATH' ) ) { 55 ), 5 ); 56 add_action( 'admin_print_scripts-post.php', array( 57 &$this, 59 ) ); 60 add_action( 'admin_print_scripts-post-new.php', array( 61 &$this, 106 $this->post_custom_css = $post_custom_css; 107 vc_include_template( 'editors/backend_editor.tpl.php', array( 108 'editor' => $this, 125 public function renderEditorFooter() { 126 vc_include_template( 'editors/partials/backend_editor_footer.tpl.php', array( 127 'editor' => $this, 247 wp_register_script( 'vc_accordion_script', vc_asset_url( 'lib/vc_accordion/vc-accordion.min.js' ), array( 'jquery' ), WPB_VC_VERSION, true ); 248 wp_register_script( 'wpb_php_js', vc_asset_url( 'lib/php.default/php.default.min.js' ), array( 'jquery' ), WPB_VC_VERSION, true ); 249 // used as polyfill for JSON.stringify and etcrevisions.php https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests | PHP | 341 lines
1<?php 2 132 /** 133 * Tests the Caps used in the action=view case of wp-admin/revision.php 134 * @ticket 16847 157 /** 158 * Tests the Caps used in the action=restore case of wp-admin/revision.php 159 * @ticket 16847 180 /** 181 * Tests the Caps used in the action=diff case of wp-admin/revision.php 182 * @ticket 16847 205 /** 206 * Tests the Caps used in the action=view case of wp-admin/revision.php with a CPT with Custom Capabilities 207 * @ticket 16847 236 /** 237 * Tests the Caps used in the action=restore case of wp-admin/revision.php 238 * @ticket 16847class-admin-init.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 449 lines
136 private function seen_about() { 137 $seen_about_version = substr( get_user_meta( get_current_user_id(), 'wpseo_seen_about_version', true ), 0, 3 ); 138 $last_minor_version = substr( WPSEO_VERSION, 0, 3 ); 244 __( 'We\'ve updated our SEO score algorithm. %1$sClick here to recalculate the SEO scores%2$s for all posts and pages.', 'wordpress-seo' ), 245 '<a href="' . admin_url( 'admin.php?page=wpseo_tools&recalculate=1' ) . '">', 246 '</a>' 274 private function on_wpseo_admin_page() { 275 return 'admin.php' === $this->pagenow && strpos( filter_input( INPUT_GET, 'page' ), 'wpseo' ) === 0; 276 } 282 283 $is_editor = in_array( $this->pagenow, array( 'edit.php', 'post.php', 'post-new.php' ) ); 284 $is_inline_save = filter_input( INPUT_POST, 'action' ) === 'inline-save'; 321 private function load_admin_user_class() { 322 if ( in_array( $this->pagenow, array( 'user-edit.php', 'profile.php' ) ) && current_user_can( 'edit_users' ) ) { 323 new WPSEO_Admin_User_Profile;File.php https://github.com/drietsch/newcms.git | PHP | 397 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php,v 1.1 2008/05/13 13:41:32 holger.meyer Exp $ 22 */ 26 */ 27require_once "Zend/OpenId/Provider/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) {admin-base.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 319 lines
55 // Filter admin language for users 56 // We must not call user info before WordPress defines user roles in wp-settings.php 57 add_filter( 'setup_theme', array( $this, 'init_user' ) ); 138 if ( 'undefined' === typeof options.data ) { 139 options.data = ( 'get' === options.type.toLowerCase() ) ? '<?php echo $str;?>' : <?php echo $arr;?>; 140 } else { 175 $this->curlang = $this->model->post->get_language( (int) $_REQUEST['pll_post_id'] ); 176 } elseif ( 'post.php' === $GLOBALS['pagenow'] && isset( $_GET['post'] ) && is_numeric( $_GET['post'] ) ) { 177 $this->curlang = $this->model->post->get_language( (int) $_GET['post'] ); 177 $this->curlang = $this->model->post->get_language( (int) $_GET['post'] ); 178 } elseif ( 'post-new.php' === $GLOBALS['pagenow'] ) { 179 $this->curlang = empty( $_GET['new_lang'] ) ? $this->pref_lang : $this->model->get_language( $_GET['new_lang'] ); 183 // FIXME 'edit-tags.php' for backward compatibility with WP < 4.5 184 elseif ( in_array( $GLOBALS['pagenow'], array( 'edit-tags.php', 'term.php' ) ) && isset( $_GET['tag_ID'] ) ) { 185 $this->curlang = $this->model->term->get_language( (int) $_GET['tag_ID'] );Task.php https://github.com/woothemes/woocommerce.git | PHP | 556 lines
1<?php 2/** 429 public function is_visited() { 430 $user_id = get_current_user_id(); 431 $response = WCAdminUser::get_user_data_field( $user_id, 'task_list_tracked_started_tasks' );class-wc-customer.php https://gitlab.com/webkod3r/tripolis | PHP | 575 lines
1<?php 2 382 foreach ( $this->_data as $key => $value ) { 383 $meta_value = get_user_meta( get_current_user_id(), ( false === strstr( $key, 'shipping_' ) ? 'billing_' : '' ) . $key, true ); 384 $this->_data[ $key ] = $meta_value ? $meta_value : $this->_data[ $key ]; 569 if ( is_user_logged_in() ) { 570 $downloads = wc_get_customer_available_downloads( get_current_user_id() ); 571 }FMModelForm_submissions.php https://gitlab.com/hunt9310/ras | PHP | 296 lines
1<?php 2 23 24 $user = wp_get_current_user(); 25 $userGroups = $wpdb->get_var($wpdb->prepare("SELECT `user_id_wd` FROM " . $wpdb->prefix . "formmaker WHERE id='%d'", $form_id));MPSUM_Logs.php https://gitlab.com/memuller.web/wp_site | PHP | 436 lines
1<?php 2/** 207 if ( ! function_exists( 'get_plugins' ) ) { 208 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 209 } 232 $tablename = $wpdb->base_prefix . 'eum_logs'; 233 $user_id = get_current_user_id(); 234 if ( 0 == $user_id ) return; // If there is no user, this is not a manual update 237 case 'core': 238 include( ABSPATH . WPINC . '/version.php' ); 239 $wpdb->insert( 263 if ( ! function_exists( 'get_plugins' ) ) { 264 require_once ABSPATH . 'wp-admin/includes/plugin.php'; 265 } 382 383 // Get collation - From /wp-admin/includes/schema.php 384 $charset_collate = '';class-wc-admin-webhooks.php https://gitlab.com/hunt9310/ras | PHP | 517 lines
1<?php 2/** 169 // Redirect to webhook edit page to avoid settings save actions 170 wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&edit-webhook=' . $webhook->id . '&error=' . urlencode( $result->get_error_message() ) ) ); 171 exit(); 175 // Redirect to webhook edit page to avoid settings save actions 176 wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&edit-webhook=' . $webhook->id . '&updated=1' ) ); 177 exit(); 195 'ping_status' => 'closed', 196 'post_author' => get_current_user_id(), 197 'post_password' => strlen( ( $password = uniqid( 'webhook_' ) ) ) > 20 ? substr( $password, 0, 20 ) : $password, 210 // Redirect to edit page 211 wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks&edit-webhook=' . $webhook_id . '&created=1' ) ); 212 exit(); 236 // Redirect to webhooks page 237 wp_redirect( admin_url( 'admin.php?page=wc-settings&tab=api§ion=webhooks' . $status . '&' . $type . '=' . $qty ) ); 238 exit();class-lp-quiz-factory.php https://gitlab.com/gregtyka/lfmawordpress | PHP | 255 lines
1<?php 2 23 static function yyy() { 24 $user = learn_press_get_current_user(); 25 if ( $user instanceof LP_User_Guest ) { 76 LP()->set_object( 'quiz', $quiz, true ); 77 $user = learn_press_get_current_user(); 78 162 $quiz = LP_Quiz::get_quiz( $quiz_id ); 163 $user = learn_press_get_current_user(); 164 self::_verify_nonce(); 177 $quiz_id = learn_press_get_request( 'quiz_id' ); 178 $user = learn_press_get_current_user(); 179 self::_verify_nonce(); 240 $quiz_id = learn_press_get_request( 'quiz_id' ); 241 $user_id = learn_press_get_current_user_id(); 242 $security = learn_press_get_request( 'nonce' );class-wc-customer.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 568 lines
1<?php 2/** 562 if ( is_user_logged_in() ) { 563 $downloads = wc_get_customer_available_downloads( get_current_user_id() ); 564 }class-wc-shortcode-my-account.php https://gitlab.com/0072016/woocommerce | PHP | 412 lines
112 public static function edit_account() { 113 wc_get_template( 'myaccount/form-edit-account.php', array( 'user' => get_user_by( 'id', get_current_user_id() ) ) ); 114 } 124 125 $address = WC()->countries->get_address_fields( get_user_meta( get_current_user_id(), $load_address . '_country', true ), $load_address . '_' ); 126 155 156 wc_get_template( 'myaccount/form-edit-address.php', array( 157 'load_address' => $load_address, 250 if ( empty( $wp_hasher ) ) { 251 require_once ABSPATH . 'wp-includes/class-phpass.php'; 252 $wp_hasher = new PasswordHash( 8, true ); 294 if ( empty( $wp_hasher ) ) { 295 require_once ABSPATH . 'wp-includes/class-phpass.php'; 296 $wp_hasher = new PasswordHash( 8, true );AdminRouter.php https://gitlab.com/najomie/fit-hippie | PHP | 293 lines
1<?php 2/** 21 $cap = 'loco_admin'; 22 $user = wp_get_current_user(); 23 $super = $user->has_cap('manage_options'); 273 else { 274 $url = admin_url('admin.php'); 275 $args['page'] = $page;themed-profiles.php https://gitlab.com/Gashler/sg | PHP | 331 lines
115 116 if ( 'profile.php' == $pagenow && ! isset( $_REQUEST['page'] ) ) { 117 if ( $this->get_option( array( $user_role, 'theme_profile' ) ) ) { 203 public function tml_request_profile() { 204 require_once( ABSPATH . 'wp-admin/includes/user.php' ); 205 require_once( ABSPATH . 'wp-admin/includes/misc.php' ); 216 217 $current_user = wp_get_current_user(); 218 256 require_once( ABSPATH . 'wp-admin/includes/user.php' ); 257 require_once( ABSPATH . 'wp-admin/includes/misc.php' ); 258 305 306 if ( 'profile.php' != $pagenow && strpos( $url, 'profile.php' ) !== false ) { 307 $user_role = reset( $current_user->roles );gravatar-profile.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 309 lines
163 <label for="<?php echo $this->get_field_id( 'title' ); ?>"> 164 <?php esc_html_e( 'Title', 'jetpack' ); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> 165 </label> 184 <label for="<?php echo $this->get_field_id( 'email' ); ?>"><?php esc_html_e( 'Custom Email Address', 'jetpack' ); ?> 185 <input class="widefat" id="<?php echo $this->get_field_id('email'); ?>" name="<?php echo $this->get_field_name( 'email' ); ?>" type="text" value="<?php echo esc_attr( $email ); ?>" /> 186 </label> 190 <label for="<?php echo $this->get_field_id( 'show_personal_links' ); ?>"> 191 <input type="checkbox" name="<?php echo $this->get_field_name( 'show_personal_links' ); ?>" id="<?php echo $this->get_field_id( 'show_personal_links' ); ?>" <?php checked( $show_personal_links ); ?> /> 192 <?php esc_html_e( 'Show Personal Links', 'jetpack' ); ?> 199 <label for="<?php echo $this->get_field_id( 'show_account_links' ); ?>"> 200 <input type="checkbox" name="<?php echo $this->get_field_name( 'show_account_links' ); ?>" id="<?php echo $this->get_field_id( 'show_account_links' ); ?>" <?php checked( $show_account_links ); ?> /> 201 <?php esc_html_e( 'Show Account Links', 'jetpack' ); ?> 206 207 <p><a href="<?php echo admin_url( 'profile.php' ); ?>" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( 'Edit Your Profile', 'jetpack' )?></a> | <a href="http://gravatar.com" target="_blank" title="<?php esc_attr_e( 'Opens in new window', 'jetpack' ); ?>"><?php esc_html_e( "What's a Gravatar?", 'jetpack' ); ?></a></p> 208edit-form-blocks.php https://gitlab.com/campus-academy/krowkaramel | PHP | 338 lines
144 145 /** This filter is documented in wp-admin/includes/post.php */ 146 if ( apply_filters( 'show_post_locked_dialog', true, $post, $user_id ) ) { 189 'disablePostFormats' => ! current_theme_supports( 'post-formats' ), 190 /** This filter is documented in wp-admin/edit-form-advanced.php */ 191 'titlePlaceholder' => apply_filters( 'enter_title_here', __( 'Add title' ), $post ), 207 // field so that we're not always loading its assets. 208 'enableCustomFields' => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ), 209); 301 302require_once ABSPATH . 'wp-admin/admin-header.php'; 303?> 320 __( 'The block editor requires JavaScript. Please enable JavaScript in your browser settings, or try the <a href="%s">Classic Editor plugin</a>.' ), 321 esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ) 322 );Upgrade.php https://gitlab.com/campus-academy/krowkaramel | PHP | 293 lines
60 $input = '<input type="text" name="ctc_update_key" value="" autocomplete="off" placeholder="' . __( 'Enter your Update Key', 'child-theme-configurator' ) . '" />'; 61 if ( isset( $_GET[ 'invalidkey' ] ) ):?><div class="notice-error notice is-dismissible"><p><?php printf( __( 'Sorry, we could not validate your Update Key. Please try again or, if you need assistance, please %s', 'child-theme-configurator' ), sprintf( '<a href="%s/contact/" target="_blank">%s</a>', LILAEAMEDIA_URL, __( 'contact us.', 'child-theme-configurator' ) ) ); ?></p></div><?php endif; 62 else: 69<p><?php _e( 'You can upgrade to the latest version by clicking the button below. After validating the Update Key from your order, WordPress will retrieve the plugin from our website and install it automatically. If you no longer wish to use the premium version, you can dismiss this notice by clicking the close icon (x) at the top right.', 'child-theme-configurator' ); ?></p> 70<p><?php echo $input; ?> <input type="submit" name="ctc_pro_upgrade" value="<?php _e( 'Upgrade Now', 'child-theme-configurator' ); ?>" class="button button-primary" /></p></form> 71<script> 74 $.post( 75 '<?php echo admin_url( 'admin-ajax.php' ); ?>', 76 { '_wpnonce': '<?php echo wp_create_nonce( 'ctc_pro_dismiss' ); ?>', 'action': 'ctc_pro_dismiss' } 80</script></div> 81<?php 82 } 93 static function has_dismissed(){ 94 $dismissed = get_user_meta( get_current_user_id(), 'ctc_pro_upgrade_notice', TRUE ); 95 if ( $dismissed == CHLD_THM_CFG_VERSION )index.php https://bitbucket.org/matthieuboutron/dinner-thrill.git | PHP | 512 lines
1<?php 2/* 24 25require_once(DIRNAME(__FILE__) . "/paypal.php"); 26 45 46 $current_user = wp_get_current_user(); 47 124 ob_start(); 125 require_once(get_theme_root() . "/" . get_current_theme() . "/_step2.php"); 126 $response = ob_get_clean(); 146 ob_start(); 147 require_once(get_theme_root() . "/" . get_current_theme() . "/_step1.php"); 148 $response = ob_get_clean(); 163 ob_start(); 164 require_once(get_theme_root() . "/" . get_current_theme() . "/_step2.php"); 165 $response = ob_get_clean();lessons.php https://gitlab.com/ezgonzalez/integral | PHP | 174 lines
20 /** 21 * Fires inside course-results/lessons.php after the 22 * is uer logged check, just above the lessons header. 29 30 <h2> <?php _e( 'Lessons', 'woothemes-sensei' ); ?> </h2> 31 85 86 <?php 87 94 95 <?php 96 130 131 <a href="<?php echo esc_url_raw( get_permalink( $lesson->ID ) ) ?>" title="<?php esc_attr_e( sprintf( __( 'Start %s', 'woothemes-sensei' ), $lesson->post_title ) ) ?>" > 132 173 174<?php endif; //user logged in ?>ExportToGoogleLiveData.php https://gitlab.com/digaotinfo/agenciaabear.com.br | PHP | 192 lines
36 $pluginUrlDir = $plugin->getPluginDirUrl(); 37 $scriptLink = $pluginUrlDir . 'CFDBGoogleSSLiveData.php'; 38 $imageUrlDir = $pluginUrlDir . "help"; 122 <a href="<?php echo $imageUrlDir ?>/GooglePasteScriptEditor.png"> 123 <img src="<?php echo $imageUrlDir ?>/GooglePasteScriptEditor.png" alt="Paste script text" height="68px" width="100px"/> 124 133 <p><?php _e('<strong>Copy</strong> the text from ', 'contact-form-7-to-database-extension'); ?> 134 <a target="_gscript" href="<?php echo($scriptLink) ?>"><?php echo htmlspecialchars(__('THIS SCRIPT FILE', 'contact-form-7-to-database-extension')); ?></a> 135 <?php _e('and <strong>paste</strong> it into the Google script editor', 'contact-form-7-to-database-extension'); ?></p> 168 <br/><?php echo htmlspecialchars(__('Enter in the cell the formula:', 'contact-form-7-to-database-extension')); ?> 169 <br/><span style="background-color: yellow"><code><?php echo("=cfdbdata(\"$siteUrl\", \"$formName\", \"$userName\", \"<password>\")") ?></code></span> 170 <br/><?php _e('Replace <strong><password></strong> with your <em>WordPress</em> password', 'contact-form-7-to-database-extension'); ?> 175 <p> 176 <a href="<?php echo $scBuilderPageUrl ?>" target="sc"><?php echo htmlspecialchars(__('Customize the output by creating a Google Spreadsheet Function call with additional options', 'contact-form-7-to-database-extension')); ?></a> 177 </p>bugnote_view_inc.php https://github.com/fusenigk/mantisbt-1.git | PHP | 287 lines
1<?php 2# MantisBT - A PHP based bugtracking system 25 * 26 * @uses access_api.php 27 * @uses authentication_api.php 27 * @uses authentication_api.php 28 * @uses bug_api.php 29 * @uses bug_revision_api.php 29 * @uses bug_revision_api.php 30 * @uses bugnote_api.php 31 * @uses collapse_api.php 157?> 158<tr class="bugnote <?php echo $t_bugnote_css ?>" id="c<?php echo $t_bugnote->id ?>"> 159 <td class="bugnote-meta"> 160 <?php if ( ON == config_get("show_avatar") ) print_avatar( $t_bugnote->reporter_id ); ?> 161 <span class="small bugnote-permalink"><a rel="bookmark" href="<?php echo string_get_bugnote_view_url($t_bugnote->bug_id, $t_bugnote->id) ?>" title="<?php echo lang_get( 'bugnote_link_title' ) ?>"><?php echo htmlentities( config_get_global( 'bugnote_link_tag' ) ) . $t_bugnote_id_formatted ?></a></span><br /> 162settings.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 185 lines
1<?php 2/** 118 public function action_suppress_enable_notice() { 119 update_user_meta(get_current_user_id(), 'social_suppress_enable_notice', 'true'); 120 } 127 public function action_suppress_no_accounts_notice() { 128 update_user_meta(get_current_user_id(), 'social_suppress_no_accounts_notice', 'true'); 129 } 162 public function action_clear_2_0_upgrade() { 163 delete_user_meta(get_current_user_id(), 'social_2.0_upgrade'); 164 }File.php https://github.com/jpratt/cal.git | PHP | 460 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 12969 2008-12-01 12:54:06Z dmitry $ 22 */ 26 */ 27#require_once "Zend/OpenId/Consumer/Storage.php"; 28 63 } 64 $user = get_current_user(); 65 if (is_string($user) && !empty($user)) { 75 */ 76 #require_once 'Zend/OpenId/Exception.php'; 77 throw new Zend_OpenId_Exception( 85 */ 86 #require_once 'Zend/OpenId/Exception.php'; 87 throw new Zend_OpenId_Exception(includesPlugin.php https://gitlab.com/morganestes/wordpress-develop | PHP | 494 lines
105 @mkdir( $sub_dir ); 106 @file_put_contents( $sub_dir . '/subfile.php', '<?php // Silence.' ); 107 174 175 $this->_create_plugin( '<?php\n//Silence is golden.', 'index.php', WPMU_PLUGIN_DIR ); 176 $this->assertEquals( array(), get_mu_plugins() ); 198 199 $this->_create_plugin( '<?php\n//Silence is not golden.', 'index.php', WPMU_PLUGIN_DIR ); 200 $found = get_mu_plugins(); 223 224 $this->_create_plugin( '<?php\n//Test', 'foo.php', WPMU_PLUGIN_DIR ); 225 $this->_create_plugin( '<?php\n//Test 2', 'bar.txt', WPMU_PLUGIN_DIR ); 266 $p1 = $this->_create_plugin( "<?php\n//Test", 'advanced-cache.php', WP_CONTENT_DIR ); 267 $p2 = $this->_create_plugin( "<?php\n//Test", 'not-a-dropin.php', WP_CONTENT_DIR ); 268mtrl-topbar.php https://gitlab.com/neyberbz/suelos-ualm | PHP | 243 lines
1<?php 2/** 9?> 10<?php 11 213 214 $user_id = get_current_user_id(); 215 $current_user = wp_get_current_user();class.adminbar.php https://gitlab.com/najomie/fit-hippie | PHP | 220 lines
1<?php 2if(!class_exists('M_Adminbar')) { 103 $metatitle = __('Click to Enable the Membership protection', 'membership'); 104 $linkurl = wp_nonce_url(admin_url("admin.php?page=membership&action=activate"), 'toggle-plugin'); 105 $wp_admin_bar->add_menu( array( 116 117 $linkurl = wp_nonce_url(admin_url("admin.php?page=membership&action=activate"), 'toggle-plugin'); 118 $wp_admin_bar->add_menu( array( 169 foreach( $levels as $key => $level ) { 170 $linkurl = wp_nonce_url(admin_url("admin.php?page=membership&action=membershipuselevel&level_id=" . $level->id), 'membershipuselevel-' . $level->id); 171 $wp_admin_bar->add_menu( array( 181 } else { 182 $linkurl = wp_nonce_url(admin_url("admin.php?page=membership&action=membershipuselevel&level_id=0"), 'membershipuselevel-0'); 183 $wp_admin_bar->add_menu( array( 198 if(empty($user) || !method_exists($user, 'has_cap')) { 199 $user = wp_get_current_user(); 200 }class-pointers.php https://gitlab.com/Blueprint-Marketing/google-analytics-for-wordpress | PHP | 274 lines
1<?php 2/** 43 public function __construct() { 44 if ( current_user_can( 'manage_options' ) && ! get_user_meta( get_current_user_id(), 'ga_ignore_tour' ) ) { 45 87 88 if ( $pagenow === 'admin.php' && array_key_exists( $page, $this->admin_pages ) ) { 89 $this->prepare_page_pointer( $page ); 139 if ( isset( $pointer['next_page'] ) ) { 140 $this->add_button( 'primary_button', __( 'Next', 'google-analytics-for-wordpress' ), admin_url( 'admin.php?page=yst_ga_' . $pointer['next_page'] ) ); 141 143 if ( isset( $pointer['prev_page'] ) ) { 144 $this->add_button( 'previous_button', __( 'Previous', 'google-analytics-for-wordpress' ), admin_url( 'admin.php?page=yst_ga_' . $pointer['prev_page'] ) ); 145 } 180 181 $this->add_button( 'primary_button', __( 'Start tour', 'google-analytics-for-wordpress' ), admin_url( 'admin.php?page=yst_ga_settings' ) ); 182 }comments.php https://bitbucket.org/cisash/fananeen.git | PHP | 485 lines
2 3require dirname( __FILE__ ) . '/base.php'; 4 217 <div id="cancel-comment-reply-link" style="display:none; float:right;"><a href="#"><?php echo esc_html( __( 'Cancel Reply', 'jetpack' ) ); ?></a></div> 218 <iframe src="<?php echo esc_url( $url ); ?>" allowtransparency="<?php echo $transparent; ?>" style="width:100%; height: <?php echo $height; ?>px;border:0px;" frameBorder="0" scrolling="no" name="jetpack_remote_comment" id="jetpack_remote_comment"></iframe> 219 </div> 220 221 <?php // Below is required for comment reply JS to work ?> 222 299 300 <?php endif; ?> 301 465try { 466 window.parent.location = <?php echo json_encode( $url ); ?>; 467 window.parent.location.reload( true );table-string.php https://gitlab.com/hop23typhu/bryepoxy | PHP | 334 lines
1<?php 2 3if ( ! class_exists( 'WP_List_Table' ) ) { 4 require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); // since WP 3.1 5} 170 // Filters by language if requested 171 if ( ( $lg = get_user_meta( get_current_user_id(), 'pll_filter_content', true ) ) && $language->slug !== $lg ) { 172 continue;class.yith-wcwl-shortcode.php https://gitlab.com/hop23typhu/list-theme | PHP | 374 lines
1<?php 2/** 70 $user_id = ( ! $user_id ) ? get_query_var( $user_id, false ) : $user_id; 71 $user_id = ( ! $user_id ) ? get_current_user_id() : $user_id; 72 94 95 if( get_current_user_id() == $user_id ){ 96 $is_user_owner = true; 112 if( empty( $wishlist_id ) ){ 113 $query_args[ 'user_id' ] = get_current_user_id(); 114 $query_args[ 'is_default' ] = 1; 118 $wishlist = YITH_WCWL()->get_wishlist_detail_by_token( $wishlist_id ); 119 $is_user_owner = $wishlist['user_id'] == get_current_user_id(); 120 122 123 if( ! empty( $wishlist ) && $wishlist['user_id'] != get_current_user_id() ){ 124 $query_args[ 'user_id' ] = false;mypage-edit-my-profile.php https://gitlab.com/oxidigitaluser/liguelista | PHP | 305 lines
168 <div class="col-xs-3 col-lg-3"><div class="well well-sm"><?php _e('Username', 'javo_fr') ?></div></div> 169 <div class="col-xs-9 col-lg-9"><input type="text" class="form-control" name="javo_r[user_login]" value="<?php javo_input_str("user_login", (!empty($edit)? $edit->user_login : NULL));?>" data-required placeholder="<?php _e('Username', 'javo_fr');?>" <?php echo (($edit)?"readonly" : "");?>></div> 170 </div> 176 <div class="col-xs-6 col-lg-6"> 177 <input type="text" class="form-control" name="javo_r[first_name]" value="<?php javo_input_str("first_name", (!empty($edit)?$edit->first_name:null));?>" data-required placeholder="<?php _e('First Name', 'javo_fr');?>"> 178 </div><!-- col-xs-6 --> 179 <div class="col-xs-6 col-lg-6"> 180 <input type="text" class="form-control" name="javo_r[last_name]" value="<?php javo_input_str("last_name", (!empty($edit)?$edit->last_name:null));?>" data-required placeholder="<?php _e('Last Name', 'javo_fr');?>"> 181 </div><!-- col-xs-6 --> 225 <input name="avatar" type="hidden" value="<?php echo !empty($edit)?get_user_meta($edit->ID, "avatar", true):null;?>"> 226 <a class="btn btn-primary javo-fileupload" data-title="<?php _e('My Profile Featured Image', 'javo_fr');?>" data-input="input[name='avatar']" data-preview=".javo-upload-review"><?php _e('Upload', 'javo_fr');?></a> 227 238 <div class="col-xs-3 col-lg-3"><div class="well well-sm"><?php _e('Twitter', 'javo_fr') ?></div></div> 239 <div class="col-xs-9 col-lg-9"><input type="text" class="form-control" name="javo_r[twitter]" value="<?php javo_input_str("twitter", (!empty($edit)?get_user_meta($edit->ID, "twitter", true):null));?>" placeholder="<?php _e('Twitter', 'javo_fr');?>"></div> 240 </div>class-wc-api-webhooks.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 503 lines
1<?php 2/** 188 'ping_status' => 'closed', 189 'post_author' => get_current_user_id(), 190 'post_password' => uniqid( 'webhook_' ), 206 // set secret if provided, defaults to API users consumer secret 207 $webhook->set_secret( ! empty( $data['secret'] ) ? $data['secret'] : get_user_meta( get_current_user_id(), 'woocommerce_api_consumer_secret', true ) ); 208 284 'ID' => $webhook->id, 285 'post_author' => get_current_user_id() 286 );main_page.php https://github.com/fusenigk/mantisbt-1.git | PHP | 135 lines
1<?php 2# MantisBT - A PHP based bugtracking system 25 * 26 * @uses core.php 27 * @uses access_api.php 27 * @uses access_api.php 28 * @uses authentication_api.php 29 * @uses config_api.php 29 * @uses config_api.php 30 * @uses constant_inc.php 31 * @uses current_user_api.php 31 * @uses current_user_api.php 32 * @uses gpc_api.php 33 * @uses helper_api.php 33 * @uses helper_api.php 34 * @uses html_api.php 35 * @uses lang_api.phpclass-admin-init.php https://gitlab.com/relacilia/cakra | PHP | 383 lines
1<?php 2/** 149 public function seen_tagline_notice() { 150 return 'seen' === get_user_meta( get_current_user_id(), 'wpseo_seen_tagline_notice', true ); 151 } 188 new Yoast_Notification( 189 /* translators: 1: is a link to 'admin_url / admin.php?page=wpseo_tools&recalculate=1' 2: closing link tag */ 190 sprintf( 229 230 $is_editor = in_array( $this->pagenow, array( 'edit.php', 'post.php', 'post-new.php' ) ); 231 $is_inline_save = filter_input( INPUT_POST, 'action' ) === 'inline-save'; 240 if ( $is_editor || $is_inline_save || in_array( $this->pagenow, array( 241 'edit.php', 242 'post.php', 265 private function load_admin_user_class() { 266 if ( in_array( $this->pagenow, array( 'user-edit.php', 'profile.php' ) ) && current_user_can( 'edit_users' ) ) { 267 new WPSEO_Admin_User_Profile;functions-checkout.php https://gitlab.com/Blueprint-Marketing/Yoast-theme-public | PHP | 353 lines
1<?php 2/** 234 if ( is_user_logged_in() ) { 235 $user_data = get_userdata( get_current_user_id() ); 236 foreach ( $customer as $key => $field ) { 309 310 $user_address = get_user_meta( get_current_user_id(), '_edd_user_address', true ); 311transcripts.php https://github.com/mgsisk/webcomic.git | PHP | 481 lines
1<?php 2/** 159 'callback' => function() { 160 require __DIR__ . '/transcripts-inc-help.php'; 161 }, 181 $args = [ 182 'file' => __DIR__ . '/transcripts-inc-box.php', 183 'nonce' => __NAMESPACE__ . 'TranscriptsNonce', 214 $args = [ 215 'file' => __DIR__ . '/transcripts-inc-quick-edit.php', 216 'bulk' => false !== strpos( current_filter(), 'bulk' ), 270 $args = [ 271 'file' => __DIR__ . '/transcripts-inc-form.php', 272 'nonce' => __NAMESPACE__ . 'SubmitTranscriptNonce', 333 334 $user = wp_get_current_user(); 335 $post_data['meta_input']['webcomic_transcript_authors'] = [