apt-get purge -y mysql* mariadb* \
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /etc/mysql /var/lib/mysql
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 | |
| function sendRequest($method, $url, $content = '', $headers = []) { | |
| $opts = [ | |
| 'http' => [ | |
| 'method' => $method, | |
| 'header' => implode("\r\n", $headers), | |
| 'content' => $content | |
| ] | |
| ]; |
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
| .iframe-container { | |
| position: relative; | |
| padding-bottom: 56.25%; | |
| padding-top: 35px; | |
| height: 0; | |
| overflow: hidden; | |
| } | |
| .iframe-container iframe { | |
| position: absolute; |
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 | |
| /** | |
| * Returns the IP of the user. | |
| * | |
| * @return string|false | |
| */ | |
| function getIP() { | |
| foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) { | |
| $val = filter_input(INPUT_SERVER, $key); |
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 | |
| ini_set('auto_detect_line_endings', true); | |
| $states_list = []; | |
| $handle = @fopen('states-list.csv', 'r'); | |
| if ($handle !== false) { | |
| while (!feof($handle)) { |
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
| ol{ | |
| list-style:none; | |
| counter-reset:li; | |
| padding:8px 0px 1px; | |
| left:-7px; | |
| width:290px; | |
| } | |
| li{ | |
| position:relative; | |
| margin:0 0 10px 0; |
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 | |
| $content = get_the_content(); | |
| $shortcodes_data = []; | |
| // This will extract the shortcodes named [coupon_form] and [page_settings]. | |
| if (preg_match_all('/\[(\[?)(coupon_form|page_settings)(?![\w-])([^\]\/]*(?:\/(?!\])[^\]\/]*)*?)(?:(\/)\]|\](?:([^\[]*+(?:\[(?!\/\2\])[^\[]*+)*+)\[\/\2\])?)(\]?)/s', $content, $matches) | |
| && array_key_exists(2, $matches)) | |
| { | |
| foreach ($matches[2] as $shortcode_key => $shortcode_name) { |