{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"wp-admin","path":"wp-admin","contentType":"directory"},{"name":"wp-content","path":"wp-content","contentType":"directory"},{"name":"wp-includes","path":"wp-includes","contentType":"directory"},{"name":".htaccess","path":".htaccess","contentType":"file"},{"name":"1.asp","path":"1.asp","contentType":"file"},{"name":"ExportFile.txt","path":"ExportFile.txt","contentType":"file"},{"name":"error_log","path":"error_log","contentType":"file"},{"name":"index.php","path":"index.php","contentType":"file"},{"name":"license.txt","path":"license.txt","contentType":"file"},{"name":"pi.vbs","path":"pi.vbs","contentType":"file"},{"name":"pie.asp","path":"pie.asp","contentType":"file"},{"name":"readme.html","path":"readme.html","contentType":"file"},{"name":"temper.asp","path":"temper.asp","contentType":"file"},{"name":"tiddlywiki.css","path":"tiddlywiki.css","contentType":"file"},{"name":"wp-activate.php","path":"wp-activate.php","contentType":"file"},{"name":"wp-blog-header.php","path":"wp-blog-header.php","contentType":"file"},{"name":"wp-comments-post.php","path":"wp-comments-post.php","contentType":"file"},{"name":"wp-config-sample.php","path":"wp-config-sample.php","contentType":"file"},{"name":"wp-config.php","path":"wp-config.php","contentType":"file"},{"name":"wp-cron.php","path":"wp-cron.php","contentType":"file"},{"name":"wp-links-opml.php","path":"wp-links-opml.php","contentType":"file"},{"name":"wp-load.php","path":"wp-load.php","contentType":"file"},{"name":"wp-login.php","path":"wp-login.php","contentType":"file"},{"name":"wp-mail.php","path":"wp-mail.php","contentType":"file"},{"name":"wp-settings.php","path":"wp-settings.php","contentType":"file"},{"name":"wp-signup.php","path":"wp-signup.php","contentType":"file"},{"name":"wp-trackback.php","path":"wp-trackback.php","contentType":"file"},{"name":"xmlrpc.php","path":"xmlrpc.php","contentType":"file"}],"totalCount":28}},"fileTreeProcessingTime":5.854908,"foldersToFetch":[],"repo":{"id":34919587,"defaultBranch":"master","name":"grupo_isotex_master","ownerLogin":"Isotex","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2015-05-01T19:18:51.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/9900559?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1430629154.0","canEdit":false,"refType":"branch","currentOid":"91e9b59884a072f97faf30cec2be766d3973a134"},"path":"wp-signup.php","currentUser":null,"blob":{"rawLines":[" section of the site sign-up screen.","\t *","\t * @since 3.0.0","\t */","\tdo_action( 'signup_header' );","}","add_action( 'wp_head', 'do_signup_header' );","","if ( !is_multisite() ) {","\twp_redirect( site_url('wp-login.php?action=register') );","\tdie();","}","","if ( !is_main_site() ) {","\twp_redirect( network_site_url( 'wp-signup.php' ) );","\tdie();","}","","// Fix for page title","$wp_query->is_404 = false;","","/**"," * Prints styles for front-end Multisite signup pages"," *"," * @since MU"," */","function wpmu_signup_stylesheet() {","\t?>","\t","\t","
(' . sprintf( __('Your address will be %s.'), $site ) . ') ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) . '
';","\t}","","\t// Blog Title","\t?>","\t","\tget_error_message('blog_title') ) { ?>","\t\t","\t';","\t?>","","\t"," "," ","
"," "," ","
'.$errmsg.'
';","\t}","\techo '' . $errmsg . '
';","\t}","\t/**","\t * Fires at the end of the user registration form on the site sign-up form.","\t *","\t * @since 3.0.0","\t *","\t * @param array $errors An array possibly containing 'user_name' or 'user_email' errors.","\t */","\tdo_action( 'signup_extra_fields', $errors );","}","","/**"," * Validate user signup name and email"," *"," * @since MU"," *"," * @uses wpmu_validate_user_signup() to retrieve an array of user data"," * @return array Contains username, email, and error messages."," */","function validate_user_form() {","\treturn wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']);","}","","/**"," * Allow returning users to sign up for another site"," *"," * @since MU"," *"," * @uses wp_get_current_user() to get the current user"," * @param string $blogname The new site name"," * @param string $blog_title The new blog title"," * @param array $errors"," */","function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) {","\t$current_user = wp_get_current_user();","","\tif ( ! is_wp_error($errors) ) {","\t\t$errors = new WP_Error();","\t}","","\t$signup_defaults = array(","\t\t'blogname' => $blogname,","\t\t'blog_title' => $blog_title,","\t\t'errors' => $errors","\t);","","\t/**","\t * Filter the default site sign-up variables.","\t *","\t * @since 3.0.0","\t *","\t * @param array $signup_defaults {","\t * An array of default site sign-up variables.","\t *","\t * @type string $blogname The site blogname.","\t * @type string $blog_title The site title.","\t * @type array $errors An array possibly containing 'blogname' or 'blog_title' errors.","\t * }","\t */","\t$filtered_results = apply_filters( 'signup_another_blog_init', $signup_defaults );","","\t$blogname = $filtered_results['blogname'];","\t$blog_title = $filtered_results['blog_title'];","\t$errors = $filtered_results['errors'];","","\techo '' . __( 'There was a problem, please correct the form below and try again.' ) . '
';","\t}","\t?>","\tadd another site to your account. There is no limit to the number of sites you can have, so create to your heart’s content, but write responsibly!' ), $current_user->display_name ) ?>
","","\tID);","\tif ( !empty($blogs) ) { ?>","","\t\t\t","\t\t\t","\t\thttp://%2$s is your new site. Log in as “%4$s” using your existing password.' ), $domain.$path, $domain.$path, \"http://\" . $domain.$path . \"wp-login.php\", $user_name ) ?>","\t
","\t $user_name,","\t\t'user_email' => $user_email,","\t\t'errors' => $errors,","\t);","","\t/**","\t * Filter the default user variables used on the user sign-up form.","\t *","\t * @since 3.0.0","\t *","\t * @param array $signup_user_defaults {","\t * An array of default user variables.","\t *","\t * @type string $user_name The user username.","\t * @type string $user_email The user email address.","\t * @type array $errors An array of possible errors relevant to the sign-up user.","\t * }","\t */","\t$filtered_results = apply_filters( 'signup_user_init', $signup_user_defaults );","\t$user_name = $filtered_results['user_name'];","\t$user_email = $filtered_results['user_email'];","\t$errors = $filtered_results['errors'];","","\t?>","","\tyou must activate it.' ) ?>
","\t%s and click the link given.' ), $user_email ); ?>
","\t","\t $user_name,","\t\t'user_email' => $user_email,","\t\t'blogname' => $blogname,","\t\t'blog_title' => $blog_title,","\t\t'errors' => $errors","\t);","","\t/**","\t * Filter the default site creation variables for the site sign-up form.","\t *","\t * @since 3.0.0","\t *","\t * @param array $signup_blog_defaults {","\t * An array of default site creation variables.","\t *","\t * @type string $user_name The user username.","\t * @type string $user_email The user email address.","\t * @type string $blogname The blogname.","\t * @type string $blog_title The title of the site.","\t * @type array $errors An array of possible errors relevant to new site creation variables.","\t * }","\t */","\t$filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults );","","\t$user_name = $filtered_results['user_name'];","\t$user_email = $filtered_results['user_email'];","\t$blogname = $filtered_results['blogname'];","\t$blog_title = $filtered_results['blog_title'];","\t$errors = $filtered_results['errors'];","","\tif ( empty($blogname) )","\t\t$blogname = $user_name;","\t?>","\t","\tget_error_code() ) {","\t\tsignup_user( $user_name, $user_email, $user_errors );","\t\treturn false;","\t}","","\t$result = wpmu_validate_blog_signup( $_POST['blogname'], $_POST['blog_title'] );","\t$domain = $result['domain'];","\t$path = $result['path'];","\t$blogname = $result['blogname'];","\t$blog_title = $result['blog_title'];","\t$errors = $result['errors'];","","\tif ( $errors->get_error_code() ) {","\t\tsignup_blog($user_name, $user_email, $blogname, $blog_title, $errors);","\t\treturn false;","\t}","","\t$public = (int) $_POST['blog_public'];","\t$signup_meta = array ('lang_id' => 1, 'public' => $public);","","\t/** This filter is documented in wp-signup.php */","\t$meta = apply_filters( 'add_signup_meta', $signup_meta );","","\twpmu_signup_blog($domain, $path, $blog_title, $user_name, $user_email, $meta);","\tconfirm_blog_signup($domain, $path, $blog_title, $user_name, $user_email, $meta);","\treturn true;","}","","/**"," * New site signup confirmation"," *"," * @since MU"," *"," * @param string $domain The domain URL"," * @param string $path The site root path"," * @param string $blog_title The new site title"," * @param string $user_name The user's username"," * @param string $user_email The user's email address"," * @param array $meta Any additional meta from the 'add_signup_meta' filter in validate_blog_signup()"," */","function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $user_email = '', $meta = array() ) {","\t?>","\tyou must activate it.' ) ?>
","\t%s and click the link given.' ), $user_email) ?>
","\t","\t","\t","\t\t","\t\t
' . __( 'The site you were looking for, %s, does not exist, but you can create it now!' ) . '
', $newblog );","\t\t\t\telse","\t\t\t\t\tprintf( '' . __( 'The site you were looking for, %s, does not exist.' ) . '
', $newblog );","\t\t\t}","\t\t\tbreak;","\t}","}","?>","