First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
| Plesk email users often get their passwords lost. | |
| Fortunately Parallels has implemented a command to see all passwords for all users in all domains: | |
| `/usr/local/psa/admin/bin/mail_auth_view` | |
| You can filter the output to see one account password (quotes must exist): | |
| `/usr/local/psa/admin/bin/mail_auth_view | grep "johnsmith@domain.tld"` |
| <? | |
| /** | |
| * @param String $str The input string | |
| * @return String The string without accents | |
| */ | |
| function removeAccents( $str ) | |
| { | |
| $a = array('À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', 'Ð', | |
| 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'ß', 'à', 'á', 'â', 'ã', | |
| 'ä', 'å', 'æ', 'ç', 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', 'ñ', 'ò', 'ó', 'ô', 'õ', |
| <?php | |
| /** | |
| * Infinite next and previous post looping in WordPress | |
| */ | |
| if( get_adjacent_post(false, '', true) ) { | |
| previous_post_link('%link', '← Previous Post'); | |
| } else { | |
| $first = new WP_Query('posts_per_page=1&order=DESC'); $first->the_post(); | |
| echo '<a href="' . get_permalink() . '">← Previous Post</a>'; | |
| wp_reset_query(); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;'; | |
| const warningDescCSS = 'font-size: 18px;'; |
| { | |
| "USD": { | |
| "symbol": "$", | |
| "name": "US Dollar", | |
| "symbol_native": "$", | |
| "decimal_digits": 2, | |
| "rounding": 0, | |
| "code": "USD", | |
| "name_plural": "US dollars" | |
| }, |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| <?php | |
| // NOTE: verify-purchase has been deprecated and it's best to use the new /author/sale endpoint as documented on http://build.envato.com/ | |
| // created by Envato user wpdreams https://forums.envato.com/t/verify-purchase-class/3526 | |
| // usage example: | |
| $o = EnvatoApi2::verifyPurchase( $purchase_code ); |
| <?php | |
| // Add to existing function.php file | |
| // Disable support for comments and trackbacks in post types | |
| function df_disable_comments_post_types_support() { | |
| $post_types = get_post_types(); | |
| foreach ($post_types as $post_type) { | |
| if(post_type_supports($post_type, 'comments')) { | |
| remove_post_type_support($post_type, 'comments'); |