This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //MODIFIED HEADER DATE | |
| ################################################################################## | |
| function set_headerdate() { | |
| $format = "%a, %d %b %Y %H:%M:%S %z"; | |
| // First check if there is a blog post date | |
| if (function_exists('perch_blog_post_field') && function_exists('perch_get') && perch_blog_post_field(perch_get('s'), 'postDateTime', true)) { | |
| $result = perch_blog_post_field(perch_get('s'), 'postDateTime', true); | |
| header("Last-Modified: ".strftime($format, strtotime($result))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class DB | |
| { | |
| private $_dbname; | |
| private $_dbhost; | |
| private $_dbuser; | |
| private $_dbpass; | |
| private $_dbcon; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action('admin_init', function () { | |
| // Redirect any user trying to access comments page | |
| global $pagenow; | |
| if ($pagenow === 'edit-comments.php') { | |
| wp_redirect(admin_url()); | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function send_pushover_notification() { | |
| var push = require( 'pushover-notifications' ); | |
| var p = new push( { | |
| user: "xxxx", | |
| token: "xxxx" | |
| }); | |
| var msg = { |
OlderNewer