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
| /** | |
| * is_rest_request | |
| * | |
| * this method attempts to determine if the current request is for the REST API or not | |
| * based on a fiew factors | |
| * | |
| * @since 7.4 | |
| * @access public | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Protect Your REmote |
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
| /** | |
| * get_current_post | |
| * | |
| * Static method for getting the current post | |
| * | |
| * @since 7.3 | |
| * @access public | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Kevin's Framework | |
| * |
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
| /** | |
| * get_id_from_slug | |
| * | |
| * This method is utilized for returning the post id from the slug | |
| * | |
| * @since 7.3 | |
| * @access public | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Kevin's Framework | |
| * |
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
| /** | |
| * get_urls | |
| * | |
| * Public method pull to gather all public URLs | |
| * | |
| * @since 7.3 | |
| * @access public | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Kevin's Framework | |
| * |
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
| /** | |
| * attachment_url_to_path | |
| * | |
| * Static method for getting the physical server path to an image/attachment/file | |
| * based on it's URL | |
| * | |
| * @since 7.3 | |
| * @access public | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Kevin's Framework |
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
| /** | |
| * is_in_admin | |
| * | |
| * Check and see if we are indeed in the admin area of the site | |
| * | |
| * @since 7.4 | |
| * @access public | |
| * @static | |
| * @author Kevin Pirnie <[email protected]> | |
| * @package Kevin's Framework |
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
| #!/usr/bin/env python3 | |
| import os | |
| import re | |
| import subprocess | |
| import glob | |
| from datetime import datetime, timedelta | |
| from pathlib import Path | |
| VHOSTS_DIR = "/etc/nginx/sites-enabled" |
OlderNewer