· 6 years ago · Aug 04, 2019, 06:12 PM
1
2<?php
3/**
4 * The base configurations of the WordPress.
5 *
6 * This file has the following configurations: MySQL settings, Table Prefix,
7 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
8 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
9 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
10 *
11 * This file is used by the wp-config.php creation script during the
12 * installation. You don't have to use the web site, you can just copy this file
13 * to "wp-config.php" and fill in the values.
14 *
15 * @package WordPress
16 */
17
18// ** MySQL settings - You can get this info from your web host ** //
19/** The name of the database for WordPress */
20define('DB_NAME', 'manaswin_wrdp1');
21
22/** MySQL database username */
23define('DB_USER', 'manaswin_wrdp1');
24
25/** MySQL database password */
26define('DB_PASSWORD', '}XV94g}_=E&T');
27
28/** MySQL hostname */
29define('DB_HOST', 'localhost');
30
31/** Database Charset to use in creating database tables. */
32define('DB_CHARSET', 'utf8');
33
34/** The Database Collate type. Don't change this if in doubt. */
35define('DB_COLLATE', '');
36
37/**#@+
38 * Authentication Unique Keys and Salts.
39 *
40 * Change these to different unique phrases!
41 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
42 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
43 *
44 * @since 2.6.0
45 */
46define('AUTH_KEY', '@j?ipQ1nR,yuuCW@Umanaswini.comAS-{%gQEpSr_+<dyb+>:Yd#nWbetyh~4rmMUap4Q6rZEcZy');
47define('SECURE_AUTH_KEY', '+hOIBXnJ~C;ftmT([CA|]_wDSmanaswini.comG<K?#S8{H>//EaLy7]h:jhRfj.K=Usg#g&$9+ox');
48define('LOGGED_IN_KEY', 'c8K?-u_wU{BZ2yHK_sbOo1@?!manaswini.com}H<`PM%7^l6VJTY,~DSOJ,zCtVI@Ym$WZi1@5x5');
49define('NONCE_KEY', 's5,9YV+%:+HFX#l~ %RE`AZ/pmanaswini.comUzn<&<R%71t-|[H-L+}AtN9/thH&dMcVM8WN|Q}');
50define('AUTH_SALT', 'KUEIq@~d.Tk+~t>1:HS9$8G_*manaswini.comzG,jcuq2l=7l#KE[-1c)QW3a{LwGi-kwhRVP&]g');
51define('SECURE_AUTH_SALT', ';0GoKVCGWIZh:YOa*h[]-T&Dimanaswini.comnp=:iQ;z$>OkEYNi2@Y`|5-c|n:Jb #}97E?LX7');
52define('LOGGED_IN_SALT', 'we3RP{hVolwbVh-((L%LEcHKlmanaswini.com[IaA9<bDvi`h/M:3U7xK8S]A|.Q,2$|*jcOqWNB');
53define('NONCE_SALT', '~<MckLITBiGaIV)497^JDbe-)manaswini.comG:*}/Prup?HeQMLNLz2kG~d/306X7Noin@gGh7+');
54
55/**#@-*/
56
57/**
58 * WordPress Database Table prefix.
59 *
60 * You can have multiple installations in one database if you give each a unique
61 * prefix. Only numbers, letters, and underscores please!
62 */
63$table_prefix = 'wp_';
64
65/**
66 * WordPress Localized Language, defaults to English.
67 *
68 * Change this to localize WordPress. A corresponding MO file for the chosen
69 * language must be installed to wp-content/languages. For example, install
70 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
71 * language support.
72 */
73define('WPLANG', '');
74
75/**
76 * For developers: WordPress debugging mode.
77 *
78 * Change this to true to enable the display of notices during development.
79 * It is strongly recommended that plugin and theme developers use WP_DEBUG
80 * in their development environments.
81 */
82define('WP_DEBUG', false);
83
84/* That's all, stop editing! Happy blogging. */
85
86/** Absolute path to the WordPress directory. */
87if ( !defined('ABSPATH') )
88 define('ABSPATH', dirname(__FILE__) . '/');
89
90/** Sets up WordPress vars and included files. */
91require_once(ABSPATH . 'wp-settings.php');
92---------------------------------------------------
93<?php
94/**
95 * The base configurations of the WordPress.
96 *
97 * This file has the following configurations: MySQL settings, Table Prefix,
98 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
99 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
100 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
101 *
102 * This file is used by the wp-config.php creation script during the
103 * installation. You don't have to use the web site, you can just copy this file
104 * to "wp-config.php" and fill in the values.
105 *
106 * @package WordPress
107 */
108
109// ** MySQL settings - You can get this info from your web host ** //
110/** The name of the database for WordPress */
111define('DB_NAME', 'repcofo_repco1');
112
113/** MySQL database username */
114define('DB_USER', 'repcofo_repco');
115
116/** MySQL database password */
117define('DB_PASSWORD', 'foundatoion#123');
118
119/** MySQL hostname */
120define('DB_HOST', 'localhost');
121
122/** Database Charset to use in creating database tables. */
123define('DB_CHARSET', 'utf8');
124
125/** The Database Collate type. Don't change this if in doubt. */
126define('DB_COLLATE', '');
127
128/**#@+
129 * Authentication Unique Keys and Salts.
130 *
131 * Change these to different unique phrases!
132 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
133 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
134 *
135 * @since 2.6.0
136 */
137define('AUTH_KEY', '@j?ipQ1nR,yuuCW@Ugreenearthfoundation.inAS-{%gQEpSr_+<dyb+>:Yd#nWbetyh~4rmMUap4Q6rZEcZy');
138define('SECURE_AUTH_KEY', '+hOIBXnJ~C;ftmT([CA|]_wDSgreenearthfoundation.inG<K?#S8{H>//EaLy7]h:jhRfj.K=Usg#g&$9+ox');
139define('LOGGED_IN_KEY', 'c8K?-u_wU{BZ2yHK_sbOo1@?!greenearthfoundation.in}H<`PM%7^l6VJTY,~DSOJ,zCtVI@Ym$WZi1@5x5');
140define('NONCE_KEY', 's5,9YV+%:+HFX#l~ %RE`AZ/pgreenearthfoundation.inUzn<&<R%71t-|[H-L+}AtN9/thH&dMcVM8WN|Q}');
141define('AUTH_SALT', 'KUEIq@~d.Tk+~t>1:HS9$8G_*greenearthfoundation.inzG,jcuq2l=7l#KE[-1c)QW3a{LwGi-kwhRVP&]g');
142define('SECURE_AUTH_SALT', ';0GoKVCGWIZh:YOa*h[]-T&Digreenearthfoundation.innp=:iQ;z$>OkEYNi2@Y`|5-c|n:Jb #}97E?LX7');
143define('LOGGED_IN_SALT', 'we3RP{hVolwbVh-((L%LEcHKlgreenearthfoundation.in[IaA9<bDvi`h/M:3U7xK8S]A|.Q,2$|*jcOqWNB');
144define('NONCE_SALT', '~<MckLITBiGaIV)497^JDbe-)greenearthfoundation.inG:*}/Prup?HeQMLNLz2kG~d/306X7Noin@gGh7+');
145
146/**#@-*/
147
148/**
149 * WordPress Database Table prefix.
150 *
151 * You can have multiple installations in one database if you give each a unique
152 * prefix. Only numbers, letters, and underscores please!
153 */
154$table_prefix = 'wp_';
155
156/**
157 * WordPress Localized Language, defaults to English.
158 *
159 * Change this to localize WordPress. A corresponding MO file for the chosen
160 * language must be installed to wp-content/languages. For example, install
161 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
162 * language support.
163 */
164define('WPLANG', '');
165
166/**
167 * For developers: WordPress debugging mode.
168 *
169 * Change this to true to enable the display of notices during development.
170 * It is strongly recommended that plugin and theme developers use WP_DEBUG
171 * in their development environments.
172 */
173define('WP_DEBUG', false);
174
175/* That's all, stop editing! Happy blogging. */
176
177/** Absolute path to the WordPress directory. */
178if ( !defined('ABSPATH') )
179 define('ABSPATH', dirname(__FILE__) . '/');
180
181/** Sets up WordPress vars and included files. */
182define('WP_DEBUG',true);
183define('DISALLOW_FILE_EDIT',true);
184require_once(ABSPATH . 'wp-settings.php');
185
186-----------------------------------------------------
187
188<?php
189/**
190 * WordPress User Page
191 *
192 * Handles authentication, registering, resetting passwords, forgot password,
193 * and other user handling.
194 *
195 * @package WordPress
196 */
197
198/** Make sure that the WordPress bootstrap has run before continuing. */
199require( dirname(__FILE__) . '/wp-load.php' );
200
201// Redirect to https login if forced to use SSL
202if ( force_ssl_admin() && ! is_ssl() ) {
203 if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {
204 wp_safe_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
205 exit();
206 } else {
207 wp_safe_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] );
208 exit();
209 }
210}
211
212/**
213 * Output the login page header.
214 *
215 * @param string $title Optional. WordPress Log In Page title to display in <title/> element. Default 'Log In'.
216 * @param string $message Optional. Message to display in header. Default empty.
217 * @param string $wp_error Optional. The error to pass. Default empty.
218 * @param WP_Error $wp_error Optional. WordPress Error Object
219 */
220function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
221 global $error, $interim_login, $action;
222
223 // Don't index any of these forms
224 add_action( 'login_head', 'wp_sensitive_page_meta' );
225
226 if ( wp_is_mobile() )
227 add_action( 'login_head', 'wp_login_viewport_meta' );
228
229 if ( empty($wp_error) )
230 $wp_error = new WP_Error();
231
232 // Shake it!
233 $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password' );
234 /**
235 * Filter the error codes array for shaking the login form.
236 *
237 * @since 3.0.0
238 *
239 * @param array $shake_error_codes Error codes that shake the login form.
240 */
241 $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes );
242
243 if ( $shake_error_codes && $wp_error->get_error_code() && in_array( $wp_error->get_error_code(), $shake_error_codes ) )
244 add_action( 'login_head', 'wp_shake_js', 12 );
245
246 ?><!DOCTYPE html>
247 <!--[if IE 8]>
248 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
249 <![endif]-->
250 <!--[if !(IE 8) ]><!-->
251 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
252 <!--<![endif]-->
253 <head>
254 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
255 <title><?php bloginfo('name'); ?> › <?php echo $title; ?></title>
256 <?php
257
258 wp_admin_css( 'login', true );
259
260 // Remove all stored post data on logging out.
261 // This could be added by add_action('login_head'...) like wp_shake_js()
262 // but maybe better if it's not removable by plugins
263 if ( 'loggedout' == $wp_error->get_error_code() ) {
264 ?>
265 <script>if("sessionStorage" in window){try{for(var key in sessionStorage){if(key.indexOf("wp-autosave-")!=-1){sessionStorage.removeItem(key)}}}catch(e){}};</script>
266 <?php
267 }
268
269 /**
270 * Enqueue scripts and styles for the login page.
271 *
272 * @since 3.1.0
273 */
274 do_action( 'login_enqueue_scripts' );
275 /**
276 * Fires in the login page header after scripts are enqueued.
277 *
278 * @since 2.1.0
279 */
280 do_action( 'login_head' );
281
282 if ( is_multisite() ) {
283 $login_header_url = network_home_url();
284 $login_header_title = get_current_site()->site_name;
285 } else {
286 $login_header_url = __( 'https://wordpress.org/' );
287 $login_header_title = __( 'Powered by WordPress' );
288 }
289
290 /**
291 * Filter link URL of the header logo above login form.
292 *
293 * @since 2.1.0
294 *
295 * @param string $login_header_url Login header logo URL.
296 */
297 $login_header_url = apply_filters( 'login_headerurl', $login_header_url );
298 /**
299 * Filter the title attribute of the header logo above login form.
300 *
301 * @since 2.1.0
302 *
303 * @param string $login_header_title Login header logo title attribute.
304 */
305 $login_header_title = apply_filters( 'login_headertitle', $login_header_title );
306
307 $classes = array( 'login-action-' . $action, 'wp-core-ui' );
308 if ( wp_is_mobile() )
309 $classes[] = 'mobile';
310 if ( is_rtl() )
311 $classes[] = 'rtl';
312 if ( $interim_login ) {
313 $classes[] = 'interim-login';
314 ?>
315 <style type="text/css">html{background-color: transparent;}</style>
316 <?php
317
318 if ( 'success' === $interim_login )
319 $classes[] = 'interim-login-success';
320 }
321 $classes[] =' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
322
323 /**
324 * Filter the login page body classes.
325 *
326 * @since 3.5.0
327 *
328 * @param array $classes An array of body classes.
329 * @param string $action The action that brought the visitor to the login page.
330 */
331 $classes = apply_filters( 'login_body_class', $classes, $action );
332
333 ?>
334 </head>
335 <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
336 <div id="login">
337 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
338 <?php
339
340 unset( $login_header_url, $login_header_title );
341
342 /**
343 * Filter the message to display above the login form.
344 *
345 * @since 2.1.0
346 *
347 * @param string $message Login message text.
348 */
349 $message = apply_filters( 'login_message', $message );
350 if ( !empty( $message ) )
351 echo $message . "\n";
352
353 // In case a plugin uses $error rather than the $wp_errors object
354 if ( !empty( $error ) ) {
355 $wp_error->add('error', $error);
356 unset($error);
357 }
358
359 if ( $wp_error->get_error_code() ) {
360 $errors = '';
361 $messages = '';
362 foreach ( $wp_error->get_error_codes() as $code ) {
363 $severity = $wp_error->get_error_data($code);
364 foreach ( $wp_error->get_error_messages($code) as $error ) {
365 if ( 'message' == $severity )
366 $messages .= ' ' . $error . "<br />\n";
367 else
368 $errors .= ' ' . $error . "<br />\n";
369 }
370 }
371 if ( ! empty( $errors ) ) {
372 /**
373 * Filter the error messages displayed above the login form.
374 *
375 * @since 2.1.0
376 *
377 * @param string $errors Login error message.
378 */
379 echo '<div id="login_error">' . apply_filters( 'login_errors', $errors ) . "</div>\n";
380 }
381 if ( ! empty( $messages ) ) {
382 /**
383 * Filter instructional messages displayed above the login form.
384 *
385 * @since 2.5.0
386 *
387 * @param string $messages Login messages.
388 */
389 echo '<p class="message">' . apply_filters( 'login_messages', $messages ) . "</p>\n";
390 }
391 }
392} // End of login_header()
393
394/**
395 * Outputs the footer for the login page.
396 *
397 * @param string $input_id Which input to auto-focus
398 */
399function login_footer($input_id = '') {
400 global $interim_login;
401
402 // Don't allow interim logins to navigate away from the page.
403 if ( ! $interim_login ): ?>
404 <p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Are you lost?' ); ?>"><?php printf( __( '← Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p>
405 <?php endif; ?>
406
407 </div>
408
409 <?php if ( !empty($input_id) ) : ?>
410 <script type="text/javascript">
411 try{document.getElementById('<?php echo $input_id; ?>').focus();}catch(e){}
412 if(typeof wpOnload=='function')wpOnload();
413 </script>
414 <?php endif; ?>
415
416 <?php
417 /**
418 * Fires in the login page footer.
419 *
420 * @since 3.1.0
421 */
422 do_action( 'login_footer' ); ?>
423 <div class="clear"></div>
424 </body>
425 </html>
426 <?php
427}
428
429function wp_shake_js() {
430 if ( wp_is_mobile() )
431 return;
432?>
433<script type="text/javascript">
434addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
435function s(id,pos){g(id).left=pos+'px';}
436function g(id){return document.getElementById(id).style;}
437function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
438addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
439</script>
440<?php
441}
442
443function wp_login_viewport_meta() {
444 ?>
445 <meta name="viewport" content="width=device-width" />
446 <?php
447}
448
449/**
450 * Handles sending password retrieval email to user.
451 *
452 * @uses $wpdb WordPress Database object
453 *
454 * @return bool|WP_Error True: when finish. WP_Error on error
455 */
456function retrieve_password() {
457 global $wpdb, $wp_hasher;
458
459 $errors = new WP_Error();
460
461 if ( empty( $_POST['user_login'] ) ) {
462 $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));
463 } else if ( strpos( $_POST['user_login'], '@' ) ) {
464 $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
465 if ( empty( $user_data ) )
466 $errors->add('invalid_email', __('<strong>ERROR</strong>: There is no user registered with that email address.'));
467 } else {
468 $login = trim($_POST['user_login']);
469 $user_data = get_user_by('login', $login);
470 }
471
472 /**
473 * Fires before errors are returned from a password reset request.
474 *
475 * @since 2.1.0
476 */
477 do_action( 'lostpassword_post' );
478
479 if ( $errors->get_error_code() )
480 return $errors;
481
482 if ( !$user_data ) {
483 $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
484 return $errors;
485 }
486
487 // redefining user_login ensures we return the right case in the email
488 $user_login = $user_data->user_login;
489 $user_email = $user_data->user_email;
490
491 /**
492 * Fires before a new password is retrieved.
493 *
494 * @since 1.5.0
495 * @deprecated 1.5.1 Misspelled. Use 'retrieve_password' hook instead.
496 *
497 * @param string $user_login The user login name.
498 */
499 do_action( 'retreive_password', $user_login );
500 /**
501 * Fires before a new password is retrieved.
502 *
503 * @since 1.5.1
504 *
505 * @param string $user_login The user login name.
506 */
507 do_action( 'retrieve_password', $user_login );
508
509 /**
510 * Filter whether to allow a password to be reset.
511 *
512 * @since 2.7.0
513 *
514 * @param bool true Whether to allow the password to be reset. Default true.
515 * @param int $user_data->ID The ID of the user attempting to reset a password.
516 */
517 $allow = apply_filters( 'allow_password_reset', true, $user_data->ID );
518
519 if ( ! $allow )
520 return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
521 else if ( is_wp_error($allow) )
522 return $allow;
523
524 // Generate something random for a password reset key.
525 $key = wp_generate_password( 20, false );
526
527 /**
528 * Fires when a password reset key is generated.
529 *
530 * @since 2.5.0
531 *
532 * @param string $user_login The username for the user.
533 * @param string $key The generated password reset key.
534 */
535 do_action( 'retrieve_password_key', $user_login, $key );
536
537 // Now insert the key, hashed, into the DB.
538 if ( empty( $wp_hasher ) ) {
539 require_once ABSPATH . 'wp-includes/class-phpass.php';
540 $wp_hasher = new PasswordHash( 8, true );
541 }
542 $hashed = $wp_hasher->HashPassword( $key );
543 $wpdb->update( $wpdb->users, array( 'user_activation_key' => $hashed ), array( 'user_login' => $user_login ) );
544
545 $message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n";
546 $message .= network_home_url( '/' ) . "\r\n\r\n";
547 $message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
548 $message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
549 $message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
550 $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
551
552 if ( is_multisite() )
553 $blogname = $GLOBALS['current_site']->site_name;
554 else
555 // The blogname option is escaped with esc_html on the way into the database in sanitize_option
556 // we want to reverse this for the plain text arena of emails.
557 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
558
559 $title = sprintf( __('[%s] Password Reset'), $blogname );
560
561 /**
562 * Filter the subject of the password reset email.
563 *
564 * @since 2.8.0
565 *
566 * @param string $title Default email title.
567 */
568 $title = apply_filters( 'retrieve_password_title', $title );
569 /**
570 * Filter the message body of the password reset mail.
571 *
572 * @since 2.8.0
573 *
574 * @param string $message Default mail message.
575 * @param string $key The activation key.
576 */
577 $message = apply_filters( 'retrieve_password_message', $message, $key );
578
579 if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
580 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
581
582 return true;
583}
584
585//
586// Main
587//
588
589$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';
590$errors = new WP_Error();
591
592if ( isset($_GET['key']) )
593 $action = 'resetpass';
594
595// validate action so as to default to the login screen
596if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login' ), true ) && false === has_filter( 'login_form_' . $action ) )
597 $action = 'login';
598
599nocache_headers();
600
601header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
602
603if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set
604 if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
605 $_SERVER['PHP_SELF'] = str_replace( $_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF'] );
606
607 $url = dirname( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ) );
608 if ( $url != get_option( 'siteurl' ) )
609 update_option( 'siteurl', $url );
610}
611
612//Set a cookie now to see if they are supported by the browser.
613setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
614if ( SITECOOKIEPATH != COOKIEPATH )
615 setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
616
617/**
618 * Fires when the login form is initialized.
619 *
620 * @since 3.2.0
621 */
622do_action( 'login_init' );
623/**
624 * Fires before a specified login form action.
625 *
626 * The dynamic portion of the hook name, $action, refers to the action
627 * that brought the visitor to the login form. Actions include 'postpass',
628 * 'logout', 'lostpassword', etc.
629 *
630 * @since 2.8.0
631 */
632do_action( 'login_form_' . $action );
633
634$http_post = ('POST' == $_SERVER['REQUEST_METHOD']);
635$interim_login = isset($_REQUEST['interim-login']);
636
637switch ($action) {
638
639case 'postpass' :
640 require_once ABSPATH . 'wp-includes/class-phpass.php';
641 $hasher = new PasswordHash( 8, true );
642
643 /**
644 * Filter the life span of the post password cookie.
645 *
646 * By default, the cookie expires 10 days from creation. To turn this
647 * into a session cookie, return 0.
648 *
649 * @since 3.7.0
650 *
651 * @param int $expires The expiry time, as passed to setcookie().
652 */
653 $expire = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS );
654 setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH );
655
656 wp_safe_redirect( wp_get_referer() );
657 exit();
658
659break;
660
661case 'logout' :
662 check_admin_referer('log-out');
663 wp_logout();
664
665 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?loggedout=true';
666 wp_safe_redirect( $redirect_to );
667 exit();
668
669break;
670
671case 'lostpassword' :
672case 'retrievepassword' :
673
674 if ( $http_post ) {
675 $errors = retrieve_password();
676 if ( !is_wp_error($errors) ) {
677 $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm';
678 wp_safe_redirect( $redirect_to );
679 exit();
680 }
681 }
682
683 if ( isset( $_GET['error'] ) ) {
684 if ( 'invalidkey' == $_GET['error'] )
685 $errors->add( 'invalidkey', __( 'Sorry, that key does not appear to be valid.' ) );
686 elseif ( 'expiredkey' == $_GET['error'] )
687 $errors->add( 'expiredkey', __( 'Sorry, that key has expired. Please try again.' ) );
688 }
689
690 $lostpassword_redirect = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
691 /**
692 * Filter the URL redirected to after submitting the lostpassword/retrievepassword form.
693 *
694 * @since 3.0.0
695 *
696 * @param string $lostpassword_redirect The redirect destination URL.
697 */
698 $redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );
699
700 /**
701 * Fires before the lost password form.
702 *
703 * @since 1.5.1
704 */
705 do_action( 'lost_password' );
706
707 login_header(__('Lost Password'), '<p class="message">' . __('Please enter your username or email address. You will receive a link to create a new password via email.') . '</p>', $errors);
708
709 $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : '';
710
711?>
712
713<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
714 <p>
715 <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
716 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
717 </p>
718 <?php
719 /**
720 * Fires inside the lostpassword <form> tags, before the hidden fields.
721 *
722 * @since 2.1.0
723 */
724 do_action( 'lostpassword_form' ); ?>
725 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
726 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Get New Password'); ?>" /></p>
727</form>
728
729<p id="nav">
730<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
731<?php
732if ( get_option( 'users_can_register' ) ) :
733 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
734 /**
735 * Filter the registration URL below the login form.
736 *
737 * @since 1.5.0
738 *
739 * @param string $registration_url Registration URL.
740 */
741 echo ' | ' . apply_filters( 'register', $registration_url );
742endif;
743?>
744</p>
745
746<?php
747login_footer('user_login');
748break;
749
750case 'resetpass' :
751case 'rp' :
752 list( $rp_path ) = explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) );
753 $rp_cookie = 'wp-resetpass-' . COOKIEHASH;
754 if ( isset( $_GET['key'] ) ) {
755 $value = sprintf( '%s:%s', wp_unslash( $_GET['login'] ), wp_unslash( $_GET['key'] ) );
756 setcookie( $rp_cookie, $value, 0, $rp_path, COOKIE_DOMAIN, is_ssl(), true );
757 wp_safe_redirect( remove_query_arg( array( 'key', 'login' ) ) );
758 exit;
759 }
760
761 if ( isset( $_COOKIE[ $rp_cookie ] ) && 0 < strpos( $_COOKIE[ $rp_cookie ], ':' ) ) {
762 list( $rp_login, $rp_key ) = explode( ':', wp_unslash( $_COOKIE[ $rp_cookie ] ), 2 );
763 $user = check_password_reset_key( $rp_key, $rp_login );
764 if ( isset( $_POST['pass1'] ) && ! hash_equals( $rp_key, $_POST['rp_key'] ) ) {
765 $user = false;
766 }
767 } else {
768 $user = false;
769 }
770
771 if ( ! $user || is_wp_error( $user ) ) {
772 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true );
773 if ( $user && $user->get_error_code() === 'expired_key' )
774 wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=expiredkey' ) );
775 else
776 wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=invalidkey' ) );
777 exit;
778 }
779
780 $errors = new WP_Error();
781
782 if ( isset($_POST['pass1']) && $_POST['pass1'] != $_POST['pass2'] )
783 $errors->add( 'password_reset_mismatch', __( 'The passwords do not match.' ) );
784
785 /**
786 * Fires before the password reset procedure is validated.
787 *
788 * @since 3.5.0
789 *
790 * @param object $errors WP Error object.
791 * @param WP_User|WP_Error $user WP_User object if the login and reset key match. WP_Error object otherwise.
792 */
793 do_action( 'validate_password_reset', $errors, $user );
794
795 if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) {
796 reset_password($user, $_POST['pass1']);
797 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true );
798 login_header( __( 'Password Reset' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' );
799 login_footer();
800 exit;
801 }
802
803 wp_enqueue_script('utils');
804 wp_enqueue_script('user-profile');
805
806 login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
807
808?>
809<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
810 <input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
811
812 <p>
813 <label for="pass1"><?php _e('New password') ?><br />
814 <input type="password" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" /></label>
815 </p>
816 <p>
817 <label for="pass2"><?php _e('Confirm new password') ?><br />
818 <input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" /></label>
819 </p>
820
821 <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div>
822 <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).'); ?></p>
823
824 <br class="clear" />
825
826 <?php
827 /**
828 * Fires following the 'Strength indicator' meter in the user password reset form.
829 *
830 * @since 3.9.0
831 *
832 * @param WP_User $user User object of the user whose password is being reset.
833 */
834 do_action( 'resetpass_form', $user );
835 ?>
836 <input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
837 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Reset Password'); ?>" /></p>
838</form>
839
840<p id="nav">
841<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
842<?php
843if ( get_option( 'users_can_register' ) ) :
844 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
845 /** This filter is documented in wp-login.php */
846 echo ' | ' . apply_filters( 'register', $registration_url );
847endif;
848?>
849</p>
850
851<?php
852login_footer('user_pass');
853break;
854
855case 'register' :
856 if ( is_multisite() ) {
857 $sign_up_url = network_site_url( 'wp-signup.php' );
858 /**
859 * Filter the Multisite sign up URL.
860 *
861 * @since 3.0.0
862 *
863 * @param string $sign_up_url The sign up URL.
864 */
865 wp_redirect( apply_filters( 'wp_signup_location', $sign_up_url ) );
866 exit;
867 }
868
869 if ( !get_option('users_can_register') ) {
870 wp_redirect( site_url('wp-login.php?registration=disabled') );
871 exit();
872 }
873
874 $user_login = '';
875 $user_email = '';
876 if ( $http_post ) {
877 $user_login = $_POST['user_login'];
878 $user_email = $_POST['user_email'];
879 $errors = register_new_user($user_login, $user_email);
880 if ( !is_wp_error($errors) ) {
881 $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'wp-login.php?checkemail=registered';
882 wp_safe_redirect( $redirect_to );
883 exit();
884 }
885 }
886
887 $registration_redirect = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
888 /**
889 * Filter the registration redirect URL.
890 *
891 * @since 3.0.0
892 *
893 * @param string $registration_redirect The redirect destination URL.
894 */
895 $redirect_to = apply_filters( 'registration_redirect', $registration_redirect );
896 login_header(__('Registration Form'), '<p class="message register">' . __('Register For This Site') . '</p>', $errors);
897?>
898
899<form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
900 <p>
901 <label for="user_login"><?php _e('Username') ?><br />
902 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
903 </p>
904 <p>
905 <label for="user_email"><?php _e('E-mail') ?><br />
906 <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(wp_unslash($user_email)); ?>" size="25" /></label>
907 </p>
908 <?php
909 /**
910 * Fires following the 'E-mail' field in the user registration form.
911 *
912 * @since 2.1.0
913 */
914 do_action( 'register_form' );
915 ?>
916 <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
917 <br class="clear" />
918 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
919 <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p>
920</form>
921
922<p id="nav">
923<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> |
924<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ) ?>"><?php _e( 'Lost your password?' ); ?></a>
925</p>
926
927<?php
928login_footer('user_login');
929break;
930
931case 'login' :
932default:
933 $secure_cookie = '';
934 $customize_login = isset( $_REQUEST['customize-login'] );
935 if ( $customize_login )
936 wp_enqueue_script( 'customize-base' );
937
938 // If the user wants ssl but the session is not ssl, force a secure cookie.
939 if ( !empty($_POST['log']) && !force_ssl_admin() ) {
940 $user_name = sanitize_user($_POST['log']);
941 if ( $user = get_user_by('login', $user_name) ) {
942 if ( get_user_option('use_ssl', $user->ID) ) {
943 $secure_cookie = true;
944 force_ssl_admin(true);
945 }
946 }
947 }
948
949 if ( isset( $_REQUEST['redirect_to'] ) ) {
950 $redirect_to = $_REQUEST['redirect_to'];
951 // Redirect to https if user wants ssl
952 if ( $secure_cookie && false !== strpos($redirect_to, 'wp-admin') )
953 $redirect_to = preg_replace('|^http://|', 'https://', $redirect_to);
954 } else {
955 $redirect_to = admin_url();
956 }
957
958 $reauth = empty($_REQUEST['reauth']) ? false : true;
959
960 // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
961 // cookie and redirect back to the referring non-secure admin page. This allows logins to always be POSTed over SSL while allowing the user to choose visiting
962 // the admin via http or https.
963 if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
964 $secure_cookie = false;
965
966 $user = wp_signon( '', $secure_cookie );
967
968 if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
969 if ( headers_sent() ) {
970 $user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked due to unexpected output. For help, please see <a href="%1$s">this documentation</a> or try the <a href="%2$s">support forums</a>.' ),
971 __( 'http://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' ) ) );
972 } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) {
973 // If cookies are disabled we can't log in even with a valid user+pass
974 $user = new WP_Error( 'test_cookie', sprintf( __( '<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
975 __( 'http://codex.wordpress.org/Cookies' ) ) );
976 }
977 }
978
979 $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
980 /**
981 * Filter the login redirect URL.
982 *
983 * @since 3.0.0
984 *
985 * @param string $redirect_to The redirect destination URL.
986 * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter.
987 * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise.
988 */
989 $redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user );
990
991 if ( !is_wp_error($user) && !$reauth ) {
992 if ( $interim_login ) {
993 $message = '<p class="message">' . __('You have logged in successfully.') . '</p>';
994 $interim_login = 'success';
995 login_header( '', $message ); ?>
996 </div>
997 <?php
998 /** This action is documented in wp-login.php */
999 do_action( 'login_footer' ); ?>
1000 <?php if ( $customize_login ) : ?>
1001 <script type="text/javascript">setTimeout( function(){ new wp.customize.Messenger({ url: '<?php echo wp_customize_url(); ?>', channel: 'login' }).send('login') }, 1000 );</script>
1002 <?php endif; ?>
1003 </body></html>
1004<?php exit;
1005 }
1006
1007 if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) {
1008 // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile.
1009 if ( is_multisite() && !get_active_blog_for_user($user->ID) && !is_super_admin( $user->ID ) )
1010 $redirect_to = user_admin_url();
1011 elseif ( is_multisite() && !$user->has_cap('read') )
1012 $redirect_to = get_dashboard_url( $user->ID );
1013 elseif ( !$user->has_cap('edit_posts') )
1014 $redirect_to = admin_url('profile.php');
1015 }
1016 wp_safe_redirect($redirect_to);
1017 exit();
1018 }
1019
1020 $errors = $user;
1021 // Clear errors if loggedout is set.
1022 if ( !empty($_GET['loggedout']) || $reauth )
1023 $errors = new WP_Error();
1024
1025 if ( $interim_login ) {
1026 if ( ! $errors->get_error_code() )
1027 $errors->add('expired', __('Session expired. Please log in again. You will not move away from this page.'), 'message');
1028 } else {
1029 // Some parts of this script use the main login form to display a message
1030 if ( isset($_GET['loggedout']) && true == $_GET['loggedout'] )
1031 $errors->add('loggedout', __('You are now logged out.'), 'message');
1032 elseif ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
1033 $errors->add('registerdisabled', __('User registration is currently not allowed.'));
1034 elseif ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
1035 $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
1036 elseif ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
1037 $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
1038 elseif ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
1039 $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
1040 elseif ( strpos( $redirect_to, 'about.php?updated' ) )
1041 $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to experience the awesomeness.' ), 'message' );
1042 }
1043
1044 /**
1045 * Filter the login page errors.
1046 *
1047 * @since 3.6.0
1048 *
1049 * @param object $errors WP Error object.
1050 * @param string $redirect_to Redirect destination URL.
1051 */
1052 $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
1053
1054 // Clear any stale cookies.
1055 if ( $reauth )
1056 wp_clear_auth_cookie();
1057
1058 login_header(__('Log In'), '', $errors);
1059
1060 if ( isset($_POST['log']) )
1061 $user_login = ( 'incorrect_password' == $errors->get_error_code() || 'empty_password' == $errors->get_error_code() ) ? esc_attr(wp_unslash($_POST['log'])) : '';
1062 $rememberme = ! empty( $_POST['rememberme'] );
1063?>
1064
1065<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
1066 <p>
1067 <label for="user_login"><?php _e('Username') ?><br />
1068 <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
1069 </p>
1070 <p>
1071 <label for="user_pass"><?php _e('Password') ?><br />
1072 <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label>
1073 </p>
1074 <?php
1075 /**
1076 * Fires following the 'Password' field in the login form.
1077 *
1078 * @since 2.1.0
1079 */
1080 do_action( 'login_form' );
1081 ?>
1082 <p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
1083 <p class="submit">
1084 <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Log In'); ?>" />
1085<?php if ( $interim_login ) { ?>
1086 <input type="hidden" name="interim-login" value="1" />
1087<?php } else { ?>
1088 <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
1089<?php } ?>
1090<?php if ( $customize_login ) : ?>
1091 <input type="hidden" name="customize-login" value="1" />
1092<?php endif; ?>
1093 <input type="hidden" name="testcookie" value="1" />
1094 </p>
1095</form>
1096
1097<?php if ( ! $interim_login ) { ?>
1098<p id="nav">
1099<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) :
1100 if ( get_option( 'users_can_register' ) ) :
1101 $registration_url = sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) );
1102 /** This filter is documented in wp-login.php */
1103 echo apply_filters( 'register', $registration_url ) . ' | ';
1104 endif;
1105 ?>
1106 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
1107<?php endif; ?>
1108</p>
1109<?php } ?>
1110
1111<script type="text/javascript">
1112function wp_attempt_focus(){
1113setTimeout( function(){ try{
1114<?php if ( $user_login || $interim_login ) { ?>
1115d = document.getElementById('user_pass');
1116d.value = '';
1117<?php } else { ?>
1118d = document.getElementById('user_login');
1119<?php if ( 'invalid_username' == $errors->get_error_code() ) { ?>
1120if( d.value != '' )
1121d.value = '';
1122<?php
1123}
1124}?>
1125d.focus();
1126d.select();
1127} catch(e){}
1128}, 200);
1129}
1130
1131<?php if ( !$error ) { ?>
1132wp_attempt_focus();
1133<?php } ?>
1134if(typeof wpOnload=='function')wpOnload();
1135<?php if ( $interim_login ) { ?>
1136(function(){
1137try {
1138 var i, links = document.getElementsByTagName('a');
1139 for ( i in links ) {
1140 if ( links[i].href )
1141 links[i].target = '_blank';
1142 }
1143} catch(e){}
1144}());
1145<?php } ?>
1146</script>
1147
1148<?php
1149login_footer();
1150break;
1151} // end action switch
1152
1153---------------------------------------------------------------
1154
1155
1156
1157<?php
1158/**
1159 * The base configuration for WordPress
1160 *
1161 * The wp-config.php creation script uses this file during the
1162 * installation. You don't have to use the web site, you can
1163 * copy this file to "wp-config.php" and fill in the values.
1164 *
1165 * This file contains the following configurations:
1166 *
1167 * * MySQL settings
1168 * * Secret keys
1169 * * Database table prefix
1170 * * ABSPATH
1171 *
1172 * @link https://codex.wordpress.org/Editing_wp-config.php
1173 *
1174 * @package WordPress
1175 */
1176
1177// ** MySQL settings - You can get this info from your web host ** //
1178/** The name of the database for WordPress */
1179define('DB_NAME', 'ssdoil_ssdoil_wpssd2');
1180
1181/** MySQL database username */
1182define('DB_USER', 'ssdoil_ssdoil_ss');
1183
1184/** MySQL database password */
1185define('DB_PASSWORD', 'Q[TUuGt8W{ho');
1186
1187/** MySQL hostname */
1188define('DB_HOST', 'localhost');
1189
1190/** Database Charset to use in creating database tables. */
1191define('DB_CHARSET', 'utf8mb4');
1192
1193/** The Database Collate type. Don't change this if in doubt. */
1194define('DB_COLLATE', '');
1195
1196/**#@+
1197 * Authentication Unique Keys and Salts.
1198 *
1199 * Change these to different unique phrases!
1200 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
1201 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
1202 *
1203 * @since 2.6.0
1204 */
1205define('AUTH_KEY', '8bwfebfeb7gqym35hkt5bvgqd8il0dnop1mamd8lkpcfigcoqsfhzmru48aok5vm');
1206define('SECURE_AUTH_KEY', 'gl6g2tpvg3joqzqp7fjgazplwvbfcdezorsu1851npqnbngfyhsvd3tuk1miysqm');
1207define('LOGGED_IN_KEY', 'rv1qtrfp2juon8fclag3nyn4twoglhm9buszkm12hxembhm9sdtxdbaf4kw4tq35');
1208define('NONCE_KEY', 'wgjjyey20n9zcse61e3epswvzyydh4ijirjc3kywsgap7onnjbpi8vjdvzxmw4uc');
1209define('AUTH_SALT', 'ewtgbbsvmz3hocaylbcwgio8qbiu6qv1tdbf1pvuyjcbsa8uyybndirqmcr2afnf');
1210define('SECURE_AUTH_SALT', 'tmrfwo5pwdyyd1at3eh4ij5kmzv5dpvzr2c83szkgnrcri6qincpevbsbv091qqh');
1211define('LOGGED_IN_SALT', 'm3rckhhyqch6t3yqm0sd2shgsnjqjukpoykwqmsk2fyroxxhl10sbfgvqxqwfslq');
1212define('NONCE_SALT', 'dmqzznnpvimshqgwxfxfauavqesxppjs5ceaa4vqo7tmnsscbikyyoca0bonbnam');
1213
1214/**#@-*/
1215
1216/**
1217 * WordPress Database Table prefix.
1218 *
1219 * You can have multiple installations in one database if you give each
1220 * a unique prefix. Only numbers, letters, and underscores please!
1221 */
1222$table_prefix = 'wpoi_';
1223
1224/**
1225 * For developers: WordPress debugging mode.
1226 *
1227 * Change this to true to enable the display of notices during development.
1228 * It is strongly recommended that plugin and theme developers use WP_DEBUG
1229 * in their development environments.
1230 *
1231 * For information on other constants that can be used for debugging,
1232 * visit the Codex.
1233 *
1234 * @link https://codex.wordpress.org/Debugging_in_WordPress
1235 */
1236define('WP_DEBUG', false);
1237
1238/* That's all, stop editing! Happy blogging. */
1239
1240/** Absolute path to the WordPress directory. */
1241if ( !defined('ABSPATH') )
1242 define('ABSPATH', dirname(__FILE__) . '/');
1243
1244/** Sets up WordPress vars and included files. */
1245require_once(ABSPATH . 'wp-settings.php');
1246
1247-------------------------------------------------
1248
1249<?php
1250ob_start();
1251session_start();
1252
1253date_default_timezone_set('Asia/Calcutta');
1254
1255$host = "localhost";
1256$user = "annanaga_dial";
1257$pwd = "welcome#123";
1258$connection = mysql_connect($host,$user,$pwd);
1259$db = "annanaga_dial";
1260mysql_select_db($db);
1261
1262/*$host = "localhost";
1263$user = "root";
1264$pwd = "";
1265$connection = mysql_connect($host,$user,$pwd);
1266$db = "annanagardial";
1267mysql_select_db($db);*/
1268
1269
1270/*$host = "localhost";
1271$user = "crbchenn_anna";
1272$pwd = "anna#123";
1273$connection = mysql_connect($host,$user,$pwd);
1274$db = "crbchenn_annanagardail";
1275mysql_select_db($db);
1276*/
1277$query=mysql_query("select * from tbl_settings") or die(mysql_error());
1278$result=mysql_fetch_array($query);
1279error_reporting(0);
1280?>
1281
1282
1283---------------------------------------------------
1284
1285<?php
1286// HTTP
1287define('HTTP_SERVER', 'http://www.decoaroonline.com/');
1288
1289// HTTPS
1290define('HTTPS_SERVER', 'http://www.decoaroonline.com/');
1291
1292// DIR
1293define('DIR_APPLICATION', '/home/decoaroo/public_html/catalog/');
1294define('DIR_SYSTEM', '/home/decoaroo/public_html/system/');
1295define('DIR_DATABASE', '/home/decoaroo/public_html/system/database/');
1296define('DIR_LANGUAGE', '/home/decoaroo/public_html/catalog/language/');
1297define('DIR_TEMPLATE', '/home/decoaroo/public_html/catalog/view/theme/');
1298define('DIR_CONFIG', '/home/decoaroo/public_html/system/config/');
1299define('DIR_IMAGE', '/home/decoaroo/public_html/image/');
1300define('DIR_CACHE', '/home/decoaroo/public_html/system/cache/');
1301define('DIR_DOWNLOAD', '/home/decoaroo/public_html/download/');
1302define('DIR_LOGS', '/home/decoaroo/public_html/system/logs/');
1303
1304// DB
1305define('DB_DRIVER', 'mysql');
1306define('DB_HOSTNAME', 'localhost');
1307define('DB_USERNAME', 'decoaroo_dbuser');
1308define('DB_PASSWORD', 'Protect2save');
1309define('DB_DATABASE', 'decoaroo_demo_db');
1310define('DB_PREFIX', 'tbl');
1311?>
1312
1313-----------------------------------------------
1314
1315
1316
1317<?
1318$host_name = "localhost";
1319$user_name = "aditya";
1320$password = "aditya";
1321$db = "adityaweb_com_-_zina";
1322mysql_connect($host_name,$user_name,$password);
1323mysql_select_db($db);
1324?>
1325
1326---------------------------------------------
1327<?php
1328 $mysql_hostname ='localhost';
1329 $mysql_user ='naathadh_admin';
1330 $mysql_password ='tc492k4QSj';
1331 $mysql_database ='naathadh_naathadhyan';
1332 $link=mysql_connect($mysql_hostname,$mysql_user,$mysql_password) or die('Could not connect: ' .mysql_error());
1333 $db=mysql_select_db($mysql_database) or die(mysql_error());
1334?>
1335
1336-----------------------------------------
1337<?php
1338ob_start();
1339session_start();
1340
1341date_default_timezone_set('Asia/Calcutta');
1342
1343$host = "localhost";
1344$user = "repcomic_repco";
1345$pwd = "s-,Ksi%7^#w]";
1346$connection = mysql_connect($host,$user,$pwd);
1347$db = "repcomic_repcomicro";
1348mysql_select_db($db);
1349
1350/*$host = "localhost";
1351$user = "crbchenn_repmic";
1352$pwd = "welcome#456";
1353$connection = mysql_connect($host,$user,$pwd);
1354$db = "crbchenn_repco_micro";
1355mysql_select_db($db);*/
1356
1357
1358/*$host = "localhost";
1359$user = "repcohom_repcoho";
1360$pwd = "repcoho#123";
1361$connection = mysql_connect($host,$user,$pwd);
1362$db = "repcohom_repcohome";
1363mysql_select_db($db);*/
1364
1365$query=mysql_query("select * from tbl_settings") or die(mysql_error());
1366$result=mysql_fetch_array($query);
1367
1368error_reporting(0);
1369$crdate= date("Y-m-d");
1370$crtime= date("H:i:s");
1371$crdatetime= date("Y-m-d H:i:s");
1372$crDM= date("m-d");
1373$today= date("d-m-Y");
1374$Ddatetime= date("d-m-Y H:i:s");
1375$Dnext=date('Y-m-d', strtotime("+1 days"));
1376$week_day=date('N');
1377?>